Subject: pkg/28950: broken graphics/dia package in pkgsrc-2004Q4
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Matthew Mondor <mm_lists@pulsar-zone.net>
List: pkgsrc-bugs
Date: 01/13/2005 13:39:00
>Number:         28950
>Category:       pkg
>Synopsis:       dia package fails to build with pkgsrc-2004Q4 (python-gtk)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jan 13 13:39:00 +0000 2005
>Originator:     Matthew Mondor
>Release:        NetBSD 2.0
>Organization:
>Environment:
System: NetBSD hal.xisop 2.0 NetBSD 2.0 (HAL) #0: Sat Jan 1 15:00:45 EST 2005 root@hal.xisop:/usr/src/sys/arch/i386/compile/HAL i386
Architecture: i386
Machine: i386
>Description:

	The graphics/dia package fails to build with pkgsrc-2004Q4.
	The problem appears to be related to detection or use of python-gtk,
	while the packages it expects are installed, including
	py23-gtk2-2.2.0nb2 and python23-2.3.4nb2:

[...]
checking for catalogs to be installed...  am az be ca cs da de el en_CA en_GB es fi fr ga gu hr hu is it ja ko mk mn ml ms nl nn no pl pt pt_BR ro ru sk sl sq sr sr@Latn sv tr uk vi zh_CN zh_TW
checking for xml2-config... xml2-config
checking for libxml >= 2.3.9... found
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for gzread in -lz... yes
checking math.h usability... yes
checking math.h presence... yes
checking for math.h... yes
checking for isinf in -lm... yes
checking if C compiler accepts -Wall... yes
checking if C compiler accepts -Wunused... yes
checking if C compiler accepts -Wmissing-prototypes... yes
checking if C compiler accepts -Wmissing-declarations... yes
checking if C compiler accepts -finline-functions... yes
checking if C compiler accepts -fstrict-aliasing... yes
checking for db2html... no
checking if Python version >= 1.5.2... okay
checking local Python configuration... checking for  script directory... /usr/pkg/lib/python2.3/site-packages
checking for  extension module directory... /usr/pkg/lib/python2.3/site-packages
looks good
checking for python module gtk... [1]   Abort trap              ${PYTHON} -c "${...
no
configure: error: could not find pygtk module
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/graphics/dia
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/graphics/dia

# ls /usr/pkg/lib/python2.3/site-packages/
Numeric      README       pygtk.pth    pygtk.pyc
Numeric.pth  gtk-2.0      pygtk.py     pygtk.pyo
# ls /usr/pkg/lib/python2.3/site-packages/gtk-2.0
atk.a        dsextras.py  gobject.a    gtk          pango.so
atk.la       dsextras.pyc gobject.la   pango.a
atk.so       dsextras.pyo gobject.so   pango.la

# less work/dia-0.94/config.log
[...]
configure:25182: checking if Python version >= 1.5.2
configure:25201: result: okay
configure:25210: checking local Python configuration
configure:25241: checking for  script directory
configure:25249: result: /usr/pkg/lib/python2.3/site-packages
configure:25259: checking for  extension module directory
configure:25267: result: /usr/pkg/lib/python2.3/site-packages
configure:25276: result: looks good
configure:25281: checking for python module gtk
configure:25310: result: no
configure:25312: error: could not find pygtk module
[...]

>How-To-Repeat:
	cd /usr/pkgsrc/graphics/dia
	make instal clean clean-depends
>Fix:
	Unknown

>Unformatted:
 To: gnats-bugs@gnats.NetBSD.org
 Subject: broken graphics/dia package in pkgsrc-2004Q4
 From: mm_lists@pulsar-zone.net
 Reply-To: mm_lists@pulsar-zone.net
 X-send-pr-version: 3.95