Mailinglist Archive: opensuse-packaging (74 mails)

< Previous Next >
Re: [opensuse-packaging] _target_cpu for y2pmbuild on sles10
  • From: Marcus Hüwe <suse-tux@xxxxxx>
  • Date: Tue, 6 Jun 2006 14:14:19 +0200
  • Message-id: <20060606141419.41daa3a8@xxxxxxxxxxxxxxxxxxx>
Am Tue, 6 Jun 2006 03:45:03 -0700
schrieb "Marcel Gehrlein" <mgehrlein@xxxxxxxxxx>:

> hi,
>
> I downloaded y2pmbuild 2.13.3-6 from OpenSuSE 10.1 and installed it
> on a sles10rc2. I can build rpms as root and user using y2pmbuild
> without problems. I'd like to build i686 RPMs, but had no luck so
> far..
>
> This is what I did:
>
> - install sles10rc2
> - install y2pmbuild
> - copy /etc/y2pmbuild/dists/10.1 to sles10 (same dir)
> - symlinked sles10-i686 to sles10 (same dir)
> - copied /etc/y2pmbuild/macros/10.1/macros file to
> /etc/y2pmbuild/macros/sles10-i686/macros
> - edited ..../sles10-i686/macros: %_target_cpu i686
> - export BUILD_DIST="sles10-i686"
> - unpack any .src.rpm
> - run y2pmbuild
>
> The %_target_cpu macro is always set to i586.
>
> I tried different locations for setting %_target_cpu, but only
> inside the .spec file it worked. Isn't there a better way?
>
Just call y2pmbuild with the --target parameter:
y2pmbuild --target=i686


Marcus

---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-packaging-unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-packaging-help@xxxxxxxxxxxx

< Previous Next >
References