summaryrefslogtreecommitdiff
path: root/sys-libs/libucontext
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-08-15 12:22:30 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-08-15 12:22:30 +0100
commit3ad1879f00b279af69d6b9cd3ef97a2a7496d734 (patch)
tree497e5c46d6f6695b96866bc46abe1a2470a880b5 /sys-libs/libucontext
parent792e307954fd3b5b12c968741d76ea7cfe5206e4 (diff)
gentoo auto-resync : 15:08:2024 - 12:22:30
Diffstat (limited to 'sys-libs/libucontext')
-rw-r--r--sys-libs/libucontext/Manifest5
-rw-r--r--sys-libs/libucontext/files/libucontext-1.1-respect-CFLAGS.patch13
-rw-r--r--sys-libs/libucontext/libucontext-1.3.1.ebuild (renamed from sys-libs/libucontext/libucontext-1.1-r1.ebuild)28
3 files changed, 15 insertions, 31 deletions
diff --git a/sys-libs/libucontext/Manifest b/sys-libs/libucontext/Manifest
index 54996ac98cf9..ef33e57346c5 100644
--- a/sys-libs/libucontext/Manifest
+++ b/sys-libs/libucontext/Manifest
@@ -1,6 +1,5 @@
-AUX libucontext-1.1-respect-CFLAGS.patch 368 BLAKE2B b04163e9e75ad3f8704d85d78091a41957cb072edd3ecbe58dbf45bf59c5ffb3662b5f96bf413eaaa5e328c964cbe99a70c6f8f23f4f8bc74bfdda7a0e45c54d SHA512 889b67269066ccdf84221dd1a636d4f6782f4c5f6800828f4068f3764b7e9d1797614d9f07f81864bc720f415c475c1b78aba38dd35355a54fcbf2f7a64a57ff
-DIST libucontext-1.1.tar.gz 25261 BLAKE2B 269b3899657779bc2c6a2f1c365242f0ee936afeb0acf74e48af5c1e6b96918bbaa239039508e7b1b1f7b358679fb4a222311b761223b69b9a3e7a9be2d0bc40 SHA512 05aed6f82a2b3d9dba896423335a7fc2fc5eddc87ed725f05e14488c6ddfcef10b835c928619439c7783e052baff7ef2dc162b6e06aa78992f6f611ca13c2e39
DIST libucontext-1.2.tar.gz 29073 BLAKE2B 378816376877729776c41515ad1c3da36c24528bcdcf5272c4df2029b5273cf90228c163e87bd1af558129b1274d0b22632c4fa8ad2a0f37ac7014dae527a48e SHA512 f47b776517fa9e3fe48b762b11ae580c28bd7646f9e3ab843141d3e203f886326e68dd8040852ab1cb92dbd09d821161660c4be44e3025448d90131e74a4cf51
-EBUILD libucontext-1.1-r1.ebuild 1227 BLAKE2B 80165906c3525c3a1d8cd1079a509ff11cb8ec92833ea493e03103c775f99c4f303d86c33ee4fb921cb9c1dcdfc9e06b031e2c6158c1547a99a86edf7b4ff9ab SHA512 accd79cbc600ca4f02dcdc76f6ed7a964b8714238dfe2d5d44734ef3be472a998a6d04afa196c9a086e58ca18138c80b64973b4caa870ffe7e1ba5e579220ede
+DIST libucontext-1.3.1.tar.xz 24688 BLAKE2B d6a15644abda73ea3e1dd45d6bcbf42627ad4a17fe90ebe8067383f9abfa7c9f87fbb1ab7f21b8b57b88fbe496b57524370d7cbb0fcde5c6e42408c025c271f9 SHA512 9b3c7fc04aedbbed6f35fc18037b75472f8fa44d3c89f261ef923f46874251a10f49894f7a549b0b47d3ffdee1b6678929bdda95822d8043d76b5a1f34e4dc8a
EBUILD libucontext-1.2.ebuild 1405 BLAKE2B 1fac14d814818573a5f4699a39655cd5f807a82c83659559a9f8465bab4930f93b6f1e32f3e3ecab4b93106bf8a0e9a199bf1d58faa7dda11fb4c00e55c45c10 SHA512 58869036d0005bb3873460980bc158fde56c88d8cce1a14fb26962c062f1e4a3e6f5d9ac3451953aa63cffddeaa4af45cb83c24b6c2cdcd794970f84bfd8d224
+EBUILD libucontext-1.3.1.ebuild 1349 BLAKE2B c9e782158b3d703bfd5851950e08ab00444e15744dfb304fa02142e5aac82f3f61b55d4d1c2e1d614e3cdac04c4bbe287ca59bba59ff4daf898f3ae691cacd82 SHA512 1b012210a1d0efa78940ba6cbaac194857f6620e6cc5a5bf8aae705c38d01c957eeb287a00d46e86496475564193a27f0243cd33137a62c8d3e731c079ef541e
MISC metadata.xml 329 BLAKE2B 8958a3567263e9f2fc2409c2cd5858ca3e68659a45f67e5132fca640c6ffe05cac8810436f334b5c775ed049709f43aaf366cfecc97bc732a0917bb47aa5c34d SHA512 7b5d5832b22828f6a0600e3be45ff1da8ff340481a3602db6f5b8540373ff0ac3c72f0de64f00a1691598bbd9cea0128eb869cda67d8ac4894e3a51a7009a730
diff --git a/sys-libs/libucontext/files/libucontext-1.1-respect-CFLAGS.patch b/sys-libs/libucontext/files/libucontext-1.1-respect-CFLAGS.patch
deleted file mode 100644
index 49dd872690d5..000000000000
--- a/sys-libs/libucontext/files/libucontext-1.1-respect-CFLAGS.patch
+++ /dev/null
@@ -1,13 +0,0 @@
-https://bugs.gentoo.org/832677
-https://github.com/kaniini/libucontext/issues/39
---- a/Makefile
-+++ b/Makefile
-@@ -17,7 +17,7 @@ endif
- LIBDIR := /lib
- INCLUDEDIR := /usr/include
- PKGCONFIGDIR := /usr/lib/pkgconfig
--CFLAGS := -ggdb3 -O2 -Wall
-+CFLAGS ?= -ggdb3 -O2 -Wall
- CPPFLAGS := -Iinclude -Iarch/${ARCH} -Iarch/common
- EXPORT_UNPREFIXED := yes
- FREESTANDING := no
diff --git a/sys-libs/libucontext/libucontext-1.1-r1.ebuild b/sys-libs/libucontext/libucontext-1.3.1.ebuild
index 7ec73298a79c..ba313f31183c 100644
--- a/sys-libs/libucontext/libucontext-1.1-r1.ebuild
+++ b/sys-libs/libucontext/libucontext-1.3.1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -7,23 +7,15 @@ inherit toolchain-funcs
DESCRIPTION="ucontext implementation featuring glibc-compatible ABI"
HOMEPAGE="https://github.com/kaniini/libucontext"
-SRC_URI="https://github.com/kaniini/libucontext/archive/refs/tags/${P}.tar.gz"
-S="${WORKDIR}"/${PN}-${P}
+SRC_URI="https://distfiles.ariadne.space/libucontext/${P}.tar.xz"
LICENSE="ISC"
SLOT="0"
-KEYWORDS="~amd64"
+KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~x86"
IUSE="+man"
BDEPEND="man? ( app-text/scdoc )"
-# segfault needs investigation
-RESTRICT="test"
-
-PATCHES=(
- "${FILESDIR}"/${PN}-1.1-respect-CFLAGS.patch
-)
-
src_compile() {
tc-export AR CC
@@ -46,7 +38,8 @@ src_compile() {
emake \
ARCH="${arch}" \
LDFLAGS="${LDFLAGS}" \
- LIBDIR="/usr/$(get_libdir)" \
+ libdir="/usr/$(get_libdir)" \
+ pkgconfigdir="/usr/$(get_libdir)/pkgconfig" \
all $(usev man 'docs')
}
@@ -54,14 +47,19 @@ src_test() {
emake \
ARCH="${arch}" \
LDFLAGS="${LDFLAGS}" \
- LIBDIR="/usr/$(get_libdir)" \
+ libdir="/usr/$(get_libdir)" \
+ pkgconfigdir="/usr/$(get_libdir)/pkgconfig" \
check
}
src_install() {
emake \
ARCH="${arch}" \
- DESTDIR="${ED}" \
- LIBDIR="/usr/$(get_libdir)" \
+ DESTDIR="${D}" \
+ prefix="${EPREFIX}/usr" \
+ libdir="${EPREFIX}/usr/$(get_libdir)" \
+ pkgconfigdir="${EPREFIX}/usr/$(get_libdir)/pkgconfig" \
install $(usev man 'install_docs')
+
+ find "${ED}" -name '*.a' -delete || die
}