Message ID | 20231102083615.2736151-2-arsen@aarsen.me |
---|---|
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:8f47:0:b0:403:3b70:6f57 with SMTP id j7csp207417vqu; Thu, 2 Nov 2023 01:43:05 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG56d/s4X2jX00bLkHIIykoCO+6ElOGUNtR0vtdrrFAahRyGdj7gYPQWHO58zvLU+Fe8tMY X-Received: by 2002:ad4:5aa1:0:b0:66d:1b4c:e85e with SMTP id u1-20020ad45aa1000000b0066d1b4ce85emr21671303qvg.4.1698914584821; Thu, 02 Nov 2023 01:43:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1698914584; cv=pass; d=google.com; s=arc-20160816; b=GI+UfPRo8UuFkD37XUeL97W/9v9s4HQf5so2W6Lib3tpikTP7jgYq+Bf1WyVHP3lhd OaspiK2v4bq44LZbIK8udFqojOQIU/vsVLRduUU2YVcm6Vc9YiZqeAksHnTYos9iE2a3 UpxJ+9B+R5ogRw54oNloY6+Cvd0FskVLtPMinUCp2iwY76B8X8SKWf4I3fu9EZqPIl8Q Mom5ry1TT/j84sVASrdsfr8/VlCKfe4tBYhOaTr1vWPd2d92bKFrWwWATCtKWSnF8Zfy 1LCwJu47bpbv1VyiUcRGOda9y4sXg6UNdsft2ANvCIaRvRSSRtH5OywYsujDUv6e36OV jmJg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature :arc-filter:dmarc-filter:delivered-to; bh=l4ECAqwJ7QA2xKy0uV/40vjNwtLouFHzNrcBQXFuCtg=; fh=yI9CauSNF2+6cULRNaz4TkUXQMTCg6OrsqEp6ZIcfDY=; b=SHBmQ4vlGMA2FWmdyW7vjjfHL00Z7LusuCBI8Q79qRl3TVQarjliK5KKNAINe7UwuX I5UYPIgo5pEmSirbIzJx6GbVAD89doHfk9Ku1iarxptDkN225afrQQD+lO9e7YUJIZu8 X8ZVeiBRwLsU2sSXrBre8yE7PtXJ/POQGHPHJRw8vY/zEYFz0s6nR7+XVUSfObzVGWjJ K5VAmKDz1emttknGXQ6ok1Qt2FwI+crmvRuu0bIv/hLqq4t42Nd3hheb88mHyTf+cL0W n2iItebOh6u3I7UtFiEVZcEn6D7VVn1tFJyjDWGrDELl1rhoakVXTizp+8f3F3oMuW9i dTOQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@aarsen.me header.s=MBO0001 header.b=o9322CSx; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=aarsen.me Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id dz13-20020ad4588d000000b006516628796bsi4074772qvb.260.2023.11.02.01.43.04 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Nov 2023 01:43:04 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@aarsen.me header.s=MBO0001 header.b=o9322CSx; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=aarsen.me Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id B1C433857732 for <ouuuleilei@gmail.com>; Thu, 2 Nov 2023 08:43:01 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mout-p-202.mailbox.org (mout-p-202.mailbox.org [80.241.56.172]) by sourceware.org (Postfix) with ESMTPS id 8C0F83858004 for <gcc-patches@gcc.gnu.org>; Thu, 2 Nov 2023 08:41:40 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8C0F83858004 Authentication-Results: sourceware.org; dmarc=pass (p=reject dis=none) header.from=aarsen.me Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=aarsen.me ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 8C0F83858004 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=80.241.56.172 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698914511; cv=none; b=CcxOq9j/Lp/ENM0Kt+7fnlwo685nt1+Y8DqegidB6dedaEzaMMssFtlCD7UgmvBEJdPjSWD6py4uQMq3hNFMaDPNMXA1KIpw+biLtj/vHPR+RJZN2jNfyQzoicrDtdEyvtKYMNsjFuYAgg7AYOtDsJvw/+74F3X+c5Wh4XYp+yo= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698914511; c=relaxed/simple; bh=0LWOI+omByPRaGPAbHwsWSKTgSGfFIBBt7e8T+pXdK4=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=sgPd4aGK1P+2wA4IDKv4/KZTlR2Xll9RKaY2jFc+560RhnWB4qTsXc0r+dcE2R0oWJIDegmKrVqEJIImyDsD32gM5DlUc4000xprGrjX7PUqglj5BoSvjhVuZYxiiLNJjKbwELvbxjGTnmYfvNTFvZz5tTH5MQRFiMKOBpkAqwU= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from smtp202.mailbox.org (smtp202.mailbox.org [IPv6:2001:67c:2050:b231:465::202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4SLcmd1mTkz9spy; Thu, 2 Nov 2023 09:41:37 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aarsen.me; s=MBO0001; t=1698914497; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=l4ECAqwJ7QA2xKy0uV/40vjNwtLouFHzNrcBQXFuCtg=; b=o9322CSx9rpIMNCLSdFw3s/9/MXOZ+fuJiIbEjJg15RTQjKPIZ6gNCvqj5YxRo+E4MpmPd pu5XEEVZDU/apOiRwwFf+Fv8vKcjLezUYj5/8CePjCjFw9rEdb1At27kTEc4BoglN/nDUC wHZiraNrVsVjJpFTQ4p2eKNnCvjjVdgKMie2Ud44PLzGO+TMKrczjmTa+JJ4ihXRW2oMLQ 8rtIHgA81o4MxcAzNKvsJybpyDw4hEeknW3gtLT73LM6L071vnGJD3Ti6nY2W7GlmBtNyP c51aTUXeQK5+bjOj+/5rUPksg/wDML9n2ba0uJj7HMv4PuWW8OEg8rzcGsleUw== From: =?utf-8?q?Arsen_Arsenovi=C4=87?= <arsen@aarsen.me> To: gcc-patches@gcc.gnu.org Cc: Iain Sandoe <iain@sandoe.co.uk>, Bruno Haible <bruno@clisp.org>, =?utf-8?q?Arsen_Arsenovi=C4=87?= <arsen@aarsen.me> Subject: [PATCH v3 0/2] Replace intl/ with out-of-tree GNU gettext Date: Thu, 2 Nov 2023 09:27:33 +0100 Message-ID: <20231102083615.2736151-2-arsen@aarsen.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4SLcmd1mTkz9spy X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, KAM_INFOUSMEBIZ, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1781441059807892306 X-GMAIL-MSGID: 1781441059807892306 |
Series |
Replace intl/ with out-of-tree GNU gettext
|
|
Message
Arsen Arsenović
Nov. 2, 2023, 8:27 a.m. UTC
Morning! This patch is a rebase and slight wording tweak of https://inbox.sourceware.org/20231006140501.3370874-1-arsen@aarsen.me Changes since v2: - Elaborate on the libintl requirement on non-glibc hosts, per Andrews request Range diff since v2 (since it seems sufficiently readable here): @@ gcc/doc/install.texi: which lets GCC output diagnostics in languages English. Native Language Support is enabled by default if not doing a canadian cross build. The @option{--disable-nls} option disables NLS@. ++Note that this functionality requires either libintl (provided by GNU ++gettext) or C standard library that contains support for gettext (such ++as the GNU C Library). ++@xref{with-included-gettext,,--with-included-gettext} for more ++information on the conditions required to get gettext support. ++ +@item --with-libintl-prefix=@var{dir} +@itemx --without-libintl-prefix +Searches for libintl in @file{@var{dir}/include} and @@ gcc/doc/install.texi: which lets GCC output diagnostics in languages +Specifies the type of library to search for when looking for libintl. +@var{type} can be one of @code{auto}, @code{static} or @code{shared}. + ++@anchor{with-included-gettext} @item --with-included-gettext OK for trunk? (granted that a regstrap + hand-test for working localization passes - build's ongoing asynchronously) Thanks in advance, have a lovely day. Arsen Arsenović (2): intl: remove, in favor of out-of-tree gettext *: add modern gettext .gitignore | 1 + Makefile.def | 72 +- Makefile.in | 1612 +++---- config/gettext-sister.m4 | 35 +- config/gettext.m4 | 357 +- config/iconv.m4 | 313 +- config/intlmacosx.m4 | 69 + configure | 44 +- configure.ac | 44 +- contrib/download_prerequisites | 2 + contrib/prerequisites.md5 | 1 + contrib/prerequisites.sha512 | 1 + gcc/Makefile.in | 8 +- gcc/aclocal.m4 | 4 + gcc/configure | 2001 +++++++- gcc/doc/install.texi | 72 +- intl/ChangeLog | 306 -- intl/Makefile.in | 264 - intl/README | 21 - intl/VERSION | 1 - intl/aclocal.m4 | 33 - intl/bindtextdom.c | 374 -- intl/config.h.in | 280 -- intl/config.intl.in | 12 - intl/configure | 8288 -------------------------------- intl/configure.ac | 108 - intl/dcgettext.c | 59 - intl/dcigettext.c | 1238 ----- intl/dcngettext.c | 60 - intl/dgettext.c | 60 - intl/dngettext.c | 62 - intl/eval-plural.h | 114 - intl/explodename.c | 192 - intl/finddomain.c | 195 - intl/gettext.c | 64 - intl/gettextP.h | 224 - intl/gmo.h | 148 - intl/hash-string.h | 59 - intl/intl-compat.c | 151 - intl/l10nflist.c | 453 -- intl/libgnuintl.h | 341 -- intl/loadinfo.h | 156 - intl/loadmsgcat.c | 1322 ----- intl/localcharset.c | 398 -- intl/localcharset.h | 42 - intl/locale.alias | 78 - intl/localealias.c | 419 -- intl/localename.c | 772 --- intl/log.c | 104 - intl/ngettext.c | 68 - intl/osdep.c | 24 - intl/plural-config.h | 1 - intl/plural-exp.c | 156 - intl/plural-exp.h | 132 - intl/plural.c | 1540 ------ intl/plural.y | 434 -- intl/relocatable.c | 439 -- intl/relocatable.h | 67 - intl/textdomain.c | 142 - libcpp/aclocal.m4 | 5 + libcpp/configure | 2139 ++++++++- libstdc++-v3/configure | 727 +-- 62 files changed, 5467 insertions(+), 21441 deletions(-) create mode 100644 config/intlmacosx.m4 delete mode 100644 intl/ChangeLog delete mode 100644 intl/Makefile.in delete mode 100644 intl/README delete mode 100644 intl/VERSION delete mode 100644 intl/aclocal.m4 delete mode 100644 intl/bindtextdom.c delete mode 100644 intl/config.h.in delete mode 100644 intl/config.intl.in delete mode 100755 intl/configure delete mode 100644 intl/configure.ac delete mode 100644 intl/dcgettext.c delete mode 100644 intl/dcigettext.c delete mode 100644 intl/dcngettext.c delete mode 100644 intl/dgettext.c delete mode 100644 intl/dngettext.c delete mode 100644 intl/eval-plural.h delete mode 100644 intl/explodename.c delete mode 100644 intl/finddomain.c delete mode 100644 intl/gettext.c delete mode 100644 intl/gettextP.h delete mode 100644 intl/gmo.h delete mode 100644 intl/hash-string.h delete mode 100644 intl/intl-compat.c delete mode 100644 intl/l10nflist.c delete mode 100644 intl/libgnuintl.h delete mode 100644 intl/loadinfo.h delete mode 100644 intl/loadmsgcat.c delete mode 100644 intl/localcharset.c delete mode 100644 intl/localcharset.h delete mode 100644 intl/locale.alias delete mode 100644 intl/localealias.c delete mode 100644 intl/localename.c delete mode 100644 intl/log.c delete mode 100644 intl/ngettext.c delete mode 100644 intl/osdep.c delete mode 100644 intl/plural-config.h delete mode 100644 intl/plural-exp.c delete mode 100644 intl/plural-exp.h delete mode 100644 intl/plural.c delete mode 100644 intl/plural.y delete mode 100644 intl/relocatable.c delete mode 100644 intl/relocatable.h delete mode 100644 intl/textdomain.c