From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id B9D40158041 for ; Wed, 20 Mar 2024 19:39:26 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id F1DFBE29A3; Wed, 20 Mar 2024 19:39:25 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id CF122E29A3 for ; Wed, 20 Mar 2024 19:39:24 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id DA357340806 for ; Wed, 20 Mar 2024 19:39:23 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 676E01592 for ; Wed, 20 Mar 2024 19:39:22 +0000 (UTC) From: "Haelwenn Monnier" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Haelwenn Monnier" Message-ID: <1710963553.c5baf4e402b9a78fcc2768351dab4736959b3f04.lanodan@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: sys-libs/gcompat/ X-VCS-Repository: repo/proj/guru X-VCS-Files: sys-libs/gcompat/Manifest sys-libs/gcompat/gcompat-1.1.0.ebuild sys-libs/gcompat/metadata.xml X-VCS-Directories: sys-libs/gcompat/ X-VCS-Committer: lanodan X-VCS-Committer-Name: Haelwenn Monnier X-VCS-Revision: c5baf4e402b9a78fcc2768351dab4736959b3f04 X-VCS-Branch: dev Date: Wed, 20 Mar 2024 19:39:22 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: bf05cfdf-cc7b-4343-a18d-3dc7fbe117e0 X-Archives-Hash: f0ad9b781582b6b4e54559a85c4738f6 commit: c5baf4e402b9a78fcc2768351dab4736959b3f04 Author: Haelwenn (lanodan) Monnier hacktivis me> AuthorDate: Wed Mar 20 19:31:53 2024 +0000 Commit: Haelwenn Monnier hacktivis me> CommitDate: Wed Mar 20 19:39:13 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=c5baf4e4 sys-libs/gcompat: new package, add 1.1.0 Signed-off-by: Haelwenn (lanodan) Monnier hacktivis.me> sys-libs/gcompat/Manifest | 1 + sys-libs/gcompat/gcompat-1.1.0.ebuild | 58 +++++++++++++++++++++++++++++++++++ sys-libs/gcompat/metadata.xml | 11 +++++++ 3 files changed, 70 insertions(+) diff --git a/sys-libs/gcompat/Manifest b/sys-libs/gcompat/Manifest new file mode 100644 index 0000000000..3c9b4b0526 --- /dev/null +++ b/sys-libs/gcompat/Manifest @@ -0,0 +1 @@ +DIST gcompat-1.1.0.tar.xz 27456 BLAKE2B 60b008a08eb4841e24a5d810c7ed354e12b06d2e4046df6cf6e19ce01aca29dd5d18027c5c87b66c6821fd5f9677ce236ac6e1826339b294e936e5b90b5ad444 SHA512 fbaa5b5410bde295df11f72cf946aa81ab7d46a919a75e75f70e339d429e38f0fa9283400cbcd4bf8c646011300065f53788ffc584d6fbb093bf4dbd28e766ab diff --git a/sys-libs/gcompat/gcompat-1.1.0.ebuild b/sys-libs/gcompat/gcompat-1.1.0.ebuild new file mode 100644 index 0000000000..6e5d56674c --- /dev/null +++ b/sys-libs/gcompat/gcompat-1.1.0.ebuild @@ -0,0 +1,58 @@ +# Copyright 2018-2020 Haelwenn (lanodan) Monnier +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit multilib-minimal flag-o-matic + +DESCRIPTION="The GNU C Library compatibility layer for musl" +HOMEPAGE="https://git.adelielinux.org/adelie/gcompat" +KEYWORDS="~amd64 ~x86" +LICENSE="UoI-NCSA" +IUSE="libucontext obstack" +SRC_URI="https://distfiles.adelielinux.org/source/${PN}/${P}.tar.xz" +SLOT="0" + +DEPEND=" + libucontext? ( sys-libs/libucontext ) + obstack? ( sys-libs/obstack-standalone ) +" +RDEPEND="${DEPEND}" + +get_loader_name() { + # Loosely based on Adélie APKBUILD + # TODO: Check against glibc’s logic + + case "$ABI" in + x86) echo "ld-linux.so.2" ;; + amd64) echo "ld-linux-x86-64.so.2" ;; + arm*) echo "ld-linux-armhf.so.3" ;; + arm64) echo "ld-linux-aarch64.so.1" ;; + mips | powerpc | s390) echo "ld.so.1" ;; + esac +} + +get_linker_path() { + local arch=$(ldd 2>&1 | sed -n '1s/^musl libc (\(.*\))$/\1/p') + echo "/lib/ld-musl-${arch}.so.1" +} + +src_compile() { + filter-flags "-Wl,--as-needed" + + emake \ + LINKER_PATH="$(get_linker_path)" \ + LOADER_NAME="$(get_loader_name)" \ + WITH_OBSTACK="$(usex obstack 'obstack-standalone' 'no')" \ + $(usex libucontext WITH_LIBUCONTEXT=yes '') +} + +src_install() { + emake \ + LINKER_PATH="$(get_linker_path)" \ + LOADER_NAME="$(get_loader_name)" \ + WITH_OBSTACK="$(usex obstack 'obstack-standalone' 'no')" \ + $(usex libucontext WITH_LIBUCONTEXT=yes '') \ + DESTDIR="${D}" \ + install +} diff --git a/sys-libs/gcompat/metadata.xml b/sys-libs/gcompat/metadata.xml new file mode 100644 index 0000000000..545da92968 --- /dev/null +++ b/sys-libs/gcompat/metadata.xml @@ -0,0 +1,11 @@ + + + + + contact@hacktivis.me + Haelwenn (lanodan) Monnier + + + Use sys-libs/obstack-standalone for greater compatibility + +