From 20511dec725523a30496f1183322f8c6658acfdd Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Mon, 26 Mar 2018 16:04:49 +0200 Subject: [PATCH] ftbfs: caused by automake 1.16.1 Version: 2.4.6-23 --- libtool-2.4.6-am-1.16-test.patch | 35 ++++++++++++++++++++++++++++++++ libtool.spec | 6 ++++++ 2 files changed, 41 insertions(+) create mode 100644 libtool-2.4.6-am-1.16-test.patch diff --git a/libtool-2.4.6-am-1.16-test.patch b/libtool-2.4.6-am-1.16-test.patch new file mode 100644 index 0000000..617f035 --- /dev/null +++ b/libtool-2.4.6-am-1.16-test.patch @@ -0,0 +1,35 @@ +Ensure that $(LIBLTDL) is built first + +After Automake upstream commit f4e91bfc490d, the list in 'all-am:' is +reordered for this test-case (*_LTLIBRARIES is before *_PROGRAMS), which +means that linker will fail to link 'old' binary. + +Previously (with automake <= 1.16), it was matter of luck -- it worked if +(a) the build was serial (-j1), and/or (b) libtool-ltdl-devel package was +installed on the box so ./configure picked the system version of libltdl. + +Users should anyways use system's ltdl, so this has low priority. + +diff --git a/tests/old-ltdl-iface.at b/tests/old-ltdl-iface.at +index cee29089..6f9c8001 100644 +--- a/tests/old-ltdl-iface.at ++++ b/tests/old-ltdl-iface.at +@@ -62,6 +62,9 @@ MOSTLYCLEANFILES = + include ltdl/Makefile.inc + bin_PROGRAMS = old + old_LDADD = -Lltdl $(LIBLTDL) ++# TODO: if --with-included-ltdl was unused this would ++# generate useless dependency. ++old_DEPENDENCIES = $(LIBLTDL) + ]]) + + AT_DATA([old.c], +@@ -131,7 +134,7 @@ LT_AT_CHECK_LIBTOOLIZE([--ltdl=ltdl --nonrecursive --install], 0, [expout], [exp + + AT_CHECK([test -f ltdl/Makefile.inc]) + +-LT_AT_BOOTSTRAP([ignore], [-I m4], [], [--add-missing], [--force]) ++LT_AT_BOOTSTRAP([ignore], [-I m4], [], [--add-missing], [--force], [--with-included-ltdl]) + + LT_AT_EXEC_CHECK([./old], 0, [[...]]) + diff --git a/libtool.spec b/libtool.spec index 8ef7b98..e4483cd 100644 --- a/libtool.spec +++ b/libtool.spec @@ -21,6 +21,10 @@ Source: http://ftp.gnu.org/gnu/libtool/libtool-%{version}.tar.xz # ~> downstream # ~> remove possibly once #1158915 gets fixed somehow Patch0: libtool-2.4.5-rpath.patch + +# ~> downstream (TODO) +Patch1: libtool-2.4.6-am-1.16-test.patch + %if ! 0%{?_module_build} Patch100: libtool-nodocs.patch %endif @@ -94,6 +98,7 @@ Static libraries and header files for development with ltdl. %prep %setup -n libtool-%{version} -q %patch0 -p1 -b .rpath +%patch1 -p1 -b .test %if ! 0%{?_module_build} %patch100 -p1 -b .nodocs %endif @@ -188,6 +193,7 @@ fi %changelog * Mon Mar 26 2018 Pavel Raiskup - 2.4.6-23 - bake in versioned requirement on automake (rhbz#1193591) +- fix testsuite FTBFS against automake 1.16.1 * Wed Feb 07 2018 Fedora Release Engineering - 2.4.6-22 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild