public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Richard Biener <richard.guenther@gmail.com>
To: "Arsen Arsenović" <arsen@aarsen.me>
Cc: gcc-patches@gcc.gnu.org, gdb-patches@sourceware.org,
	 binutils@sourceware.org
Subject: Re: [PATCH] gettext: disable install, docs targets, libasprintf, threads
Date: Mon, 4 Dec 2023 14:13:02 +0100	[thread overview]
Message-ID: <CAFiYyc29-NfFw5PA-0FAbGev1tbC5T41fjct_p4Yx2rU6XqdHg@mail.gmail.com> (raw)
In-Reply-To: <20231202141722.1323526-2-arsen@aarsen.me>

On Sat, Dec 2, 2023 at 5:03 PM Arsen Arsenović <arsen@aarsen.me> wrote:
>
> This fixes issues reported by David Edelsohn <dje.gcc@gmail.com>, and by
> Eric Gallager <egallager@gcc.gnu.org>.
>
> ChangeLog:
>
>         * Makefile.def (gettext): Disable (via missing)
>         {install-,}{pdf,html,info,dvi} and TAGS targets.  Set no_install
>         to true.  Add --disable-threads --disable-libasprintf.  Drop the
>         lib_path (as there are no shared libs).
> ---
> Afternoon,
>
> This patch disables various targets and features on the gettext module
> to fix problems reported by David Edelsohn and Eric Gallager in
> https://inbox.sourceware.org/CAGWvnynmWgNjup4cAwSbsy1vw_MJLQqSULwM=kTH_+Lt+_smbg@mail.gmail.com/
> and followups and on IRC, respectively.
>
> The gettext module does not actually require any of these to be usable
> for the purposes of the toolchain, so disabling them seems to be a
> decent workaround.
>
> This seemed to fix the respective issues for both Eric and David,
> though, I could not get GDB to build on AIX with or without this patch
> applied (I needed to disable sim, gdb and gnulib modules).
>
> It is possible I am missing something.  Due to some unfortunate
> circumstances, it's taken more time than anticipated to actually get
> this change tested, and I've had to context swap quite a few bits.  Such
> a process has quite a lot of room for error.
>
> Tested on x86_64-unknown-freebsd13.2.

OK.

>  Makefile.def |  13 +++-
>  Makefile.in  | 202 ++++++++-------------------------------------------
>  [removed regenerated file from the patch below]
>  2 files changed, 40 insertions(+), 175 deletions(-)
>
> diff --git a/Makefile.def b/Makefile.def
> index 792f81447e1b..ba89d46b2495 100644
> --- a/Makefile.def
> +++ b/Makefile.def
> @@ -80,8 +80,17 @@ host_modules= { module= gettext; bootstrap=true; no_install=true;
>                 // need it in some configuratons, which is determined via nontrivial tests.
>                 // Always enabling pic seems to make sense for something tied to
>                 // user-facing output.
> -                extra_configure_flags='--disable-shared --disable-java --disable-csharp --with-pic';
> -                lib_path=intl/.libs; };
> +               extra_configure_flags='--disable-shared --disable-threads --disable-java --disable-csharp --with-pic --disable-libasprintf';
> +               missing= pdf;
> +               missing= html;
> +               missing= info;
> +               missing= dvi;
> +               missing= install-pdf;
> +               missing= install-html;
> +               missing= install-info;
> +               missing= install-dvi;
> +               missing= TAGS;
> +               no_install= true; };
>  host_modules= { module= tcl;
>                  missing=mostlyclean; };
>  host_modules= { module= itcl; };
> diff --git a/Makefile.in b/Makefile.in
> index da2344b3f3dc..3bd7d37e9605 100644
>
> --
> 2.43.0
>

  reply	other threads:[~2023-12-04 13:13 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-02 14:16 Arsen Arsenović
2023-12-04 13:13 ` Richard Biener [this message]
2023-12-04 17:37   ` Arsen Arsenović
2023-12-04 18:44     ` Tom Tromey
2023-12-06 17:33       ` Eric Gallager

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=CAFiYyc29-NfFw5PA-0FAbGev1tbC5T41fjct_p4Yx2rU6XqdHg@mail.gmail.com \
    --to=richard.guenther@gmail.com \
    --cc=arsen@aarsen.me \
    --cc=binutils@sourceware.org \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=gdb-patches@sourceware.org \
    /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).