NetBSD Problem Report #47211
From www@NetBSD.org Sun Nov 18 09:01:38 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 7A16B63E472
for <gnats-bugs@gnats.NetBSD.org>; Sun, 18 Nov 2012 09:01:38 +0000 (UTC)
Message-Id: <20121118090137.3C50A63E472@www.NetBSD.org>
Date: Sun, 18 Nov 2012 09:01:37 +0000 (UTC)
From: richard.palo@baou.fr
Reply-To: richard.palo@baou.fr
To: gnats-bugs@NetBSD.org
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
>Closed-Date:
>Last-Modified: Wed Dec 05 21:58:00 +0000 2012
>Originator: Richard PALO
>Release: pkgsrc trunk
>Organization:
>Environment:
SunOS devzone 5.11 oi_151a7 i86pc i386 i86pc
>Description:
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
Stop.
bmake: stopped in /home/richard/src/pkgsrc/print/gutenprint-lib
*** Error code 1
Stop.
bmake: stopped in /home/richard/src/pkgsrc/print/gutenprint-lib
>How-To-Repeat:
bmake clean
bmake
bmake install
>Fix:
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 @@
bin/cups-calibrate
bin/escputil
bin/testpattern
-etc/cups/command.types
include/gutenprint/array.h
include/gutenprint/bit-ops.h
include/gutenprint/channel.h
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
/etc/opt/pkg
richard@devzone:~/src/pkgsrc/print/gutenprint-lib$ ls /etc/opt/pkg/cups/
cupsd.conf gstoraster.convs interfaces ppd snmp.conf ssl
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->gdt
Responsible-Changed-By: hauke@NetBSD.org
Responsible-Changed-When: Sun, 18 Nov 2012 19:54:14 +0000
Responsible-Changed-Why:
Over to maintainer.
State-Changed-From-To: open->analyzed
State-Changed-By: gdt@NetBSD.org
State-Changed-When: Wed, 05 Dec 2012 21:58:00 +0000
State-Changed-Why:
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.
>Unformatted:
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 Makefile.am. (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.
(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.