Subject: pkg/8620: installing misc/saig can fail with old packages installed
To: None <>
From: None <>
List: netbsd-bugs
Date: 10/13/1999 19:51:49
>Number:         8620
>Category:       pkg
>Synopsis:       installing misc/saig can fail with old packages installed
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager (NetBSD software packages system bug manager)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Oct 13 19:50:59 1999
>Originator:     simonb
>Release:        NetBSD pkgsrc 19991014
System: NetBSD mona 1.4K NetBSD 1.4K (MONA) #227: Wed Sep 8 16:08:27 EST 1999
	simonb@mona:/NetBSD/src/sys/arch/pmax/compile/MONA pmax


	The misc/siag package installs its documentation into
	${PREFIX}/doc then a post-install target in the package
	Makefile moves this to ${PREFIX}/share/doc and then does
	an "${RMDIR} ${PREFIX}/doc".  This causes a "make install"
	to fail if anything else was in the ${PREFIX}/doc directory.

	Note that nothing else should use ${PREFIX}/doc, but there
	are older packages that do not adhere to this and it's
	unreasonable to upgrade existing working packages because
	of this.


	mkdir /usr/pkg/doc
	too /usr/pkg/doc/foo
	cd /usr/pkgsrc/misc/siag
	make install


	No patches...  For now, I've just put a "-" in front of the
	${RMDIR} so that if it fails the entire "make install"
	doesn't bomb out.

	A more correct fix would be to change siag so that it installs
	its documentation directly into ${PREFIX}/share/doc.