pkgsrc-Users archive

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

Re: Pkgsrc on OpenBSD ARM



On Tue, 19 Jun 2012 00:23:29 +0900, Allen Wong <allen%submoron.org@localhost> 
wrote:


Hello,

FWIW, I think I fixed the issue by adding "armish" to these config.sub files.

./digest/files/config.sub
./compat_headers/files/config.sub
./libnbcompat/files/config.sub
./mtree/files/config.sub
./pkg_install/files/config.sub
./rcorder/files/config.sub

Those file will be overwritten with pkgsrc/mk/gnu-config/config.sub.

Please try to apply following patch:

Index: bsd.prefs.mk
===================================================================
RCS file: /cvsroot/pkgsrc/mk/bsd.prefs.mk,v
retrieving revision 1.323
diff -u -r1.323 bsd.prefs.mk
--- bsd.prefs.mk        14 Jun 2012 21:57:37 -0000      1.323
+++ bsd.prefs.mk        19 Jun 2012 10:52:54 -0000
@@ -245,6 +245,19 @@
 LOWER_OPSYS_VERSUFFIX?=        ${OS_VERSION}
 LOWER_VENDOR?=         dec

+.elif ${OPSYS} == "OpenBSD"
+LOWER_OPSYS?=          openbsd
+LOWER_OS_VERSION=      ${OS_VERSION}
+LOWER_OPSYS_VERSUFFIX= ${OS_VERSION}
+.if exists(/usr/bin/arch)
+LOWER_ARCH!=           /usr/bin/arch -s
+.else
+LOWER_ARCH!=           ${UNAME} -p
+.endif
+LOWER_VENDOR?=         unknown
+MACHINE_ARCH=          ${LOWER_ARCH}
+MAKEFLAGS+=            LOWER_ARCH=${LOWER_ARCH:Q}
+
 .elif ${OPSYS} == "HPUX"
 OS_VERSION:=           ${OS_VERSION:C/^B.//}
 .if ${MACHINE_ARCH} == "9000"


--
OBATA Akio / obache%NetBSD.org@localhost


Home | Main Index | Thread Index | Old Index