Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 584144

Summary: >=dev-build/autoconf-2.59 fails test 501: Libtool
Product: Gentoo Linux Reporter: gentoo_usr <gentoo_usr>
Component: [OLD] Core systemAssignee: Gentoo's Team for Core System packages <base-system>
Status: UNCONFIRMED ---    
Severity: normal CC: rene.rheaume
Priority: Normal Keywords: PATCH, TESTFAILURE
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://git.savannah.gnu.org/cgit/autoconf.git/commit/?id=244d3f9acb92e08b40699c572d15c44999bd41f2
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Allow backquotes in libtool output

Description gentoo_usr 2016-05-26 06:53:46 UTC
Created attachment 435422 [details, diff]
Allow backquotes in libtool output

sys-devel/autoconf-2.69 fails the test '501: Libtool'.

Excerpt from testsuite.log:

## ---------------------- ##
## Detailed failed tests. ##
## ---------------------- ##

#                             -*- compilation -*-
501. foreign.at:25: testing Libtool ...
./foreign.at:28: libtoolize --version || exit 77
stderr:
stdout:
libtoolize (GNU libtool) 2.4.6
Written by Gary V. Vaughan <gary@gnu.org>, 2003
Copyright (C) 2015 Free Software Foundation, Inc
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
./foreign.at:32:
case `libtoolize --version |
      sed -n '/^.* \([0-9][0-9.a-z]*\)$/{
        s//\1/
        p
        q
    }'` in
  0.*    ) exit 77;;
  1.*    ) exit 77;;
esac
stderr:
stdout:
./foreign.at:52: libtoolize -i
stderr:
stdout:
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, '.'.
libtoolize: linking file './config.guess'
libtoolize: linking file './config.sub'
libtoolize: linking file './install-sh'
libtoolize: linking file './ltmain.sh'
libtoolize: You should add the contents of the following files to 'aclocal.m4':
libtoolize:   '/usr/share/aclocal/libtool.m4'
libtoolize:   '/usr/share/aclocal/ltoptions.m4'
libtoolize:   '/usr/share/aclocal/ltsugar.m4'
libtoolize:   '/usr/share/aclocal/ltversion.m4'
libtoolize:   '/usr/share/aclocal/lt~obsolete.m4'
libtoolize: Consider adding 'AC_CONFIG_MACRO_DIRS([m4])' to configure.ac,
libtoolize: and rerunning libtoolize and aclocal.
libtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
./foreign.at:55: ./config.guess || exit 77
stderr:
stdout:
x86_64-pc-linux-gnu
./foreign.at:60: sed -n "s,^.*\`\\(/[^']*\\)'.*,\\1,p" stdout
stdout:
./foreign.at:61: test -f "`sed -n 1p stdout`" 
./foreign.at:61: exit code was 1, expected 0
501. foreign.at:25: 501. Libtool (foreign.at:25): FAILED (foreign.at:61)

This seems to be upstream bug #18916 [0]. Since autoconf didn't have a
release for about 4 years, here's the patch mentioned by upstream to fix that.
Please apply it, thx.

[0] https://lists.gnu.org/archive/html/bug-autoconf/2014-11/msg00000.html

diff -u a/tests/foreign.at b/tests/foreign.at
--- a/tests/foreign.at
+++ b/tests/foreign.at
@@ -57,7 +57,7 @@
 # Make sure at-path contains something valid, and let the test suite
 # display it when verbose.  And fail, skipping would too easily hide
 # problems.
-AT_CHECK([sed -n ["s,^.*\`\\(/[^']*\\)'.*,\\1,p"] stdout], [0], [stdout])
+AT_CHECK([sed -n ["s,^[^']*[\`']\\(/[^']*\\)'.*,\\1,p"] stdout], [0], [stdout])
 AT_CHECK([test -f "`sed -n 1p stdout`"])

 # Older libtoolize installed everything but install-sh...
Comment 1 gentoo_usr 2018-01-07 15:49:11 UTC
This issue has been fixed in autoconf-2.69-r4 [0]:

author	Harri Nieminen <moikkis@gmail.com>	2017-05-10 21:16:46 +0300
committer	Lars Wendler <polynomial-c@gentoo.org>	2017-05-13 11:29:55 +0200
commit	f10f1764a0d0adc2265731ca20e4bf58fe9f3950 (patch)

sys-devel/autoconf: Fix libtool test

Gentoo-Bug: https://bugs.gentoo.org/584144
Package-Manager: Portage-2.3.5, Repoman-2.3.2
Closes: https://github.com/gentoo/gentoo/pull/4598

[0] https://cgit.gentoo.org/repo/gentoo.git/commit/sys-devel/autoconf?id=f10f1764a0d0adc2265731ca20e4bf58fe9f3950