From 397872a048075e6cafad9c4c46dbb5ebeef28515 Mon Sep 17 00:00:00 2001 From: dmcmahill Date: Sat, 2 Sep 2000 17:01:27 +0000 Subject: - don't try and execute "sysctl -n machdep.booted_kernel" unless we're on i386. Fixes recently noted strange error messages when trying to build on arch's which don't support this sysctl. --- archivers/rar/Makefile | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'archivers/rar') diff --git a/archivers/rar/Makefile b/archivers/rar/Makefile index cfa0243bc4d..e801cfa56ff 100644 --- a/archivers/rar/Makefile +++ b/archivers/rar/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.26 2000/07/31 20:30:15 fredb Exp $ +# $NetBSD: Makefile,v 1.27 2000/09/02 17:01:27 dmcmahill Exp $ # FreeBSD Id: Makefile,v 1.7 1997/08/10 22:31:27 fenner Exp # @@ -21,14 +21,13 @@ NO_BIN_ON_FTP= ${RESTRICTED} NO_WRKSUBDIR= yes EXTRACT_CMD= ${DOWNLOADED_DISTFILE} >/dev/null -.ifndef KERNEL -KERNEL!= env "PATH=${PATH}:/sbin:/usr/sbin" sysctl -n machdep.booted_kernel -.endif - pre-extract: - @if (${NM} /${KERNEL} | ${GREP} -q compat_12 && \ - ${NM} /${KERNEL} | ${GREP} -q exec_nomid && \ - ${NM} /${KERNEL} | ${GREP} -q exec_aout); then ${TRUE}; \ + @if [ -z "$$KERNEL" ]; then \ + KERNEL=`env "PATH=${PATH}:/sbin:/usr/sbin" sysctl -n machdep.booted_kernel` ;\ + fi ;\ + if (${NM} /$$KERNEL | ${GREP} -q compat_12 && \ + ${NM} /$$KERNEL | ${GREP} -q exec_nomid && \ + ${NM} /$$KERNEL | ${GREP} -q exec_aout); then ${TRUE}; \ else \ ${ECHO} "****************************************************************";\ ${ECHO} Make can not proceed! In order to extract \(and run\); \ -- cgit v1.2.3