dev-libs/libgdata: fix build with newer autoconf-archive present
authorMart Raudsepp <leio@gentoo.org>
Wed, 19 Jun 2019 20:14:33 +0000 (23:14 +0300)
committerMart Raudsepp <leio@gentoo.org>
Wed, 19 Jun 2019 20:16:06 +0000 (23:16 +0300)
Workaround eaclocal overwriting the older ax_code_coverage.m4
provided by the tarball, stopping breakage when newer autoconf-archive
is present on the system.
Due to all necessary ax_*.m4 being present in the tarball, the
autoconf-archive build dep is also unnecessary (and now it doesn't
update the copies either anymore if it's present on the build system).

Closes: https://bugs.gentoo.org/686082
Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: Mart Raudsepp <leio@gentoo.org>
dev-libs/libgdata/files/libgdata-0.17.9-ax2019-compat.patch [new file with mode: 0644]
dev-libs/libgdata/libgdata-0.17.9-r1.ebuild

diff --git a/dev-libs/libgdata/files/libgdata-0.17.9-ax2019-compat.patch b/dev-libs/libgdata/files/libgdata-0.17.9-ax2019-compat.patch
new file mode 100644 (file)
index 0000000..c73e3f9
--- /dev/null
@@ -0,0 +1,20 @@
+autoconf-archive-2019.01.06 breaks AX_CODE_COVERAGE usage by requiring
+a different integration inside Makefile.am. This would be fine if the
+local m4/ax_code_coverage.m4 would get used, but eaclocal parses out
+the install from ACLOCAL_AMFLAGS, and calls aclocal with that, which
+overwrites ax_code_coverage.m4 with the newer version, obviously
+breaking the usage of all that in Makefile.am.
+Workaround it by patching out the --install argument, thus using the
+tarball copy of it (older version), which works with Makefile.am
+without further patching.
+
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -1,6 +1,6 @@
+ SUBDIRS = . po docs gdata/tests
+-ACLOCAL_AMFLAGS = --install -I m4 ${ACLOCAL_FLAGS}
++ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
+ DISTCHECK_CONFIGURE_FLAGS =
+ MAINTAINERCLEANFILES =
index 9ba514674752ce21bd61fb1efc1bacf2fdc06245..f9f1ba477023b0af9902c6d351183906fda91494 100644 (file)
@@ -36,15 +36,15 @@ DEPEND="${RDEPEND}
        dev-util/glib-utils
        >=dev-util/gtk-doc-am-1.25
        >=dev-util/intltool-0.40
-       sys-devel/autoconf-archive
        virtual/pkgconfig
        test? ( >=net-libs/uhttpmock-0.5 )
        vala? ( $(vala_depend) )
 "
-# eautoreconf needs autoconf-archive
 
 PATCHES=(
        "${FILESDIR}"/${PN}-0.17.8-disable-demos.patch
+       # don't overwrite m4/ax_* with newer breaking versions
+       "${FILESDIR}"/${P}-ax2019-compat.patch
 )
 
 src_prepare() {