sys-devel/autogen: avoid running autoreconf
authorSergei Trofimovich <slyfox@gentoo.org>
Wed, 21 Nov 2018 20:22:02 +0000 (20:22 +0000)
committerSergei Trofimovich <slyfox@gentoo.org>
Wed, 21 Nov 2018 22:34:06 +0000 (22:34 +0000)
It's not a fix of bug #671616 but a step in
direction when result does not depend on presence of autoconf.

Not I get install failure described in the bug consistently.

Bug: https://bugs.gentoo.org/671616
Package-Manager: Portage-2.3.52, Repoman-2.3.12
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
sys-devel/autogen/autogen-5.18.16.ebuild
sys-devel/autogen/files/autogen-5.18.16-no-werror.patch

index fc70a815c93191a46efc28854cbd79a5676958a9..c3f3fedf69a60c5511a19fdb8d2351e8e31a1d2c 100644 (file)
@@ -22,6 +22,18 @@ PATCHES=(
        "${FILESDIR}"/${PN}-5.18.16-no-werror.patch
 )
 
+src_prepare() {
+       # no-werror.patch fixes both configure{.ac,}
+       # avoid configure echeck
+       touch -r configure.ac orig.configure.ac || die
+       touch -r configure    orig.configure || die
+
+       default
+
+       touch -r orig.configure.ac configure.ac || die
+       touch -r orig.configure    configure || die
+}
+
 src_configure() {
        # suppress possibly incorrect -R flag
        export ag_cv_test_ldflags=
index 7f9f36428e1874ddbe8b8fbfc035bb73f6a88735..ee8245ca8aceedebd3bf6d5e80c7ad3e8d3827af 100644 (file)
@@ -1,13 +1,13 @@
---- a/configure
-+++ b/configure
-@@ -18926,3 +18926,3 @@ test "X${GCC}" = Xyes && {
+--- a/configure.ac
++++ b/configure.ac
+@@ -200,3 +200,3 @@ test "X${GCC}" = Xyes && {
    CFLAGS="$CFLAGS -Wno-format-contains-nul -fno-strict-aliasing"
 -  WARN_CFLAGS="$CFLAGS "`echo -Wall -Werror -Wcast-align -Wmissing-prototypes \
 +  WARN_CFLAGS="$CFLAGS "`echo -Wall -Wcast-align -Wmissing-prototypes \
        -Wpointer-arith -Wshadow -Wstrict-prototypes -Wwrite-strings \
---- a/configure.ac
-+++ b/configure.ac
-@@ -200,3 +200,3 @@ test "X${GCC}" = Xyes && {
+--- a/configure
++++ b/configure
+@@ -18926,3 +18926,3 @@ test "X${GCC}" = Xyes && {
    CFLAGS="$CFLAGS -Wno-format-contains-nul -fno-strict-aliasing"
 -  WARN_CFLAGS="$CFLAGS "`echo -Wall -Werror -Wcast-align -Wmissing-prototypes \
 +  WARN_CFLAGS="$CFLAGS "`echo -Wall -Wcast-align -Wmissing-prototypes \