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


Sevan


Home | Main Index | Thread Index | Old Index