Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 785760 - www-client/w3m-0.5.3_p20210102 error: gettext infrastructure mismatch
Summary: www-client/w3m-0.5.3_p20210102 error: gettext infrastructure mismatch
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal with 2 votes (vote)
Assignee: CJK Team
URL:
Whiteboard:
Keywords: PullRequest
: 785802 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-04-26 02:54 UTC by Austin Kilgore
Modified: 2021-04-27 07:27 UTC (History)
9 users (show)

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


Attachments
build.log (build.log,24.86 KB, text/x-log)
2021-04-26 02:54 UTC, Austin Kilgore
Details
build patch (infrastructure-mismatch.patch,265 bytes, patch)
2021-04-26 06:45 UTC, SpikyAtLinux
Details | Diff
w3m-gettext.patch (w3m-gettext.patch,567 bytes, patch)
2021-04-26 10:51 UTC, David Seifert
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Austin Kilgore 2021-04-26 02:54:18 UTC
Created attachment 702543 [details]
build.log

Portage 3.0.18 (python 3.8.9-final-0, default/linux/amd64/17.1/no-multilib, gcc-10.3.0, glibc-2.33, 5.11.16-gentoo x86_64)
=================================================================
System uname: Linux-5.11.16-gentoo-x86_64-AMD_Ryzen_7_3700U_with_Radeon_Vega_Mobile_Gfx-with-glibc2.2.5
KiB Mem:    34890028 total,  30952980 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Sun, 25 Apr 2021 23:15:01 +0000
Head commit of repository gentoo: 237b5c3a3570259700d80c9ac6fc55bdf6ad81c0
sh bash 5.1_p4
ld GNU ld (Gentoo 2.36.1 p3) 2.36.1
app-shells/bash:          5.1_p4::gentoo
dev-lang/perl:            5.32.1::gentoo
dev-lang/python:          2.7.18_p8::gentoo, 3.8.9::gentoo, 3.9.4::gentoo
dev-lang/rust:            1.51.0-r2::gentoo
dev-util/cmake:           3.20.1::gentoo
sys-apps/baselayout:      2.7-r2::gentoo
sys-apps/openrc:          0.42.1-r1::gentoo
sys-apps/sandbox:         2.23::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.16.3-r1::gentoo
sys-devel/binutils:       2.36.1-r1::gentoo
sys-devel/gcc:            10.3.0::gentoo
sys-devel/gcc-config:     2.4::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.11::gentoo (virtual/os-headers)
sys-libs/glibc:           2.33::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.us.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts: 

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O3 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O3 -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS=" --with-bdeps y --complete-graph y"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-march=native -O3 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs candy config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O3 -pipe"
GENTOO_MIRRORS="https://gentoo.osuosl.org/ http://gentoo.osuosl.org/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="10bit 12bit 16k_voice 24-bit-color 24bpp 256-color 7z 7za 7zip 8bit X aac aacplus aacs aalib acl acpi activities adns airdrop-ng airgraph-ng alsa alsa-plugins amd64 aom asm async atm bash-completion bdplus berkdb bluetooth bluray bzip2 cdda cddb cdr cjk cli colord crypt css cups curl cycles dav1d dbus declarative dri dri3 drm dts dvb dvd dvdr egl elogind encode exif fbcon ffmpeg flac fontconfig fortran frei0r ftp fuse gdbm gimp git gles2 gold gzip iconv icu imlib ipv6 jit jpeg jpeg2k kde kipi kwallet lame libglvnd libsamplerate libtirpc lm-sensors lto lz4 lzma lzo lzo2 mad matroska minizip mono mp3 mp4 mpeg mpv mtp ncurses networkmanager nls nptl ogg openal opengl openimageio openmp otr pam pcre pcre16 pda pdf pgo phonon plasma plotutils png policykit pulseaudio qml qt5 rar raw readline scanner scripttools sdl seccomp semantic-desktop slang smp sound speex spell split-usr ssl svc svg svg2 szip taglib tcpd text threads tiff truetype udev udisks unicode upower usb v4l v4l2 v4lutils vaapi vdpau vim-syntax vkd3d vlc vorbis vulkan wavpack wayland webp widgets wifi x264 x265 xattr xinerama xml xscreensaver xv xvid zip zlib zsh-completion zstd" ABI_X86="64" ADA_TARGET="gnat_2018" 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" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="AMDGPU" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_8" PYTHON_TARGETS="python3_8" RUBY_TARGETS="ruby26" USERLAND="GNU" VIDEO_CARDS="amdgpu radeonsi radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS
Comment 1 Ulrich Müller gentoo-dev 2021-04-26 05:27:53 UTC
I am seeing this too, it fails in src_compile. The key error message is:

