NetBSD Problem Report #47267

From www@NetBSD.org  Fri Nov 30 18:15:33 2012
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	by www.NetBSD.org (Postfix) with ESMTP id 9B83563DFC7
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 30 Nov 2012 18:15:33 +0000 (UTC)
Message-Id: <20121130181532.B4CB663DFC7@www.NetBSD.org>
Date: Fri, 30 Nov 2012 18:15:32 +0000 (UTC)
From: richard.palo@baou.fr
Reply-To: richard.palo@baou.fr
To: gnats-bugs@NetBSD.org
Subject: pkgsrc/print/ghostscript problems with omni and libiconv
X-Send-Pr-Version: www-1.0

>Number:         47267
>Category:       pkg
>Synopsis:       pkgsrc/print/ghostscript problems with omni and libiconv
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Fri Nov 30 18:20:00 +0000 2012
>Last-Modified:  Mon Dec 31 05:25:02 +0000 2012
>Originator:     Richard PALO
>Release:        pkgsrc trunk
>Organization:
>Environment:
SunOS devzone 5.11 oi_151a7 i86pc i386 i86pc Solaris

>Description:
in order to get pkgsrc/print/ghostscript on solaris, I needed the following patch
>How-To-Repeat:

>Fix:
richard@devzone:~/src/pkgsrc/print/ghostscript$ cvs diff
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/print/ghostscript/Makefile,v
retrieving revision 1.91
diff -u -p -r1.91 Makefile
--- Makefile    16 Oct 2012 10:10:17 -0000      1.91
+++ Makefile    30 Nov 2012 18:15:03 -0000
@@ -1,6 +1,8 @@
 # $NetBSD: Makefile,v 1.91 2012/10/16 10:10:17 rumko Exp $

 DISTNAME=      ghostscript-${GS_VERSION}
+
+PKGREVISION=    1
 CATEGORIES=    print
 MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=ghostscript/}
 MASTER_SITES+= http://ghostscript.com/releases/
@@ -28,7 +30,8 @@ UNLIMIT_RESOURCES+=   datasize        # gsromfs1.

 BUILD_TARGET=          so
 INSTALL_TARGET=                soinstall
-CONFIGURE_ARGS+=       -with-omni=no   # otherwise pulls in libstdc++
+CONFIGURE_ARGS+=       --with-omni=no  # otherwise pulls in libstdc++
+CONFIGURE_ARGS+=       --with-libiconv=gnu

 REPLACE_PERL+=         toolbin/localcluster/clusterpush.pl
 REPLACE_PERL+=         toolbin/checkdeps.pl
@@ -100,6 +103,7 @@ post-extract:
 post-install:
        ${LN} -sf gsc ${DESTDIR}${PREFIX}/bin/gs

+.include "../../converters/libiconv/buildlink3.mk"
 .include "../../print/libpaper/buildlink3.mk"
 .include "../../graphics/png/buildlink3.mk"
 .include "../../graphics/tiff/buildlink3.mk"

>Audit-Trail:
From: Richard PALO <richard.palo@baou.fr>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/47267: pkgsrc/print/ghostscript problems with omni and libiconv
Date: Thu, 13 Dec 2012 14:46:31 +0100

 As an update, perhaps this should be adapted in a similar manner as 
 poppler-cpp was handled...
 it does need fixing for at least solaris platforms, anyway.

From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/47267: pkgsrc/print/ghostscript problems with omni and
 libiconv
Date: Sun, 30 Dec 2012 17:53:38 +0900

 On Sat, 01 Dec 2012 03:20:01 +0900, <richard.palo@baou.fr> wrote:

 > +CONFIGURE_ARGS+=       --with-libiconv=gnu

 --with-libiconv=${ICONV_TYPE} should be used instead.

 -- 
 OBATA Akio / obache@NetBSD.org

From: Richard PALO <Richard.PALO@baou.fr>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/47267: pkgsrc/print/ghostscript problems with omni and libiconv
Date: Sun, 30 Dec 2012 15:24:00 +0100

 This is a multi-part message in MIME format.
 --------------060705080400020706050805
 Content-Type: text/plain; charset=UTF-8; format=flowed
 Content-Transfer-Encoding: 8bit

 Le 30/12/12 09:55, OBATA Akio a écrit :
 >
 >   > +CONFIGURE_ARGS+=       --with-libiconv=gnu
 >
 >   --with-libiconv=${ICONV_TYPE} should be used instead.

 --with-libiconv=${ICONV_TYPE}

 seems to work fine for me too.

 Do I need to resubmit the patch, or is this confirmation okay?


 --------------060705080400020706050805
 Content-Type: text/x-vcard; charset=utf-8;
  name="Richard_PALO.vcf"
 Content-Transfer-Encoding: base64
 Content-Disposition: attachment;
  filename="Richard_PALO.vcf"

 YmVnaW46dmNhcmQNCmZuOlJpY2hhcmQgUEFMTw0KbjpQQUxPO1JpY2hhcmQNCm9yZzpTQVMg
 QkFPVTtUTlQgUEFDQQ0KYWRyOlpJIENhbXAgTGF1cmVudDs7MTE3LCBhdiBNYXJjZWwgQmVy
 cmU7TEEgU0VZTkUgU1VSIE1FUjtWQVI7ODM1MDA7RlJBTkNFDQplbWFpbDtpbnRlcm5ldDpy
 aWNoYXJkLnBhbG9AYmFvdS5mcg0KdGVsO3dvcms6KzMzIDQgOTQgOTQgMzkgOTQNCnRlbDtm
 YXg6KzMzIDQgOTQgODcgODYgNjcNCngtbW96aWxsYS1odG1sOkZBTFNFDQp2ZXJzaW9uOjIu
 MQ0KZW5kOnZjYXJkDQoNCg==
 --------------060705080400020706050805--

From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/47267: pkgsrc/print/ghostscript problems with omni and
 libiconv
Date: Mon, 31 Dec 2012 14:19:31 +0900

 On Sun, 30 Dec 2012 23:25:03 +0900, Richard PALO <Richard.PALO@baou.fr> wrote:

 >  --with-libiconv=${ICONV_TYPE}
 > seems to work fine for me too.

 Thanks.

 >  Do I need to resubmit the patch, or is this confirmation okay?

 No, but I don't know whether this change affect to libgs or not.

 -- 
 OBATA Akio / obache@NetBSD.org

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.