pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: missing dependency?



On Jan 6, 2008 1:57 AM, Steven M. Bellovin <smb%cs.columbia.edu@localhost> 
wrote:
>
> $ python2.4
> Python 2.4.4 (#1, Oct 20 2007, 20:17:23)
> [GCC 4.1.3 20070620 prerelease (NetBSD nb1 20070620)] on netbsd4
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import dbus
> Traceback (most recent call last):
>   File "<stdin>", line 1, in ?
>   File "/usr/pkg/lib/python2.4/site-packages/dbus/__init__.py", line 96, in ?
>     from dbus._dbus import Bus, SystemBus, SessionBus, StarterBus
>   File "/usr/pkg/lib/python2.4/site-packages/dbus/_dbus.py", line 42, in ?
>     from dbus.bus import BusConnection
>   File "/usr/pkg/lib/python2.4/site-packages/dbus/bus.py", line 42, in ?
>     from dbus.connection import Connection
>   File "/usr/pkg/lib/python2.4/site-packages/dbus/connection.py", line 38, in 
> ?
>     from dbus.proxies import ProxyObject
>   File "/usr/pkg/lib/python2.4/site-packages/dbus/proxies.py", line 31, in ?
>     from dbus._expat_introspect_parser import process_introspection_data
>   File 
> "/usr/pkg/lib/python2.4/site-packages/dbus/_expat_introspect_parser.py", line 
> 22, in ?
>     from xml.parsers.expat import ExpatError, ParserCreate
>   File "/usr/pkg/lib/python2.4/xml/parsers/expat.py", line 4, in ?
>     from pyexpat import *
> ImportError: No module named pyexpat

Oh, i had some other modules, which provides py24-expat. So, I guess
py-expat is required to run py-dbus. Just add

DEPENDS+=       ${PYPKGPREFIX}-expat>=0nb2:../../textproc/py-expat

And py-libxml2 isn't required anymore. So, diff is that:

--- Makefile    3 Sep 2007 10:00:34 -0000       1.9
+++ Makefile    6 Jan 2008 11:12:07 -0000
@@ -7,6 +7,7 @@
 MASTER_SITES=  http://dbus.freedesktop.org/releases/dbus-python/

 DEPENDS+=      ${PYPKGPREFIX}-pyrex>=0.9.3:../../lang/py-pyrex
+DEPENDS+=       ${PYPKGPREFIX}-expat>=0nb2:../../textproc/py-expat

 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
 HOMEPAGE=      http://www.freedesktop.org/Software/dbus
@@ -24,6 +25,4 @@
 .include "../../lang/python/extension.mk"
 .include "../../sysutils/dbus/buildlink3.mk"
 .include "../../sysutils/dbus-glib/buildlink3.mk"
-# py-libxml2 is only needed at runtime
-.include "../../textproc/py-libxml2/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"


morr

-- 
Daniel Horecki
http://morr.pl



Home | Main Index | Thread Index | Old Index