summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorabs <abs>2001-01-29 10:48:09 +0000
committerabs <abs>2001-01-29 10:48:09 +0000
commit33d3218590bab0dca7122812c6edc6f6b124689f (patch)
treec5cbf3647fbf7eb06cd914c493b9467f79ed9b5b
parent210767ad8c8a528f1023be5515a9d2e5401ceb96 (diff)
downloadpkgsrc-33d3218590bab0dca7122812c6edc6f6b124689f.tar.gz
Update to pkglint-2.36
On pre NetBSD-1.4 fall back to 'sysctl -n hw.machine_arch' for MACHINE_ARCH
-rw-r--r--pkgtools/pkglint/Makefile4
-rwxr-xr-xpkgtools/pkglint/files/lintpkgsrc.pl7
2 files changed, 8 insertions, 3 deletions
diff --git a/pkgtools/pkglint/Makefile b/pkgtools/pkglint/Makefile
index b6b79dd8502..405ffb84639 100644
--- a/pkgtools/pkglint/Makefile
+++ b/pkgtools/pkglint/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.76 2001/01/26 13:16:52 wiz Exp $
+# $NetBSD: Makefile,v 1.77 2001/01/29 10:48:09 abs Exp $
#
-DISTNAME= pkglint-2.35
+DISTNAME= pkglint-2.36
CATEGORIES= pkgtools devel
MASTER_SITES= # empty
DISTFILES= # empty
diff --git a/pkgtools/pkglint/files/lintpkgsrc.pl b/pkgtools/pkglint/files/lintpkgsrc.pl
index 9b0197559d7..70c8d2757cc 100755
--- a/pkgtools/pkglint/files/lintpkgsrc.pl
+++ b/pkgtools/pkglint/files/lintpkgsrc.pl
@@ -1,6 +1,6 @@
#!/usr/bin/env perl
-# $NetBSD: lintpkgsrc.pl,v 1.41 2001/01/18 11:40:33 abs Exp $
+# $NetBSD: lintpkgsrc.pl,v 1.42 2001/01/29 10:48:09 abs Exp $
# Written by David Brownlee <abs@netbsd.org>.
#
@@ -324,10 +324,15 @@ sub get_default_makefile_vars
( $default_vars->{'OPSYS'},
$default_vars->{'OS_VERSION'},
$default_vars->{'MACHINE'} ) = (split);
+
# Handle systems without uname -p (NetBSD pre 1.4)
chomp($default_vars->{'MACHINE_ARCH'} = `uname -p 2>/dev/null`);
+ if (! $default_vars->{'MACHINE_ARCH'} &&
+ $default_vars->{'OS_VERSION'} eq 'NetBSD')
+ { chomp($default_vars->{'MACHINE_ARCH'} = `sysctl -n hw.machine_arch`);}
if (! $default_vars->{'MACHINE_ARCH'})
{ $default_vars->{'MACHINE_ARCH'} = $default_vars->{'MACHINE'}; }
+
$default_vars->{'LINTPKGSRC'} = 'YES';
$default_vars->{'EXTRACT_SUFX'} = 'tar.gz';
$default_vars->{'OBJECT_FMT'} = 'x';