Re: rpmbuild failing

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

 



Am Do, den 28.04.2005 schrieb Ralph Blach um 19:42:

> 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.

I don't see a reason why you should define /usr and /var at all. And
%buildroot is typically set inside the .spec file.

> 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

%_topdir                %(echo $HOME)
%_builddir              %{_topdir}/BUILD
%_specdir               %{_topdir}/SPECS
%_srcrpmdir             %{_topdir}/SRPMS
%_rpmdir                %{_topdir}/RPMS
%_tmppath               %{_topdir}/TMP

All I have set and no problems. Your definitions even require unusual
directory creations:

<rpmbuilder home>/redhat/usr/src/redhat/RPMS/noarch/

Well, if you think you need it complicated ;) Why not simply getting the
RPMS in

<rpmbuilder home>/RPMS/<arch>/

The rpmbuild environment does not need to have an image of the directory
structure of your base or RPM target system.

Alexander


-- 
Alexander Dalloz | Enger, Germany | GPG http://pgp.mit.edu 0xB366A773
legal statement: http://www.uni-x.org/legal.html
Fedora Core 2 GNU/Linux on Athlon with kernel 2.6.11-1.14_FC2smp 
Serendipity 20:20:45 up 16 days, 17:01, load average: 0.40, 0.29, 0.22 

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil

_______________________________________________
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