Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Feb 2014 03:50:01 GMT
From:      Yoshihiro Ota <ota@j.email.ne.jp>
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   Re: ports/186470: japanese/kakasi for libiconv change
Message-ID:  <201402060350.s163o1Dc012731@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/186470; it has been noted by GNATS.

From: Yoshihiro Ota <ota@j.email.ne.jp>
To: bug-followup@FreeBSD.org
Cc: ota@j.email.ne.jp
Subject: Re: ports/186470: japanese/kakasi for libiconv change
Date: Wed, 5 Feb 2014 22:29:29 -0500

 This is a multi-part message in MIME format.
 
 --Multipart=_Wed__5_Feb_2014_22_29_29_-0500_uMM1hUlLhr8WA2NT
 Content-Type: text/plain; charset=US-ASCII
 Content-Transfer-Encoding: 7bit
 
 It looks "configure" in the bundle does not detect iconv correctly.
 It will need more work.
 
 So, instead, I updated to 2.3.5 first while disabling iconv support.
 I attached changes for version up.
 
 I will work on libiconv handling on after settling this down.
 
 Hiro
 
 --Multipart=_Wed__5_Feb_2014_22_29_29_-0500_uMM1hUlLhr8WA2NT
 Content-Type: text/plain;
  name="kakasi-2.3.5-patch.txt"
 Content-Disposition: attachment;
  filename="kakasi-2.3.5-patch.txt"
 Content-Transfer-Encoding: 7bit
 
 diff -urN kakasi.orig/Makefile kakasi/Makefile
 --- kakasi.orig/Makefile	2014-01-16 19:15:09.000000000 -0500
 +++ kakasi/Makefile	2014-02-05 22:23:42.000000000 -0500
 @@ -2,7 +2,7 @@
  # $FreeBSD: tags/RELEASE_10_0_0/japanese/kakasi/Makefile 327737 2013-09-20 18:47:54Z bapt $
  
  PORTNAME=	kakasi
 -PORTVERSION=	2.3.4
 +PORTVERSION=	2.3.5
  CATEGORIES=	japanese textproc
  MASTER_SITES=	http://kakasi.namazu.org/stable/
  
 @@ -15,15 +15,18 @@
  MANLANG=	ja
  MAN1=		kakasi.1
  USE_LDCONFIG=	yes
 +CONFIGURE_ARGS+=--disable-utf8 # configure doesn't handle correct and need more work
  
  DOCS=		NEWS README README-ja TODO \
  		doc/ChangeLog.lib doc/JISYO \
  		doc/README.lib doc/README.wakati
  
  NO_STAGE=	yes
 +.include <bsd.port.options.mk>
 +
  post-install:
 -	${INSTALL_MAN} ${WRKSRC}/doc/kakasi.1 ${PREFIX}/man/${MANLANG}/man1
 -.if !defined(NOPORTDOCS)
 +	${INSTALL_MAN} ${WRKSRC}/man/kakasi.1 ${PREFIX}/man/${MANLANG}/man1
 +.if ${PORT_OPTIONS:MDOCS}
  	${MKDIR} ${DOCSDIR}
  .for f in ${DOCS}
  	${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/
 diff -urN kakasi.orig/distinfo kakasi/distinfo
 --- kakasi.orig/distinfo	2014-01-16 19:15:09.000000000 -0500
 +++ kakasi/distinfo	2014-02-05 09:04:32.000000000 -0500
 @@ -1,2 +1,2 @@
 -SHA256 (kakasi-2.3.4.tar.gz) = c272560f5c11fe45b011c4e26ada66218fb0109d5582c5876aa49c5e24718534
 -SIZE (kakasi-2.3.4.tar.gz) = 1099258
 +SHA256 (kakasi-2.3.5.tar.gz) = f332c008f03a8d017b09221a1ded9c0c7b61212b49a74d96f6eca3f93ba329eb
 +SIZE (kakasi-2.3.5.tar.gz) = 1351215
 diff -urN kakasi.orig/files/patch-configure kakasi/files/patch-configure
 --- kakasi.orig/files/patch-configure	1969-12-31 19:00:00.000000000 -0500
 +++ kakasi/files/patch-configure	2014-02-05 13:27:14.000000000 -0500
 @@ -0,0 +1,20 @@
 +--- configure.orig	2014-02-05 13:23:21.000000000 -0500
 ++++ configure	2014-02-05 13:26:30.000000000 -0500
 +@@ -3889,7 +3889,7 @@
 + 
 + 
 + if test -n "$GCC"; then
 +-    CFLAGS="$CFLAGS -Wall -Wunused -Wuninitialized -Wmissing-prototypes -Wmissing-declarations -pedantic -Wno-unused-result"
 ++    CFLAGS="$CFLAGS -Wall -Wunused -Wuninitialized -Wmissing-prototypes -Wmissing-declarations -pedantic"
 + fi
 + 
 + 
 +@@ -12557,7 +12557,7 @@
 + int
 + main ()
 + {
 +-if (iconv_open("EUC-JP", "UTF-8") == -1) exit(1);
 ++if (iconv_open("EUC-JP", "UTF-8") == (iconv_t)-1) exit(1);
 +   ;
 +   return 0;
 + }
 diff -urN kakasi.orig/files/patch-configure.in kakasi/files/patch-configure.in
 --- kakasi.orig/files/patch-configure.in	1969-12-31 19:00:00.000000000 -0500
 +++ kakasi/files/patch-configure.in	2014-02-05 13:28:06.000000000 -0500
 @@ -0,0 +1,20 @@
 +--- configure.in.orig	2014-01-18 01:47:21.000000000 -0500
 ++++ configure.in	2014-02-05 13:27:41.000000000 -0500
 +@@ -15,7 +15,7 @@
 + AC_PROG_MAKE_SET
 + 
 + if test -n "$GCC"; then
 +-    CFLAGS="$CFLAGS -Wall -Wunused -Wuninitialized -Wmissing-prototypes -Wmissing-declarations -pedantic -Wno-unused-result"
 ++    CFLAGS="$CFLAGS -Wall -Wunused -Wuninitialized -Wmissing-prototypes -Wmissing-declarations -pedantic"
 + fi
 + 
 + dnl OS specific.
 +@@ -85,7 +85,7 @@
 +     LIBS="$LIBICONV $LIBS"
 +     AC_DEFINE(KAKASI_SUPPORT_UTF8, 1, [KAKASI_SUPPORT_UTF8])
 +     AC_RUN_IFELSE([AC_LANG_PROGRAM([#include <iconv.h>],
 +-		    [if (iconv_open("EUC-JP", "UTF-8") == -1) exit(1);])],
 ++		    [if (iconv_open("EUC-JP", "UTF-8") == (iconv_t)-1) exit(1);])],
 + 	[],
 + 	[AC_MSG_ERROR([can not use EUC-JP or UTF-8 encoding on iconv])])
 + fi
 
 --Multipart=_Wed__5_Feb_2014_22_29_29_-0500_uMM1hUlLhr8WA2NT--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201402060350.s163o1Dc012731>