Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Jan 2006 14:59:37 +1100 (EST)
From:      Edwin Groothuis <edwin@mavetju.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/92128: [patch] fix bsd.port.mk wrt PLIST_REINPLACE
Message-ID:  <20060122035937.5E2437B@k7.mavetju>
Resent-Message-ID: <200601220400.k0M40IkE091086@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         92128
>Category:       ports
>Synopsis:       [patch] fix bsd.port.mk wrt PLIST_REINPLACE
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jan 22 04:00:17 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Edwin Groothuis
>Release:        FreeBSD 6.0-RELEASE i386
>Organization:
-
>Environment:
System: FreeBSD k7.mavetju 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Thu Nov 3 09:36:13 UTC 2005 root@x64.samsco.home:/usr/obj/usr/src/sys/GENERIC i386

>Description:

	commit message says ports/88711
	ports/88711 says "A patch based on this is being tested"
	patch is nowhere to be found, but not tested in the real
	world:

	===>   Registering installation for p5-YAPE-HTML-1.11
	pkg_create: read_plist: unknown command '@dirrmtry lib/perl5/site_perl/5.8.7/mach/auto/YAPE' (package tools out of date?)
	pkg_create: read_plist: unknown command '@dirrmtry lib/perl5/site_perl/5.8.7/YAPE' (package tools out of date?)
	pkg_create: write_plist: unknown command type -1 (lib/perl5/site_perl/5.8.7/mach/auto/YAPE)
	*** Error code 2

>How-To-Repeat:

Index: bsd.port.mk
===================================================================
RCS file: /home/pcvs/ports/Mk/bsd.port.mk,v
retrieving revision 1.521
diff -u -r1.521 bsd.port.mk
--- bsd.port.mk	21 Jan 2006 22:07:08 -0000	1.521
+++ bsd.port.mk	22 Jan 2006 03:57:11 -0000
@@ -5002,8 +5002,8 @@
 		${SED} ${PLIST_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} ${PLIST} >> ${TMPPLIST}; \
 	fi
 .for reinplace in ${PLIST_REINPLACE}
-.if defined(PLIST_REINPLACE_${reinplace})
-	@${SED} -e '${PLIST_REINPLACE_${reinplace:U}}' ${PLIST} >> ${TMPPLIST}
+.if defined(PLIST_REINPLACE_${reinplace:U})
+	@${SED} -i "" -e '${PLIST_REINPLACE_${reinplace:U}}' ${TMPPLIST}
 .endif
 .endfor
  
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060122035937.5E2437B>