Skip to content

Commit 6814259

Browse files
author
dkazankov
committed
ada-gnatcoll-bindings-25: refactor previous patch to fix build error on NetBSD 9
1 parent 602e00f commit 6814259

File tree

3 files changed

+9
-18
lines changed

3 files changed

+9
-18
lines changed
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
$NetBSD: distinfo,v 1.2 2025/07/30 17:49:48 dkazankov Exp $
1+
$NetBSD: distinfo,v 1.3 2025/08/05 05:08:18 dkazankov Exp $
22

33
BLAKE2s (gnatcoll-bindings-25.0.0.tar.gz) = 9b494fc8ac73012d939a6b8764242dd94462e1d3253aabd809ebb5e275e8e08d
44
SHA512 (gnatcoll-bindings-25.0.0.tar.gz) = 0cc5b4a1e966b6e05dcfa15e60cb3960894ffe73b9348f0642a972f4d517e535c617893a4080d33095ee62779b14aeb6cdd8a8f0a8b5a6c8e81c94df132420b2
55
Size (gnatcoll-bindings-25.0.0.tar.gz) = 299443 bytes
66
SHA1 (patch-Makefile) = 26846a3ea97049f543e7c35bdf0565c94ea6afc4
7-
SHA1 (patch-iconv_iconv__support.c) = 9612f4899c44bb5f10832b79dfe20844df008f57
87
SHA1 (patch-setup__support.py) = c91171307d3d7781111c89ba3a38ced019eab4e2

devel/ada-gnatcoll-bindings-25/options.mk

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $NetBSD: options.mk,v 1.1 2025/07/11 12:46:50 dkazankov Exp $
1+
# $NetBSD: options.mk,v 1.2 2025/08/05 05:08:18 dkazankov Exp $
22

33
PKG_OPTIONS_VAR= PKG_OPTIONS.gnatcoll-bindings-25
44
PKG_SUPPORTED_OPTIONS= gnatcoll-cpp gmp iconv lzma openmp \
@@ -24,6 +24,13 @@ BINDINGS+= gmp
2424
USE_GNU_ICONV= yes
2525
. include "../../converters/libiconv/buildlink3.mk"
2626
BINDINGS+= iconv
27+
.if ${OPSYS} == "NetBSD" && ${OPSYS_VERSION} < 099982
28+
SUBST_CLASSES+= iconv
29+
SUBST_STAGE.iconv= pre-configure
30+
SUBST_FILES.iconv= iconv/iconv_support.c
31+
SUBST_MESSAGE.iconv= Fix parameter type in ${SUBST_FILES.iconv}
32+
SUBST_SED.iconv= -e 's/iconv(cd, inbuf,/iconv(cd, (const char **)inbuf,/'
33+
.endif
2734
.endif
2835

2936
.if !empty(PKG_OPTIONS:Mlzma)

devel/ada-gnatcoll-bindings-25/patches/patch-iconv_iconv__support.c

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)