Subject: pkg/17244: gimp-print-lib attempts to create directories in /usr/lib causing the install to fail for read-only /usr
To: None <gnats-bugs@gnats.netbsd.org>
From: None <douglas@fang.demon.co.uk>
List: netbsd-bugs
Date: 06/13/2002 03:00:21
>Number:         17244
>Category:       pkg
>Synopsis:       gimp-print-lib attempts to create directories in /usr/lib. If /usr is read-only the install fails.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jun 12 19:01:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        NetBSD 1.5.2
>Organization:
>Environment:
	
System: NetBSD aoife.home 1.5.2 NetBSD 1.5.2 (AOIFE.1.5) #0: Sun Jan 20 19:45:33 GMT 2002 root@aoife.home:/opt/kernel/syssrc/sys/arch/i386/compile/AOIFE.1.5 i386


>Description:
	When installing in print/gimp-print-lib I get the following errors (note that /usr is read-only)

	Making install in cups
	gmake[2]: Entering directory `/opt/packages/pkgsrc/print/gimp-print-lib/work/gimp-print-4.2.1/src/cups'
	gmake[3]: Entering directory `/opt/packages/pkgsrc/print/gimp-print-lib/work/gimp-print-4.2.1/src/cups'
	/bin/sh ../../scripts/mkinstalldirs /usr/bin
	/bin/sh ../../scripts/mkinstalldirs /usr/lib/cups/backend
	mkdir /usr/lib/cups
	mkdir: /usr/lib/cups: Read-only file system
	mkdir /usr/lib/cups/backend
	mkdir: /usr/lib/cups/backend: No such file or directory
	gmake[3]: *** [install-cupsexec_backendPROGRAMS] Error 1
	gmake[3]: Leaving directory `/opt/packages/pkgsrc/print/gimp-print-lib/work/gimp-print-4.2.1/src/cups'
	gmake[2]: *** [install-am] Error 2
	gmake[2]: Leaving directory `/opt/packages/pkgsrc/print/gimp-print-lib/work/gimp-print-4.2.1/src/cups'
	gmake[1]: *** [install-recursive] Error 1
	gmake[1]: Leaving directory `/opt/packages/pkgsrc/print/gimp-print-lib/work/gimp-print-4.2.1/src'
	gmake: *** [install-recursive] Error 1
	*** Error code 2

	I haven't tested it with a writable /usr since the read-only status is specifically to prevent this sort of "littering". The cups directories also don't appear in the PLIST

>How-To-Repeat:
	"make install" in pkgsrc/print/gimp-print-lib to create directories in /usr/lib.
>Fix:
	Unknown, though removing "cups" from the NONGIMP_SUBDIRS definition in work/gimp-print-4.2.1/src/Makefile allows it to install. Possibly patching this or the corresponding Makefile.in may be all that's needed.
>Release-Note:
>Audit-Trail:
>Unformatted: