NetBSD Problem Report #47211

From  Sun Nov 18 09:01:38 2012
Return-Path: <>
Received: from ( [])
	by (Postfix) with ESMTP id 7A16B63E472
	for <>; Sun, 18 Nov 2012 09:01:38 +0000 (UTC)
Message-Id: <>
Date: Sun, 18 Nov 2012 09:01:37 +0000 (UTC)
Subject: install problems with gutenprint-libs
X-Send-Pr-Version: www-1.0

>Number:         47211
>Category:       pkg
>Synopsis:       install problems with gutenprint-libs
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    gdt
>State:          analyzed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Nov 18 09:05:00 +0000 2012
>Last-Modified:  Wed Dec 05 21:58:00 +0000 2012
>Originator:     Richard PALO
>Release:        pkgsrc trunk
SunOS devzone 5.11 oi_151a7 i86pc i386 i86pc

after a successful build of gutenprint-cups, bmake install fails on a shared directory file with cups found in PLIST "etc/cups/command.types"

here is an extract from the install:
=> Bootstrap dependency digest>=20010302: found digest-20111104
===> Installing for gutenprint-lib-5.2.9nb6
=> Automatic manual page handling
pkg_create: can't stat `/tmp/pkgsrc/print/gutenprint-lib/work/.destdir/opt/pkg/etc/cups/command.types'
===> Building binary package for gutenprint-lib-5.2.9nb6
=> Creating binary package /home/richard/src/pkgsrc/packages/All/gutenprint-lib-5.2.9nb6.tgz
pkg_create: can't stat `/tmp/pkgsrc/print/gutenprint-lib/work/.destdir/opt/pkg/etc/cups/command.types'
pkg_create: lstat failed for file etc/cups/command.types: No such file or directory
*** Error code 2

bmake: stopped in /home/richard/src/pkgsrc/print/gutenprint-lib
*** Error code 1

bmake: stopped in /home/richard/src/pkgsrc/print/gutenprint-lib
bmake clean
bmake install
a partial fix is the following:
diff --git a/print/gutenprint-lib/PLIST b/print/gutenprint-lib/PLIST
index f345d8a..4808159 100644
--- a/print/gutenprint-lib/PLIST
+++ b/print/gutenprint-lib/PLIST
@@ -2,7 +2,6 @@

as command.types is not installed into PKG_SYSCONFBASE/cups, in this case 
richard@devzone:~/src/pkgsrc/print/gutenprint-lib$ bmake show-var VARNAME=PKG_SYSCONFBASE
richard@devzone:~/src/pkgsrc/print/gutenprint-lib$ ls /etc/opt/pkg/cups/
cupsd.conf        gstoraster.convs  interfaces        ppd               snmp.conf         ssl



Responsible-Changed-From-To: pkg-manager->gdt
Responsible-Changed-When: Sun, 18 Nov 2012 19:54:14 +0000
Over to maintainer.

State-Changed-From-To: open->analyzed
State-Changed-When: Wed, 05 Dec 2012 21:58:00 +0000
The problem is understood.  Probably PLIST should have an entry
that refers to PKG_SYSCONFBASE instead of ${PREFIX}/etc.
I am awaiting a clean patch that does not break other systems.


 On NetBSD, the file appears in the expected place.  So removing it
 from PLIST is not a reasonable fix.

 I don't have a Solaris system, so the path to fixing this is someone
 sending a clean patch that doesn't break other systems.

 Is command.types installed anyplace on your system?  It's installed
 via src/cups, as pkgsysconf_DATA in  (It seems wrong for
 command.types to be pkgsysconf_DATA, since it isn't really a
 user-editable config file, but my approach is to fight upstream as
 little as possible with patches.)

 Try building with PKG_DEVELOPER=yes.

NetBSD Home
NetBSD PR Database Search

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