Gentoo Archives: gentoo-dev

From: David Michael <fedora.dm0@×××××.com>
To: gentoo-dev@l.g.o
Cc: base-system@g.o
Subject: [gentoo-dev] [PATCH] autotools.eclass: reorder sysroot M4 include dir option
Date: Fri, 13 Mar 2020 18:24:15
Message-Id: 87zhckazbf.fsf@gmail.com
1 The old autoconf-2.13 version requires options to be specified
2 before the file name argument, so packages with WANT_AUTOCONF="2.1"
3 would fail to build in a sysroot with the -l option at the end.
4
5 Closes: https://bugs.gentoo.org/710792
6 Signed-off-by: David Michael <fedora.dm0@×××××.com>
7 ---
8 eclass/autotools.eclass | 4 ++--
9 1 file changed, 2 insertions(+), 2 deletions(-)
10
11 diff --git a/eclass/autotools.eclass b/eclass/autotools.eclass
12 index 9df0e1b9366..625abd0e9d1 100644
13 --- a/eclass/autotools.eclass
14 +++ b/eclass/autotools.eclass
15 @@ -1,4 +1,4 @@
16 -# Copyright 1999-2018 Gentoo Foundation
17 +# Copyright 1999-2020 Gentoo Authors
18 # Distributed under the terms of the GNU General Public License v2
19
20 # @ECLASS: autotools.eclass
21 @@ -512,7 +512,7 @@ autotools_run_tool() {
22 fi
23
24 if ${m4flags} ; then
25 - set -- "${1}" $(autotools_m4dir_include) "${@:2}" $(autotools_m4sysdir_include)
26 + set -- "${1}" $(autotools_m4dir_include) $(autotools_m4sysdir_include) "${@:2}"
27 fi
28
29 # If the caller wants to probe something, then let them do it directly.
30 --
31 2.21.1

Replies