pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/devel/gperf
Module Name: pkgsrc
Committed By: pho
Date: Mon Feb 10 08:18:24 UTC 2025
Modified Files:
pkgsrc/devel/gperf: distinfo
Added Files:
pkgsrc/devel/gperf/patches: patch-lib_getline.cc
Log Message:
devel/gperf: Fix build with Clang
To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 pkgsrc/devel/gperf/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/gperf/patches/patch-lib_getline.cc
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/devel/gperf/distinfo
diff -u pkgsrc/devel/gperf/distinfo:1.12 pkgsrc/devel/gperf/distinfo:1.13
--- pkgsrc/devel/gperf/distinfo:1.12 Tue Oct 26 10:14:48 2021
+++ pkgsrc/devel/gperf/distinfo Mon Feb 10 08:18:23 2025
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.12 2021/10/26 10:14:48 nia Exp $
+$NetBSD: distinfo,v 1.13 2025/02/10 08:18:23 pho Exp $
BLAKE2s (gperf-3.1.tar.gz) = eb89f251fbae51e8ac7d6db7bea451529e5cea3eaa7fdf63be9bc103dd695ea0
SHA512 (gperf-3.1.tar.gz) = 855ebce5ff36753238a44f14c95be7afdc3990b085960345ca2caf1a2db884f7db74d406ce9eec2f4a52abb8a063d4ed000a36b317c9a353ef4e25e2cca9a3f4
Size (gperf-3.1.tar.gz) = 1215925 bytes
SHA1 (patch-aa) = 00f7ac8096285fba88d43430fa279a035b4c1221
+SHA1 (patch-lib_getline.cc) = ce10b3a48d860421a9f6afc4cf13f67c77387571
Added files:
Index: pkgsrc/devel/gperf/patches/patch-lib_getline.cc
diff -u /dev/null pkgsrc/devel/gperf/patches/patch-lib_getline.cc:1.1
--- /dev/null Mon Feb 10 08:18:24 2025
+++ pkgsrc/devel/gperf/patches/patch-lib_getline.cc Mon Feb 10 08:18:24 2025
@@ -0,0 +1,19 @@
+$NetBSD: patch-lib_getline.cc,v 1.1 2025/02/10 08:18:24 pho Exp $
+
+Fix build with clang:
+
+ ./getline.cc:58:7: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
+ 58 | register int c = getc (stream);
+ | ^~~~~~~~
+
+--- lib/getline.cc.orig 2025-02-10 08:16:06.983923000 +0000
++++ lib/getline.cc
+@@ -55,7 +55,7 @@ getstr (char **lineptr, size_t *n, FILE *stream, char
+
+ for (;;)
+ {
+- register int c = getc (stream);
++ int c = getc (stream);
+
+ /* We always want at least one char left in the buffer, since we
+ always (unless we get an error while reading the first char)
Home |
Main Index |
Thread Index |
Old Index