Fix 32bit build on SunOS by relying on MACHINE_ARCH instead of isainfo.

This commit is contained in:
fhajny 2012-07-25 11:33:49 +00:00
parent 744163549d
commit 4ebe928bfc
3 changed files with 6 additions and 5 deletions

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.87 2012/06/13 12:38:35 obache Exp $
# $NetBSD: Makefile,v 1.88 2012/07/25 11:33:49 fhajny Exp $
DISTNAME= netatalk-2.2.1
PKGREVISION= 5
@ -52,6 +52,7 @@ CONFIGURE_ARGS+= --with-uams-path=${PREFIX}/libexec/netatalk/uams
CONFIGURE_ARGS+= --with-bdb=${BDBBASE}
CONFIGURE_ARGS+= --with-ssl-dir=${BUILDLINK_PREFIX.openssl}
CONFIGURE_ARGS+= --with-ldap=no
CONFIGURE_ENV+= MACHINE_ARCH=${MACHINE_ARCH}
MAKE_DIRS+= ${PKG_SYSCONFDIR}/msg

View file

@ -1,9 +1,9 @@
$NetBSD: distinfo,v 1.46 2012/05/16 14:03:08 hauke Exp $
$NetBSD: distinfo,v 1.47 2012/07/25 11:33:49 fhajny Exp $
SHA1 (netatalk-2.2.1.tar.bz2) = e588b89eced7769f65e213bc4b1b1e4f8035c8b3
RMD160 (netatalk-2.2.1.tar.bz2) = bc55a591fe134d3bf05ca442aa5b5246fd766b8c
Size (netatalk-2.2.1.tar.bz2) = 1227602 bytes
SHA1 (patch-aa) = 060de5d023c3cc4e8d4e126270f2be69cf8a8913
SHA1 (patch-aa) = 3d253738afdfa81e862fbbc67f30337b8acb42c0
SHA1 (patch-ac) = 605e87479202cbf093dfbadb25f2972595246d97
SHA1 (patch-ae) = e114085fbe2abf2fb821f2d2737e877c53e7c151
SHA1 (patch-af) = 649be7e50210e6e4156aeff74d3fc0effb90f9f2

View file

@ -1,4 +1,4 @@
$NetBSD: patch-aa,v 1.24 2012/05/12 21:53:20 dholland Exp $
$NetBSD: patch-aa,v 1.25 2012/07/25 11:33:49 fhajny Exp $
--- configure.orig 2011-09-06 13:41:25.000000000 +0200
+++ configure 2011-11-29 18:59:56.000000000 +0100
@ -45692,7 +45692,7 @@ $NetBSD: patch-aa,v 1.24 2012/05/12 21:53:20 dholland Exp $
+ # check for isainfo, if not found it has to be a 32 bit kernel (<=2.6)
+ if test -x /usr/bin/isainfo; then
+ # check for 64 bit platform
+ if isainfo -kv | grep '^64-bit'; then
+ if test "$MACHINE_ARCH" = "x86_64"; then
+ COMPILE_64BIT_KMODULE=yes
+ fi
+ fi