mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 00:48:18 -07:00
sys-kernel/hurd: add patch for libports assertion
Debian and Guix both carry this. Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
https://salsa.debian.org/hurd-team/hurd/-/blob/f2c31b4596fc22c2de9dd1758abd32bd4c781c97/debian/patches/libports-iterate-refcount.patch
|
||||
https://logs.guix.gnu.org/hurd/2024-11-20.log#082237
|
||||
https://lists.gnu.org/archive/html/bug-hurd/2016-03/msg00034.html
|
||||
--- a/libports/bucket-iterate.c
|
||||
+++ b/libports/bucket-iterate.c
|
||||
@@ -58,7 +58,14 @@ _ports_bucket_class_iterate (struct hurd_ihash *ht,
|
||||
|
||||
if (class == 0 || pi->class == class)
|
||||
{
|
||||
- refcounts_ref (&pi->refcounts, NULL);
|
||||
+ struct references result;
|
||||
+ refcounts_unsafe_ref (&pi->refcounts, &result);
|
||||
+ if (result.hard == 1 && result.weak == 0)
|
||||
+ {
|
||||
+ /* This one is on its way out, skip it. */
|
||||
+ refcounts_deref (&pi->refcounts, NULL);
|
||||
+ continue;
|
||||
+ }
|
||||
p[n] = pi;
|
||||
n++;
|
||||
}
|
||||
@@ -62,6 +62,7 @@ fi
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-0.9_p20251029-glibc-2.43.patch
|
||||
"${FILESDIR}"/${PN}-0.9_p20251029-rump-link.patch
|
||||
"${FILESDIR}"/${PN}-0.9_p20251029-libports-iterate-refcount.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
|
||||
@@ -61,6 +61,7 @@ fi
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-0.9_p20251029-rump-link.patch
|
||||
"${FILESDIR}"/${PN}-0.9_p20251029-libports-iterate-refcount.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
|
||||
Reference in New Issue
Block a user