ports/80880: add-plist-info and add-plist-post targets in bsd.port.mk

Vasil Dimov vd at datamax.bg
Wed May 11 07:50:02 UTC 2005


>Number:         80880
>Category:       ports
>Synopsis:       add-plist-info and add-plist-post targets in bsd.port.mk
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed May 11 07:50:01 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Vasil Dimov
>Release:        FreeBSD 5.4-STABLE i386
>Organization:
DataMax
>Environment:

System: FreeBSD sinanica.bg.datamax 5.4-STABLE FreeBSD 5.4-STABLE #6: Tue May 10 12:46:25 EEST 2005     root at sinanica.bg.datamax:/usr/obj/usr/src/sys/SINANICA-SMP  i386

>Description:

add-plist-info and add-plist-post targets in bsd.port.mk should be
surrounded by .if !target(...) ... .endif like the others laying
around - add-plist-docs and generate-plist

This will avoid warnings from ports that redefine these targets
like devel/mingw32-binutils and should'n break anything.

>How-To-Repeat:

>Fix:

--- bsd.port.mk.patch begins here ---
--- bsd.port.mk.orig	Tue May 10 17:15:42 2005
+++ bsd.port.mk	Wed May 11 09:05:11 2005
@@ -4819,6 +4819,7 @@
 .endif
 .endif
 
+.if !target(add-plist-info)
 add-plist-info:
 # Process GNU INFO files at package install/deinstall time
 .if defined(INFO)
@@ -4837,14 +4838,17 @@
 .endif
 .endif
 .endif
+.endif
 
 # If we're installing into a non-standard PREFIX, we need to remove that directory at
 # deinstall-time
+.if !target(add-plist-post)
 add-plist-post:
 .if (${PREFIX} != ${LOCALBASE} && ${PREFIX} != ${X11BASE} && ${PREFIX} != ${LINUXBASE} && ${PREFIX} != "/usr")
 	@${ECHO_CMD} "@unexec rmdir %D 2> /dev/null || true" >> ${TMPPLIST}
 .else
 	@${DO_NADA}
+.endif
 .endif
 
 .if !target(install-rc-script)
--- bsd.port.mk.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list