opensips_head bug in Makefile

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

opensips_head bug in Makefile

Helmut Kuper
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,


I downloaded and compiled opensips head today. During installing I got a
permission denied:

sed -e
"s#/usr/.*lib/opensips/modules/#/opt/app/voip/location/lib64/opensips/modules/#g"
\
                        < etc/opensips.cfg >
/opt/app/voip/location/etc/opensips/opensips.cfg.sample0
/bin/sh: /opt/app/voip/location/etc/opensips/opensips.cfg.sample0:
Permission denied
make: *** [install-cfg] Error 1


I found that in opensips 1.4 Makefiles the  file persissions were set to
 644

chmod 644 $(cfg-prefix)/$(cfg-dir)$(NAME).cfg.sample



In opensips 1.5 Makefile around line 471 it is set to 500 ...

chmod 500 $(cfg-prefix)/$(cfg-dir)$(NAME).cfg.sample
chmod 500 $(cfg-prefix)/$(cfg-dir)


5 means: read and execution, but not write access for owner.

I changed that two lines to this:

chmod 644 $(cfg-prefix)/$(cfg-dir)$(NAME).cfg.sample
#chmod 500 $(cfg-prefix)/$(cfg-dir)

Then "make PREFIX=... install" works.



regards
Helmut

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkkPEpQACgkQ4tZeNddg3dxDqgCfTdHK/GIrp6aE2wGuRgsa7x+V
oGYAoKTvA4uSRZB2b/k9eLPQP8nPZ+xh
=Ibt9
-----END PGP SIGNATURE-----

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: opensips_head bug in Makefile

Sergio Gutierrez
Hello Helmut.

You are right; I submitted that patch onto Makefile; i will backport.

Thanks and regards for the report.

Sergio Gutierrez

On Mon, Nov 3, 2008 at 10:02 AM, Helmut Kuper <[hidden email]> wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,


I downloaded and compiled opensips head today. During installing I got a
permission denied:

sed -e
"s#/usr/.*lib/opensips/modules/#/opt/app/voip/location/lib64/opensips/modules/#g"
\
                       < etc/opensips.cfg >
/opt/app/voip/location/etc/opensips/opensips.cfg.sample0
/bin/sh: /opt/app/voip/location/etc/opensips/opensips.cfg.sample0:
Permission denied
make: *** [install-cfg] Error 1


I found that in opensips 1.4 Makefiles the  file persissions were set to
 644

chmod 644 $(cfg-prefix)/$(cfg-dir)$(NAME).cfg.sample



In opensips 1.5 Makefile around line 471 it is set to 500 ...

chmod 500 $(cfg-prefix)/$(cfg-dir)$(NAME).cfg.sample
chmod 500 $(cfg-prefix)/$(cfg-dir)


5 means: read and execution, but not write access for owner.

I changed that two lines to this:

chmod 644 $(cfg-prefix)/$(cfg-dir)$(NAME).cfg.sample
#chmod 500 $(cfg-prefix)/$(cfg-dir)

Then "make PREFIX=... install" works.



regards
Helmut

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkkPEpQACgkQ4tZeNddg3dxDqgCfTdHK/GIrp6aE2wGuRgsa7x+V
oGYAoKTvA4uSRZB2b/k9eLPQP8nPZ+xh
=Ibt9
-----END PGP SIGNATURE-----

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users