NetBSD Problem Report #47300

From diro@nixsyspaus.org  Sun Dec  9 01:44:55 2012
Return-Path: <diro@nixsyspaus.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	by www.NetBSD.org (Postfix) with ESMTP id 0B26E63E4E4
	for <gnats-bugs@gnats.NetBSD.org>; Sun,  9 Dec 2012 01:44:55 +0000 (UTC)
Message-Id: <20121209014451.GA26999@nixsyspaus.org>
Date: Sat, 8 Dec 2012 20:44:51 -0500
From: diro@nixsyspaus.org
Reply-To:
To: gnats-bugs@NetBSD.org
Subject: pkg-config --atleast-version is broken

>Number:         47300
>Category:       pkg
>Synopsis:       pkg-config --atleast-version is broken
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Dec 09 01:45:00 +0000 2012
>Last-Modified:  Tue Feb 19 01:55:02 +0000 2013
>Originator:     diro@nixsyspaus.org
>Release:        NetBSD 6.0
>Organization:
>Environment:
System: NetBSD nguest 6.0 NetBSD 6.0 (GENERIC) amd64
Architecture: amd64
Machine: amd64
>Description:
Using pkg-config from pkgsrc-2012Q3 with pkgsrc libiconv.	
>How-To-Repeat:
% pkg-config --atleast-version=0.9.0
Conversion from character set '646' to 'UTF-8' is not supported

>Fix:

>Audit-Trail:
From: Thomas Klausner <wiz@NetBSD.org>
To: NetBSD bugtracking <gnats-bugs@NetBSD.org>
Cc: 
Subject: Re: pkg/47300: pkg-config --atleast-version is broken
Date: Sun, 9 Dec 2012 17:04:55 +0100

 On Sun, Dec 09, 2012 at 01:45:00AM +0000, diro@nixsyspaus.org wrote:
 > >Number:         47300
 > >Category:       pkg
 > >Synopsis:       pkg-config --atleast-version is broken
 > >Confidential:   no
 > >Severity:       critical
 > >Priority:       medium
 > >Responsible:    pkg-manager
 > >State:          open
 > >Class:          sw-bug
 > >Submitter-Id:   net
 > >Arrival-Date:   Sun Dec 09 01:45:00 +0000 2012
 > >Originator:     diro@nixsyspaus.org
 > >Release:        NetBSD 6.0
 > >Organization:
 > >Environment:
 > System: NetBSD nguest 6.0 NetBSD 6.0 (GENERIC) amd64
 > Architecture: amd64
 > Machine: amd64
 > >Description:
 > Using pkg-config from pkgsrc-2012Q3 with pkgsrc libiconv.	
 > >How-To-Repeat:
 > % pkg-config --atleast-version=0.9.0
 > Conversion from character set '646' to 'UTF-8' is not supported

 Just for the record: works fine for me on 6.99.15/amd64 with native iconv.
 # pkg-config --atleast-version=0.9.0  glib2
 #

 Any particular reason you're using pkgsrc libiconv?
  Thomas

From: diro@nixsyspaus.org
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/47300: pkg-config --atleast-version is broken
Date: Sun, 9 Dec 2012 11:15:11 -0500

 >  Any particular reason you're using pkgsrc libiconv?

 Because, i have PREFER_PKGSRC=YES in /usr/pkg/etc/mk.conf

From: Thomas Klausner <wiz@NetBSD.org>
To: NetBSD bugtracking <gnats-bugs@NetBSD.org>
Cc: 
Subject: Re: pkg/47300: pkg-config --atleast-version is broken
Date: Sun, 9 Dec 2012 18:05:24 +0100

 On Sun, Dec 09, 2012 at 04:20:05PM +0000, diro@nixsyspaus.org wrote:
 >  >  Any particular reason you're using pkgsrc libiconv?
 >  
 >  Because, i have PREFER_PKGSRC=YES in /usr/pkg/etc/mk.conf

 Yes, but why? :)

From: diro@nixsyspaus.org
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/47300: pkg-config --atleast-version is broken
Date: Sun, 9 Dec 2012 13:22:43 -0500

 >  Yes, but why? :)

 Because stable releases of pkgsrc happen more often than base. It's much
 faster to recompile packages than userland, in cases of security
 vulnerabilities. Also, versions in pkgsrc tend to be later with more fixes and
 features than those in base.

From: Thomas Cort <tcort@minix3.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/47300: pkg-config --atleast-version is broken
Date: Sat, 16 Feb 2013 19:28:24 -0500

 I'm getting the same thing on Minix. Some pkg-config arguments work
 but others give the same conversion not supported message. It's kind
 of a problem because configure scripts (in fonts/fontconfig for
 example) fail if they can't determine that pkg-config is at least at a
 certain version.

 # pkg-config --atleast-pkgconfig-version 0.9.0
 Conversion from character set '646' to 'UTF-8' is not supported
 # pkg-config freetype2 --cflags
 -I/usr/pkg/include/freetype2 -I/usr/pkg/include
 # pkg-config --version
 0.28
 # pkg-config --help
 GLib: Cannot convert message: Conversion from character set 'UTF-8' to
 '646' is not supported
 Usage:
   pkg-config [OPTION...]

 The rest of the output was omitted for brevity.

From: Thomas Cort <tcort@minix3.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/47300: pkg-config --atleast-version is broken
Date: Mon, 18 Feb 2013 20:48:32 -0500

 I looked into this a bit more. Most of the results I got when
 searching this error message on Google pointed to lib/charset.alias.
 That file is generated by the libcharset which is included in the
 converters/libiconv package. On Minix, the generated file was empty
 because the generation script doesn't know about Minix yet. I taught
 the generator (./libcharset/lib/config.charset) about Minix and the
 generated file now has the line "646 ASCII" which fixes pkg-config's
 complaining. Now pkg-config works as expected. I realize that this
 doesn't really solve the issue on NetBSD, but it might give you some
 ideas on places to look for clues.

>Unformatted:
 To: gnats-bugs@gnats.netbsd.org
 Subject: pkg-config --atleast-version is broken
 From: diro
 Reply-To: diro
 X-send-pr-version: 3.95

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.