Bug 7916 - Libtalloc 2.0.5 build creates shared libraries with incorrect permissions
Summary: Libtalloc 2.0.5 build creates shared libraries with incorrect permissions
Status: RESOLVED FIXED
Alias: None
Product: TALLOC
Classification: Unclassified
Component: libtalloc (show other bugs)
Version: unspecified
Hardware: All Linux
: P3 normal
Target Milestone: ---
Assignee: Simo Sorce
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-14 06:51 UTC by Stephen Gallagher
Modified: 2020-10-22 02:40 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
Comment 1 Douglas Bagnall 2020-10-22 02:40:47 UTC
This appears to be fixed for recent versions. I don't know about 2.0.5; if that is still broken then WONTFIX applies.