diff options
author | Mingli Yu <mingli.yu@windriver.com> | 2021-03-24 14:48:53 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-03-28 22:28:26 +0100 |
commit | 8d9dbbdd4a16ddac894a7d963d6450ac5ba07717 (patch) | |
tree | d822fb64eb00f62f101c9ce712842fcad771d2d4 /meta/recipes-devtools | |
parent | 946007fd4c4273e580dfe926db671107c413cf19 (diff) | |
download | poky-8d9dbbdd4a16ddac894a7d963d6450ac5ba07717.tar.gz |
libtool: make sure autoheader run before autoconf
autoheader will update ../libtool-2.4.6/libltdl/config-h.in which
autoconf needs, so there comes a race sometimes as below:
| configure.ac:45: error: required file 'config-h.in' not found
| touch '../libtool-2.4.6/libltdl/config-h.in'
So make sure autoheader run before autoconf to avoid this race.
(From OE-Core rev: d8451cbef5906b67756582fdfc44eb01ed3512fc)
Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r-- | meta/recipes-devtools/libtool/libtool-2.4.6.inc | 1 | ||||
-rw-r--r-- | meta/recipes-devtools/libtool/libtool/0001-Makefile.am-make-sure-autoheader-run-before-autoconf.patch | 35 |
2 files changed, 36 insertions, 0 deletions
diff --git a/meta/recipes-devtools/libtool/libtool-2.4.6.inc b/meta/recipes-devtools/libtool/libtool-2.4.6.inc index 8e17b56d46..19a03d4733 100644 --- a/meta/recipes-devtools/libtool/libtool-2.4.6.inc +++ b/meta/recipes-devtools/libtool/libtool-2.4.6.inc | |||
@@ -21,6 +21,7 @@ SRC_URI = "${GNU_MIRROR}/libtool/libtool-${PV}.tar.gz \ | |||
21 | file://unwind-opt-parsing.patch \ | 21 | file://unwind-opt-parsing.patch \ |
22 | file://0001-libtool-Fix-support-for-NIOS2-processor.patch \ | 22 | file://0001-libtool-Fix-support-for-NIOS2-processor.patch \ |
23 | file://0001-libtool-Check-for-static-libs-for-internal-compiler-.patch \ | 23 | file://0001-libtool-Check-for-static-libs-for-internal-compiler-.patch \ |
24 | file://0001-Makefile.am-make-sure-autoheader-run-before-autoconf.patch \ | ||
24 | " | 25 | " |
25 | 26 | ||
26 | SRC_URI[md5sum] = "addf44b646ddb4e3919805aa88fa7c5e" | 27 | SRC_URI[md5sum] = "addf44b646ddb4e3919805aa88fa7c5e" |
diff --git a/meta/recipes-devtools/libtool/libtool/0001-Makefile.am-make-sure-autoheader-run-before-autoconf.patch b/meta/recipes-devtools/libtool/libtool/0001-Makefile.am-make-sure-autoheader-run-before-autoconf.patch new file mode 100644 index 0000000000..2e9908725e --- /dev/null +++ b/meta/recipes-devtools/libtool/libtool/0001-Makefile.am-make-sure-autoheader-run-before-autoconf.patch | |||
@@ -0,0 +1,35 @@ | |||
1 | From dfbbbd359e43e0a55fbea06f2647279ad8761cb9 Mon Sep 17 00:00:00 2001 | ||
2 | From: Mingli Yu <mingli.yu@windriver.com> | ||
3 | Date: Wed, 24 Mar 2021 03:04:13 +0000 | ||
4 | Subject: [PATCH] Makefile.am: make sure autoheader run before autoconf | ||
5 | |||
6 | autoheader will update ../libtool-2.4.6/libltdl/config-h.in which | ||
7 | autoconf needs, so there comes a race sometimes as below: | ||
8 | | configure.ac:45: error: required file 'config-h.in' not found | ||
9 | | touch '../libtool-2.4.6/libltdl/config-h.in' | ||
10 | |||
11 | So make sure autoheader run before autoconf to avoid this race. | ||
12 | |||
13 | Upstream-Status: Submitted [libtool-patches@gnu.org maillist] | ||
14 | |||
15 | Signed-off-by: Mingli Yu <mingli.yu@windriver.com> | ||
16 | --- | ||
17 | Makefile.am | 2 +- | ||
18 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
19 | |||
20 | diff --git a/Makefile.am b/Makefile.am | ||
21 | index 4142c90..fe1a9fc 100644 | ||
22 | --- a/Makefile.am | ||
23 | +++ b/Makefile.am | ||
24 | @@ -365,7 +365,7 @@ lt_configure_deps = $(lt_aclocal_m4) $(lt_aclocal_m4_deps) | ||
25 | $(lt_aclocal_m4): $(lt_aclocal_m4_deps) | ||
26 | $(AM_V_GEN)cd '$(srcdir)/$(ltdl_dir)' && $(ACLOCAL) -I ../m4 | ||
27 | |||
28 | -$(lt_configure): $(lt_configure_deps) | ||
29 | +$(lt_configure): $(lt_configure_deps) $(lt_config_h_in) | ||
30 | $(AM_V_GEN)cd '$(srcdir)/$(ltdl_dir)' && $(AUTOCONF) | ||
31 | |||
32 | $(lt_config_h_in): $(lt_configure_deps) | ||
33 | -- | ||
34 | 2.29.2 | ||
35 | |||