public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] [PATCH autotools-utils] Autoreconf on user patches only.
@ 2012-01-16 22:05 Michał Górny
  0 siblings, 0 replies; only message in thread
From: Michał Górny @ 2012-01-16 22:05 UTC (permalink / raw
  To: gentoo-dev; +Cc: Michał Górny

Right now, any patch which modifies common autotools source files
triggers autoreconf. In some cases, this causes the package to be
reconfigured twice -- once by the eclass, and the second time by the
ebuild.

To avoid that, trigger autoreconfiguration only when user patches modify
these files.
---
 autotools-utils.eclass |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/autotools-utils.eclass b/autotools-utils.eclass
index 4f54814..559ef0a 100644
--- a/autotools-utils.eclass
+++ b/autotools-utils.eclass
@@ -359,8 +359,9 @@ autotools-utils_src_prepare() {
 
 	local want_autoreconf=${AUTOTOOLS_AUTORECONF}
 
-	touch "${T}"/.autotools-utils.timestamp || die
 	[[ ${PATCHES} ]] && epatch "${PATCHES[@]}"
+
+	touch "${T}"/.autotools-utils.timestamp || die
 	epatch_user
 	if [[ ! ${want_autoreconf} ]]; then
 		if [[ $(find . -newer "${T}"/.autotools-utils.timestamp \
@@ -368,7 +369,7 @@ autotools-utils_src_prepare() {
 				-o -name 'configure.ac' \
 				-o -name 'configure.in' ')' \
 				-print -quit) ]]; then
-			einfo 'Will autoreconfigure due to patches applied.'
+			einfo 'Will autoreconfigure due to user patches applied.'
 			want_autoreconf=yep
 		fi
 	fi
-- 
1.7.8.3




^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2012-01-16 22:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-16 22:05 [gentoo-dev] [PATCH autotools-utils] Autoreconf on user patches only Michał Górny

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox