Subject: pkg/32784: www/bluefish fails to install on OpenSolaris
To: None <,,>
From: None <>
List: pkgsrc-bugs
Date: 02/09/2006 17:05:00
>Number:         32784
>Category:       pkg
>Synopsis:       www/bluefish fails to install on OpenSolaris
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Feb 09 17:05:00 +0000 2006
>Originator:     segv
SunOS e450-s1 5.11 snv_28 sun4u sparc SUNW,Ultra-4
Installation fails with the following error:

/usr/ucb/install -c -o root -g root -d -m 755  /usr/share/mime/packages
install: mkdir: /usr/share/mime/packages: Read-only file system
gmake[1]: *** [install-fdmime] Error 1
gmake[1]: Leaving directory `/opt/pkg.obj/www/bluefish/work/bluefish-1.0.4/data'
gmake: *** [install] Error 2
*** Error code 2

bmake: stopped in /opt/pkgsrc/www/bluefish
*** Error code 1

I have LOCALBASE=/opt/pkg in my mk.conf file. Package build and install was done in a chroot jail, with most system directories mounted as read-only. A correct path for the installation of the above files would be /opt/pkg/share/mime

I don't think this is just Solaris problem, installing into /usr/share/mime is wrong, when packages reside under /usr/pkg (or /opt/pkg in my case).

Add the following lines to www/bluefish/Makefile:

CONFIGURE_ARGS+= --with-freedesktop_org-mime=${PREFIX:Q}/share/mime
CONFIGURE_ARGS+= --with-gnome2_4-mime=${PREFIX:Q}/share/mime-info
CONFIGURE_ARGS+= --with-gnome2_4-appreg=${PREFIX:Q}/share/application-registry