Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 946128 - mail-client/alpine-2.26-r5: eautoreconf fails with sys-devel/gettext-0.23 (Failed running aclocal!)
Summary: mail-client/alpine-2.26-r5: eautoreconf fails with sys-devel/gettext-0.23 (Fa...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Holger Hoffstätte
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: 946159
  Show dependency tree
 
Reported: 2024-12-08 21:06 UTC by Toralf Förster
Modified: 2025-02-08 02:19 UTC (History)
4 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,19.30 KB, text/plain)
2024-12-08 21:06 UTC, Toralf Förster
Details
emerge-history.txt.xz (emerge-history.txt.xz,71.81 KB, application/x-xz)
2024-12-08 21:06 UTC, Toralf Förster
Details
environment (environment,97.05 KB, text/plain)
2024-12-08 21:06 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.21 KB, application/x-xz)
2024-12-08 21:06 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,38.67 KB, application/x-xz)
2024-12-08 21:06 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,556.73 KB, application/x-xz)
2024-12-08 21:06 UTC, Toralf Förster
Details
mail-client:alpine-2.26-r5:20241208-200519.log (mail-client:alpine-2.26-r5:20241208-200519.log,4.90 KB, text/plain)
2024-12-08 21:06 UTC, Toralf Förster
Details
qlist-info.txt.xz (qlist-info.txt.xz,77.09 KB, application/x-xz)
2024-12-08 21:06 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,23.41 KB, application/x-xz)
2024-12-08 21:06 UTC, Toralf Förster
Details
aclocal.out log (aclocal.out,1.41 KB, text/plain)
2024-12-09 09:19 UTC, Holger Hoffstätte
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2024-12-08 21:06:28 UTC
 [ ok ]
 * Running 'libtoolize --install --copy --force --automake' ...
 [ ok ]
 * Running 'aclocal --install -I m4 --system-acdir=/var/tmp/portage/mail-client/alpine-2.26-r5/temp/aclocal' ...
 [ !! ]

 * Failed running 'aclocal'!
 * 
 * Include in your bug report the contents of:

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0-20241201-015002

  UNMASKED:
  <sys-devel/gcc-15.0.9999:15

  The attached etc.portage.tar.xz has all details.
  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-15 *
clang version 19.1.5
llvm-config: 19.1.5
Python 3.12.7
go version go1.23.3 linux/amd64
Available Ruby profiles:
  (none found)
Available Rust versions:
  [1]   rust-bin-1.71.1
  [2]   rust-bin-1.81.0
  [3]   rust-bin-1.82.0
  [4]   rust-bin-1.83.0
  [5]   rust-1.83.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.25_p9 [openjdk-bin-11]
2)	Eclipse Temurin JDK 17.0.13_p11 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.5_p11 [openjdk-bin-21]
4)	Eclipse Temurin JDK 8.432_p06 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-11 
  [3]   openjdk-bin-17 
  [4]   openjdk-bin-21  system-vm


  HEAD of ::gentoo
commit e521ea19bd814ce601ea124e5de14fdf2146bcb9
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sun Dec 8 19:03:22 2024 +0000

    2024-12-08 19:03:21 UTC

emerge -qpvO =mail-client/alpine-2.26-r5
[ebuild  N    ] mail-client/alpine-2.26-r5  USE="chappa ipv6 nls ssl -kerberos -ldap -onlyalpine -passfile -smime"
Comment 1 Toralf Förster gentoo-dev 2024-12-08 21:06:29 UTC
Created attachment 913600 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-12-08 21:06:30 UTC
Created attachment 913601 [details]
emerge-history.txt.xz
Comment 3 Toralf Förster gentoo-dev 2024-12-08 21:06:31 UTC
Created attachment 913602 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2024-12-08 21:06:32 UTC
Created attachment 913603 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2024-12-08 21:06:33 UTC
Created attachment 913604 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-12-08 21:06:35 UTC
Created attachment 913605 [details]
logs.tar.xz
Comment 7 Toralf Förster gentoo-dev 2024-12-08 21:06:36 UTC
Created attachment 913606 [details]
mail-client:alpine-2.26-r5:20241208-200519.log
Comment 8 Toralf Förster gentoo-dev 2024-12-08 21:06:37 UTC
Created attachment 913607 [details]
qlist-info.txt.xz
Comment 9 Toralf Förster gentoo-dev 2024-12-08 21:06:38 UTC
Created attachment 913608 [details]
temp.tar.xz
Comment 10 Holger Hoffstätte 2024-12-08 22:24:24 UTC
We need /var/tmp/portage/mail-client/alpine-2.26-r5/temp/aclocal.out, otherwise we cannot see what's going on.
Comment 11 Holger Hoffstätte 2024-12-09 09:19:48 UTC
Created attachment 913618 [details]
aclocal.out log

