FreeBSD Bugzilla – Attachment 147018 Details for
Bug 193435
Enhance EXTRA_PATCHES so that it can contain directories as well as files.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Changes to process directories in EXTRA_PATCHES
ports_extra_patches_dir.diff (text/plain), 1.86 KB, created by
Ian Lepore
on 2014-09-07 17:04:26 UTC
(
hide
)
Description:
Changes to process directories in EXTRA_PATCHES
Filename:
MIME Type:
Creator:
Ian Lepore
Created:
2014-09-07 17:04:26 UTC
Size:
1.86 KB
patch
obsolete
>Index: bsd.port.mk >=================================================================== >--- bsd.port.mk (revision 367574) >+++ bsd.port.mk (working copy) >@@ -795,7 +795,9 @@ FreeBSD_MAINTAINER= portmgr@FreeBSD.org > # ${WRKDIR}, then point EXTRA_PATCHES to them. > # The patches specified by this variable will be > # applied after the normal distribution patches but >-# before those in ${PATCHDIR}. >+# before those in ${PATCHDIR}. Items in this list can >+# be individual patch files or directories. In the case >+# of a directory, all patch-* files in it are applied. > # PATCH_WRKSRC - Directory to apply patches in. > # Default: ${WRKSRC} > # >@@ -3384,18 +3386,28 @@ do-patch: > .endif > .if defined(EXTRA_PATCHES) > @set -e ; \ >- for i in ${EXTRA_PATCHES}; do \ >- case $$i in \ >- *:-p[0-9]) patch_file=$${i%:*} ; patch_strip=$${i##*:} ;; \ >- *) patch_file=$$i ;; \ >- esac ; \ >- ${ECHO_MSG} "===> Applying extra patch $$patch_file" ; \ >- case $$patfh_file in \ >- *.Z|*.gz) ${GZCAT} $$patch_file ;; \ >- *.bz2) ${BZCAT} $$patch_file ;; \ >- *.xz) ${XZCAT} $$patch_file ;; \ >- *) ${CAT} $$patch_file ;; \ >- esac | ${PATCH} ${PATCH_ARGS} $$patch_strip ; \ >+ for j in ${EXTRA_PATCHES}; do \ >+ if [ -d $$j ] ; then \ >+ if [ "`${ECHO_CMD} $$j/patch-*`" == "$$j/patch-*" ]; then \ >+ continue ; \ >+ fi ; \ >+ patch_list=$$j/patch-* ; \ >+ else \ >+ patch_list=$$j ; \ >+ fi ; \ >+ for i in $$patch_list; do \ >+ case $$i in \ >+ *:-p[0-9]) patch_file=$${i%:*} ; patch_strip=$${i##*:} ;; \ >+ *) patch_file=$$i ;; \ >+ esac ; \ >+ ${ECHO_MSG} "===> Applying extra patch $$patch_file" ; \ >+ case $$patch_file in \ >+ *.Z|*.gz) ${GZCAT} $$patch_file ;; \ >+ *.bz2) ${BZCAT} $$patch_file ;; \ >+ *.xz) ${XZCAT} $$patch_file ;; \ >+ *) ${CAT} $$patch_file ;; \ >+ esac | ${PATCH} ${PATCH_ARGS} $$patch_strip ; \ >+ done \ > done > .endif > @set -e ;\
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 193435
:
147018
|
147019