Subject: pkg/9391: bsd.pkg.mk man page handling incorrect
To: None <gnats-bugs@gnats.netbsd.org>
From: Brook Milligan <brook@biology.nmsu.edu>
List: netbsd-bugs
Date: 02/11/2000 11:27:39
>Number:         9391
>Category:       pkg
>Synopsis:       bsd.pkg.mk man page handling incorrect
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    pkg-manager (NetBSD software packages system bug manager)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Feb 11 11:27:01 2000
>Last-Modified:
>Originator:     Brook Milligan
>Organization:
Brook G. Milligan                      Internet:  brook@nmsu.edu
Department of Biology
New Mexico State University            Telephone:  (505) 646-7980
Las Cruces, New Mexico  88003  U.S.A.  FAX:        (505) 646-5665
>Release:        NetBSD 1.4 (current pkgsrc)
>Environment:
	
System: NetBSD biology.nmsu.edu 1.4 NetBSD 1.4 (BIOLOGY) #0: Tue Nov 23 11:51:18 MST 1999 root@biology.nmsu.edu:/usr/src/sys/arch/i386/compile/BIOLOGY i386


>Description:
	The man page file names for (un)compressing are taken from the
wrong source by bsd.pkg.mk.  The filenames are taken currently from
${PLIST_SRC}; this file may include shell variables that are
substituted when the ${PLIST} file is made (the postgresql package is
an example of this; see pkg/PLIST.notcl).  Because of the
substitution, the correct filenames for man page handling are in
${PLIST} not ${PLIST_SRC}.
>How-To-Repeat:
	Install the postgresql package.
>Fix:

--- bsd.pkg.mk.orig Thu Jan  6 05:44:15 2000
+++ bsd.pkg.mk  Fri Feb 11 12:14:32 2000
@@ -1381,7 +1381,7 @@
 .endfor
        ${_PKG_SILENT}(${_PKG_DEBUG}newmanpages=`${EGREP} -h            \
                '^([^@/]*/)*man/([^/]*/)?(man[1-9ln]/.*\.[1-9ln]|cat[1-9ln]/.*\.0)(\.gz)?$$' \
-               ${PLIST_SRC} || ${TRUE}`;                               \
+               ${PLIST} || ${TRUE}`;                           \
        if [ X"${MANCOMPRESSED}" != X"" -a X"${MANZ}" = X"" ]; then     \
                ${ECHO_MSG} "===>   [Automatic manual page handling]";  \
                ${ECHO_MSG} "===>   Decompressing manual pages for ${PKGNAME}"; \


>Audit-Trail:
>Unformatted: