logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git
commit: ccc65078ebd46083669c0e5ad6a993c52b24a223
parent ec7856ed4ed3524d30f51961d3d5a64e35a24f01
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Mon, 18 Dec 2023 19:27:52 +0100

sys-libs/gcompat: add 1.1.0, drop 0.4.0

Diffstat:

Msys-libs/gcompat/Manifest2+-
Dsys-libs/gcompat/gcompat-0.4.0.ebuild58----------------------------------------------------------
Asys-libs/gcompat/gcompat-1.1.0.ebuild58++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 59 insertions(+), 59 deletions(-)

diff --git a/sys-libs/gcompat/Manifest b/sys-libs/gcompat/Manifest @@ -1 +1 @@ -DIST gcompat-0.4.0.tar.xz 22908 BLAKE2B cf42820245d11e91a58882323e546f972abf89323643c9f5f676592d67a5837fa51fecdce768b4e8e77236425bbe3c0a7b21946972685ea855352ef9b139dac8 SHA512 32b4038a031b9af2d5febb547fe9268eb829f40bb2437c94afe5b939e06e7337448ad7f2dce34362829d19672ede54eec8fc34dc755736dbc76f347906ba5ead +DIST gcompat-1.1.0.tar.xz 27456 BLAKE2B 60b008a08eb4841e24a5d810c7ed354e12b06d2e4046df6cf6e19ce01aca29dd5d18027c5c87b66c6821fd5f9677ce236ac6e1826339b294e936e5b90b5ad444 SHA512 fbaa5b5410bde295df11f72cf946aa81ab7d46a919a75e75f70e339d429e38f0fa9283400cbcd4bf8c646011300065f53788ffc584d6fbb093bf4dbd28e766ab diff --git a/sys-libs/gcompat/gcompat-0.4.0.ebuild b/sys-libs/gcompat/gcompat-0.4.0.ebuild @@ -1,58 +0,0 @@ -# Copyright 2018-2020 Haelwenn (lanodan) Monnier <contact@hacktivis.me> -# 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://code.foxkit.us/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/gcompat-1.1.0.ebuild b/sys-libs/gcompat/gcompat-1.1.0.ebuild @@ -0,0 +1,58 @@ +# Copyright 2018-2020 Haelwenn (lanodan) Monnier <contact@hacktivis.me> +# 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 +}