Subject: pkg/34600: misc/gnome2-utils on NetBSD requires NetBSD 4*
To: None <,,>
From: None <kre@munnari.OZ.AU>
List: pkgsrc-bugs
Date: 09/25/2006 02:05:00
>Number:         34600
>Category:       pkg
>Synopsis:       misc/gnome2-utils on NetBSD requires NetBSD 4*
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Sep 25 02:05:00 +0000 2006
>Originator:     Robert Elz
>Release:        NetBSD 3.0
	Prince of Songkla University
System: NetBSD 3.99.15 NetBSD 3.99.15 (GENERIC-1.696-20060125) #8: Wed Jan 25 04:59:39 ICT 2006 i386
Architecture: i386
Machine: i386
	I compile packages (using pkg_comp) for NetBSD 3.0 - that
	way they run on anything newer than that (I also sometime compile
	based upon NetBSD 2.0 for older systems).

	For this, I was using pokg_comp, libkver, and NetBSD 3.0 release

	Compiluing misc/gnome2-utils (since the morst resent gnome updates)
	fails (on Netbsd before March/April 2006 anyway) fails, because
	older NetBSD does not have <monetary.h> (nor presumably the strfmon()
	functionit accompanies).

	Use pkg_comp, install pkgtools/libkver and config pkg_comp to
	use that and NetBSD 3.0 (or 3.0.1 or whatever) sets.

	pkg_comp build misc/gnome2-utils results in ...

baobab-utils.c:30:22: monetary.h: No such file or directory
gmake[3]: *** [baobab-baobab-utils.o] Error 1
gmake[3]: Leaving directory `/pkg_comp/obj/pkgsrc/misc/gnome2-utils/default/gnome-utils-2.16.0/baobab/src'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/pkg_comp/obj/pkgsrc/misc/gnome2-utils/default/gnome-utils-2.16.0/baobab'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/pkg_comp/obj/pkgsrc/misc/gnome2-utils/default/gnome-utils-2.16.0'
gmake: *** [all] Error 2
*** Error code 2

	I'd guess the best way is simply to include copies of monetary.h and
	strfmon with the package (somehow), so they can be used instead of
	the system versions when needed.

	Or, create a compat package that includes just monetary.h and
	strfmon in some new library, and depend upon that when required.

	Or, perhaps change the code back to the earlier version which
	didn't need monetary.h  (not good or easy probably).

	Or simply mark this as broken on NetBSD-3.* and antecedents
	(really not good, as there's other stuff that depends upon this one).