tech-pkg archive

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

Re: OpenBSD/amd64 / pkgtools/pkg_install - pkg_add compatible_platform() check oddness



* On 2015-05-22 at 19:15 BST, Sevan / Venture37 wrote:

> On 22 May 2015 at 18:26, Jonathan Perkin <jperkin%joyent.com@localhost> wrote:
> > * On 2015-05-22 at 17:51 BST, Sevan / Venture37 wrote:
> >
> >> +MACHINE_ARCH=          x86_64
> >
> > This, from memory, is what is used for the check, so you need to make
> > this one amd64 too.
> >
> >> re-bootstrapped, pkg_add fails again on
> >> pkg_add: Warning: package `digest-20121220' was built for a platform:
> >> pkg_add: OpenBSD/x86_64 5.7 (pkg) vs. OpenBSD/amd64 5.7 (this host)
> >> pkg_add: 1 package addition failed
> 
> 
> If I set
> MACHINE_ARCH=           x86_64
> MACHINE_ARCH.x86_64=    x86_64
> GNU_ARCH.x86_64=        x86_64
> I get
> pkg_add: Warning: package `digest-20121220' was built for a platform:
> pkg_add: OpenBSD/x86_64 5.7 (pkg) vs. OpenBSD/amd64 5.7 (this host)
> pkg_add: 1 package addition failed
> 
> If I set
> MACHINE_ARCH=           amd64
> MACHINE_ARCH.x86_64=    amd64
> GNU_ARCH.x86_64=        amd64
> Whatever is set in an if statement that checks
> !empty(MACHINE_ARCH:Mx86_64) never runs.
> My test being trying to compile x11/libdrm which would add
> libpciaccess to the dependency list if the host is x86_64.

If you want it to be consistently x86_64, then you'll need to force
MACHINE_ARCH to be overridden in bootstrap - have a look at the
$machine_arch handling which is set explicitly already on some OS.

-- 
Jonathan Perkin  -  Joyent, Inc.  -  www.joyent.com


Home | Main Index | Thread Index | Old Index