make[1]: Entering directory '/tmp/portage/www-client/w3m-0.5.3_p20210102/work/w3m-0.5.3-git20210102/po'
*** error: gettext infrastructure mismatch: using a Makefile.in.in from gettext version 0.18 but the autoconf macros are from gettext version 0.20
make[1]: *** [Makefile:149: check-macro-version] Error 1
Comment 2 Ulrich Müller gentoo-dev 2021-04-26 06:26:33 UTC
Looks like the problem is a mismatch of the gettext version for po/Makefile.in.in. Adding the following line to configure.ac fixes it here:

AM_GNU_GETTEXT_VERSION([0.18])
Comment 3 Ulrich Müller gentoo-dev 2021-04-26 06:38:51 UTC
BTW, autoheader fails as well (because of missing templates):

 * Running eautoreconf in '/tmp/portage/www-client/w3m-0.5.3_p20210102/work/w3m-0.5.3-git20210102' ...
 * Running 'aclocal -I m4' ...                                           [ ok ]
 * Running 'autoconf -I m4 --force' ...                                  [ ok ]
 * Running 'autoheader -I m4' ...                                        [ !! ]
 * Running elibtoolize in: w3m-0.5.3-git20210102/

Maybe the least painful fix would be to just run eautoconf instead of eautoreconf? Then the codeset.m4 macro won't be needed either.
Comment 4 SpikyAtLinux 2021-04-26 06:45:40 UTC
Created attachment 702549 [details, diff]
build patch
Comment 5 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2021-04-26 07:00:11 UTC
(In reply to Ulrich Müller from comment #3)
> BTW, autoheader fails as well (because of missing templates):
> 
>  * Running eautoreconf in
> '/tmp/portage/www-client/w3m-0.5.3_p20210102/work/w3m-0.5.3-git20210102' ...
>  * Running 'aclocal -I m4' ...                                           [
> ok ]
>  * Running 'autoconf -I m4 --force' ...                                  [
> ok ]
>  * Running 'autoheader -I m4' ...                                        [
> !! ]
>  * Running elibtoolize in: w3m-0.5.3-git20210102/
> 
> Maybe the least painful fix would be to just run eautoconf instead of
> eautoreconf? Then the codeset.m4 macro won't be needed either.

+1

replacing eautoreconf with eautoconf fixed it in the least painful way for me.
Comment 6 Marco Scardovi (scardracs) 2021-04-26 07:10:03 UTC
I have added a sed and released a new pr. This should fix the problem with eautoreconf. I'm sorry for bad things happened here
Comment 7 Ulrich Müller gentoo-dev 2021-04-26 07:36:56 UTC
(In reply to Marco Scardovi from comment #6)
> I have added a sed and released a new pr. This should fix the problem with
> eautoreconf. I'm sorry for bad things happened here

Why would you want to run eautoreconf, in the first place? The package uses autoconf only, but neither automake nor libtool.
Comment 8 Marco Scardovi (scardracs) 2021-04-26 07:49:37 UTC
(In reply to Ulrich Müller from comment #7)
> Why would you want to run eautoreconf, in the first place? The package uses
> autoconf only, but neither automake nor libtool.

sam asked me to change it
Comment 9 Matthew Smith gentoo-dev 2021-04-26 08:45:04 UTC
*** Bug 785802 has been marked as a duplicate of this bug. ***
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-04-26 09:15:52 UTC
(In reply to Marco Scardovi from comment #8)
> (In reply to Ulrich Müller from comment #7)
> > Why would you want to run eautoreconf, in the first place? The package uses
> > autoconf only, but neither automake nor libtool.
> 
> sam asked me to change it

So, the reason is that:
- where there isn't automake, it should be a noop anyway
- autoconf was obviously chosen here because autoreconf doesn't work - it's a bug which needs fixing by itself.

For now, I'll change back to eautoconf, but as I've just woken up, I can't tell you why I didn't notice this last night (apologies!).
Comment 11 Marco Scardovi (scardracs) 2021-04-26 09:26:02 UTC
(In reply to Sam James from comment #10)
> (In reply to Marco Scardovi from comment #8)
> > (In reply to Ulrich Müller from comment #7)
> > > Why would you want to run eautoreconf, in the first place? The package uses
> > > autoconf only, but neither automake nor libtool.
> > 
> > sam asked me to change it
> 
> So, the reason is that:
> - where there isn't automake, it should be a noop anyway
> - autoconf was obviously chosen here because autoreconf doesn't work - it's
> a bug which needs fixing by itself.
> 
> For now, I'll change back to eautoconf, but as I've just woken up, I can't
> tell you why I didn't notice this last night (apologies!).

I have already released a PR for it, please tell me if it's ok for you when you have time :)
Comment 12 Ulrich Müller gentoo-dev 2021-04-26 09:46:38 UTC
(In reply to Sam James from comment #10)
> - autoconf was obviously chosen here because autoreconf doesn't work - it's
> a bug which needs fixing by itself.

Yes, but it should be reported and fixed upstream. Adding distro specific patches will most likely require additional maintenance in the future. (For example, fixing the autoheader issue would mean updating _all_ AC_DEFINEs in configure.ac, and there are many of them.)

eautoconf just works, or are there any known problems?
Comment 13 Larry the Git Cow gentoo-dev 2021-04-26 09:57:49 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8003dbb063a24b67ad723b6b153617b24ab7d697

commit 8003dbb063a24b67ad723b6b153617b24ab7d697
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-04-26 09:57:32 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-04-26 09:57:32 +0000

    www-client/w3m: revert back to eautoconf for now
    
    Earlier, we switched to eautoreconf because:
    - it's a noop when *.am is missing anyway
    - fixing the build system is preferable
    - this allows patches to be added without
    first having to fix an unrelated issue first
    
    Let's roll back to eautoconf for now because
    of a gettext mismatch.
    
    Fixes: 50c53cbcbe84fe1473244e2bd6ad5e4533601bac
    Fixes: 5d3abfa9559c11bd9ac3087a9bf3debd51cf0c30
    Bug: https://bugs.gentoo.org/778482
    Closes: https://bugs.gentoo.org/785760
    Signed-off-by: Sam James <sam@gentoo.org>

 www-client/w3m/w3m-0.5.3_p20210102.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 14 David Seifert gentoo-dev 2021-04-26 10:51:43 UTC
Created attachment 702612 [details, diff]
w3m-gettext.patch

This is a better patch that is robust to the "mkdir_p" still being used in gettext.
Comment 15 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-04-26 13:09:53 UTC
(In reply to Ulrich Müller from comment #12)
> (In reply to Sam James from comment #10)
> > - autoconf was obviously chosen here because autoreconf doesn't work - it's
> > a bug which needs fixing by itself.
> 
> Yes, but it should be reported and fixed upstream. Adding distro specific
> patches will most likely require additional maintenance in the future. (For
> example, fixing the autoheader issue would mean updating _all_ AC_DEFINEs in
> configure.ac, and there are many of them.)
> 

Of course, but generally, you end up fixing a problem in the distro first, when e.g. an incompatibility arises, possibly with new gettext.
Comment 16 Larry the Git Cow gentoo-dev 2021-04-26 14:14:24 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a2b0043db4a6af646e549feb68b50c3dccff7708

commit a2b0043db4a6af646e549feb68b50c3dccff7708
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-04-26 11:48:36 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-04-26 12:55:33 +0000

    www-client/w3m: fix gettext with eautoreconf
    
    Thanks-to: David Seifert <soap@gentoo.org>
    Bug: https://bugs.gentoo.org/785760
    Signed-off-by: Sam James <sam@gentoo.org>

 ...w3m-0.5.3_p20210102-fix-configure-gettext.patch | 26 ++++++++++++++++++++++
 www-client/w3m/w3m-0.5.3_p20210102.ebuild          |  6 ++---
 2 files changed, 29 insertions(+), 3 deletions(-)
Comment 17 Ulrich Müller gentoo-dev 2021-04-26 14:48:15 UTC
This has reintroduced the autoheader issue, though:

 * Running 'autoheader -I m4' ...                                        [ !! ]
Comment 18 Ulrich Müller gentoo-dev 2021-04-26 14:53:34 UTC
> This has reintroduced the autoheader issue, though:

I'd suggest setting AT_NOEAUTOHEADER="yes" as a workaround.
Comment 19 Larry the Git Cow gentoo-dev 2021-04-27 07:27:05 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bb7ce6a2fdee051faeef6cb236d8791c62973a1a

commit bb7ce6a2fdee051faeef6cb236d8791c62973a1a
Author:     Ulrich Müller <ulm@gentoo.org>
AuthorDate: 2021-04-26 15:06:34 +0000
Commit:     Ulrich Müller <ulm@gentoo.org>
CommitDate: 2021-04-27 07:25:45 +0000

    www-client/w3m: Don't run autoheader because it fails
    
    Bug: https://bugs.gentoo.org/785760
    Package-Manager: Portage-3.0.18, Repoman-3.0.3
    Signed-off-by: Ulrich Müller <ulm@gentoo.org>

 www-client/w3m/w3m-0.5.3_p20210102.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)