From: Peter Korsgaard <peter@korsgaard.com>
To: "Arnout Vandecappelle (Essensium/Mind)" <arnout@mind.be>
Cc: Matt Weber <matthew.weber@collins.com>, buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH 1/5] package/gnutls: disable library search in /usr/lib
Date: Sat, 28 May 2022 12:54:50 +0200 [thread overview]
Message-ID: <87o7zi9bb9.fsf@dell.be.48ers.dk> (raw)
In-Reply-To: <20220512160116.2011627-1-arnout@mind.be> (Arnout Vandecappelle's message of "Thu, 12 May 2022 18:01:12 +0200")
>>>>> "Arnout" == Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> writes:
> gnutls's configure script has a weird approach where it first searches
> for dependent libraries in the path specified by --prefix, before
> searching in the default search path. Since we set --prefix to /usr,
> and it doesn't take into account DESTDIR (which is anyway not set at
> configure time), that means it will first search /usr/lib before
> searching $(STAGING_DIR)/usr/lib.
> Ideally, this would be fixed in the configure script itself. However,
> the m4 file that does this is pretty complex, it's not immediately clear
> where to add $DESTDIR. In addition it comes from gnulib which is a
> somewhat annoying upstream.
> Therefore, instead, bypass the prefix lookup with
> --without-libfoo-prefix. Note that we could set
> --with-libfoo-prefix=$(STAGING_DIR)/usr (the latter is already done for
> librt and libpthread), but that's pretty pointless -
> --without-libfoo-prefix in fact reverts to what should have been done in
> the first place, i.e. use the toolchain search path.
> Add --without-libfoo-prefix for all options defined in configure (found
> with ./configure --help | grep without-.*-prefix). Most of these are
> only used in tests (e.g. libcrypto) or even not at all (e.g. libiconv),
> but it's fairly hard to discover this and to be sure that they are
> indeed not needed, so better pass all of them.
> Remove the now-redundant arguments for librt and libpthread.
> Add a comment to remind people to revisit these when bumping the
> version.
> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
> Cc: Peter Korsgaard <peter@korsgaard.com>
> ---
> This is for stable, but need to check if the same prefix options exist
> in 3.7.3.
I instead bumped 2022.02.x to 3.7.4 as it contains fixes and applied the
entire series to 2022.02.x, thanks.
--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
prev parent reply other threads:[~2022-05-28 10:54 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-12 16:01 [Buildroot] [PATCH 1/5] package/gnutls: disable library search in /usr/lib Arnout Vandecappelle (Essensium/Mind)
2022-05-12 16:01 ` [Buildroot] [PATCH 2/5] package/gnutls: remove unused libregex dependency Arnout Vandecappelle (Essensium/Mind)
2022-05-12 20:52 ` Yann E. MORIN
2022-05-12 16:01 ` [Buildroot] [PATCH 3/5] package/gnutls: remove redundant --enable-openssl-compatibility Arnout Vandecappelle (Essensium/Mind)
2022-05-12 20:53 ` Yann E. MORIN
2022-05-12 16:01 ` [Buildroot] [PATCH 4/5] package/gnutls: add optional dependency on brotli, zlib, zstd Arnout Vandecappelle (Essensium/Mind)
2022-05-12 20:54 ` Yann E. MORIN
2022-05-12 16:01 ` [Buildroot] [PATCH 5/5] package/gnutls: libunistring is not optional Arnout Vandecappelle (Essensium/Mind)
2022-05-12 20:55 ` Yann E. MORIN
2022-05-12 20:52 ` [Buildroot] [PATCH 1/5] package/gnutls: disable library search in /usr/lib Yann E. MORIN
2022-05-28 10:54 ` Peter Korsgaard [this message]
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=87o7zi9bb9.fsf@dell.be.48ers.dk \
--to=peter@korsgaard.com \
--cc=arnout@mind.be \
--cc=buildroot@buildroot.org \
--cc=matthew.weber@collins.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