ports/160010: [patch] Mk/bsd.port.mk: cleanup orig files in post-patch-script target

Jason Helfman jhelfman at experts-exchange.com
Mon Aug 22 20:20:08 UTC 2011


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



More information about the freebsd-ports-bugs mailing list