Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 351982 - sys-devel/autoconf-2.13 installs wrongly with et_EE locale
Summary: sys-devel/autoconf-2.13 installs wrongly with et_EE locale
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-18 10:12 UTC by Priit Laes (IRC: plaes)
Modified: 2011-03-15 23:09 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Priit Laes (IRC: plaes) 2011-01-18 10:12:30 UTC
* Adjusting to prefix /
 *   Mozilla.java ...                                                                                                                                                                      [ ok ]
 *   nsXPCOMPrivate.h ...                                                                                                                                                                  [ ok ]
 *   Makefile.in ...                                                                                                                                                                       [ ok ]
 *   nsRegisterGREUnix.cpp ...                                                                                                                                                             [ ok ]
 * Running eautoreconf in '/var/tmp/portage/net-libs/xulrunner-1.9.2.13-r1/work/mozilla-1.9.2' ...
 * Running autoconf ...                                                                                                                                                                    [ !! ]

 * Failed Running autoconf !
 * 
 * Include in your bugreport the contents of:
 * 
 *   /var/tmp/portage/net-libs/xulrunner-1.9.2.13-r1/temp/autoconf.out

[snip]
(chroot) sol / # cat /var/tmp/portage/net-libs/xulrunner-1.9.2.13-r1/temp/autoconf.out
***** autoconf *****
***** PWD: /var/tmp/portage/net-libs/xulrunner-1.9.2.13-r1/work/mozilla-1.9.2
***** autoconf

ac-wrapper: warning: invalid WANT_AUTOCONF '2.1'; ignoring.
aclocal.m4:16: warning: AC_INIT_BINSH is m4_require'd but not m4_defun'd
build/autoconf/mozprog.m4:39: MOZ_PROG_CHECKMSYS is expanded from...
aclocal.m4:16: the top level
aclocal.m4:22: warning: AC_INIT_BINSH is m4_require'd but not m4_defun'd
build/autoconf/altoptions.m4:149: MOZ_READ_MOZCONFIG is expanded from...
aclocal.m4:22: the top level
configure.in:1492: warning: AC_CACHE_VAL(ac_has_wno_invalid_offsetof, ...): suspicious cache-id, must contain _cv_ to be cached
../../lib/autoconf/general.m4:2032: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2053: AC_CACHE_CHECK is expanded from...
configure.in:1492: the top level
configure.in:2490: warning: AC_CACHE_VAL(ac_os2_declspec, ...): suspicious cache-id, must contain _cv_ to be cached
../../lib/autoconf/general.m4:2032: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2053: AC_CACHE_CHECK is expanded from...
configure.in:2490: the top level
configure.in:7517: warning: AC_CACHE_VAL(ac_nscap_nonconst_opeq_bug, ...): suspicious cache-id, must contain _cv_ to be cached
../../lib/autoconf/general.m4:2032: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2053: AC_CACHE_CHECK is expanded from...
configure.in:7517: the top level
configure.in:1029: error: possibly undefined macro: AS_BIN
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.in:8722: error: possibly undefined macro: AC_OUTPUT_SUBDIRS
[/snip]



(chroot) sol / # emerge --info
Portage 2.1.9.33 (default/linux/amd64/10.0/desktop/gnome, gcc-4.5.2, glibc-2.12.2-r0, 2.6.37-rc4 x86_64)
=================================================================
System uname: Linux-2.6.37-rc4-x86_64-Intel-R-_Core-TM-2_CPU_6320_@_1.86GHz-with-gentoo-2.0.1
Timestamp of tree: Tue, 18 Jan 2011 07:30:02 +0000
app-shells/bash:     4.1_p9
dev-lang/python:     2.6.6-r1, 2.7.1, 3.1.3
dev-util/cmake:      2.8.3-r1
sys-apps/baselayout: 2.0.1-r1
sys-apps/openrc:     0.7.0
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13, 2.68
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.21
sys-devel/gcc:       4.4.4-r2, 4.5.2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.4-r1
sys-devel/make:      3.82
virtual/os-headers:  2.6.36.1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-mtune=core2 -O2 -ggdb -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-mtune=core2 -O2 -ggdb -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs collision-protect distlocks fixlafiles fixpackages multilib-strict news parallel-fetch protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="et_EE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en et"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acpi alsa amd64 avahi berkdb bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cups cxx dbus device-mapper djvu dri dts dvd dvdr dvi eds emboss encode evo exif faac fam fat ffmpeg firefox flac fortran fuse gdbm gdu gif gnome gnome-keyring gphoto2 gstreamer gtk iconv ipv6 jpeg lcms libnotify lzo mad mikmod mmx mng modules mp3 mp4 mpeg mudflap multilib nautilus ncurses nls nptl nptlonly ogg opengl openmp pam pango pcre pcsc-lite pdf png policykit ppds pppd pulseaudio python qt3support readline sdl session spell sse sse2 ssl startup-notification svg sysfs tcpd tiff truetype udev unicode usb vorbis vpx x264 xcb xml xmp xorg xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en et" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Jory A. Pratt gentoo-dev 2011-01-18 20:45:57 UTC
what version of autoconf wrapper do you have installed?
Comment 2 Jory A. Pratt gentoo-dev 2011-01-19 02:00:04 UTC
if [ "${WANT_AUTOCONF}" = "2.1" ] && [ "${0##*/}" = "autom4te" ] ; then
	err "Autoconf 2.13 doesn't contain autom4te.\n" \
	    "   Either unset WANT_AUTOCONF or don't execute anything\n" \
	    "   that would use autom4te."
