summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--devel/fhist/Makefile3
-rw-r--r--devel/fhist/distinfo7
-rw-r--r--devel/fhist/patches/patch-common_error__intl.c15
-rw-r--r--devel/fhist/patches/patch-common_input.h6
-rw-r--r--devel/fhist/patches/patch-common_output.h6
5 files changed, 29 insertions, 8 deletions
diff --git a/devel/fhist/Makefile b/devel/fhist/Makefile
index 4ecca5131ec..194148f2d36 100644
--- a/devel/fhist/Makefile
+++ b/devel/fhist/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.20 2020/01/26 05:26:23 rillig Exp $
+# $NetBSD: Makefile,v 1.21 2022/09/26 10:21:32 nros Exp $
#
DISTNAME= fhist-1.16
@@ -9,6 +9,7 @@ MASTER_SITES= http://fhist.sourceforge.net/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://fhist.sourceforge.net/
COMMENT= File history and comparison tools
+LICENSE= gnu-gpl-v2
USE_TOOLS+= gsoelim msgfmt yacc
GNU_CONFIGURE= YES
diff --git a/devel/fhist/distinfo b/devel/fhist/distinfo
index deeec5b18c8..d219d7497de 100644
--- a/devel/fhist/distinfo
+++ b/devel/fhist/distinfo
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.8 2021/10/26 10:14:38 nia Exp $
+$NetBSD: distinfo,v 1.9 2022/09/26 10:21:32 nros Exp $
BLAKE2s (fhist-1.16.tar.gz) = b4b4aaf3f8a8f85d64156b49ac186209bf1da3c9f833cc0283d75e0e48e79e02
SHA512 (fhist-1.16.tar.gz) = 919fc4d424e1f878404ec2d305dbcd66a4697c88c38af54033bdb178704cf08997c816d75db93ddbfc5248f29b997c4b8aaa3fd98ee790c32582124fc332bc1d
Size (fhist-1.16.tar.gz) = 383180 bytes
-SHA1 (patch-common_input.h) = c72555eaf8dad73406531b2933314c22c67784b2
-SHA1 (patch-common_output.h) = ea2b35c288892e6a509318501bc2b537b3837ee9
+SHA1 (patch-common_error__intl.c) = 2f5486d3bffbd86e5562c69f118e08e73edf2677
+SHA1 (patch-common_input.h) = e966e2b26b894dbb4f84ffb7866b327aa280e765
+SHA1 (patch-common_output.h) = d9990025270ec1203bbba89719edb5656cb773c8
diff --git a/devel/fhist/patches/patch-common_error__intl.c b/devel/fhist/patches/patch-common_error__intl.c
new file mode 100644
index 00000000000..5055c91038c
--- /dev/null
+++ b/devel/fhist/patches/patch-common_error__intl.c
@@ -0,0 +1,15 @@
+$NetBSD: patch-common_error__intl.c,v 1.1 2022/09/26 10:21:32 nros Exp $
+
+* call iswctype with the right arguments
+
+--- common/error_intl.c.orig 2022-09-26 07:07:12.160390023 +0000
++++ common/error_intl.c
+@@ -146,7 +146,7 @@ column_width(wchar_t wc)
+ kanji = wctype("kanji");
+ kanji_set = 1;
+ }
+- if (kanji && iswctype(kanji, wc))
++ if (kanji && iswctype(wc, kanji))
+ return 2;
+ #endif
+ return 1;
diff --git a/devel/fhist/patches/patch-common_input.h b/devel/fhist/patches/patch-common_input.h
index 9de597bc557..dca5eadcd8e 100644
--- a/devel/fhist/patches/patch-common_input.h
+++ b/devel/fhist/patches/patch-common_input.h
@@ -1,4 +1,6 @@
-$NetBSD: patch-common_input.h,v 1.1 2013/02/26 10:25:38 joerg Exp $
+$NetBSD: patch-common_input.h,v 1.2 2022/09/26 10:21:32 nros Exp $
+
+* remove redefinitions of functions since it conflicts with c99
--- common/input.h.orig 2013-02-25 17:15:19.000000000 +0000
+++ common/input.h
@@ -7,7 +9,7 @@ $NetBSD: patch-common_input.h,v 1.1 2013/02/26 10:25:38 joerg Exp $
struct string_ty *input_one_line(input_ty *);
-#ifdef __GNUC__
-+#if defined(__GNUC__) && !defined(__clang__)
++#if 0
extern __inline long input_read(input_ty *fp, void *data, long len)
{ if (len <= 0) return 0; if (fp->pushback_len > 0) {
fp->pushback_len--; *(char *)data = fp->pushback_buf[
diff --git a/devel/fhist/patches/patch-common_output.h b/devel/fhist/patches/patch-common_output.h
index 7d279c495a8..6fe9b4e73fb 100644
--- a/devel/fhist/patches/patch-common_output.h
+++ b/devel/fhist/patches/patch-common_output.h
@@ -1,4 +1,6 @@
-$NetBSD: patch-common_output.h,v 1.1 2013/02/26 10:25:38 joerg Exp $
+$NetBSD: patch-common_output.h,v 1.2 2022/09/26 10:21:32 nros Exp $
+
+* remove redefinitions of functions since it conflicts with c99
--- common/output.h.orig 2013-02-25 17:15:42.000000000 +0000
+++ common/output.h
@@ -7,7 +9,7 @@ $NetBSD: patch-common_output.h,v 1.1 2013/02/26 10:25:38 joerg Exp $
#ifndef DEBUG
-#ifdef __GNUC__
-+#if defined(__GNUC__) && !defined(__clang__)
++#if 0
extern __inline const char *output_filename(output_ty *fp) { return
fp->vptr->filename(fp); }