Bug 755111

Summary: rpmbuild provides not generated for library
Product: [Fedora] Fedora Reporter: Karl Robillard <wickedsmoke>
Component: rpmAssignee: Xavier Bachelot <xavier>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: dominik, ffesti, jnovy, pmatilai, xavier
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-11-18 22:36:01 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Karl Robillard 2011-11-18 21:16:23 UTC
I have a small library RPM which built OK on Fedora 13 but is broken on Fedora 
16.  Rpmbuild reports that the shared library in the package is required by 
the package itself.  There is no "Provides" line, and when I try to install 
the RPM it reports: 

    error: Failed dependencies:
            libglv.so.0()(64bit) is needed by libglv0-0.3.1-1.x86_64

If I run /usr/lib/rpm/find-provides manually on the library it reports the 
correct information:

    libglv.so.0()(64bit)

I have tried this with and without the redhat-rpm-config package installed.

The spec file can be seen here:
  http://outguard.svn.sourceforge.net/viewvc/outguard/trunk/glv/glv.spec

Here is the build output:

$ rpmbuild -bb glv.spec
+ umask 022
+ cd /home/karl/src/rpm/BUILD
+ LANG=C
+ Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.ravKIN
make: Entering directory `/home/karl/src/rpm/BUILD/libglv-0.3.1/x11'
gcc -c -fPIC -Wall -W -Wno-unused-parameter -O3 -DUSE_XF86VMODE -o glv.o -I. glv.c
gcc -o libglv.so.0.3 -Wl,-soname,libglv.so.0 -shared glv.o  -lXxf86vm
ln -sf libglv.so.0.3 libglv.so.0
ln -sf libglv.so.0.3 libglv.so
make: Leaving directory `/hom+ exit 0
+ umask 022
+ cd /home/karl/src/rpm/BUILD
+ '[' /home/karl/src/rpm/BUILDROOT/libglv0-0Processing files: libglv0-0.3.1-1.x86_64
Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.uaBaFf
Requires(interp): /sbin/ldconfig /sbin/ldconfig
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
Requires: libglv.so.0()(64bit)
Processing files: libglv0-debuginfo-0.3.1-1.x86_64
Checking for unpackaged file(s): /usr/lib/rpm/check-files /home/karl/src/rpm/BUILDROOT/libglv0-0.3.1-1.x86_64
Wrote: /home/karl/src/rpm/RPMS/x86_64/libglv0-0.3.1-1.x86_64.rpm
Wrote: /home/karl/src/rpm/RPMS/x86_64/libglv0-debuginfo-0.3.1-1.x86_64.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.wt8gLs
v0-0.3.1-1.x86_64/usr/lib64/libglv.so.0
+ ln -s libglv.so.0.3 /home/karl/src/rpm/BUILDROOT/libglv0-0.3.1-1.x86_64/usr/lib64/libglv.so
+ /usr/lib/rpm/find-debuginfo.sh --strict-build-id /home/karl/src/rpm/BUILD/libglv-0.3.1
+ /usr/lib/rpm/check-buildroot
+ /usr/lib/rpm/redhat/brp-compress
+ /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip
+ /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1
+ /usr/lib/rpm/redhat/brp-python-hardlink
+ /usr/lib/rpm/redhat/brp-java-repack-jars
+ umask 022
+ cd /home/karl/src/rpm/BUILD
+ cd libglv-0.3.1
+ DOCDIR=/home/karl/src/rpm/BUILDROOT/libglv0-0.3.1-1.x86_64/usr/share/doc/libglv0-0.3.1
+ export DOCDIR
+ /bin/mkdir -p /home/karl/src/rpm/BUILDROOT/libglv0-0.3.1-1.x86_64/usr/share/doc/libglv0-0.3.1
+ cp -pr ChangeLog LICENSE README /home/karl/src/rpm/BUILDROOT/libglv0-0.3.1-1.x86_64/usr/share/doc/libglv0-0.3.1
+ exit 0
+ umask 022
+ cd /home/karl/src/rpm/BUILD
+ cd libglv-0.3.1
+ rm -rf /home/karl/src/rpm/BUILDROOT/libglv0-0.3.1-1.x86_64
+ exit 0

Comment 1 Karl Robillard 2011-11-18 22:36:01 UTC
This was fixed by installing the library with mode 0755 (it was 644).