pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/fhist fhist: unbrake build and fix a bug in usag...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0fda814fcc3e
branches:  trunk
changeset: 385744:0fda814fcc3e
user:      nros <nros%pkgsrc.org@localhost>
date:      Mon Sep 26 10:21:32 2022 +0000

description:
fhist: unbrake build and fix a bug in usage of iswctype. Set LICENSE.

diffstat:

 devel/fhist/Makefile                           |   3 ++-
 devel/fhist/distinfo                           |   7 ++++---
 devel/fhist/patches/patch-common_error__intl.c |  15 +++++++++++++++
 devel/fhist/patches/patch-common_input.h       |   6 ++++--
 devel/fhist/patches/patch-common_output.h      |   6 ++++--
 5 files changed, 29 insertions(+), 8 deletions(-)

diffs (91 lines):

diff -r b1ada3e83f44 -r 0fda814fcc3e devel/fhist/Makefile
--- a/devel/fhist/Makefile      Mon Sep 26 09:53:15 2022 +0000
+++ b/devel/fhist/Makefile      Mon Sep 26 10:21:32 2022 +0000
@@ -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 @@
 MAINTAINER=            pkgsrc-users%NetBSD.org@localhost
 HOMEPAGE=              http://fhist.sourceforge.net/
 COMMENT=               File history and comparison tools
+LICENSE=               gnu-gpl-v2
 
 USE_TOOLS+=            gsoelim msgfmt yacc
 GNU_CONFIGURE=         YES
diff -r b1ada3e83f44 -r 0fda814fcc3e devel/fhist/distinfo
--- a/devel/fhist/distinfo      Mon Sep 26 09:53:15 2022 +0000
+++ b/devel/fhist/distinfo      Mon Sep 26 10:21:32 2022 +0000
@@ -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 -r b1ada3e83f44 -r 0fda814fcc3e devel/fhist/patches/patch-common_error__intl.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/fhist/patches/patch-common_error__intl.c    Mon Sep 26 10:21:32 2022 +0000
@@ -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 -r b1ada3e83f44 -r 0fda814fcc3e devel/fhist/patches/patch-common_input.h
--- a/devel/fhist/patches/patch-common_input.h  Mon Sep 26 09:53:15 2022 +0000
+++ b/devel/fhist/patches/patch-common_input.h  Mon Sep 26 10:21:32 2022 +0000
@@ -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 @@
  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 -r b1ada3e83f44 -r 0fda814fcc3e devel/fhist/patches/patch-common_output.h
--- a/devel/fhist/patches/patch-common_output.h Mon Sep 26 09:53:15 2022 +0000
+++ b/devel/fhist/patches/patch-common_output.h Mon Sep 26 10:21:32 2022 +0000
@@ -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 @@
  
  #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); }



Home | Main Index | Thread Index | Old Index