Discussion:
rpmbuild -ba builds source but not binary RPM
Josh Miller
2007-12-28 20:05:26 UTC
Permalink
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
Jos Vos
2007-12-28 20:12:12 UTC
Permalink
Post by Josh Miller
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 <***@xos.nl>
-- X/OS Experts in Open Systems BV | Phone: +31 20 6938364
-- Amsterdam, The Netherlands | Fax: +31 20 6948204
Josh Miller
2007-12-28 20:45:29 UTC
Permalink
_______________________________________________
Rpm-list mailing list
Rpm-***@redhat.com
https://www.redhat.com/mailman/listinfo/rpm-list
Josh Miller
2007-12-28 21:46:14 UTC
Permalink
_______________________________________________
Rpm-list mailing list
Rpm-***@redhat.com
https://www.redhat.com/mailman/listinfo/rpm-list
Josh Miller
2008-01-02 15:02:14 UTC
Permalink
Post by Josh Miller
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.
I'm continuing to troubleshoot this issue without a lot of success. Can
somebody give me a good summary of the proper way to define and use a
buildroot variable? I am not having a lot of luck finding that
information in various documents online and I believe it is not a
requirement.

TIA,
--
Joshua M. Miller - RHCE,VCP
Josh Miller
2008-01-03 20:09:24 UTC
Permalink
Post by Josh Miller
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.
It turns out that the problem with my SPEC file was that I had an errant
% that was not doing anything constructive.

ie:
install -d %(buildroot}/usr/share/%{pkg_name}

which should have been:

install -d %{buildroot}/usr/share/%{pkg_name}

Note that in the first line, there is a '(' just after the '%'. This
caused the build to bail on the install portion of the build. I caught
this after reviewing the Fedora RPM guide and seeing a note about errant
percent signs.

Regards,
--
Joshua M. Miller - RHCE,VCP
Loading...