public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* Maintainer mode: wrong gettext version?
@ 2022-09-08  4:04 Tsukasa OI
  2022-09-08  7:21 ` Andreas Schwab
  2022-09-08  9:05 ` Nick Clifton
  0 siblings, 2 replies; 4+ messages in thread
From: Tsukasa OI @ 2022-09-08  4:04 UTC (permalink / raw)
  To: Binutils

Hello all (especially maintainers),

I was testing the maintainer mode to dig down build pipeline on
Binutils/GDB and found something strange.

According to README-maintainer-mode, enabling maintainer mode requires
following versions:

-   autoconf 2.69
-   automake 1.15.1
-   libtool 2.2.6
-   gettext 0.14.5

I tried to use the maintainer mode with Ubuntu 22.04.1 LTS (default
toolchain) with "/opt/maint-mode" to install older versions of the
software above.

Autoconf, Automake and Libtool were fine.  But I don't think Gettext
0.14.5 is the correct version.  Here's some proofs:

-   On "intl" and "libiberty", "aclocal.m4" does not have a macro
   "AC_ISC_POSIX" which is required by gettext < 0.15.
    If the build files are really built with gettext 0.14.5,
    files "{libiberty,intl}/{configure,aclocal.m4}" must have some
    traces of "AC_ISC_POSIX" but there's none in the master branch.
    That indicates that the true version of gettext is >= 0.15.
-   On gettext < 0.16, rebuilding the message files fail because
    msgfmt cannot parse lines starting with "#~|" (this syntax got
    acceptable since gettext >= 0.16).
    That suggests that the true version of gettext is >= 0.16.

And the following fact narrows the possibility even further:

-   On gettext >= 0.17, regenerated "gnulib/{aclocal.m4,configure}"
    result in different files (macros including "AM_PO_SUBDIRS" are
    copied to "gnulib/aclocal.m4").

Unless I miss something, I must conclude that the correct version of
gettext is either:

-   0.16
-   0.16.1

note: this assumes that we have consistent gettext version when...
-   regenerating ALL the build files and
-   building with the maintainer mode

Did I miss something?  Or do we need to change README-maintainer-mode to
update the version of gettext?

Thanks,
Tsukasa

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Maintainer mode: wrong gettext version?
  2022-09-08  4:04 Maintainer mode: wrong gettext version? Tsukasa OI
@ 2022-09-08  7:21 ` Andreas Schwab
  2022-09-08  7:24   ` Andreas Schwab
  2022-09-08  9:05 ` Nick Clifton
  1 sibling, 1 reply; 4+ messages in thread
From: Andreas Schwab @ 2022-09-08  7:21 UTC (permalink / raw)
  To: Tsukasa OI via Binutils; +Cc: Tsukasa OI

On Sep 08 2022, Tsukasa OI via Binutils wrote:

> Autoconf, Automake and Libtool were fine.  But I don't think Gettext
> 0.14.5 is the correct version.  Here's some proofs:
>
> -   On "intl" and "libiberty", "aclocal.m4" does not have a macro
>    "AC_ISC_POSIX" which is required by gettext < 0.15.

Note that commit 88fa57d7821 replaced the gettextize generated file with
an aclocal generated file, with the former contents moved to various
files in config.

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Maintainer mode: wrong gettext version?
  2022-09-08  7:21 ` Andreas Schwab
@ 2022-09-08  7:24   ` Andreas Schwab
  0 siblings, 0 replies; 4+ messages in thread
From: Andreas Schwab @ 2022-09-08  7:24 UTC (permalink / raw)
  To: Tsukasa OI via Binutils; +Cc: Tsukasa OI

On Sep 08 2022, Andreas Schwab wrote:

> On Sep 08 2022, Tsukasa OI via Binutils wrote:
>
>> Autoconf, Automake and Libtool were fine.  But I don't think Gettext
>> 0.14.5 is the correct version.  Here's some proofs:
>>
>> -   On "intl" and "libiberty", "aclocal.m4" does not have a macro
>>    "AC_ISC_POSIX" which is required by gettext < 0.15.
>
> Note that commit 88fa57d7821 replaced the gettextize generated file with

Make that commit bf070c84b1c (88fa57d7821 is the originating commit in
the GCC tree).

> an aclocal generated file, with the former contents moved to various
> files in config.

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Maintainer mode: wrong gettext version?
  2022-09-08  4:04 Maintainer mode: wrong gettext version? Tsukasa OI
  2022-09-08  7:21 ` Andreas Schwab
@ 2022-09-08  9:05 ` Nick Clifton
  1 sibling, 0 replies; 4+ messages in thread
From: Nick Clifton @ 2022-09-08  9:05 UTC (permalink / raw)
  To: Tsukasa OI, Binutils

Hi Tsukasa,

> -   gettext 0.14.5

> Unless I miss something, I must conclude that the correct version of
> gettext is either:
> 
> -   0.16
> -   0.16.1

This would not surprise me.  Maintainner mode builds do tend to be quite
sensitive to the versions of autoconf, automake and libtool installed, but
less so to the version of gettext.

I have taken your suggestion and updated the README-maintainer-mode to
indicate that gettext 0.16.1 is needed.

Cheers
   Nick


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-09-08  9:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-08  4:04 Maintainer mode: wrong gettext version? Tsukasa OI
2022-09-08  7:21 ` Andreas Schwab
2022-09-08  7:24   ` Andreas Schwab
2022-09-08  9:05 ` Nick Clifton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).