NetBSD Problem Report #42502

From kre@munnari.OZ.AU  Wed Dec 23 13:23:49 2009
Return-Path: <kre@munnari.OZ.AU>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 4C5CA63C430
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 23 Dec 2009 13:23:49 +0000 (UTC)
Message-Id: <200912231322.nBNDMRas005723@jade.coe.psu.ac.th>
Date: Wed, 23 Dec 2009 20:22:27 +0700 (ICT)
From: kre@munnari.OZ.AU
To: gnats-bugs@gnats.NetBSD.org
Subject: wm/openbox PLIST problem (CONF_FILES botch) (NetBSD 4.0 / i386)
X-Send-Pr-Version: 3.95

>Number:         42502
>Category:       pkg
>Synopsis:       wm/openbox PLIST problem (CONF_FILES botch) (NetBSD 4.0 / i386)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Dec 23 13:25:00 +0000 2009
>Closed-Date:    Thu Dec 24 03:15:55 +0000 2009
>Last-Modified:  Thu Dec 24 03:15:55 +0000 2009
>Originator:     Robert Elz
>Release:        NetBSD 4.0 / i386   (pkgsrc current 2009-12-22)
>Organization:
	Prince of Songkla University
>Environment:
System: NetBSD jade.coe.psu.ac.th 4.0_STABLE NetBSD 4.0_STABLE (JADE-1.696-20080517) #9: Fri May 23 18:55:13 ICT 2008 kre@jade.coe.psu.ac.th:/usr/obj/4/kernels/JADE i386
Architecture: i386
Machine: i386
>Description:
	When compiled with PKG_SYSCONFBASE set to a non-standard
	location, wm/openbox (openbox-3.4.8) produces an error from
	the file-check tests run by pkgsrc (with PKG_DEVELOPER=yes)

	That's because it installs its autostart.sh directly into
	PKG_SYSCONFBASE rather than using the CONF_FILES mechanism
	to stage it via /usr/pkg/... (where the PLIST expects it to be).

>How-To-Repeat:
	I yse pkg_comp with NetBSD 4.0 release sets installed, and
	X11_TYPE=modular (I doubt any of that is relevant to this
	problem).    During the build I see ...

test -z "/usr/pkg/include/openbox/3.4/openbox" || ./install-sh -c -d "/usr/pkg/include/openbox/3.4/openbox"
 /usr/bin/install -c -o root -g wheel -m 444 'version.h' '/usr/pkg/include/openbox/3.4/openbox/version.h'
test -z "/etc/conf/xdg/openbox" || ./install-sh -c -d "/etc/conf/xdg/openbox"
 /usr/bin/install -c -o root -g wheel -m 444 'data/autostart.sh' '/etc/conf/xdg/openbox/autostart.sh'
test -z "/usr/pkg/share/xsessions" || ./install-sh -c -d "/usr/pkg/share/xsessions"
 /usr/bin/install -c -o root -g wheel -m 444 'data/xsession/openbox.desktop' '/usr/pkg/share/xsessions/openbox.desktop'

	Then later ...

=> Running POST-INSTALL script actions
openbox-3.4.8: copying /usr/pkg/share/examples/openbox/menu.xml to /etc/conf/xdg/openbox/menu.xml
openbox-3.4.8: copying /usr/pkg/share/examples/openbox/rc.xml to /etc/conf/xdg/openbox/rc.xml
pkg_create: can't stat `/usr/pkg/etc/xdg/openbox/autostart.sh'
=> Registering installation for openbox-3.4.8
pkg_admin: openbox-3.4.8: File `/usr/pkg/etc/xdg/openbox/autostart.sh' is in +CONTENTS but not on filesystem!

	And finally...

=> Checking file-check results for openbox-3.4.8
ERROR: ************************************************************
ERROR: The following files are in the PLIST but not in /usr/pkg:
ERROR:         /usr/pkg/etc/xdg/openbox/autostart.sh
*** Error code 1

Stop.

>Fix:
	It is clear that openbox is doing some of the CONF_FIILES
	stuff correctly, but missed autostart.sh from the list of
	files needing that treatment.

>Release-Note:

>Audit-Trail:
From: Soren Jacobsen <snj@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/42502 CVS commit: pkgsrc/wm/openbox
Date: Thu, 24 Dec 2009 03:13:07 +0000

 Module Name:	pkgsrc
 Committed By:	snj
 Date:		Thu Dec 24 03:13:07 UTC 2009

 Modified Files:
 	pkgsrc/wm/openbox: Makefile PLIST distinfo
 	pkgsrc/wm/openbox/patches: patch-aa

 Log Message:
 Give autostart.sh the full CONF_FILES treatment.  Fixes PR pkg/42502.


 To generate a diff of this commit:
 cvs rdiff -u -r1.55 -r1.56 pkgsrc/wm/openbox/Makefile
 cvs rdiff -u -r1.20 -r1.21 pkgsrc/wm/openbox/PLIST
 cvs rdiff -u -r1.22 -r1.23 pkgsrc/wm/openbox/distinfo
 cvs rdiff -u -r1.8 -r1.9 pkgsrc/wm/openbox/patches/patch-aa

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->closed
State-Changed-By: snj@NetBSD.org
State-Changed-When: Thu, 24 Dec 2009 03:15:55 +0000
State-Changed-Why:
Fixed.  Thanks for the PR!


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.