Subject: pkg/20698: misc/less should use sysconfdir
To: None <gnats-bugs@gnats.netbsd.org>
From: None <reed@reedmedia.net>
List: netbsd-bugs
Date: 03/13/2003 18:08:43
>Number:         20698
>Category:       pkg
>Synopsis:       misc/less could use --sysconfdir
>Confidential:   yes
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Thu Mar 13 18:09:00 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        NetBSD 1.6
>Organization:
http://bsd.reedmedia.net/
>Environment:
	
	
System: NetBSD rainier.reedmedia.net 1.6 NetBSD 1.6 (JCR-20020927) #3: Sat Sep 28 13:40:20 PDT 2002 reed@rainier.reedmedia.net:/usr/src/sys/arch/i386/compile/JCR-20020927 i386
Architecture: i386
Machine: i386
>Description:
pkgsrc/misc/less doesn't use the pkgsrc defined PKG_SYSCONFDIR.

Probably other packages could use this too.
I wonder if all GNU_CONFIGURE packages should (or do) support this.
>How-To-Repeat:
Build and notice that its -DSYSDIR is not right when
PKG_SYSCONFBASE is different.
>Fix:
diff -b -u -r1.7 Makefile
--- misc/less/Makefile	2003/02/17 12:54:25	1.7
+++ misc/less/Makefile	2003/03/14 01:59:39
@@ -13,4 +13,6 @@
 GNU_CONFIGURE=  	yes
 USE_BUILDLINK2=		yes
 
+CONFIGURE_ARGS+=	--sysconfdir=${PKG_SYSCONFDIR}
+
 .include "../../mk/bsd.pkg.mk"
>Release-Note:
>Audit-Trail:
>Unformatted: