On Tue, Jul 25, 2006 at 12:07:20PM +0200, Matthias Saou wrote: > 1) The current "preferred" BuildRoot which executes "id -u" isn't > useful [...] How about the following patch (yet untested) to redhat-rpm-config in devel and thus FC6/RHEL5? It would eliminate some issues and allow for better planning: diff -rud redhat-rpm-config-8.0.43.org/macros redhat-rpm-config-8.0.43/macros --- redhat-rpm-config-8.0.43.org/macros 2005-08-17 02:27:33.000000000 +0200 +++ redhat-rpm-config-8.0.43/macros 2006-07-25 16:38:53.000000000 +0200 @@ -156,3 +156,18 @@ # Disable lookups %_hkp_keyserver %{nil} + +#============================================================================== +# These are the default values that can be overridden by other +# (e.g. per-platform, per-system, per-packager, per-package) macros. +# +# Path to top of build area. +%_topdir %(test `%{__id_u}` = 0 && echo %{_usrsrc}/redhat || echo $HOME/rpmbuild) + +# Directory where temporary files can be created. +%_tmppath %(test `%{__id_u}` = 0 && echo %{_var}/tmp || echo $HOME/rpmbuild/tmp + +# Configurable build root path, same as BuildRoot: in a specfile. +# (Note: the configured macro value will override the spec file value). + +%buildroot %{_tmppath}/%{name}-%{version}-%{release} -- Axel.Thimm at ATrpms.net
Attachment:
pgpAQDcVlt7me.pgp
Description: PGP signature
-- Fedora-packaging mailing list Fedora-packaging@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/fedora-packaging