FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora User

 
 
LinkBack Thread Tools
 
Old 11-18-2011, 09:26 AM
Karl
 
Default rpmbuild provides seems broken

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 libraries it reports the
correct information:

libglv.so.0()(64bit)


Here is the build output:

$ rpmbuild -bb glv.spec
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.x2bz7z
+ umask 022
+ cd /home/karl/src/rpm/BUILD
+ cd /home/karl/src/rpm/BUILD
+ rm -rf libglv-0.3.1
+ /usr/bin/gzip -dc /home/karl/src/rpm/SOURCES/libglv-0.3.1.tar.gz
+ /bin/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd libglv-0.3.1
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.l6ENXV
+ umask 022
+ cd /home/karl/src/rpm/BUILD
+ cd libglv-0.3.1
+ make -C x11
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 `/home/karl/src/rpm/BUILD/libglv-0.3.1/x11'
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.I2Hazi
+ umask 022
+ cd /home/karl/src/rpm/BUILD
+ cd libglv-0.3.1
+ mkdir -p /home/karl/src/rpm/BUILDROOT/libglv0-0.3.1-1.x86_64/usr/lib64
+ mkdir -p /home/karl/src/rpm/BUILDROOT/libglv0-0.3.1-1.x86_64/usr/include/GL
+ install -m 644 x11/glv.h x11/glv_keys.h
/home/karl/src/rpm/BUILDROOT/libglv0-0.3.1-1.x86_64/usr/include/GL
+ install -m 644 x11/libglv.so.0.3
/home/karl/src/rpm/BUILDROOT/libglv0-0.3.1-1.x86_64/usr/lib64
+ ln -s libglv.so.0.3
/home/karl/src/rpm/BUILDROOT/libglv0-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/brp-compress
+ /usr/lib/rpm/brp-strip /usr/bin/strip
+ /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip
+ /usr/lib/rpm/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump
Processing files: libglv0-0.3.1-1.x86_64
Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.k414sF
+ 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
Requires(interp): /sbin/ldconfig /sbin/ldconfig
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
Requires: libglv.so.0()(64bit)
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
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.G7KuTp
+ 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


-Karl
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 
Old 11-18-2011, 10:16 AM
Michael Schwendt
 
Default rpmbuild provides seems broken

On Fri, 18 Nov 2011 02:26:20 -0800, K (Karl) wrote:

> 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 libraries it reports the
> correct information:
>
> libglv.so.0()(64bit)

Is this with or without package "redhat-rpm-config" installed?
If without it, could be a bug -> http://bugz.fedoraproject.org/rpm

--
Fedora release 16 (Verne) - Linux 3.1.1-2.fc16.x86_64
loadavg: 0.01 0.07 0.07
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 
Old 11-18-2011, 07:21 PM
Karl
 
Default rpmbuild provides seems broken

On Friday, November 18, 2011 12:16:49 PM Michael Schwendt wrote:
> Is this with or without package "redhat-rpm-config" installed?
> If without it, could be a bug -> http://bugz.fedoraproject.org/rpm


There is no redhat-rpm-config package on my system.


-Karl

--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 
Old 11-18-2011, 07:38 PM
Michael Schwendt
 
Default rpmbuild provides seems broken

On Fri, 18 Nov 2011 12:21:54 -0800, K (Karl) wrote:

> > Is this with or without package "redhat-rpm-config" installed?
> > If without it, could be a bug -> http://bugz.fedoraproject.org/rpm
>
>
> There is no redhat-rpm-config package on my system.

Try to reproduce _after_ installing redhat-rpm-config. That package
is used by the Fedora Build System, too, so building without it might
have been tested less. And it would still be a bug to report.
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 
Old 11-18-2011, 08:00 PM
Karl
 
Default rpmbuild provides seems broken

There is no change in behavior with the redhat-rpm-config installed.

I also notice there is no difference in output using the rpmbuild -vv option.
Is there some other way to see what rpmbuild is actually executing?


-Karl


--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 
Old 11-18-2011, 09:09 PM
Michael Schwendt
 
Default rpmbuild provides seems broken

On Fri, 18 Nov 2011 13:00:08 -0800, K (Karl) wrote:

> There is no change in behavior with the redhat-rpm-config installed.
>
> I also notice there is no difference in output using the rpmbuild -vv option.
>

Then your packaging is broken.

> + install -m 644 x11/libglv.so.0.3
> /home/karl/src/rpm/BUILDROOT/libglv0-0.3.1-1.x86_64/usr/lib64

Should be mode 0755. If that doesn't fix it, try to make available the src.rpm
somewhere.
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 
Old 11-18-2011, 09:35 PM
Karl
 
Default rpmbuild provides seems broken

On Friday, November 18, 2011 11:09:55 PM Michael Schwendt wrote:
> > + install -m 644 x11/libglv.so.0.3
> > /home/karl/src/rpm/BUILDROOT/libglv0-0.3.1-1.x86_64/usr/lib64
>
> Should be mode 0755.


That fixes the problem. Thanks for the help.


-Karl


--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 
Old 11-18-2011, 10:42 PM
Panu Matilainen
 
Default rpmbuild provides seems broken

On 11/18/2011 12:26 PM, Karl wrote:
> 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 libraries it reports the
> correct information:
>
> libglv.so.0()(64bit)

I see the actual issue got already solved, but just FWIW:

/usr/lib/rpm/find-provides and -requires haven't been used by rpm in
ages, unless overridden by spec/configuration (and you do not want to do
that, those old scripts will miss all sorts of things)

These days the equivalent thing to find-provides/requires is running
/usr/lib/rpm/rpmdeps --provides|--requires, that'll give the same
results as you'd get while building, unless the spec contains tweaks to
the dependency generation (it can be filtered, various bits and pieces
overridden etc).

- Panu -
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 

Thread Tools




All times are GMT. The time now is 07:33 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org