pkgsrc-Users archive

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

Re: pkgsrc on OpenBSD



On 27/08/2020 11:09, Tom H wrote:
On Wed, Aug 26, 2020 at 10:54 PM Jonathan Perkin <jperkin%joyent.com@localhost>
wrote:
* On 2020-08-26 at 20:13 BST, Tom H wrote:

-amd64/*) abi=64 machine_arch=x86_64 ;;
+amd64/*) abi=64 machine_arch=amd64 ;;

Why is this needed? The point of this is to standardise across
various OS, and shouldn't need to match the uname arch.

I've just run "bootstrap" without changing anything, followed by a
"bmake install".

It fails with:

===> Building binary package for digest-20190127
=> Creating binary package /usr/pkgsrc/packages/All/digest-20190127.tgz
malloc() warning: unknown char in MALLOC_OPTIONS
===> Installing binary package of digest-20190127
pkg_add: Warning: package `digest-20190127' was built for a platform:
pkg_add: OpenBSD/amd64 6.7 (pkg) vs. OpenBSD/x86_64 6.7 (this host)
pkg_add: 1 package addition failed
*** Error code 1

Stop.
bmake[3]: stopped in /usr/pkgsrc/pkgtools/digest
*** Error code 1

Stop.
bmake[2]: stopped in /usr/pkgsrc/pkgtools/digest
malloc() warning: unknown char in MALLOC_OPTIONS
*** Error code 1

Stop.
bmake[1]: stopped in /usr/pkgsrc/pkgtools/digest
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/shells/oksh

On OpenBSD 6.7

# arch -s
amd64

# uname -m
amd64

# uname -p
amd64

# sysctl hw.machine
hw.machine=amd64

I started using pkgsrc on OpenBSD in July, so I don't know whether it
worked previously; but the arch was definitely "am64" on previous
versions too.


Did you add "--abi " to ./bootstrap? Otherwise it doesn't make sense, because ./bootstrap should pick up:

	machine_arch=`arch -s`

oc@OpenBSD:~$ arch -s
amd64



--
Ottavio Caruso



Home | Main Index | Thread Index | Old Index