Subject: pkg/21754: bsd.pkg.mk might not strip ${PREFIX} completely while processing perl packlist
To: None <gnats-bugs@gnats.netbsd.org>
From: Sergey Svishchev <svs+pr@grep.ru>
List: netbsd-bugs
Date: 06/01/2003 20:37:01
>Number:         21754
>Category:       pkg
>Synopsis:       bsd.pkg.mk might not strip ${PREFIX} completely while processing perl packlist.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jun 01 16:38:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        NetBSD 1.6L
>Organization:
>Environment:
	
	
>Description:
	
>How-To-Repeat:
	
>Fix:
	
--- mk/bsd.pkg.mk	2003/05/19 06:02:10	1.1184
+++ mk/bsd.pkg.mk	2003/06/01 14:28:28
@@ -4294,10 +4301,10 @@
 PERL5_COMMENT=		( ${ECHO} "@comment The following lines are automatically generated"; \
 	${ECHO} "@comment from the installed .packlist files." )
 PERL5_PACKLIST_FILES=	( ${CAT} ${PERL5_PACKLIST}; for f in ${PERL5_PACKLIST}; do [ ! -f $$f ] || ${ECHO} $$f; done ) \
-	| ${SED} -e "s,[ 	].*,," -e "s,/\./,/,g" -e "s,${PREFIX}/,," \
+	| ${SED} -e "s,[ 	].*,," -e "s,/\./,/,g" -e "s,/*${PREFIX}/,," \
 	| ${SORT} -u
 PERL5_PACKLIST_DIRS=	( ${CAT} ${PERL5_PACKLIST}; for f in ${PERL5_PACKLIST}; do [ ! -f $$f ] || ${ECHO} $$f; done ) \
-	| ${SED} -e "s,[ 	].*,," -e "s,/\./,/,g" -e "s,${PREFIX}/,," \
+	| ${SED} -e "s,[ 	].*,," -e "s,/\./,/,g" -e "s,/*${PREFIX}/,," \
 		-e "s,^,@unexec \${RMDIR} -p %D/," \
 		-e "s,/[^/]*$$, 2>/dev/null || \${TRUE}," \
 	| ${SORT} -ur
>Release-Note:
>Audit-Trail:
>Unformatted: