From: Thomas Petazzoni via buildroot <buildroot@buildroot.org>
To: Simon Rowe <simon.rowe@nutanix.com>
Cc: Alexander Egorenkov <egorenar-dev@posteo.net>, buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH v2 1/2] package/lvm2: enable package with musl
Date: Sun, 26 Mar 2023 23:10:57 +0200 [thread overview]
Message-ID: <20230326231057.505f1c82@windsurf> (raw)
In-Reply-To: <20230323141327.18684-1-simon.rowe@nutanix.com>
On Thu, 23 Mar 2023 14:13:26 +0000
Simon Rowe <simon.rowe@nutanix.com> wrote:
> LVM relies on the glibc-specific behaviour of assigning to the
> standard streams (stdin etc). As a result the package is currently
> disabled when using musl.
>
> Apply patches based on those present in gentoo:
>
> https://github.com/gentoo/gentoo/pull/25883
> https://github.com/gentoo/gentoo/pull/26024
>
> and drop the prohibition on musl in Config.in.
>
> Also, backport a couple of compilation fixes needed build with musl.
>
> Signed-off-by: Simon Rowe <simon.rowe@nutanix.com>
> ---
> ...sible-better-compilation-with-musl-c.patch | 30 +++++++++
> ...m-preallocate-memory-only-with-glibc.patch | 34 ++++++++++
> ...e-freopen-to-reopen-standard-streams.patch | 67 +++++++++++++++++++
> ...e-freopen-to-reopen-standard-streams.patch | 43 ++++++++++++
> package/lvm2/Config.in | 5 --
> 5 files changed, 174 insertions(+), 5 deletions(-)
> create mode 100644 package/lvm2/0001-clang-possible-better-compilation-with-musl-c.patch
> create mode 100644 package/lvm2/0002-mm-preallocate-memory-only-with-glibc.patch
> create mode 100644 package/lvm2/0003-cmdline-use-freopen-to-reopen-standard-streams.patch
> create mode 100644 package/lvm2/0004-log-use-freopen-to-reopen-standard-streams.patch
I've added more references to where the patches were found, and
applied. Thanks!
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
prev parent reply other threads:[~2023-03-26 21:11 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-16 11:36 [Buildroot] [PATCH 1/1] package/lvm2: enable package with musl Simon Rowe
2023-03-19 16:25 ` Thomas Petazzoni via buildroot
2023-03-21 13:39 ` Simon Rowe
2023-03-21 13:54 ` Thomas Petazzoni via buildroot
2023-03-23 12:36 ` Simon Rowe
2023-03-23 13:15 ` Thomas Petazzoni via buildroot
2023-03-23 14:13 ` [Buildroot] [PATCH v2 1/2] " Simon Rowe
2023-03-23 14:13 ` [Buildroot] [PATCH v2 2/2] package/multipath-tools: enable " Simon Rowe
2023-03-26 21:11 ` Thomas Petazzoni via buildroot
2023-03-26 21:10 ` Thomas Petazzoni via buildroot [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=20230326231057.505f1c82@windsurf \
--to=buildroot@buildroot.org \
--cc=egorenar-dev@posteo.net \
--cc=simon.rowe@nutanix.com \
--cc=thomas.petazzoni@bootlin.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