Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   RPM Package Manager (http://www.linux-archive.org/rpm-package-manager/)
-   -   SOLVED: rpmbuild -ba builds source but not binary RPM (http://www.linux-archive.org/rpm-package-manager/28015-solved-rpmbuild-ba-builds-source-but-not-binary-rpm.html)

Josh Miller 01-03-2008 07:09 PM

SOLVED: rpmbuild -ba builds source but not binary RPM
 
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.

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

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


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

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.