community/guile-reader: add deprecation.h header to fix build with GCC 14

This commit is contained in:
Ariadne Conill 2024-09-08 03:30:49 -07:00
parent de4feb771c
commit 10219577cb
2 changed files with 13 additions and 1 deletions

View File

@ -12,7 +12,8 @@ makedepends="gperf guile-dev gmp-dev"
# Don't split -dev: https://gitlab.alpinelinux.org/alpine/aports/-/issues/12783
subpackages="$pkgname-doc"
options="!strip" # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=907061
source="https://download.savannah.nongnu.org/releases/guile-reader/guile-reader-$pkgver.tar.gz"
source="https://download.savannah.nongnu.org/releases/guile-reader/guile-reader-$pkgver.tar.gz
add-deprecation-header.patch"
prepare() {
default_prepare
@ -43,4 +44,5 @@ package() {
sha512sums="
0f9f47ee5f24ebb79894863ac96d63b0c7d2801020a212c59d11c7685ff4006a646be988a696a9b623dc0e0605f46d4a9a8680bfabd299878e41eab92e75efd5 guile-reader-0.6.3.tar.gz
b311c607a030ab1f85ef832b8ae18b2f9327e2bdf3fd4af56167711a2ddf76a17e09e840d339ec2160314d35ca9b180f9b9bbab379b2f418c76a7815dbd6685a add-deprecation-header.patch
"

View File

@ -0,0 +1,10 @@
--- guile-reader-0.6.3.orig/src/compat.c
+++ guile-reader-0.6.3/src/compat.c
@@ -21,6 +21,7 @@
#endif
#include <libguile.h>
+#include <libguile/deprecation.h>
#include <compat.h>
#include <string.h>
#include <stdio.h>