Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 31 May 2008 19:06:13 GMT
From:      Max Brazhnikov <makc@issp.ac.ru>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/124169: use ${PATCH_WRKSRC} for makepatch target
Message-ID:  <200805311906.m4VJ6DWY091913@www.freebsd.org>
Resent-Message-ID: <200805311910.m4VJA1DT030646@freefall.freebsd.org>

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

>Number:         124169
>Category:       ports
>Synopsis:       use ${PATCH_WRKSRC} for makepatch target
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sat May 31 19:10:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Max Brazhnikov
>Release:        FreeBSD 7.0-STABLE i386
>Organization:
>Environment:
FreeBSD luna.dio.ru 7.0-STABLE FreeBSD 7.0-STABLE #0: Thu Apr 17 12:14:46 MSD 2008     makc@luna.dio.ru:/usr/obj/usr/src/sys/LUNA  i386
>Description:
do-patch target uses ${PATCH_WRKSRC} (default value is ${WRKSRC}). It make sense to use ${PATCH_WRKSRC} in makepatch target also.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

--- bsd.port.mk.orig	2008-05-28 02:12:02.000000000 +0400
+++ bsd.port.mk	2008-05-31 22:56:22.000000000 +0400
@@ -1123,13 +1123,13 @@
 
 .else
 
-# Look for ${WRKSRC}/.../*.orig files, and (re-)create
+# Look for ${PATCH_WRKSRC}/.../*.orig files, and (re-)create
 # ${FILEDIR}/patch-* files from them.
 
 .if !target(makepatch)
 makepatch:
 	@cd ${.CURDIR} && ${MKDIR} ${FILESDIR}
-	@(cd ${WRKSRC}; \
+	@(cd ${PATCH_WRKSRC}; \
 		for i in `find . -type f -name '*.orig'`; do \
 			ORG=$$i; \
 			NEW=$${i%.orig}; \


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



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