For some reason this now also happens with gcc-14, not sure what is going on. Something else must have broken this since it worked fine a few days ago, regardless of compiler.
Comment 12 Holger Hoffstätte 2024-12-09 09:31:49 UTC
Caused by gettext-0.23. Downgrading to 0.22.5-r1 makes it work again.
Comment 13 Toralf Förster gentoo-dev 2024-12-09 09:39:26 UTC
(In reply to Holger Hoffstätte from comment #10)
> We need /var/tmp/portage/mail-client/alpine-2.26-r5/temp/aclocal.out,
> otherwise we cannot see what's going on.

Please see atatchments ;)
e.g.  temp.tar.xz (temp.tar.xz,23.41 KB, application/x-xz)
Comment 14 Holger Hoffstätte 2024-12-09 16:41:46 UTC
Further findings:

1) it also happens when 0.23 is built with USE=nls & without the no-nls patch
2) it also breaks alpine-2.26-r4, so it's not a recent alpine regression
Comment 15 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-12-10 02:47:38 UTC
Any upstream bug report should definitely involve a wget command for alpine, and then autoreconf or similar, and then an effort to break autoreconf down into subcommands (even if you can't then analyse it much further).
Comment 16 Holger Hoffstätte 2025-01-25 20:13:18 UTC
The autoreconf failure goes away if I remove /usr/share/aclocal/intlmacosx.m4, so that's something.
Comment 17 Holger Hoffstätte 2025-01-25 20:23:33 UTC
(In reply to Holger Hoffstätte from comment #16)
> The autoreconf failure goes away if I remove
> /usr/share/aclocal/intlmacosx.m4, so that's something.

There is also no meaningful difference between the 0.22 and 0.23 versions of htis file, so that's not it either:

diff -up 0.22-intlmacosx.m4 0.23-intlmacosx.m4
--- 0.22-intlmacosx.m4	2025-01-25 21:14:01.938024671 +0100
+++ 0.23-intlmacosx.m4	2025-01-25 21:17:44.631218567 +0100
@@ -1,8 +1,10 @@
-# intlmacosx.m4 serial 10 (gettext-0.23)
+# intlmacosx.m4
+# serial 10 (gettext-0.23)
 dnl Copyright (C) 2004-2014, 2016, 2019-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
 dnl with or without modifications, as long as this notice is preserved.
+dnl This file is offered as-is, without any warranty.
 dnl
 dnl This file can be used in projects which are not available under
 dnl the GNU General Public License or the GNU Lesser General Public

Replacing the 0.23 version with the 0.22 one fixes nothing, so apparently the mere existence of this file is OK with 0.22 but breaks with 0.23.
Comment 18 Holger Hoffstätte 2025-01-26 11:24:59 UTC
(In reply to Holger Hoffstätte from comment #16)
> The autoreconf failure goes away if I remove
> /usr/share/aclocal/intlmacosx.m4, so that's something.

The same success can be had by either:
- disabling the call to gt_INTL_MACOSX in /usr/share/aclocal/gettetx.m4
- copying /usr/share/aclocal/intlmacosx.m4 into alpine's m4 directory

before running autoreconf.
Comment 19 Holger Hoffstätte 2025-01-26 12:45:34 UTC
So apparently the problem is that:

- alpine's gettext macro goop is too old
- alpine's aclocal.m4 includes m4/gettext.m4
- autoreconf will try to run all the macro goop, including gt_INTL_MACOSX
- for some reason this goes recursively splat when intlmacosx.m4 is missing or too old (automake should install all missing files first instead of doing so lazily & recursively while processing the macros, WTF)
 - updating the gettext macro goop is normally done with "gettextize" but this cannot be done non-interactively because fuck me
- instead the noninteractive tool "autopoint" is meant to be used, which looks at configure.in or configure.ac, checks for AM_GNU_GETTEXT_VERSION and updates files in the project as necessary
- we can sed the AM_GNU_GETTEXT_VERSION to our gettext version, which tells autopoint to install the up-to-date gettext macro goop
- eautoreconf automatically calls autopoint, so now everything succeeds

\o/
Comment 20 Holger Hoffstätte 2025-01-26 15:11:36 UTC
I just had an email discussion with the alpine maintainer for Debian, who suggested that an alternative fix would be to set

  AM_GNU_GETTEXT_REQUIRE_VERSION([<some version>]).

While that may convey the intent more canonically, it makes exactly no difference for running autopoint; the result is the same.
So let's just keep the current patch.

Thanks to Eli Schwartz's commit:
https://gitweb.gentoo.org/repo/gentoo.git/commit/app-text/spellutils?id=48474b54b9c34c9d16b53a2cdb9d731813cecf0f
for leading the way.
Comment 21 Larry the Git Cow gentoo-dev 2025-02-08 02:19:09 UTC
The bug has been closed via the following commit(s):

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

commit c50e1538afd5f9a98c6519c678b12c45a5f76a72
Author:     Holger Hoffstätte <holger@applied-asynchrony.com>
AuthorDate: 2025-01-26 13:05:31 +0000
Commit:     Yixun Lan <dlan@gentoo.org>
CommitDate: 2025-02-08 02:08:42 +0000

    mail-client/alpine: fix eautoreconf with gettext-0.23
    
    Closes: https://bugs.gentoo.org/946128
    Signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com>
    Signed-off-by: Yixun Lan <dlan@gentoo.org>

 mail-client/alpine/alpine-2.26-r5.ebuild | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)