pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/lang/librep
Module Name: pkgsrc
Committed By: gutteridge
Date: Mon Oct 19 23:09:37 UTC 2026
Modified Files:
pkgsrc/lang/librep: Makefile distinfo
Added Files:
pkgsrc/lang/librep/patches: patch-configure patch-configure.ac
patch-intl_dcgettext.c patch-src_sockets.c
Log Message:
librep: fix builds with GCC >= 14
Tested on NetBSD 11.99.9 with GCC 14.4.0 and Fedora Linux 44 with GCC
16.2.1. (Given the configure script was generated from a significantly
older version of autoconf, and the upstream appears to be gone,
patching is applied directly against it for the minimal diff, but an
equivalent change to configure.ac is included, should it be useful to
someone.)
To generate a diff of this commit:
cvs rdiff -u -r1.69 -r1.70 pkgsrc/lang/librep/Makefile
cvs rdiff -u -r1.25 -r1.26 pkgsrc/lang/librep/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/lang/librep/patches/patch-configure \
pkgsrc/lang/librep/patches/patch-configure.ac \
pkgsrc/lang/librep/patches/patch-intl_dcgettext.c \
pkgsrc/lang/librep/patches/patch-src_sockets.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/lang/librep/Makefile
diff -u pkgsrc/lang/librep/Makefile:1.69 pkgsrc/lang/librep/Makefile:1.70
--- pkgsrc/lang/librep/Makefile:1.69 Tue Sep 30 14:29:17 2025
+++ pkgsrc/lang/librep/Makefile Mon Oct 19 23:09:37 2026
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.69 2025/09/30 14:29:17 gutteridge Exp $
+# $NetBSD: Makefile,v 1.70 2026/10/19 23:09:37 gutteridge Exp $
#
DISTNAME= librep_0.92.7
@@ -25,6 +25,8 @@ CONFIGURE_ARGS+= --with-readline
CONFIGURE_ARGS+= --with-gmp
CONFIGURE_ARGS+= --enable-static
+CFLAGS+= -Wno-incompatible-pointer-types
+
.include "../../mk/bsd.prefs.mk"
REPLACE_INTERPRETER+= rep
Index: pkgsrc/lang/librep/distinfo
diff -u pkgsrc/lang/librep/distinfo:1.25 pkgsrc/lang/librep/distinfo:1.26
--- pkgsrc/lang/librep/distinfo:1.25 Tue Sep 30 14:29:17 2025
+++ pkgsrc/lang/librep/distinfo Mon Oct 19 23:09:37 2026
@@ -1,13 +1,17 @@
-$NetBSD: distinfo,v 1.25 2025/09/30 14:29:17 gutteridge Exp $
+$NetBSD: distinfo,v 1.26 2026/10/19 23:09:37 gutteridge Exp $
BLAKE2s (librep_0.92.7.tar.xz) = b43900e377cb9ff8bb0e8ce36fb5a812e2d32ec5d2d333a87b805f01ae5976b4
SHA512 (librep_0.92.7.tar.xz) = 752cb2da31457200b5896f70ce24a097b261b996da25998cd78a777f982597473afce1a216f449a4a969d29b1678bf54e2f148e86de6f9548eeb5cfd530ae377
Size (librep_0.92.7.tar.xz) = 651344 bytes
SHA1 (patch-aa) = 382f6692e8a387d1492e0a2198211a6f65f41d20
+SHA1 (patch-configure) = b5ad6f313b83b6ed8b7770e90defdaea4d94d18a
+SHA1 (patch-configure.ac) = 10f8cdc0185d00b8c7eb7754d5d663e4cbd2d05d
+SHA1 (patch-intl_dcgettext.c) = 025dfdea93fa27ef43c1f6214badc66fc9b232a1
SHA1 (patch-src_lisp.c) = 1aa7352f38c889b5efb73062c7ac687364a3fe02
SHA1 (patch-src_lispcmds.c) = e908e57e1f15e5dbdd876a8364bac6933c6b7ad0
SHA1 (patch-src_misc.c) = b907e61c060c918e10456fa3b474bd58109e900a
SHA1 (patch-src_numbers.c) = da798423b17a2aa84bd9f158b9e29effc7a3b18b
SHA1 (patch-src_regexp.c) = 520a75313d44ca337d213997e5272a2e50591ad8
+SHA1 (patch-src_sockets.c) = f305a9b64543f05e19838c26dbf28beaac54c0fb
SHA1 (patch-src_streams.c) = e05685ff92b4a23ca2e5d014f9eac334735a51a4
SHA1 (patch-src_symbols.c) = 61abfc604b6b3510db02ee9b23ed846936892868
Added files:
Index: pkgsrc/lang/librep/patches/patch-configure
diff -u /dev/null pkgsrc/lang/librep/patches/patch-configure:1.1
--- /dev/null Mon Oct 19 23:09:37 2026
+++ pkgsrc/lang/librep/patches/patch-configure Mon Oct 19 23:09:37 2026
@@ -0,0 +1,54 @@
+$NetBSD: patch-configure,v 1.1 2026/10/19 23:09:37 gutteridge Exp $
+
+Modernize C tests to fix builds with GCC >= 14.
+
+--- configure.orig 2017-08-25 20:05:31.000000000 +0000
++++ configure
+@@ -14798,7 +14798,8 @@ else
+ else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ /* end confdefs.h. */
+-main () { exit (!(sizeof (int) >= sizeof (void *)));}
++#include <stdlib.h>
++int main () { exit (!(sizeof (int) >= sizeof (void *)));}
+ _ACEOF
+ if ac_fn_c_try_run "$LINENO"; then :
+ with_value_type=int
+@@ -14817,7 +14818,8 @@ else
+ else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ /* end confdefs.h. */
+-main () { exit (!(sizeof (long int) >= sizeof (void *)));}
++#include <stdlib.h>
++int main () { exit (!(sizeof (long int) >= sizeof (void *)));}
+ _ACEOF
+ if ac_fn_c_try_run "$LINENO"; then :
+ with_value_type="long int"
+@@ -14836,7 +14838,8 @@ else
+ else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ /* end confdefs.h. */
+-main () { exit (!(sizeof (long long int) >= sizeof (void *)));}
++#include <stdlib.h>
++int main () { exit (!(sizeof (long long int) >= sizeof (void *)));}
+ _ACEOF
+ if ac_fn_c_try_run "$LINENO"; then :
+ with_value_type="long long int"
+@@ -14877,7 +14880,8 @@ else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ /* end confdefs.h. */
+ #include <stdio.h>
+- main () {
++#include <stdlib.h>
++int main () {
+ FILE *f = fopen ("conftestval", "w");
+ if (!f) exit (1);
+ fprintf (f, "%d\n", sizeof (${with_value_type}));
+@@ -15122,6 +15126,7 @@ else
+ else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ /* end confdefs.h. */
++ #include <stdlib.h>
+ int level = 1;
+ void inner (char *foo) { char bar;
+ if (level) { --level; inner (foo); }
Index: pkgsrc/lang/librep/patches/patch-configure.ac
diff -u /dev/null pkgsrc/lang/librep/patches/patch-configure.ac:1.1
--- /dev/null Mon Oct 19 23:09:37 2026
+++ pkgsrc/lang/librep/patches/patch-configure.ac Mon Oct 19 23:09:37 2026
@@ -0,0 +1,48 @@
+$NetBSD: patch-configure.ac,v 1.1 2026/10/19 23:09:37 gutteridge Exp $
+
+Modernize C tests to fix builds with GCC >= 14.
+
+--- configure.ac.orig 2017-08-25 19:59:05.000000000 +0000
++++ configure.ac
+@@ -432,15 +432,18 @@ if test "${with_value_type}" = "undef"; then
+ as a pointer. [TYPE=<probed>] (see README)], [],
+ [with_value_type="undef"])
+ if test "${with_value_type}" = "undef"; then
+- AC_TRY_RUN([main () { exit (!(sizeof (int) >= sizeof (void *)));}],
++ AC_TRY_RUN([#include <stdlib.h>
++ int main () { exit (!(sizeof (int) >= sizeof (void *)));}],
+ [with_value_type=int])
+ fi
+ if test "${with_value_type}" = "undef"; then
+- AC_TRY_RUN([main () { exit (!(sizeof (long int) >= sizeof (void *)));}],
++ AC_TRY_RUN([#include <stdlib.h>
++ int main () { exit (!(sizeof (long int) >= sizeof (void *)));}],
+ [with_value_type="long int"])
+ fi
+ if test "${with_value_type}" = "undef"; then
+- AC_TRY_RUN([main () { exit (!(sizeof (long long int) >= sizeof (void *)));}],
++ AC_TRY_RUN([#include <stdlib.h>
++ int main () { exit (!(sizeof (long long int) >= sizeof (void *)));}],
+ [with_value_type="long long int"])
+ fi
+ if test "${with_value_type}" = "undef"; then
+@@ -457,7 +460,8 @@ if test "${with_value_sizeof}" = "undef"; then
+ if test "${with_value_sizeof}" = "undef"; then
+ dnl the following fragment is inspired by AC_CHECK_SIZEOF
+ AC_TRY_RUN([#include <stdio.h>
+- main () {
++ #include <stdlib.h>
++ int main () {
+ FILE *f = fopen ("conftestval", "w");
+ if (!f) exit (1);
+ fprintf (f, "%d\n", sizeof (${with_value_type}));
+@@ -548,7 +552,8 @@ if test "${with_stack_direction}" = unknown; then
+ esac
+ fi
+ if test "${with_stack_direction}" = unknown; then
+- AC_TRY_RUN([ int level = 1;
++ AC_TRY_RUN([ #include <stdlib.h>
++ int level = 1;
+ void inner (char *foo) { char bar;
+ if (level) { --level; inner (foo); }
+ exit (!(foo >= &bar)); }
Index: pkgsrc/lang/librep/patches/patch-intl_dcgettext.c
diff -u /dev/null pkgsrc/lang/librep/patches/patch-intl_dcgettext.c:1.1
--- /dev/null Mon Oct 19 23:09:37 2026
+++ pkgsrc/lang/librep/patches/patch-intl_dcgettext.c Mon Oct 19 23:09:37 2026
@@ -0,0 +1,15 @@
+$NetBSD: patch-intl_dcgettext.c,v 1.1 2026/10/19 23:09:37 gutteridge Exp $
+
+Provide correct/consistent prototype for getcwd(3).
+
+--- intl/dcgettext.c.orig 2017-08-25 19:59:05.000000000 +0000
++++ intl/dcgettext.c
+@@ -99,7 +99,7 @@ char *getwd ();
+ char *getwd ();
+ # define getcwd(buf, max) getwd (buf)
+ # else
+-char *getcwd ();
++char *getcwd (char *, size_t);
+ # endif
+ # ifndef HAVE_STPCPY
+ static char *stpcpy PARAMS ((char *dest, const char *src));
Index: pkgsrc/lang/librep/patches/patch-src_sockets.c
diff -u /dev/null pkgsrc/lang/librep/patches/patch-src_sockets.c:1.1
--- /dev/null Mon Oct 19 23:09:37 2026
+++ pkgsrc/lang/librep/patches/patch-src_sockets.c Mon Oct 19 23:09:37 2026
@@ -0,0 +1,14 @@
+$NetBSD: patch-src_sockets.c,v 1.1 2026/10/19 23:09:37 gutteridge Exp $
+
+Include proper header for select(2).
+
+--- src/sockets.c.orig 2017-08-25 19:59:05.000000000 +0000
++++ src/sockets.c
+@@ -25,6 +25,7 @@
+ #include <stddef.h>
+ #include <stdlib.h>
+ #include <string.h>
++#include <sys/select.h>
+ #include <sys/socket.h>
+ #include <sys/un.h>
+ #include <netinet/in.h>
Home |
Main Index |
Thread Index |
Old Index