Date: Fri, 19 Sep 2008 23:36:34 +0200 From: Alex Dupre <ale@FreeBSD.org> To: John Baldwin <jhb@freebsd.org> Cc: ports@freebsd.org, Doug Barton <dougb@freebsd.org> Subject: Re: OPTIONS handling doesn't seem to work fully in dependencies anymore Message-ID: <48D41B62.90603@FreeBSD.org> In-Reply-To: <48D2167F.3040203@FreeBSD.org> References: <200809151036.19674.jhb@freebsd.org> <48D03248.1040109@FreeBSD.org> <48D0A683.9020802@FreeBSD.org> <200809171303.05759.jhb@freebsd.org> <48D2167F.3040203@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. --------------000009000709080705080502 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Alex Dupre wrote: > The attached patch should solve this erratic behavior. Another quick patch, that removes handling OPTIONS as a special case. -- Alex Dupre --------------000009000709080705080502 Content-Type: text/plain; name="bsd.port.mk.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="bsd.port.mk.diff" --- bsd.port.mk.orig 2008-09-19 23:15:37.000000000 +0200 +++ bsd.port.mk 2008-09-19 23:29:30.000000000 +0200 @@ -3229,17 +3229,6 @@ .endif ################################################################ -# -# Do preliminary work to detect if we need to run the config -# target or not. -# -################################################################ -.if (!defined(OPTIONS) || defined(CONFIG_DONE) || \ - defined(PACKAGE_BUILDING) || defined(BATCH)) -_OPTIONS_OK=yes -.endif - -################################################################ # The following are used to create easy dummy targets for # disabling some bit of default target behavior you don't want. # They still check to see if the target exists, and if so don't @@ -4114,7 +4103,7 @@ _SANITY_SEQ= ${_CHROOT_SEQ} pre-everything check-makefile check-categories \ check-makevars check-desktop-entries check-depends \ check-deprecated check-vulnerable buildanyway-message \ - options-message + options-message config-conditional _FETCH_DEP= check-sanity _FETCH_SEQ= fetch-depends pre-fetch pre-fetch-script \ do-fetch post-fetch post-fetch-script @@ -4165,12 +4154,8 @@ .for target in extract patch configure build install package -.if !target(${target}) && defined(_OPTIONS_OK) +.if !target(${target}) ${target}: ${${target:U}_COOKIE} -.elif !target(${target}) -${target}: config-conditional - @cd ${.CURDIR} && ${MAKE} CONFIG_DONE=1 ${__softMAKEFLAGS} ${${target:U}_COOKIE} -.elif target(${target}) && defined(IGNORE) .endif .if !exists(${${target:U}_COOKIE}) @@ -5936,7 +5921,7 @@ .if !target(config-conditional) config-conditional: -.if defined(OPTIONS) +.if defined(OPTIONS) && !defined(PACKAGE_BUILDING) && !defined(BATCH) .if exists(${OPTIONSFILE}) # scan saved options and invalidate them, if the set of options does not match @. ${OPTIONSFILE}; \ --------------000009000709080705080502--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?48D41B62.90603>