public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/proj/guru:dev commit in: sys-libs/gcompat/
@ 2024-03-21  1:25 Haelwenn Monnier
  0 siblings, 0 replies; 5+ messages in thread
From: Haelwenn Monnier @ 2024-03-21  1:25 UTC (permalink / raw
  To: gentoo-commits

commit:     fad92656cc1913f661fb47d44fb53ef26c1dd765
Author:     Haelwenn (lanodan) Monnier <contact <AT> hacktivis <DOT> me>
AuthorDate: Thu Mar 21 01:25:00 2024 +0000
Commit:     Haelwenn Monnier <contact <AT> hacktivis <DOT> me>
CommitDate: Thu Mar 21 01:25:00 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=fad92656

sys-libs/gcompat/metadata.xml: ucontext -> libucontext

Signed-off-by: Haelwenn (lanodan) Monnier <contact <AT> hacktivis.me>

 sys-libs/gcompat/metadata.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys-libs/gcompat/metadata.xml b/sys-libs/gcompat/metadata.xml
index d1cb64b2a6..fbf4214c6a 100644
--- a/sys-libs/gcompat/metadata.xml
+++ b/sys-libs/gcompat/metadata.xml
@@ -7,6 +7,6 @@
 	</maintainer>
 	<use>
 		<flag name="obstack">Use <pkg>sys-libs/obstack-standalone</pkg> for greater compatibility</flag>
-		<flag name="ucontext">Add support for ucontext functions via <pkg>sys-libs/libucontext</pkg></flag>
+		<flag name="libucontext">Add support for ucontext functions via <pkg>sys-libs/libucontext</pkg></flag>
 	</use>
 </pkgmetadata>


^ permalink raw reply related	[flat|nested] 5+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: sys-libs/gcompat/
@ 2025-02-10 23:33 Quinet Charlie
  0 siblings, 0 replies; 5+ messages in thread
From: Quinet Charlie @ 2025-02-10 23:33 UTC (permalink / raw
  To: gentoo-commits

commit:     5bd5663aef7ac4188918d61ced2cd8f998be4e09
Author:     Charlie Quinet <w.iron.zombie <AT> gmail <DOT> com>
AuthorDate: Mon Feb 10 23:32:20 2025 +0000
Commit:     Quinet Charlie <w.iron.zombie <AT> gmail <DOT> 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 <w.iron.zombie <AT> 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 <contact@hacktivis.me>
+# 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
+}


^ permalink raw reply related	[flat|nested] 5+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: sys-libs/gcompat/
@ 2025-02-07 20:19 Violet Purcell
  0 siblings, 0 replies; 5+ messages in thread
From: Violet Purcell @ 2025-02-07 20:19 UTC (permalink / raw
  To: gentoo-commits

commit:     a2c44a4063e0f9252c311e3f59f33da4c8b46e59
Author:     Violet Purcell <vimproved <AT> inventati <DOT> org>
AuthorDate: Fri Feb  7 20:18:45 2025 +0000
Commit:     Violet Purcell <vimproved <AT> inventati <DOT> org>
CommitDate: Fri Feb  7 20:18:45 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=a2c44a40

sys-libs/gcompat: fix arm64 dynamic loader name logic

Due to arm* being above arm64 in the switch statement, arm64 would end
up with ld-linux-armhf.so.3 instead of ld-linux-aarch64.so.1. Move the
arm64 case above so the correct dynamic loader name is used.

Signed-off-by: Violet Purcell <vimproved <AT> inventati.org>

 sys-libs/gcompat/gcompat-1.1.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys-libs/gcompat/gcompat-1.1.0.ebuild b/sys-libs/gcompat/gcompat-1.1.0.ebuild
index 947968198..b335fc851 100644
--- a/sys-libs/gcompat/gcompat-1.1.0.ebuild
+++ b/sys-libs/gcompat/gcompat-1.1.0.ebuild
@@ -26,8 +26,8 @@ get_loader_name() {
 	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" ;;
+		arm*) echo "ld-linux-armhf.so.3" ;;
 		mips | powerpc | s390) echo "ld.so.1" ;;
 	esac
 }


^ permalink raw reply related	[flat|nested] 5+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: sys-libs/gcompat/
@ 2024-03-20 20:53 Haelwenn Monnier
  0 siblings, 0 replies; 5+ messages in thread
From: Haelwenn Monnier @ 2024-03-20 20:53 UTC (permalink / raw
  To: gentoo-commits

commit:     6bd4d74996f257b3d422913581bf732e39e80a31
Author:     Haelwenn (lanodan) Monnier <contact <AT> hacktivis <DOT> me>
AuthorDate: Wed Mar 20 20:53:21 2024 +0000
Commit:     Haelwenn Monnier <contact <AT> hacktivis <DOT> me>
CommitDate: Wed Mar 20 20:53:21 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=6bd4d749

sys-libs/gcompat: Add missing metadata entry for USE=libucontext

Signed-off-by: Haelwenn (lanodan) Monnier <contact <AT> hacktivis.me>

 sys-libs/gcompat/metadata.xml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sys-libs/gcompat/metadata.xml b/sys-libs/gcompat/metadata.xml
index 545da92968..d1cb64b2a6 100644
--- a/sys-libs/gcompat/metadata.xml
+++ b/sys-libs/gcompat/metadata.xml
@@ -7,5 +7,6 @@
 	</maintainer>
 	<use>
 		<flag name="obstack">Use <pkg>sys-libs/obstack-standalone</pkg> for greater compatibility</flag>
+		<flag name="ucontext">Add support for ucontext functions via <pkg>sys-libs/libucontext</pkg></flag>
 	</use>
 </pkgmetadata>


^ permalink raw reply related	[flat|nested] 5+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: sys-libs/gcompat/
@ 2024-03-20 19:39 Haelwenn Monnier
  0 siblings, 0 replies; 5+ messages in thread
From: Haelwenn Monnier @ 2024-03-20 19:39 UTC (permalink / raw
  To: gentoo-commits

commit:     c5baf4e402b9a78fcc2768351dab4736959b3f04
Author:     Haelwenn (lanodan) Monnier <contact <AT> hacktivis <DOT> me>
AuthorDate: Wed Mar 20 19:31:53 2024 +0000
Commit:     Haelwenn Monnier <contact <AT> hacktivis <DOT> 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 <contact <AT> 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 <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
+}

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 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="person">
+		<email>contact@hacktivis.me</email>
+		<name>Haelwenn (lanodan) Monnier</name>
+	</maintainer>
+	<use>
+		<flag name="obstack">Use <pkg>sys-libs/obstack-standalone</pkg> for greater compatibility</flag>
+	</use>
+</pkgmetadata>


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-02-10 23:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-21  1:25 [gentoo-commits] repo/proj/guru:dev commit in: sys-libs/gcompat/ Haelwenn Monnier
  -- strict thread matches above, loose matches on Subject: below --
2025-02-10 23:33 Quinet Charlie
2025-02-07 20:19 Violet Purcell
2024-03-20 20:53 Haelwenn Monnier
2024-03-20 19:39 Haelwenn Monnier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox