Poifect! %_arch was an early (and feeble) attempt to permit independent setting of "i386" (in %_arch) and "i686" (in %_target_cpu) tied into rpmrc arch compatibility through macros not in rpmrc.
I'm sure you've heard me say: RPMTAG_ARCH is DEAD! DEAD! DEAD! repeatedly. 73 de Jeff On Mar 29, 2011, at 1:05 PM, Per Øyvind Karlsen wrote: > RPM Package Manager, CVS Repository > http://rpm5.org/cvs/ > ____________________________________________________________________________ > > Server: rpm5.org Name: Per Øyvind Karlsen > Root: /v/rpm/cvs Email: pkarl...@rpm5.org > Module: rpm Date: 29-Mar-2011 19:05:39 > Branch: HEAD Handle: 2011032917053900 > > Modified files: > rpm/macros mandriva.in > > Log: > use %_target_cpu rather than %_arch in %buildroot to make it > consistent with NVRA > > Summary: > Revision Changes Path > 1.10 +1 -1 rpm/macros/mandriva.in > ____________________________________________________________________________ > > patch -p0 <<'@@ .' > Index: rpm/macros/mandriva.in > ============================================================================ > $ cvs diff -u -r1.9 -r1.10 mandriva.in > --- rpm/macros/mandriva.in 22 Feb 2011 16:55:13 -0000 1.9 > +++ rpm/macros/mandriva.in 29 Mar 2011 17:05:39 -0000 1.10 > @@ -14,7 +14,7 @@ > %_buildrootdir %{_topdir}/BUILDROOT > > # Build root path, where %install installs the package during build. > -%buildroot > %{_buildrootdir}/%{name}-%{version}-%{release}%{?disttag:-%{disttag}%{?distepoch:%{distepoch}}}.%{_arch}-buildroot > +%buildroot > %{_buildrootdir}/%{name}-%{version}-%{release}%{?disttag:-%{disttag}%{?distepoch:%{distepoch}}}.%{_target_cpu}-buildroot > > # Path to top of build area. > %_topdir %(echo $HOME)/rpmbuild > @@ . > ______________________________________________________________________ > RPM Package Manager http://rpm5.org > CVS Sources Repository rpm-...@rpm5.org ______________________________________________________________________ RPM Package Manager http://rpm5.org Developer Communication List rpm-devel@rpm5.org