ports/81189: bsd.port.mk: add-plist-docs target don't respect NOPORTDOCS

[ Available lists | Index of freebsd-ports-bugs | Month of May 2005 | Week of 18 May 2005 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Sergey Matveychuk <sem@fog.mbrd.ru>
Date
18 May 2005 08:40:02
Subject
ports/81189: bsd.port.mk: add-plist-docs target don't respect NOPORTDOCS
Message-ID
E1DYJwM-000N59-QW@fog.mbrd.ru


[ Hide this part ]
 
>Number: 81189
>Category: ports
>Synopsis: bsd.port.mk: add-plist-docs target don't respect NOPORTDOCS
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Wed May 18 08:40:01 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: Sergey Matveychuk
>Release: FreeBSD 5.4-RELEASE i386
>Organization:
>Environment:
System: FreeBSD fog.mbrd.ru 5.4-RELEASE FreeBSD 5.4-RELEASE #5: Wed May 11 14:22:55 MSD 2005 root@fog.mbrd.ru:/usr/obj/usr/src/sys/FOG i386



>Description:

add-plist-docs target don't respect NOPORTDOCS
so docs list from PORTDOCS being added in plist even
when they really not installed
>How-To-Repeat:

cd port_used_PORTDOCS
make install deinstall
make NOPORTDOCS=yes install deinstall
>Fix:



--- bsd.port.mk.diff begins here ---
Index: bsd.port.mk
===================================================================
RCS file: /home/pcvs/ports/Mk/bsd.port.mk,v
retrieving revision 1.511
diff -u -r1.511 bsd.port.mk
--- bsd.port.mk 17 Mar 2005 23:22:07 -0000 1.511
+++ bsd.port.mk 18 May 2005 08:24:37 -0000
@@ -4798,7 +4798,7 @@

.if !target(add-plist-docs)
add-plist-docs:
-.if defined(PORTDOCS)
+.if defined(PORTDOCS) && !defined(NOPORTDOCS)
@if ${EGREP} -qe '^@cw?d' ${TMPPLIST} && \
[ "`${SED} -En -e '/^@cw?d[ ]*/s,,,p' ${TMPPLIST} | ${TAIL} -n 1`" != "${PREFIX}" ]; then \
${ECHO_CMD} "@cwd ${PREFIX}" >> ${TMPPLIST}; \
--- bsd.port.mk.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:


Elapsed time: 0.109 seconds