From: Andreas Schneider Date: Thu, 23 Feb 2012 10:05:09 +0000 (+0100) Subject: waf: Make sure libraries are installed with the execute flag set. X-Git-Tag: samba-4.0.0alpha18~11 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=aed0735862f9517c49918bb4e4b444427d924b2e;p=thirdparty%2Fsamba.git waf: Make sure libraries are installed with the execute flag set. There are two reasons for that. The first is that libraries are executables and can have main functions (see libc). The second reason is that rpm script to extract debuginfo are looking for executables and then check if it is the right file to extract the info. Autobuild-User: Andreas Schneider Autobuild-Date: Thu Feb 23 20:57:11 CET 2012 on sn-devel-104 --- diff --git a/buildtools/wafsamba/samba_install.py b/buildtools/wafsamba/samba_install.py index 26d0a371e6d..5e53989c04f 100644 --- a/buildtools/wafsamba/samba_install.py +++ b/buildtools/wafsamba/samba_install.py @@ -134,7 +134,8 @@ def install_library(self): # tell waf to install the library bld.install_as(os.path.join(install_path, install_name), - os.path.join(self.path.abspath(bld.env), inst_name)) + os.path.join(self.path.abspath(bld.env), inst_name), + chmod=MODE_755) if install_link and install_link != install_name: # and the symlink if needed bld.symlink_as(os.path.join(install_path, install_link), os.path.basename(install_name))