Subject: ERROR: libglade is not installed; can't buildlink files.
To: None <tech-pkg@netbsd.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 10/30/2007 09:08:12
This email covers two topics:

1) Should python binding buildlink3.mk files include buildlink3.mk files 
for non-python headers/libraries?

2) Should packages that depend on renamed packages have their versions 
bumped?


Building databases/gramps2 is failing for me:

===> Creating toolchain wrappers for gramps-2.2.9
ERROR: libglade is not installed; can't buildlink files.
*** Error code 1

I have installed:

py24-gtk2-2.8.6 (August 2006)
libglade2-2.5.1nb4	(April 2006)

(Yes, I know these are very old but pkgsrc should be able to handle this.)

x11/py-gtk2/buildlink3.mk has:

BUILDLINK_API_DEPENDS.pygtk2+=  ${PYPKGPREFIX}-gtk2>=2.8.4
BUILDLINK_ABI_DEPENDS.pygtk2+=  ${PYPKGPREFIX}-gtk2>=2.8.5nb1
...
.include "../../devel/libglade/buildlink3.mk"


devel/libglade/buildlink3.mk has:

BUILDLINK_API_DEPENDS.libglade+=        libglade>=2.3.6
BUILDLINK_ABI_DEPENDS.libglade+=        libglade>=2.5.1nb4

Now I see the problem:

libglade2 does not exist anymore since 2007/09/21 (I think).

gramps doesn't depend on libglade directly. It uses py24-gtk2
which is good enough.

I think that a python script that uses py24-gtk2 would not use the
libglade headers or libraries directly.

So why does a buildlink3.mk file for Python bindings for GTK+2 also include
libglade's buildlink3.mk file?

Is this okay?

--- x11/py-gtk2/buildlink3.mk	21 Sep 2007 13:04:44 -0000	1.21
+++ x11/py-gtk2/buildlink3.mk	30 Oct 2007 14:03:29 -0000
@@ -20,8 +20,6 @@
 .endif	# PY_GTK2_BUILDLINK3_MK
 
 .include "../../devel/py-gobject/buildlink3.mk"
-.include "../../devel/libglade/buildlink3.mk"
 .include "../../math/py-Numeric/buildlink3.mk"
-.include "../../x11/gtk2/buildlink3.mk"
 
 BUILDLINK_DEPTH:=	${BUILDLINK_DEPTH:S/+$//}

As for the issue with the renaming. I think that all packages
depending on the original name should be bumped. What do you think?


  Jeremy C. Reed

p.s. Also see same python problem in my "ERROR: db4 is not installed; 
can't buildlink files." thread.