Subject: pkg/32935: audio/oss - wacky package problem with pkg_comp+libkver
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <kre@munnari.OZ.AU>
List: pkgsrc-bugs
Date: 02/26/2006 17:05:01
>Number:         32935
>Category:       pkg
>Synopsis:       audio/oss - wacky package problem with pkg_comp+libkver
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Feb 26 17:05:00 +0000 2006
>Originator:     Robert Elz
>Release:        NetBSD 3.99.15  (pkgsrc current as of about 12 hours ago)
>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
	Using pkg_comp + libkver with 3.0 binary sets
Architecture: i386
Machine: i386
>Description:
	The packaging method for autio.oss seems a little strange.
	It wants to include /usr/lib/libkver.so in the binary
	package it is making, which I am fairly sure is not what
	should be happening.

>How-To-Repeat:
	Set up a pkg_comp arena, have it use libkver (set NETBSD_RELEASE)
	Arrange for pkg_comp to build binary packages (BUILD_TARGET=package)
	Then
		pkg_comp build audio/oss

	Expect to see something like ...

===> Patching for oss-3.9.8enb1
===> Overriding tools for oss-3.9.8enb1
===> Creating toolchain wrappers for oss-3.9.8enb1
===> Building for oss-3.9.8enb1
===> Creating /pkg_comp/obj/pkgsrc/audio/oss/default/oss
=> Unwrapping files-to-be-installed.
===> Installing for oss-3.9.8enb1
===> Creating installation directories
/bin/pax -rw `/bin/cat /usr/pkgsrc/audio/oss/files/chroot` /pkg_comp/obj/pkgsrc/audio/oss/default
pax: Unable to access /usr/lib/libkver.so* (No such file or directory)
pax: WARNING! These file names were not selected:
/usr/lib/libkver.so*
*** Error code 1 (ignored)
/usr/sbin/chroot -u root -g wheel /pkg_comp/obj/pkgsrc/audio/oss/default ./install.sh
Cannot open "/libkver/lib/libkver.so"
*** Error code 1


>Fix:
	???