Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Aug 2011 13:15:25 -0700
From:      Jason Helfman <jhelfman@experts-exchange.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/160010: [patch] Mk/bsd.port.mk: cleanup orig files in post-patch-script target
Message-ID:  <1314044125.977261.95108.nullmailer@experts-exchange.com>
Resent-Message-ID: <201108222020.p7MKK7p9027186@freefall.freebsd.org>

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

>Number:         160010
>Category:       ports
>Synopsis:       [patch] Mk/bsd.port.mk: cleanup orig files in post-patch-script target
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Aug 22 20:20:07 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Jason Helfman
>Release:        FreeBSD 8.2-RELEASE i386
>Organization:
Experts Exchange, LLC.
>Environment:
System: FreeBSD eggman.experts-exchange.com 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Fri Feb 18 02:24:46 UTC 2011 root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386


	
>Description:
.orig files are being cleaned up in www/tomcat55, and now security/p5-Crypt-RandPasswd
put this into bpm (many ways to patch that create .orig files, so it is unconditional if target is not defined)
>How-To-Repeat:
	
>Fix:

Index: Mk/bsd.port.mk
===================================================================
RCS file: /home/jhelfman/ncvs/ports/Mk/bsd.port.mk,v
retrieving revision 1.692
diff -u -r1.692 bsd.port.mk
--- Mk/bsd.port.mk	12 Aug 2011 16:39:23 -0000	1.692
+++ Mk/bsd.port.mk	22 Aug 2011 20:13:22 -0000
@@ -3655,6 +3655,11 @@
 		fi; \
 	fi
 .endif
+.if !target(post-patch-script)
+post-patch-script:
+	@${ECHO_MSG} "===> Removing patched remnants for ${PKGNAME}"
+	@${FIND} ${WRKSRC} -type f \( -name '*.orig' \) -delete
+.endif
 
 .if !target(configure-autotools)
 configure-autotools:
>Release-Note:
>Audit-Trail:
>Unformatted:



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