fi

This is straight out of the ac-wrapper.sh the syntax in ebuild is correct, your file seems to be corrupt, please re-emerge autoconf-wrapper and try again. If it fails feel free to reopen with autoconf-wrapper version included in your report.
Comment 3 Priit Laes (IRC: plaes) 2011-01-19 08:43:24 UTC
I have following autoconf-* packages installed (and reinstalled), but issue still remains:

sys-devel/autoconf-2.13
sys-devel/autoconf-2.68
sys-devel/autoconf-wrapper-10-r1
Comment 4 Priit Laes (IRC: plaes) 2011-01-20 20:35:33 UTC
OK, I figured out that this issue is et_EE locale specific:
[snip]
plaes@sol ~ $ qlist autoconf-2.13
/usr/bin/autoscan--program-suffix-2.13
/usr/bin/ifnames--program-suffix-2.13
/usr/bin/autoreconf--program-suffix-2.13
/usr/bin/autoheader--program-suffix-2.13
/usr/bin/autoconf--program-suffix-2.13
/usr/bin/autoupdate--program-suffix-2.13
/usr/share/doc/autoconf-2.13/ChangeLog.bz2
/usr/share/doc/autoconf-2.13/ChangeLog.0.bz2
/usr/share/doc/autoconf-2.13/NEWS.bz2
/usr/share/doc/autoconf-2.13/ChangeLog.1.bz2
/usr/share/doc/autoconf-2.13/AUTHORS.bz2
/usr/share/doc/autoconf-2.13/README.bz2
/usr/share/doc/autoconf-2.13/TODO.bz2
/usr/share/info/autoconf-2.13.info.bz2
/--dat/usr/share/autoconf/acspecific.m4
/--dat/usr/share/autoconf/acprograms
/--dat/usr/share/autoconf/acconfig.h
/--dat/usr/share/autoconf/autoheader.m4f
/--dat/usr/share/autoconf/acmakevars
/--dat/usr/share/autoconf/acoldnames.m4
/--dat/usr/share/autoconf/autoconf.m4f
/--dat/usr/share/autoconf/acheaders
/--dat/usr/share/autoconf/autoheader.m4
/--dat/usr/share/autoconf/acidentifiers
/--dat/usr/share/autoconf/acfunctions
/--dat/usr/share/autoconf/autoconf.m4
/--dat/usr/share/autoconf/acgeneral.m4
[/snip]
Comment 5 Jory A. Pratt gentoo-dev 2011-01-20 20:55:19 UTC
(In reply to comment #4)
> OK, I figured out that this issue is et_EE locale specific:
> [snip]
> plaes@sol ~ $ qlist autoconf-2.13
> /usr/bin/autoscan--program-suffix-2.13
> /usr/bin/ifnames--program-suffix-2.13
> /usr/bin/autoreconf--program-suffix-2.13
> /usr/bin/autoheader--program-suffix-2.13
> /usr/bin/autoconf--program-suffix-2.13
> /usr/bin/autoupdate--program-suffix-2.13
> /usr/share/doc/autoconf-2.13/ChangeLog.bz2
> /usr/share/doc/autoconf-2.13/ChangeLog.0.bz2
> /usr/share/doc/autoconf-2.13/NEWS.bz2
> /usr/share/doc/autoconf-2.13/ChangeLog.1.bz2
> /usr/share/doc/autoconf-2.13/AUTHORS.bz2
> /usr/share/doc/autoconf-2.13/README.bz2
> /usr/share/doc/autoconf-2.13/TODO.bz2
> /usr/share/info/autoconf-2.13.info.bz2
> /--dat/usr/share/autoconf/acspecific.m4
> /--dat/usr/share/autoconf/acprograms
> /--dat/usr/share/autoconf/acconfig.h
> /--dat/usr/share/autoconf/autoheader.m4f
> /--dat/usr/share/autoconf/acmakevars
> /--dat/usr/share/autoconf/acoldnames.m4
> /--dat/usr/share/autoconf/autoconf.m4f
> /--dat/usr/share/autoconf/acheaders
> /--dat/usr/share/autoconf/autoheader.m4
> /--dat/usr/share/autoconf/acidentifiers
> /--dat/usr/share/autoconf/acfunctions
> /--dat/usr/share/autoconf/autoconf.m4
> /--dat/usr/share/autoconf/acgeneral.m4
> [/snip]
> 

That does not make any sense as we force C for everyone when compiling.
Comment 6 Mart Raudsepp gentoo-dev 2011-01-20 21:23:02 UTC
This is then for the old autoconf versions slot...
Comment 7 SpanKY gentoo-dev 2011-01-25 00:00:22 UTC
autoconf-2.13 has many many locale problems.  there is absolutely no value in attempting to fix them.  if a package is still using it, it is broken and needs to update to autoconf-2.6x+.

bouncing back to mozilla on the assumption that its code is still based on autoconf-2.13.
Comment 8 Jory A. Pratt gentoo-dev 2011-03-14 19:28:33 UTC
vapier we all know mozilla is not moving forward with autoconf-2.6, the only plausible solution is to force C in autoconf-2.13 and be done with it. If you wish to see mozilla move to autoconf-2.6 please feel free to provide the patch and I will ensure it gets into the right hands to have it land upstream.
Comment 9 SpanKY gentoo-dev 2011-03-14 21:35:14 UTC
how you choose to hack up the mozilla ebuild is up to you.  autoconf-2.13 isnt going to be patched in any way.
Comment 10 Jory A. Pratt gentoo-dev 2011-03-14 21:52:04 UTC
As this is no a mozilla problem but an autoconf-2.13 issue. There is nothing the mozilla team can or will be able to do to address the problem.
Comment 11 SpanKY gentoo-dev 2011-03-14 22:09:26 UTC
that's crap.  the bugs in autoconf-2.13 have long been fixed with quite a number of overhauls in newer autoconf.  by insisting on still using autoconf-2.13, you insist on keeping those bugs.  which means you can figure out how to workaround them locally.
Comment 12 Jory A. Pratt gentoo-dev 2011-03-14 22:56:12 UTC
(In reply to comment #11)
> that's crap.  the bugs in autoconf-2.13 have long been fixed with quite a
> number of overhauls in newer autoconf.  by insisting on still using
> autoconf-2.13, you insist on keeping those bugs.  which means you can figure
> out how to workaround them locally.

Is not my job to work around broken autoconf, if you want to see autoconf-2.13 dep updated on mozilla products write the patch and send it upstream.
Comment 13 SpanKY gentoo-dev 2011-03-14 23:27:05 UTC
it is your job to make sure the ebuilds you're maintaining arent full of bugs that affect users.  how you decide to accomplish that job is your prerogative.
Comment 14 Jory A. Pratt gentoo-dev 2011-03-15 00:01:22 UTC
(In reply to comment #13)
> it is your job to make sure the ebuilds you're maintaining arent full of bugs
> that affect users.  how you decide to accomplish that job is your prerogative.

Hog wash, the simple solution is to force LC_ALL=C when emerging autoconf-2.13 the bug has nothing do with mozilla itself but with autoconf-2.13
Comment 15 SpanKY gentoo-dev 2011-03-15 21:47:06 UTC
the problem is that firefox is using long dead versions of tools.  by willfully making that decision, they get to pick up the pieces when things break because they're using tools that are known to be broken.  their issues have long been fixed in newer versions.  expecting people to back port random (and huge) chunks of codes to old, dead, and unsupported programs is beyond unreasonable.

i never said that hacking around the issue in the firefox ebuild is unacceptable.  you're the ebuild maintainer, so that's your call.

emerging xulrunner works just fine for me with LANG=et_EE.UTF8.  the original reporter should see if this is still an issue for them, and if so, post the output of `qlist -Iv auto{conf,make}`

also, in looking at the xulrunner ebuild, some notes:
 - exporting LANG, LC_ALL, LC_MESSAGES, and LC_CTYPE makes no sense.  simply export LC_ALL=C and that overrides all other locale env vars.
 - this should not be done in pkg_setup as this is a src-only issue.  i'd move the settings to the top of src_prepare().
Comment 16 Priit Laes (IRC: plaes) 2011-03-15 22:42:51 UTC
Uhoh...

SpanKY, the real issue is that autoconf-2.13 is installed to a wrong location when LC_ALL=et_EE and it's "binary" ends up at "/usr/bin/autoconf--program-suffix-2.13".

So basically *every* other program depending on it would fail regardless of locale settings afterwards...
Comment 17 SpanKY gentoo-dev 2011-03-15 23:09:03 UTC
thanks for re-iterating that.  i thought the install issue was with xulrunner itself, not autoconf.

http://sources.gentoo.org/sys-devel/autoconf/autoconf-2.13.ebuild?r1=1.18&r2=1.19