From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (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 finch.gentoo.org (Postfix) with ESMTPS id C52691582EF for ; Mon, 10 Feb 2025 23:33:45 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (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) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 80ABE3430CB for ; Mon, 10 Feb 2025 23:33:45 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 7F54C11042D; Mon, 10 Feb 2025 23:33:44 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (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 bobolink.gentoo.org (Postfix) with ESMTPS id 76C3511042D for ; Mon, 10 Feb 2025 23:33:44 +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) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 1AE923430C8 for ; Mon, 10 Feb 2025 23:33:44 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 76B18279A for ; Mon, 10 Feb 2025 23:33:42 +0000 (UTC) From: "Quinet Charlie" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Quinet Charlie" Message-ID: <1739230420.5bd5663aef7ac4188918d61ced2cd8f998be4e09.w.iron.zombie@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/gcompat-9999.ebuild X-VCS-Directories: sys-libs/gcompat/ X-VCS-Committer: w.iron.zombie X-VCS-Committer-Name: Quinet Charlie X-VCS-Revision: 5bd5663aef7ac4188918d61ced2cd8f998be4e09 X-VCS-Branch: dev Date: Mon, 10 Feb 2025 23:33:42 +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: 29bb26de-8077-4a53-8c2d-aeeb6d35d1d2 X-Archives-Hash: 6e4c089319628289a8cd41404c54b666 commit: 5bd5663aef7ac4188918d61ced2cd8f998be4e09 Author: Charlie Quinet gmail com> AuthorDate: Mon Feb 10 23:32:20 2025 +0000 Commit: Quinet Charlie gmail com> CommitDate: Mon Feb 10 23:33:40 2025 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=5bd5663a sys-libs/gcompat: add live ebuild gcompat hasn't had a point release for a while (2 years) and there are support for more symbols in the latest git Signed-off-by: Charlie Quinet gmail.com> sys-libs/gcompat/gcompat-9999.ebuild | 57 ++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) diff --git a/sys-libs/gcompat/gcompat-9999.ebuild b/sys-libs/gcompat/gcompat-9999.ebuild new file mode 100644 index 000000000..108d53a71 --- /dev/null +++ b/sys-libs/gcompat/gcompat-9999.ebuild @@ -0,0 +1,57 @@ +# 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 git-r3 + +DESCRIPTION="The GNU C Library compatibility layer for musl" +HOMEPAGE="https://git.adelielinux.org/adelie/gcompat" +EGIT_REPO_URI="https://git.adelielinux.org/adelie/gcompat.git" +LICENSE="UoI-NCSA" +SLOT="0" +IUSE="libucontext obstack" + +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" ;; + arm64) echo "ld-linux-aarch64.so.1" ;; + arm*) echo "ld-linux-armhf.so.3" ;; + 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 +}