mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-06 02:17:34 -08:00
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:
parent
73a7f48f6c
commit
6542e01818
14
sys-libs/lwp/files/lwp-2.8-bool.patch
Normal file
14
sys-libs/lwp/files/lwp-2.8-bool.patch
Normal 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
|
||||
|
||||
22
sys-libs/lwp/lwp-2.8-r1.ebuild
Normal file
22
sys-libs/lwp/lwp-2.8-r1.ebuild
Normal 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
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user