commit:     dc5e588505b5a4b6ea7b5a117e034b67584b82fd
Author:     Z. Liu <zhixu.liu <AT> gmail <DOT> com>
AuthorDate: Sat Jan 11 02:30:50 2025 +0000
Commit:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Sun Jan 12 14:25:55 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dc5e5885

dev-scheme/sigscheme: fix configure warnings

1. run eautoconf to modernize the build system
2. add -D_GNU_SOURCE so getpagesize is available if build w/ musl

Closes: https://bugs.gentoo.org/879679
Closes: https://bugs.gentoo.org/906864
Signed-off-by: Z. Liu <zhixu.liu <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/40094
Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>

 .../sigscheme/files/sigscheme-0.9.1-autoconf.patch | 31 ++++++++++++++++++++++
 dev-scheme/sigscheme/sigscheme-0.9.1.ebuild        | 12 +++++++++
 2 files changed, 43 insertions(+)

diff --git a/dev-scheme/sigscheme/files/sigscheme-0.9.1-autoconf.patch 
b/dev-scheme/sigscheme/files/sigscheme-0.9.1-autoconf.patch
new file mode 100644
index 000000000000..ccdfd97e46bd
--- /dev/null
+++ b/dev-scheme/sigscheme/files/sigscheme-0.9.1-autoconf.patch
@@ -0,0 +1,31 @@
+From 1fd438ede105509488ae2f8a9f2d363097f4467d Mon Sep 17 00:00:00 2001
+From: "Z. Liu" <[email protected]>
+Date: Sat, 11 Jan 2025 10:09:31 +0800
+Subject: [PATCH] m4/ax_check_page_aligned_malloc: Make macros
+ `-Wstrict-prototypes` compatible
+
+elimate compiler's warning:
+
+  warning: a function declaration without a prototype is deprecated in all 
versions of C [-Wstrict-prototypes]
+
+Signed-off-by: Z. Liu <[email protected]>
+---
+ m4/ax_check_page_aligned_malloc.m4 | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/m4/ax_check_page_aligned_malloc.m4 
b/m4/ax_check_page_aligned_malloc.m4
+index 4bfa930..7aa7f74 100644
+--- a/m4/ax_check_page_aligned_malloc.m4
++++ b/m4/ax_check_page_aligned_malloc.m4
+@@ -35,7 +35,7 @@ AC_DEFUN([AX_CHECK_PAGE_ALIGNED_MALLOC],
+ # include <unistd.h>
+ #endif
+ 
+-int main()
++int main(void)
+ {
+   int pagesize = getpagesize();
+   int i;
+-- 
+2.45.2
+

diff --git a/dev-scheme/sigscheme/sigscheme-0.9.1.ebuild 
b/dev-scheme/sigscheme/sigscheme-0.9.1.ebuild
index 38fab32ca30a..67817aa4e751 100644
--- a/dev-scheme/sigscheme/sigscheme-0.9.1.ebuild
+++ b/dev-scheme/sigscheme/sigscheme-0.9.1.ebuild
@@ -11,7 +11,19 @@ LICENSE="BSD"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
 
+inherit autotools flag-o-matic
+
+PATCHES=(
+       "${FILESDIR}"/${PN}-0.9.1-autoconf.patch
+)
+
+src_prepare() {
+       default
+       eautoconf # 879679
+}
+
 src_configure() {
+       use elibc_musl && append-cflags -D_GNU_SOURCE # 906864
        econf --disable-static
 }
 

Reply via email to