Subject: pkg/34975: www/amaya - weird problems (gmake bug? / pkgsrc bug / PLIST ???)
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <kre@munnari.OZ.AU>
List: pkgsrc-bugs
Date: 11/02/2006 13:00:02
>Number:         34975
>Category:       pkg
>Synopsis:       www/amaya - weird problems (gmake bug? / pkgsrc bug / PLIST ???)
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Nov 02 13:00:01 +0000 2006
>Originator:     Robert Elz
>Release:        NetBSD 3.99.15   (pkgsrc current today)
>Organization:
	Prince os 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:
	www/amaya gets a compilation error (missing include file), but
	doesn't stop - or rather, the compilation process seems to
	halt, but then the package goes ageaah and (attempts) to install,
	generating thousands of errors along the way.

>How-To-Repeat:
	I can repeat this using pkg_comp with libkver and NetBSD 3.0
	release sets installed - starting with an almost empty sandbox
	(that is, I do "pkg_comp removeroot" "pkg_comp makeroot", so all
	I have are the small number of packages that makeroot always
	installs for me - for me that includes pkglint, and so, perl as well)

	After that pkg_comp build www/amaya eventually generates...

c++ -O2 -Dunix -I/usr/pkg/include -I/usr/include -Wall -x c++ -D__cplusplus -DHA
VE_CONFIG_H -I.. -I../amaya -I../../davlib/f -I../../amaya -I../../amaya/f -I../
libwww -I../../thotlib/include -I../../../libwww/Library/src -I../../../libwww/m
odules/expat/lib -I../../davlib/tree/h -I../../davlib/h -I/usr/pkg/include/gtk-1
.2 -I/usr/pkg/include/glib/glib-1.2 -I/usr/pkg/lib/glib/include -I/usr/X11R6/inc
lude -I/usr/pkg/include  -D_UNIX   -DXML_GENERIC -D_GTK     -DDAV -DHT_DAV -c ..
/../davlib/awparser.c -o awparser.o
c++ -O2 -Dunix -I/usr/pkg/include -I/usr/include -Wall -x c++ -D__cplusplus -DHA
VE_CONFIG_H -I.. -I../amaya -I../../davlib/f -I../../amaya -I../../amaya/f -I../
libwww -I../../thotlib/include -I../../../libwww/Library/src -I../../../libwww/m
odules/expat/lib -I../../davlib/tree/h -I../../davlib/h -I/usr/pkg/include/gtk-1
.2 -I/usr/pkg/include/glib/glib-1.2 -I/usr/pkg/lib/glib/include -I/usr/X11R6/inc
lude -I/usr/pkg/include  -D_UNIX   -DXML_GENERIC -D_GTK     -DDAV -DHT_DAV -c ..
/../davlib/AHTLockBase.c -o AHTLockBase.o
In file included from ../../davlib/h/AHTLockBase.h:21,
                 from ../../davlib/AHTLockBase.c:20:
../../../libwww/Library/src/wwwsys.h:132:21: wwwconf.h: No such file or director
y
gmake[1]: *** [AHTLockBase.o] Error 1
gmake[1]: Leaving directory `/pkg_comp/obj/pkgsrc/www/amaya/default/Amaya/work/d
avlib'

	But then goes on immediately with ...

=> Unwrapping files-to-be-installed.
===> Installing for amaya-9.2.1nb5
=> Generating pre-install file lists
=> Running PRE-INSTALL script actions
gmake[1]: Entering directory `/pkg_comp/obj/pkgsrc/www/amaya/default/Amaya/work/
tools'
gmake[2]: Entering directory `/pkg_comp/obj/pkgsrc/www/amaya/default/Amaya/work/
tools/mkdep'
gmake[2]: Nothing to be done for `install'.

	(etc).   After a bunch of inoccuous looking install messages
	we get

(DIR=`pwd` ; THOTDIR=$DIR/../.. ; export THOTDIR ; \
        cd ../../batch ; $DIR/../bin/grm APP)
Couldn't create directory /home/kre/.amaya
gmake[2]: *** [APP.GRM] Error 1

	Huh???   Why is installing this thing attempting to modify my
	home directory?   That's absurd.   If I was running it, perhaps,		that would be appropriate, but I'm not (and clearly cannot here,
	as it didn't even finish compiling).

	There is no /home/kre (and probably no /home even) in he sandbox
	where this is building, so it is no surprise that the attempt to
	maje the .amaya directory fails - however, it should not be doing
	that at all (just because I build/install the thing doesn't mean that
	I have any interest at all in using it - I don't).

	Once again, the error condition is ignored, and the install just
	keeps on chugging along...

	Eventually...

=> Automatic manual page handling
=> Generating post-install file lists
=> Running POST-INSTALL script actions
===========================================================================
Updating font databases in the following directories:

        /usr/pkg/share/Amaya/fonts (ttf)
        /usr/pkg/share/Amaya/fonts (x11)

===========================================================================
pkg_create: can't stat `/usr/pkg/bin/amaya'
pkg_create: can't stat `/usr/pkg/bin/amaya-gtk'
pkg_create: can't stat `/usr/pkg/share/Amaya/amaya/Amaya.svg'
pkg_create: can't stat `/usr/pkg/share/Amaya/amaya/AmayaPage.html'
pkg_create: can't stat `/usr/pkg/share/Amaya/amaya/AmayaPage.html.de'
pkg_create: can't stat `/usr/pkg/share/Amaya/amaya/AmayaPage.html.es'
pkg_create: can't stat `/usr/pkg/share/Amaya/amaya/AmayaPage.html.fr'

	(and a lot more).   After several hundred (perhaps a thousand or so)
	of similar lines, we keep on keeping on ...

=> Registering installation for amaya-9.2.1nb5

	I would have thought something would have decided to quit by
	now, but no...

pkg_admin: amaya-9.2.1nb5: File `/usr/pkg/bin/amaya' is in +CONTENTS but not on
filesystem! 
pkg_admin: amaya-9.2.1nb5: File `/usr/pkg/bin/amaya-gtk' is in +CONTENTS but not
 on filesystem!
pkg_admin: amaya-9.2.1nb5: File `/usr/pkg/share/Amaya/amaya/Amaya.svg' is in +CO
NTENTS but not on filesystem!
pkg_admin: amaya-9.2.1nb5: File `/usr/pkg/share/Amaya/amaya/AmayaPage.html' is i
n +CONTENTS but not on filesystem!

	There's somewhere of the orde of a thousand lines like those as well.
	This all ends with ...

ERROR:         /usr/pkg/share/Amaya/resources/xrc/WinPrintDlgWX.xrc
ERROR: ************************************************************
ERROR: The following files are in both the PLIST and CHECK_FILES_SKIP:
ERROR:         /usr/pkg/share/Amaya/fonts/fonts.dir
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/www/amaya
*** Error code 1

Stop.

	At which point it really does stop.

>Fix:
	???

	I Have no idea what wwwconf.h is supposed to be, or where it is
	supposed to originate (from some other package?)   Assuming that
	gets fixed, the compilation would perhaps complete, so all of the
	mssing files would probably be able to be created and installed.

	But $HOME/.amaya should *not* be installed at this stage, it is the
	wrong $HOME for the actual amaya user(s).

	Bigger problem - why is the install just proceeding past all
	these errors, instead of quitting as make usually does?