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 19:36, Jonathan Perkin <jperkin%joyent.com@localhost> wrote:
> 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.
Oh nice tip.
Made the following change to the bootstrap script & re-bootstrapped
Index: bootstrap/bootstrap
===================================================================
RCS file: /cvsroot/pkgsrc/bootstrap/bootstrap,v
retrieving revision 1.216
diff -u -p -u -r1.216 bootstrap
--- bootstrap/bootstrap 3 May 2015 14:26:57 -0000 1.216
+++ bootstrap/bootstrap 22 May 2015 18:57:39 -0000
@@ -751,6 +751,11 @@ OpenBSD)
need_sed=no
set_opsys=no
machine_arch=`uname -m`
+ if [ "$machine_arch" = "x86_64" ]; then
+ machine_arch=x86_64
+ set_machine_arch=yes
+ bmakexargs="MACHINE_ARCH=$machine_arch"
+ fi
;;
OSF1)
root_group=system
In mk/bsd.prefs.mk I have
MACHINE_ARCH= x86_64
MACHINE_ARCH.x86_64= x86_64
GNU_ARCH.x86_64= x86_64
& still
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
Sevan
Home |
Main Index |
Thread Index |
Old Index