Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 353832 - app-text/wv-1.2.9-r1 fails with Running aclocal
Summary: app-text/wv-1.2.9-r1 fails with Running aclocal
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-06 11:15 UTC by Dominique Michel
Modified: 2011-02-09 17:21 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
output of emerge --info (emerge.info,14.44 KB, text/plain)
2011-02-06 19:09 UTC, Dominique Michel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dominique Michel 2011-02-06 11:15:47 UTC
>>> Emerging (2 of 2) app-text/wv-1.2.9-r1
 * wv-1.2.9.tar.gz RMD160 SHA1 SHA256 size ;-) ...                                        [ ok ]
 * Package:    app-text/wv-1.2.9-r1
 * Repository: gentoo
 * Maintainer: gnome@gentoo.org
 * USE:        amd64 elibc_glibc kernel_linux multilib userland_GNU wmf
 * FEATURES:   sandbox
>>> Unpacking source...
>>> Unpacking wv-1.2.9.tar.gz to /var/tmp/portage/app-text/wv-1.2.9-r1/work
>>> Source unpacked in /var/tmp/portage/app-text/wv-1.2.9-r1/work
>>> Preparing source in /var/tmp/portage/app-text/wv-1.2.9-r1/work/wv-1.2.9 ...
 * Running eautoreconf in '/var/tmp/portage/app-text/wv-1.2.9-r1/work/wv-1.2.9' ...
 * Running aclocal ...                                                                    [ !! ]

###############

# cat /var/tmp/portage/app-text/wv-1.2.9-r1/temp/aclocal.out
***** aclocal *****
***** PWD: /var/tmp/portage/app-text/wv-1.2.9-r1/work/wv-1.2.9
***** aclocal

configure.ac:59: error: m4_defn: undefined macro: _AC_LANG
../../lib/autoconf/lang.m4:108: AC_LANG_POP is expanded from...
../../lib/autoconf/c.m4:448: AC_PROG_CC is expanded from...
configure.ac:59: the top level
autom4te-2.68: /usr/bin/m4 failed with exit status: 1
aclocal-1.11: autom4te failed with exit status: 1


Reproducible: Always

Steps to Reproduce:
1. emerge wv
2.
3.




A workaround for me us to run "emerge =wv-1.2.9". It work fine so.
Comment 1 Lukas Zavodny 2011-02-06 11:30:55 UTC
same problem too
Comment 2 Sander Sweers 2011-02-06 16:08:38 UTC
(In reply to comment #0)
> A workaround for me us to run "emerge =wv-1.2.9". It work fine so.

Or enable the tools use flag.

Last change was from pacho@gentoo.org who added some sed foo which is broke autotools.
Comment 3 Pacho Ramos gentoo-dev 2011-02-06 17:05:47 UTC
I don't like to be "pushed" CCing me without even waiting for bug wranglers to properly assign this and ask for needed info

You will probably also need to provide "emerge --info" output (since it didn't fail for me)
Comment 4 Dominique Michel 2011-02-06 19:09:51 UTC
Created attachment 261670 [details]
output of emerge --info
Comment 5 Pacho Ramos gentoo-dev 2011-02-08 10:27:43 UTC
I don't know why it's failing for you, it succeeds for me :-|, maybe some other gnome team member knows where could be the problem (from your emerge --info looks like you are running "testing" while my basesystem is "stable" :-/)
Comment 6 Dominique Michel 2011-02-08 17:54:14 UTC
# emerge -pqv =app-text/wv-1.2.9-r1
[ebuild     U ] app-text/wv-1.2.9-r1 [1.2.9] USE="wmf -tools%"

With "USE=tools emerge wv", all is going fine,
The ebuild modify configure.ac and run eautoreconf only with USE=-tools.

If I comment out the line
#		sed -i -e '/wv[A-Z]/d' configure.ac || die
into the ebuild, emerge is working fine with USE="-tools".

Here is a diff of the 2 configure.ac files:
# diff configure.ac configure.ac.fail
2d1
< AC_INIT([wv],[1.2.9],[wvware-devel@sourceforge.net])
24d22
< AC_CONFIG_SRCDIR([wvWare.c])
420,429d417
< 	wvAbw
< 	wvDVI
< 	wvPS
< 	wvPDF
< 	wvHtml
< 	wvDocBook
< 	wvLatex
< 	wvCleanLatex
< 	wvText
< 	wvWml
Comment 7 Sander Sweers 2011-02-09 00:26:58 UTC
(In reply to comment #5)
> I don't know why it's failing for you, it succeeds for me :-|

You would think AC_INIT is important.. But as Dominique shows you it gets removed. The below change should do what you want.

--- /usr/portage/app-text/wv/wv-1.2.9-r1.ebuild 2011-02-02 19:36:05.000000000 +0100
+++ wv-1.2.9-r1.ebuild  2011-02-09 01:23:03.666385819 +0100
@@ -31,7 +31,8 @@
                sed -i -e '/bin_/d' GNUmakefile.am || die
                sed -i -e '/SUBDIRS/d' GNUmakefile.am || die
                sed -i -e '/\/GNUmakefile/d' configure.ac || die
-               sed -i -e '/wv[A-Z]/d' configure.ac || die
+               sed -i -e '/^[^A]wv[A-Z]/d' configure.ac || die
+               sed -i -e '/wvWare.c/d' configure.ac || die
                eautoreconf
        fi
 }
Comment 8 Michał Bartoszkiewicz 2011-02-09 00:49:06 UTC
LC_ALL=C emerge wv works fine, while LC_ALL=en_US.UTF-8 emerge wv fails.
The reason seems to be that 'w' is included in '[A-Z]' in the latter locale (as the ordering is a, A, b, B, ..., z, Z), so the regexp in sed matches and removes the AC_INIT line.
The best solution would be probably to replace the '[A-Z]' by '[[:upper:]]'.
Comment 9 Jan Psota 2011-02-09 11:05:59 UTC
(In reply to comment #8)
> The best solution would be probably to replace the '[A-Z]' by '[[:upper:]]'.
> 
Done.
In bleeding-edge overlay.
(I'm not a developer.)
Comment 10 Pacho Ramos gentoo-dev 2011-02-09 17:21:40 UTC
(In reply to comment #7)
> (In reply to comment #5)
> > I don't know why it's failing for you, it succeeds for me :-|
> 
> You would think AC_INIT is important.. But as Dominique shows you it gets
> removed. The below change should do what you want.

The problem is that with spanish locale it doesn't drop AC_INIT, please be sure I wouldn't committed it if it would failed for me ;-)

+  09 Feb 2011; Pacho Ramos <pacho@gentoo.org> wv-1.2.9-r1.ebuild:
+  Fix sed command behavior depending on LC_ALL setting (bug #353832 by
+  Dominique Michel and Sander Sweers).
+