Re: rpmbuild failing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ok,

I you ever want to specifiy your own private build directory

Here is what your .rmpmacros file should contain for installing and building under the base directory of /home/user/redhat

One has to set the /usr, /var and /buildroot to the correct values.

Do not set topdir, because it is set from the %_usr tag
%buildroot needs to be set to the correct value relative to /var and /usr

#
%buildroot              /home/userid/redhat/var/tmp
%_usr                   /home/userid/redhat/usr
%_usrsrc                %{_usr}/src
%_var                   /home/userid/redhat/var

So now when the rpmbuild command


rpmbuild --rebuild basesystem-8.0-2.src.rpm
Installing basesystem-8.0-2.src.rpm
Processing files: basesystem-8.0-2
Checking for unpackaged file(s): /usr/lib/rpm/check-files /home/rcblach/redhat/var/tmp
Wrote: /home/rcblach/redhat/usr/src/redhat/RPMS/noarch/basesystem-8.0-2.noarch.rpm
Executing(--clean): /bin/sh -e /home/rcblach/redhat/var/tmp/rpm-tmp.32304
+ umask 022
+ cd /home/rcblach/redhat/usr/src/redhat/BUILD
+ exit 0






Ralph Blach wrote:
this is my .rpmmacros file

%_topdir        /home/rcblach/redhat
%_builddir      %{_topdir}/BUILD
%_dbpath        %{_topdir}/rpm
%_var           %{_topdir}/var
%_usr           %{_topdir}/usr
%_defaultdocdir %{_topdir}/share/doc/packages
%_sourcedir     %{_topdir}/SOURCES
%_specdir       %{_topdir}/SPECS
%_srcrpmdir     %{_topdir}/SRPMS
%_rpmdir        %{_topdir}/RPMS


When I run rpmbuild --rebuild I get the followin error What am I doing incorrect





rpmbuild --rebuild basesystem-8.0-2.src.rpm
Installing basesystem-8.0-2.src.rpm
Processing files: basesystem-8.0-2
Wrote: /home/rcblach/redhat/RPMS/noarch/basesystem-8.0-2.noarch.rpm
Executing(--clean): %{___build_cmd} /home/rcblach/redhat/var/tmp/rpm-tmp.93974
error: Exec of /home/rcblach/redhat/var/tmp/rpm-tmp.93974 failed (--clean): No such file or directory
error: Bad exit status from /home/rcblach/redhat/var/tmp/rpm-tmp.93974 (--clean)


thanks

Chip

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



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

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux