Re: rpmbuild -ba builds source but not binary RPM

Josh Miller <[email protected]>
Newsgroups gmane.linux.redhat.rpm.general
Message-ID <[email protected]>
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
[email protected]
https://www.redhat.com/mailman/listinfo/rpm-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.