pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/pkgtools/lintpkgsrc/files lintpkgsrc: fix parse-guessi...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/999eb991c637
branches:  trunk
changeset: 383432:999eb991c637
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Fri Aug 19 05:06:26 2022 +0000

description:
lintpkgsrc: fix parse-guessing of Apache modules

When lintpkgsrc parses the package makefile of an Apache module, it
includes mk/apache.mk, and that file defines APACHE_PKG_PREFIX, thereby
hiding the fallback value from $default_vars.

diffstat:

 pkgtools/lintpkgsrc/files/lintpkgsrc.pl |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (20 lines):

diff -r e3882e7ebb41 -r 999eb991c637 pkgtools/lintpkgsrc/files/lintpkgsrc.pl
--- a/pkgtools/lintpkgsrc/files/lintpkgsrc.pl   Fri Aug 19 04:34:03 2022 +0000
+++ b/pkgtools/lintpkgsrc/files/lintpkgsrc.pl   Fri Aug 19 05:06:26 2022 +0000
@@ -1,5 +1,5 @@
 #!@PERL5@
-# $NetBSD: lintpkgsrc.pl,v 1.125 2022/08/19 04:34:03 rillig Exp $
+# $NetBSD: lintpkgsrc.pl,v 1.126 2022/08/19 05:06:26 rillig Exp $
 
 # Written by David Brownlee <abs%netbsd.org@localhost>.
 #
@@ -763,7 +763,8 @@
 
        $default_vars->{PACKAGES} ||= $default_vars->{PKGSRCDIR} . '/packages';
 
-       $default_vars->{APACHE_PKG_PREFIX} = 'ap12345';
+       $default_vars->{PKG_APACHE} = 'apache12345';
+       $default_vars->{'_APACHE_PKG_PREFIX.apache12345'} = 'ap12345';
        $default_vars->{LUA_PKGPREFIX} = 'lua12345';
        $default_vars->{PHP_PKG_PREFIX} = 'php12345';
        $default_vars->{PYPKGPREFIX} = 'py12345';



Home | Main Index | Thread Index | Old Index