Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 May 2005 10:49:15 +0300
From:      Vasil Dimov <vd@datamax.bg>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/80880: add-plist-info and add-plist-post targets in bsd.port.mk
Message-ID:  <20050511074915.GA917@sinanica.bg.datamax>
Resent-Message-ID: <200505110750.j4B7o2VW029524@freefall.freebsd.org>

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

>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@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:



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