Subject: pkg/36261: security/mhash attempts to install into non-existant directory
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <kre@munnari.OZ.AU>
List: pkgsrc-bugs
Date: 05/02/2007 08:10:00
>Number:         36261
>Category:       pkg
>Synopsis:       security/mhash attempts to install into non-existant directory
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed May 02 08:10:00 +0000 2007
>Originator:     Robert Elz
>Release:        NetBSD 3.99.15  (pkgsrc current within pas 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:
	security/mhash attempts to install include files into
	/usr/pkg/include/mutils/* - a directory that doesn't
	exist (on a clean system anyway).

>How-To-Repeat:
	Attempt to build and install security/mhash on a fairly clean
	system (no previous mhas installed, perhaps no other similar
	packages installed).   I use pkg_comp with a clean sandbox
	(it has libkver and NetBSD 3.0 sets & sources, but I doubt
	any of that is relevant to this problem).

	Expect to see ...

=> Generating pre-install file lists
Making install in include
gmake[1]: Entering directory `/pkg_comp/obj/pkgsrc/security/mhash/default/mhash-
0.9.9/include'
gmake[2]: Entering directory `/pkg_comp/obj/pkgsrc/security/mhash/default/mhash-
0.9.9/include'
gmake[2]: Nothing to be done for `install-exec-am'.
test -z "/usr/pkg/include" || /usr/bin/install -d "/usr/pkg/include"
 /usr/bin/install -c -m 644 'mhash.h' '/usr/pkg/include/mhash.h'
 /usr/bin/install -c -m 644 'mutils/mhash.h' '/usr/pkg/include/mutils/mhash.h'
install: /usr/pkg/include/mutils/mhash.h: open: No such file or directory
 /usr/bin/install -c -m 644 'mutils/mglobal.h' '/usr/pkg/include/mutils/mglobal.
h'
install: /usr/pkg/include/mutils/mglobal.h: open: No such file or directory
 /usr/bin/install -c -m 644 'mutils/mtypes.h' '/usr/pkg/include/mutils/mtypes.h'
install: /usr/pkg/include/mutils/mtypes.h: open: No such file or directory
 /usr/bin/install -c -m 644 'mutils/mutils.h' '/usr/pkg/include/mutils/mutils.h'
install: /usr/pkg/include/mutils/mutils.h: open: No such file or directory
 /usr/bin/install -c -m 644 'mutils/mhash_config.h' '/usr/pkg/include/mutils/mha
sh_config.h'
install: /usr/pkg/include/mutils/mhash_config.h: open: No such file or directory
 /usr/bin/install -c -m 644 'mutils/mincludes.h' '/usr/pkg/include/mutils/minclu
des.h'
install: /usr/pkg/include/mutils/mincludes.h: open: No such file or directory
gmake[2]: *** [install-nobase_includeHEADERS] Error 1
gmake[2]: Leaving directory `/pkg_comp/obj/pkgsrc/security/mhash/default/mhash-0
.9.9/include'
gmake[1]: *** [install-am] Error 2
gmake[1]: Leaving directory `/pkg_comp/obj/pkgsrc/security/mhash/default/mhash-0
.9.9/include'
gmake: *** [install-recursive] Error 1
*** Error code 2

>Fix:
	Make the directory before installing into it ...