commit: 6542e01818ccf338bff31589365cf3a7a764cc30 Author: NHOrus <jy6x2b32pie9 <AT> yahoo <DOT> com> AuthorDate: Wed Feb 5 19:01:18 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Mon Feb 10 08:48:21 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6542e018
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 <AT> yahoo.com> Closes: https://github.com/gentoo/gentoo/pull/40454 Signed-off-by: Sam James <sam <AT> gentoo.org> sys-libs/lwp/files/lwp-2.8-bool.patch | 14 ++++++++++++++ sys-libs/lwp/lwp-2.8-r1.ebuild | 22 ++++++++++++++++++++++ 2 files changed, 36 insertions(+) diff --git a/sys-libs/lwp/files/lwp-2.8-bool.patch b/sys-libs/lwp/files/lwp-2.8-bool.patch new file mode 100644 index 000000000000..6b5e6d4ed26b --- /dev/null +++ b/sys-libs/lwp/files/lwp-2.8-bool.patch @@ -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 + diff --git a/sys-libs/lwp/lwp-2.8-r1.ebuild b/sys-libs/lwp/lwp-2.8-r1.ebuild new file mode 100644 index 000000000000..72d4f50f4d8c --- /dev/null +++ b/sys-libs/lwp/lwp-2.8-r1.ebuild @@ -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 +}
