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 > RPM Package Manager

 
 
LinkBack Thread Tools
 
Old 12-28-2007, 07:05 PM
Josh Miller
 
Default rpmbuild -ba builds source but not binary RPM

Good day all,

I have an issue where I build an RPM using 'rpmbuild -ba <spec file>'
and it builds the packages and writes a source RPM, but there are no
binaries written out and no errors. Any idea what would cause this? I
also tried with rpmbuild -bb with no luck.

TIA,
Josh

_______________________________________________
Rpm-list mailing list
Rpm-list@redhat.com
https://www.redhat.com/mailman/listinfo/rpm-list
 
Old 12-28-2007, 07:12 PM
Jos Vos
 
Default rpmbuild -ba builds source but not binary RPM

On Fri, Dec 28, 2007 at 12:05:26PM -0800, Josh Miller wrote:

> I have an issue where I build an RPM using 'rpmbuild -ba <spec file>'
> and it builds the packages and writes a source RPM, but there are no
> binaries written out and no errors. Any idea what would cause this? I
> also tried with rpmbuild -bb with no luck.

No %files section?

Can you post the output of the "rpmbuild -ba" command?

--
-- Jos Vos <jos@xos.nl>
-- X/OS Experts in Open Systems BV | Phone: +31 20 6938364
-- Amsterdam, The Netherlands | Fax: +31 20 6948204

_______________________________________________
Rpm-list mailing list
Rpm-list@redhat.com
https://www.redhat.com/mailman/listinfo/rpm-list
 
Old 12-28-2007, 07:45 PM
Josh Miller
 
Default rpmbuild -ba builds source but not binary RPM

Jos Vos wrote:


I have an issue where I build an RPM using 'rpmbuild -ba <spec file>'
and it builds the packages and writes a source RPM, but there are no
binaries written out and no errors. Any idea what would cause this? I
also tried with rpmbuild -bb with no luck.



No %files section?

Can you post the output of the "rpmbuild -ba" command?



I definitely* have quite a few files defined in the %files section(s).



As far as the output from rpmbuild -ba goes, the output is very
extensive, and it takes about 40 mins to run on my build host.* I just
ran an rpmbuild -bb with the following results (only last screen full
here):



make[1]: Leaving directory
`/users/home/jm1/redhat/BUILD/openldap-2.4.7/doc'



+ exit 0

Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.34630

+ umask 022

+ cd /users/home/jm1/redhat/BUILD

+ cd openldap-2.4.7

+ rm -Rf /users/home/jm1/redhat/BUILD/openldap-2.4.7-build

+ mkdir -p /users/home/jm1/redhat/BUILD/openldap-2.4.7-build

+ /usr/lib/rpm/brp-compress

+ /usr/lib/rpm/brp-strip

+ /usr/lib/rpm/brp-strip-static-archive

+ /usr/lib/rpm/brp-strip-comment-note

+ /etc/rpm/clean_perl

Checking for unpackaged file(s): /usr/lib/rpm/check-files
/users/home/jm1/redhat/BUILD/openldap-2.4.7-build



real*** 45m11.074s

user*** 1m55.015s

sys**** 14m29.501s



So it looks like it exits just after checking for unpackaged files.*
Also, the tmp file (/var/tmp/rpm-tmp.34630) is missing, so I would
expect that it finished without errors.



I dont have anything too far from stock in my .rpmmacros or anything,
just the following:



*** %_topdir******* /users/home/jm1/redhat



TIA,

Josh




_______________________________________________
Rpm-list mailing list
Rpm-list@redhat.com
https://www.redhat.com/mailman/listinfo/rpm-list
 
Old 12-28-2007, 08:46 PM
Josh Miller
 
Default rpmbuild -ba builds source but not binary RPM

Josh Miller wrote:


Jos Vos wrote:


I have an issue where I build an RPM using 'rpmbuild -ba <spec file>'
and it builds the packages and writes a source RPM, but there are no
binaries written out and no errors. Any idea what would cause this? I
also tried with rpmbuild -bb with no luck.



No %files section?

Can you post the output of the "rpmbuild -ba" command?






Output from rpmbuild -ba command:



+ exit 0

Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.93969

+ umask 022

+ cd /users/home/jm1/redhat/BUILD

+ cd openldap-2.4.7

+ rm -Rf /users/home/jm1/redhat/BUILD/openldap-2.4.7-build

+ mkdir -p /users/home/jm1/redhat/BUILD/openldap-2.4.7-build

+ /usr/lib/rpm/brp-compress

+ /usr/lib/rpm/brp-strip

+ /usr/lib/rpm/brp-strip-static-archive

+ /usr/lib/rpm/brp-strip-comment-note

+ /etc/rpm/clean_perl

Checking for unpackaged file(s): /usr/lib/rpm/check-files
/users/home/jm1/redhat/BUILD/openldap-2.4.7-build

Wrote: /users/home/jm1/redhat/SRPMS/openldap-2.4.7-centos5.src.rpm



real*** 44m0.500s

user*** 1m55.604s

sys**** 15m6.526s



So it's definitely building the source rpm here, but not the binary.








_______________________________________________
Rpm-list mailing list
Rpm-list@redhat.com
https://www.redhat.com/mailman/listinfo/rpm-list
 

Thread Tools




All times are GMT. The time now is 05:35 AM.

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