public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: "Arsen Arsenović" <arsen@aarsen.me>
To: Jan Beulich <jbeulich@suse.com>
Cc: Bruno Haible <bruno@clisp.org>, Iain Sandoe <iain@sandoe.co.uk>,
	gdb-patches@sourceware.org, binutils@sourceware.org
Subject: Re: [PATCH v2 1/2] *: add modern gettext support
Date: Tue, 26 Sep 2023 16:44:48 +0200	[thread overview]
Message-ID: <864jjhrm73.fsf@aarsen.me> (raw)
In-Reply-To: <1c90c3ea-0b54-520c-8524-7feb6b88212e@suse.com>

[-- Attachment #1: Type: text/plain, Size: 3206 bytes --]

Hi,

Jan Beulich <jbeulich@suse.com> writes:

> May I please ask that a change like this come with a real description? The
> ChangeLog entries certainly describe - purely mechanically - what is done
> to the files, but to be honest I cannot really read out of the (large)
> patch what the overall behavioral change is.

Hopefully, none.  Building without gettext in-tree or on the system
should result in a working build with no localization, with gettext
in-tree and on the system it should result in the usage of the system
gettext, with gettext on the tree but _not_ on the system, it should
result in a new (static) copy being built and linked into the tools,
with working localization, and with no gettext in tree but in system
(either in libc or in libintl) should result in a localized build using
the system gettext facilities.

The behavior for the in-tree but also on the system case (e.g. building
with gettext in-tree on a GNU system) can be overridden with
--with-included-gettext (which is a configure flag for gettext-runtime,
and was a configure flag for intl/ before that).

I've updated the commit message to add:

> This patch updates gettext.m4 and related .m4 files and adds
> gettext-runtime as a gmp/mpfr/... style host library, allowing newer
> libintl to be used.
> 
> This patch /does not/ add build-time tools required for
> internationalizing (msgfmt et al), instead, it just updates the
> runtime library.  The result should be a distribution that acts
> exactly the same when a copy of gettext is present, and disables
> internationalization otherwise.
> 
> There should be no changes in behavior when gettext is included
> in-tree.  When gettext is not included in tree, nor available on the
> system, the programs will be built without localization.

I hope this clarifies it.

Would you like to see anything else in the description?

Apologies for not adding context initially, I've been finishing this
patch on-and-off for a long time (due to being quite busy), and so, what
context is and isn't present (and what is and isn't known) got lost on
me.

Jan Beulich <jbeulich@suse.com> writes:

> I'm therefore only getting the impression that you make gettext
> 0.22(?) a prereq to building binutils and gdb.

No, it's still optional.  0.22 is only a prerequisite for building
in-tree, otherwise, quite old versions of gettext from the system should
work, too.

> Which in turn may make it impossible to (easily) build either on older
> systems (it would certainly limit [remove?] my ability to test 32-bit
> builds of binutils, as the newer distros I use all only come in 64-bit
> flavors; there may be ways to configure as 32-bit, but past experience
> has shown that such is potentially fragile / only partially
> functioning).

A localized build should work fine on a 32-bit system (ISTR Iain testing
32-bit targets by dropping a copy of gettext in-tree, but don't quote me
on that).  A build of binutils or gdb (or gcc, for that matter) which
has a gettext/ tree included in the toplevel should behave as it does
today.

In any case, non-localized builds should always work.
-- 
Arsen Arsenović

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 381 bytes --]

  parent reply	other threads:[~2023-09-26 15:25 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-26  0:17 [PATCH v2 0/2] Replace intl/ with out-of-tree GNU gettext Arsen Arsenović
2023-09-26  0:17 ` [PATCH v2 1/2] *: add modern gettext support Arsen Arsenović
2023-09-26  2:12   ` Kevin Buettner
2023-09-26  7:03   ` Jan Beulich
2023-09-26  7:54     ` Iain Sandoe
2023-09-26 14:44     ` Arsen Arsenović [this message]
2023-09-27  7:11       ` Jan Beulich
2023-09-27 13:06         ` Arsen Arsenović
2023-09-27 15:19         ` Nick Clifton
2023-09-27 17:43           ` Arsen Arsenović
2023-09-28  9:43             ` Nick Clifton
2023-09-29 15:58       ` Bruno Haible
2023-09-29 16:27         ` Arsen Arsenović
2023-11-20 16:42   ` Kévin Le Gouguec
2023-11-20 20:30     ` Arsen Arsenović
2023-11-20 21:28       ` Bruno Haible
2023-09-26  0:17 ` [PATCH v2 2/2] *: suppress xgettext 0.22 charset name error Arsen Arsenović
2023-09-27 15:21   ` Nick Clifton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=864jjhrm73.fsf@aarsen.me \
    --to=arsen@aarsen.me \
    --cc=binutils@sourceware.org \
    --cc=bruno@clisp.org \
    --cc=gdb-patches@sourceware.org \
    --cc=iain@sandoe.co.uk \
    --cc=jbeulich@suse.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).