Subject: pkg/36260: x11/xfce4-session PLIST problem
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <kre@munnari.OZ.AU>
List: pkgsrc-bugs
Date: 05/02/2007 07:45:00
>Number:         36260
>Category:       pkg
>Synopsis:       x11/xfce4-session PLIST problem
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed May 02 07:45:00 +0000 2007
>Originator:     Robert Elz
>Release:        NetBSD 3.99.15  (pkgsc current within past 12 hours)
>Organization:
	Prince of Songkla University
>Environment:
System: NetBSD jade.coe.psu.ac.th 3.99.15 NetBSD 3.99.15 (GENERIC-1.696-20060125) #8: Wed Jan 25 04:59:39 ICT 2006 kre@jade.coe.psu.ac.th:/usr/obj/current/kernels/JADE_ASUS i386
Architecture: i386
Machine: i386
>Description:
	The PLIST for x11/xfce4-session includes a file which
	gets included in the system config directory (which is
	end system alterable - and which I prefer to alter) but
	references it using its full pathname as if PKG_SYSCONFBASE
	was not set.

>How-To-Repeat:
	Build and install x11/xfce4-session with
	PKG_SYSCONFBASE set to something other than the default.
	Attempt to make a binary package.

	Expect to see ...

=> Checking file-check results for xfce4-session-4.4.1
ERROR: ************************************************************
ERROR: The following files are in the PLIST but not in /usr/pkg:
ERROR:         /usr/pkg/etc/xdg/autostart/xfce4-tips-autostart.desktop
*** Error code 1

	Look back earlier and notice ...

test -z "/etc/conf/xdg/autostart" || /bin/sh ../mkinstalldirs "/etc/conf/xdg/aut
ostart"
mkdir /etc/conf/xdg/autostart
 /usr/bin/install -c -o root -g wheel -m 444 'xfce4-tips-autostart.desktop' '/etc/conf/xdg/autostart/xfce4-tips-autostart.desktop'

	where xfce4-tips-autostart.desktop is being installed
	(correctly) where it is apparently meant to be installed
	(given PKG_SYSCONFBASE=/etc/conf which is what I use).

>Fix:
	Somehow make PLIST understand files whose location is not
	fixed (or if that one wasn't supposed tobe in PKG_SYSCONFBASE
	then don't put it there!)