Subject: PLIST issues with xorg on Solaris
To: None <pkgsrc-users@netbsd.org>
From: Neil Hoggarth <neil.hoggarth@physiol.ox.ac.uk>
List: pkgsrc-users
Date: 09/01/2006 17:54:49
I have been attempting to doing pkgsrc builds on Solaris 9 using the
xorg libraries rather than Sun's OpenWindows libraries.

On a freshly bootstrapped pkgsrc setup, I added "X11_TYPE=xorg" to my
mk.conf file and tried to build some packages with X11 dependencies.

I first hit problems with xorg-imake:

=> Automatic manual page handling
pkg_create: can't stat `/usr/pkg/xorg//ccmakedep.'
pkg_create: can't stat `/usr/pkg/xorg//cleanlinks.'
pkg_create: can't stat `/usr/pkg/xorg//gccmakedep.'
pkg_create: can't stat `/usr/pkg/xorg//imake.'
pkg_create: can't stat `/usr/pkg/xorg//lndir.'
pkg_create: can't stat `/usr/pkg/xorg//makedepend.'
pkg_create: can't stat `/usr/pkg/xorg//makeg.'
pkg_create: can't stat `/usr/pkg/xorg//makestrs.'
pkg_create: can't stat `/usr/pkg/xorg//mergelib.'
pkg_create: can't stat `/usr/pkg/xorg//mkdirhier.'
pkg_create: can't stat `/usr/pkg/xorg//mkhtmlindex.'
pkg_create: can't stat `/usr/pkg/xorg//pswrap.'
pkg_create: can't stat `/usr/pkg/xorg//revpath.'
pkg_create: can't stat `/usr/pkg/xorg//rman.'
pkg_create: can't stat `/usr/pkg/xorg//xmkmf.'
=> Registering installation for xorg-imake-6.9.0nb4
pkg_admin: xorg-imake-6.9.0nb4: File `/usr/pkg/xorg//ccmakedep.' is in +CONTENTS but not on filesystem!
pkg_admin: xorg-imake-6.9.0nb4: File `/usr/pkg/xorg//cleanlinks.' is in +CONTENTS but not on filesystem!
pkg_admin: xorg-imake-6.9.0nb4: File `/usr/pkg/xorg//gccmakedep.' is in +CONTENTS but not on filesystem!
pkg_admin: xorg-imake-6.9.0nb4: File `/usr/pkg/xorg//imake.' is in +CONTENTS but not on filesystem!
pkg_admin: xorg-imake-6.9.0nb4: File `/usr/pkg/xorg//lndir.' is in +CONTENTS but not on filesystem!
pkg_admin: xorg-imake-6.9.0nb4: File `/usr/pkg/xorg//makedepend.' is in +CONTENTS but not on filesystem!
pkg_admin: xorg-imake-6.9.0nb4: File `/usr/pkg/xorg//makeg.' is in +CONTENTS but not on filesystem!
pkg_admin: xorg-imake-6.9.0nb4: File `/usr/pkg/xorg//makestrs.' is in +CONTENTS but not on filesystem!
pkg_admin: xorg-imake-6.9.0nb4: File `/usr/pkg/xorg//mergelib.' is in +CONTENTS but not on filesystem!
pkg_admin: xorg-imake-6.9.0nb4: File `/usr/pkg/xorg//mkdirhier.' is in +CONTENTS but not on filesystem!
pkg_admin: xorg-imake-6.9.0nb4: File `/usr/pkg/xorg//mkhtmlindex.' is in +CONTENTS but not on filesystem!
pkg_admin: xorg-imake-6.9.0nb4: File `/usr/pkg/xorg//pswrap.' is in +CONTENTS but not on filesystem!
pkg_admin: xorg-imake-6.9.0nb4: File `/usr/pkg/xorg//revpath.' is in +CONTENTS but not on filesystem!
pkg_admin: xorg-imake-6.9.0nb4: File `/usr/pkg/xorg//rman.' is in +CONTENTS but not on filesystem!
pkg_admin: xorg-imake-6.9.0nb4: File `/usr/pkg/xorg//xmkmf.' is in +CONTENTS but not on filesystem!

And the "missing" files prevent me from being able to "make package".
This problem seems to be related to the last handful of lines in the
PLIST:

${IMAKE_MANTOOLS}${X11ROOT_PREFIX}/${MAN_DIR}/ccmakedep.${MAN_SUFFIX}
${IMAKE_MANTOOLS}${X11ROOT_PREFIX}/${MAN_DIR}/cleanlinks.${MAN_SUFFIX}
${IMAKE_MANTOOLS}${X11ROOT_PREFIX}/${MAN_DIR}/gccmakedep.${MAN_SUFFIX}
${IMAKE_MANTOOLS}${X11ROOT_PREFIX}/${MAN_DIR}/imake.${MAN_SUFFIX}
${IMAKE_MANTOOLS}${X11ROOT_PREFIX}/${MAN_DIR}/lndir.${MAN_SUFFIX}
${IMAKE_MANTOOLS}${X11ROOT_PREFIX}/${MAN_DIR}/makedepend.${MAN_SUFFIX}
${IMAKE_MANTOOLS}${X11ROOT_PREFIX}/${MAN_DIR}/makeg.${MAN_SUFFIX}
${IMAKE_MANTOOLS}${X11ROOT_PREFIX}/${MAN_DIR}/makestrs.${MAN_SUFFIX}
${IMAKE_MANTOOLS}${X11ROOT_PREFIX}/${MAN_DIR}/mergelib.${MAN_SUFFIX}
${IMAKE_MANTOOLS}${X11ROOT_PREFIX}/${MAN_DIR}/mkdirhier.${MAN_SUFFIX}
${IMAKE_MANTOOLS}${X11ROOT_PREFIX}/${MAN_DIR}/mkhtmlindex.${MAN_SUFFIX}
${IMAKE_MANTOOLS}${X11ROOT_PREFIX}/${MAN_DIR}/pswrap.${MAN_SUFFIX}
${IMAKE_MANTOOLS}${X11ROOT_PREFIX}/${MAN_DIR}/revpath.${MAN_SUFFIX}
${IMAKE_MANTOOLS}${X11ROOT_PREFIX}/${MAN_DIR}/rman.${MAN_SUFFIX}
${IMAKE_MANTOOLS}${X11ROOT_PREFIX}/${MAN_DIR}/xmkmf.${MAN_SUFFIX}

It appears that MAN_DIR and MAN_SUFFIX expand to null strings on my
system.  I can actually get the package to build correctly by passing
in MAN_DIR=man/man1 and MAN_SUFFIX=0 into the make via the
envirionment. However I then hit similar issues on an even bigger
scale with the xorg-libs package.

Is X11_TYPE=xorg supposed to work on Solaris?

Have I missed something, misconfigured something, or should I file a PR?

Regards,
-- 
Neil Hoggarth  -------------------  Computing Manager, Sherrington Building
Department of Physiology, Anatomy and Genetics  -  University of Oxford, UK