sys-libs/lwp: update EAPI 7 -> 8, fix bool

As bool definition is very private, replacement with stdbool.h
doesn't affect ABI or API

Closes: https://bugs.gentoo.org/943734
Signed-off-by: NHOrus <jy6x2b32pie9@yahoo.com>
Closes: https://github.com/gentoo/gentoo/pull/40454
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
NHOrus 2025-02-05 23:01:18 +04:00 committed by Sam James
parent 73a7f48f6c
commit 6542e01818
No known key found for this signature in database
GPG Key ID: 738409F520DF9190
2 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,14 @@
Used for declaration of private function only, so change
causes no visible effects
https://bugs.gentoo.org/943734
--- a/src/timer.c
+++ b/src/timer.c
@@ -48,7 +48,7 @@
#include <lwp/timer.h>
#include "lwp.private.h"
-typedef unsigned char bool;
+#include <stdbool.h>
#define expiration TotalTime

View File

@ -0,0 +1,22 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="Light-weight process library (used by Coda)"
HOMEPAGE="http://www.coda.cs.cmu.edu/"
SRC_URI="http://www.coda.cs.cmu.edu/pub/lwp/src/${P}.tar.xz"
LICENSE="LGPL-2.1"
SLOT="1"
KEYWORDS="~alpha ~amd64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
PATCHES=(
"${FILESDIR}"/"${P}"-ia64.patch
"${FILESDIR}"/"${P}"-bool.patch
)
src_install() {
default
find "${ED}" -name '*.la' -delete || die
}