FreeBSD Bugzilla – Attachment 101989 Details for
Bug 141641
[bsd.port.mk] [patch] make 'config-recursive' finish in one pass
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 3.26 KB, created by
Andrius Morkunas
on 2009-12-15 15:10:03 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Andrius Morkunas
Created:
2009-12-15 15:10:03 UTC
Size:
3.26 KB
patch
obsolete
>--- Mk/bsd.port.mk.orig 2009-11-26 00:02:29.000000000 +0200 >+++ Mk/bsd.port.mk 2009-12-09 21:18:03.873125530 +0200 >@@ -6073,9 +6073,36 @@ > > .if !target(config-recursive) > config-recursive: >- @${ECHO_MSG} "===> Setting user-specified options for ${PKGNAME} and dependencies"; >- @for dir in ${.CURDIR} $$(${ALL-DEPENDS-LIST}); do \ >- (cd $$dir; ${MAKE} config-conditional); \ >+ @${ECHO_MSG} "===> Setting user-specified options for ${PKGNAME} and dependencies"; \ >+ ${MAKE} config-conditional; \ >+ L=$$(${MAKE} -V _DEPEND_DIRS); \ >+ checked=""; \ >+ while [ -n "$$L" ]; do \ >+ l=""; \ >+ for d in $$L; do \ >+ case $$checked in \ >+ $$d\ *|*\ $$d\ *|*\ $$d) \ >+ continue;; \ >+ esac; \ >+ checked="$$checked $$d"; \ >+ if [ ! -d $$d ]; then \ >+ ${ECHO_MSG} "${PKGNAME}: \"$$d\" non-existent -- recursive config incomplete" >&2; \ >+ continue; \ >+ fi; \ >+ ${MAKE} -C $$d config-conditional; \ >+ if ! children=$$(cd $$d && ${MAKE} -V _DEPEND_DIRS); then \ >+ ${ECHO_MSG} "${PKGNAME}: \"$$d\" erroneous -- recursive config incomplete" >&2; \ >+ continue; \ >+ fi; \ >+ for child in $$children; do \ >+ case "$$checked $$l" in \ >+ $$child\ *|*\ $$child\ *|*\ $$child) \ >+ continue;; \ >+ esac; \ >+ l="$$l $$child"; \ >+ done; \ >+ done; \ >+ L=$$l; \ > done > .endif > >@@ -6169,12 +6196,56 @@ > > .if !target(rmconfig-recursive) > rmconfig-recursive: >- @${ECHO_MSG} "===> Removing user-specified options for ${PKGNAME} and dependencies"; >- @for dir in ${.CURDIR} $$(${ALL-DEPENDS-LIST}); do \ >- (cd $$dir; ${MAKE} rmconfig); \ >+ @${ECHO_MSG} "===> Removing user-specified options for ${PKGNAME} and dependencies"; \ >+ L=${.CURDIR}; \ >+ checked=""; \ >+ while [ -n "$$L" ]; do \ >+ l=""; \ >+ for d in $$L; do \ >+ case $$checked in \ >+ $$d\ *|*\ $$d\ *|*\ $$d) \ >+ continue;; \ >+ esac; \ >+ checked="$$checked $$d"; \ >+ if [ ! -d $$d ]; then \ >+ ${ECHO_MSG} "${PKGNAME}: \"$$d\" non-existent -- recursive rmconfig incomplete" >&2; \ >+ continue; \ >+ fi; \ >+ if ! children=$$(${MAKE} -C $$d -V _DEPEND_DIRS); then \ >+ ${ECHO_MSG} "${PKGNAME}: \"$$d\" erroneous -- recursive rmconfig incomplete" >&2; \ >+ continue; \ >+ fi; \ >+ if (${MAKE} -C $$d rmconfig-internal > /dev/null); then \ >+ ${ECHO_MSG} "===> Removing user-configured options for `${MAKE} -C $$d -V PKGNAME`"; \ >+ children="$${children} $$(${MAKE} -C $$d -V _DEPEND_DIRS)"; \ >+ else \ >+ ${ECHO_MSG} "===> No user-specified options configured for `${MAKE} -C $$d -V PKGNAME`"; \ >+ fi; \ >+ for child in $$children; do \ >+ case "$$checked $$l" in \ >+ $$child\ *|*\ $$child\ *|*\ $$child) \ >+ continue;; \ >+ esac; \ >+ l="$$l $$child"; \ >+ done; \ >+ done; \ >+ L=$$l; \ > done > .endif > >+# This should only be used by rmconfig-recursive. >+.if !target(rmconfig-internal) >+rmconfig-internal: >+.if defined(OPTIONS) && exists(${OPTIONSFILE}) >+ -@${ECHO_CMD}; \ >+ optionsdir=${OPTIONSFILE}; optionsdir=$${optionsdir%/*}; \ >+ ${RM} -f ${OPTIONSFILE}; \ >+ ${RMDIR} $${optionsdir}; >+.else >+ exit 1; >+.endif >+.endif >+ > desktop-categories: > @categories=""; \ > for native_category in ${CATEGORIES}; do \
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 141641
: 101989