Bug 7916 - Libtalloc 2.0.5 build creates shared libraries with incorrect permissions
Libtalloc 2.0.5 build creates shared libraries with incorrect permissions
Status: NEW
Product: TALLOC
Classification: Unclassified
Component: libtalloc
unspecified
All Linux
: P3 normal
: ---
Assigned To: Simo Sorce
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-01-14 06:51 UTC by Stephen Gallagher
Modified: 2011-01-14 06:51 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stephen Gallagher 2011-01-14 06:51:48 UTC
On 64-bit systems, the talloc build system generates talloc.so, libpytalloc-util.so.2 and libtalloc.so* with the permissions 644, when it is expected that they should have the permissions 755.

This causes issues with RPM generation, as rpmbuild will not automatically strip the binaries and generate debuginfo unless they are set executable.

Steps to reproduce:

1) Create distribution tarball of talloc-2.0.5
2) Extract tarball, cd into it
3) ./autogen.sh
4) ./configure \
--build=x86_64-unknown-linux-gnu \
--host=x86_64-unknown-linux-gnu \
--target=x86_64-redhat-linux-gnu \
--program-prefix= \
--prefix=/usr \
--exec-prefix=/usr \
--bindir=/usr/bin \
--sbindir=/usr/sbin \
--sysconfdir=/etc \
--datadir=/usr/share \
--includedir=/usr/include \
--libdir=/usr/lib64 \
--libexecdir=/usr/libexec \
--localstatedir=/var \
--sharedstatedir=/var/lib \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--disable-rpath
5) make
6) make install DESTDIR=/tmp/destdir
7) ls -l /tmp/destdir/usr/lib64/libtalloc.so.2.0.5
-rw-r--r--. 1 root root 199993 Jan 11 15:12 /tmp/destdir/usr/lib64/libtalloc.so.2.0.5