From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-cluster/charliecloud/files/, sys-cluster/charliecloud/
Date: Tue, 21 Dec 2021 01:56:15 +0000 (UTC) [thread overview]
Message-ID: <1640051664.5dfd04eec175ce8a022c6adb8c287b89b81f0abe.sam@gentoo> (raw)
commit: 5dfd04eec175ce8a022c6adb8c287b89b81f0abe
Author: Oliver Freyermuth <o.freyermuth <AT> googlemail <DOT> com>
AuthorDate: Sun Dec 19 15:37:34 2021 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Dec 21 01:54:24 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5dfd04ee
sys-cluster/charliecloud: Add argp compat on musl systems.
Patch also submitted to upstream:
https://github.com/hpc/charliecloud/pull/1258
Closes: https://bugs.gentoo.org/829607
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Oliver Freyermuth <o.freyermuth <AT> googlemail.com>
Closes: https://github.com/gentoo/gentoo/pull/23420
Signed-off-by: Sam James <sam <AT> gentoo.org>
sys-cluster/charliecloud/charliecloud-0.24.ebuild | 5 ++-
sys-cluster/charliecloud/charliecloud-0.25.ebuild | 8 +++-
sys-cluster/charliecloud/charliecloud-9999.ebuild | 4 +-
.../files/charliecloud-0.24-musl-argp.patch | 43 ++++++++++++++++++++++
4 files changed, 57 insertions(+), 3 deletions(-)
diff --git a/sys-cluster/charliecloud/charliecloud-0.24.ebuild b/sys-cluster/charliecloud/charliecloud-0.24.ebuild
index ad6833306501..951128bbb6df 100644
--- a/sys-cluster/charliecloud/charliecloud-0.24.ebuild
+++ b/sys-cluster/charliecloud/charliecloud-0.24.ebuild
@@ -30,7 +30,9 @@ RESTRICT="test"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
-RDEPEND="${PYTHON_DEPS}"
+RDEPEND="${PYTHON_DEPS}
+ elibc_musl? ( sys-libs/argp-standalone )
+"
DEPEND="
ch-image? (
$(python_gen_cond_dep '
@@ -48,6 +50,7 @@ DEPEND="
PATCHES=(
"${FILESDIR}"/${PN}-0.24-dash.patch
+ "${FILESDIR}"/${PN}-0.24-musl-argp.patch
)
src_prepare() {
diff --git a/sys-cluster/charliecloud/charliecloud-0.25.ebuild b/sys-cluster/charliecloud/charliecloud-0.25.ebuild
index 1d092db33c89..f54e49ec426d 100644
--- a/sys-cluster/charliecloud/charliecloud-0.25.ebuild
+++ b/sys-cluster/charliecloud/charliecloud-0.25.ebuild
@@ -30,7 +30,9 @@ RESTRICT="test"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
-RDEPEND="${PYTHON_DEPS}"
+RDEPEND="${PYTHON_DEPS}
+ elibc_musl? ( sys-libs/argp-standalone )
+"
DEPEND="
ch-image? (
$(python_gen_cond_dep '
@@ -46,6 +48,10 @@ DEPEND="
net-misc/rsync
)"
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.24-musl-argp.patch
+)
+
src_prepare() {
default
eautoreconf
diff --git a/sys-cluster/charliecloud/charliecloud-9999.ebuild b/sys-cluster/charliecloud/charliecloud-9999.ebuild
index 1d092db33c89..8a596e2fb8a1 100644
--- a/sys-cluster/charliecloud/charliecloud-9999.ebuild
+++ b/sys-cluster/charliecloud/charliecloud-9999.ebuild
@@ -30,7 +30,9 @@ RESTRICT="test"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
-RDEPEND="${PYTHON_DEPS}"
+RDEPEND="${PYTHON_DEPS}
+ elibc_musl? ( sys-libs/argp-standalone )
+"
DEPEND="
ch-image? (
$(python_gen_cond_dep '
diff --git a/sys-cluster/charliecloud/files/charliecloud-0.24-musl-argp.patch b/sys-cluster/charliecloud/files/charliecloud-0.24-musl-argp.patch
new file mode 100644
index 000000000000..71817111cdcd
--- /dev/null
+++ b/sys-cluster/charliecloud/files/charliecloud-0.24-musl-argp.patch
@@ -0,0 +1,43 @@
+From 1832d5ff905b16435efa64e458e2ca2f656f0ab5 Mon Sep 17 00:00:00 2001
+From: Oliver Freyermuth <o.freyermuth@googlemail.com>
+Date: Sun, 19 Dec 2021 16:30:27 +0100
+Subject: [PATCH] configure: Add musl compatibility (external argp).
+
+---
+ configure.ac | 20 ++++++++++++++++++++
+ 1 file changed, 20 insertions(+)
+
+diff --git a/configure.ac b/configure.ac
+index 687d4d4..9f708cf 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -109,6 +109,26 @@ AC_CHECK_LIB([rt], [shm_open], [LIBRT=-lrt], [
+ ])
+ AC_SUBST([LIBRT])
+
++# argp_parse, needed externally from libargp / argp_standalone e.g. with musl.
++# First, check if available in used libc out of the box.
++AC_LINK_IFELSE(
++ [AC_LANG_PROGRAM(
++ [#include <argp.h>],
++ [int argc=1; char **argv=NULL; argp_parse(0,argc,argv,0,0,0); return 0;]
++ )],
++ [libc_provides_argp="true"],
++ [libc_provides_argp="false"]
++)
++# If libc doesn't provide argp, test for libargp
++if test "$libc_provides_argp" = "false" ; then
++ AC_MSG_WARN("libc does not provide argp")
++ AC_CHECK_LIB([argp], [argp_parse], [have_largp="true"], [have_largp="false"])
++ if test "$have_largp" = "false"; then
++ AC_MSG_ERROR([*** argp functions not found - install libargp or argp_standalone])
++ else
++ CH_RUN_LIBS="-largp $CH_RUN_LIBS"
++ fi
++fi
+
+ ## Options
+
+--
+2.32.0
+
next reply other threads:[~2021-12-21 1:56 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-21 1:56 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-06-13 20:50 [gentoo-commits] repo/gentoo:master commit in: sys-cluster/charliecloud/files/, sys-cluster/charliecloud/ Nicolas Bock
2023-01-19 13:42 Nicolas Bock
2020-06-14 14:05 Joonas Niilola
2019-07-18 8:00 Michał Górny
2019-07-07 18:31 Michał Górny
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=1640051664.5dfd04eec175ce8a022c6adb8c287b89b81f0abe.sam@gentoo \
--to=sam@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.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