Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 496240 - =net-dns/avahi-0.6.31-r2 USE="gdbm python" - configure: error: Could not find Python module gdbm
Summary: =net-dns/avahi-0.6.31-r2 USE="gdbm python" - configure: error: Could not find...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Anthony Basile
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-28 01:45 UTC by Bertrand Jacquin
Modified: 2014-01-12 16:02 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (info.log,14.83 KB, text/plain)
2013-12-28 01:45 UTC, Bertrand Jacquin
Details
build.log (build.log,20.87 KB, text/plain)
2013-12-28 01:45 UTC, Bertrand Jacquin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bertrand Jacquin 2013-12-28 01:45:26 UTC
net-dns/avahi-0.6.31-r2 with USE=gdbm fail to build when dev-lang/python is not builded with USE=gdbm

Log and emerge --info attached

Step to resolv
# USE=gdbm emerge -va1tN dev-lang/python net-dns/avahi

Reproducible: Always
Comment 1 Bertrand Jacquin 2013-12-28 01:45:37 UTC
Created attachment 366342 [details]
emerge --info
Comment 2 Bertrand Jacquin 2013-12-28 01:45:47 UTC
Created attachment 366344 [details]
build.log
Comment 3 Anthony Basile gentoo-dev 2013-12-28 14:28:48 UTC
(In reply to Bertrand Jacquin from comment #2)
> Created attachment 366344 [details]
> build.log

checking for python module gdbm... no
configure: error: Could not find Python module gdbm

I'm not able to reproduce (yet?) but let's go through this systematically:

1) did you run python-updater ?

2) can you give me all the USE flags on avahi.  ie `emerge -vp avahi`

Thanks.
Comment 4 Bertrand Jacquin 2013-12-29 20:44:57 UTC
(In reply to Anthony Basile from comment #3)
> (In reply to Bertrand Jacquin from comment #2)
> > Created attachment 366344 [details]
> > build.log
> 
> checking for python module gdbm... no
> configure: error: Could not find Python module gdbm
> 
> I'm not able to reproduce (yet?) but let's go through this systematically:
> 
> 1) did you run python-updater ?

I did.

> 2) can you give me all the USE flags on avahi.  ie `emerge -vp avahi`

net-dns/avahi-0.6.31-r2  USE="dbus gdbm ipv6 python -autoipd -bookmarks -doc -gtk
-gtk3 -howl-compat -introspection -mdnsresponder-compat -mono -qt4 {-test} -utils" PYTHON_TARGETS="python2_6 python2_7"
Comment 5 Anthony Basile gentoo-dev 2014-01-07 22:38:53 UTC
(In reply to Bertrand Jacquin from comment #4)
> (In reply to Anthony Basile from comment #3)
> > (In reply to Bertrand Jacquin from comment #2)
> > > Created attachment 366344 [details]
> > > build.log
> > 
> > checking for python module gdbm... no
> > configure: error: Could not find Python module gdbm
> > 
> > I'm not able to reproduce (yet?) but let's go through this systematically:
> > 
> > 1) did you run python-updater ?
> 
> I did.
> 
> > 2) can you give me all the USE flags on avahi.  ie `emerge -vp avahi`
> 
> net-dns/avahi-0.6.31-r2  USE="dbus gdbm ipv6 python -autoipd -bookmarks -doc
> -gtk
> -gtk3 -howl-compat -introspection -mdnsresponder-compat -mono -qt4 {-test}
> -utils" PYTHON_TARGETS="python2_6 python2_7"

Okay finally I hit it.   You need *both* gdbm and python flags enabled on avahi.  (USE="gdbm -python" works.)  So now I'm confused because I thought that PYTHON_REQ_USE="gdbm" was supposed to guarantee the dependency.
Comment 6 Mike Gilbert gentoo-dev 2014-01-10 23:04:02 UTC
This should fix that.

diff -u -r1.14 avahi-0.6.31-r2.ebuild
--- avahi-0.6.31-r2.ebuild	12 Oct 2013 12:14:46 -0000	1.14
+++ avahi-0.6.31-r2.ebuild	10 Jan 2014 23:02:42 -0000
@@ -44,6 +44,7 @@
 		gtk? ( dev-dotnet/gtk-sharp )
 	)
 	python? (
+		${PYTHON_DEPS}
 		gtk? ( dev-python/pygtk )
 		dbus? ( dev-python/dbus-python )
 	)
Comment 7 Anthony Basile gentoo-dev 2014-01-12 15:47:35 UTC
(In reply to Mike Gilbert from comment #6)
> This should fix that.
> 
> diff -u -r1.14 avahi-0.6.31-r2.ebuild
> --- avahi-0.6.31-r2.ebuild	12 Oct 2013 12:14:46 -0000	1.14
> +++ avahi-0.6.31-r2.ebuild	10 Jan 2014 23:02:42 -0000
> @@ -44,6 +44,7 @@
>  		gtk? ( dev-dotnet/gtk-sharp )
>  	)
>  	python? (
> +		${PYTHON_DEPS}
>  		gtk? ( dev-python/pygtk )
>  		dbus? ( dev-python/dbus-python )
>  	)

Okay its in avahi-0.6.31-r2.  Can you please test if this fixes it for you and reopen if it doesn't.  I'm testing now at my end.
Comment 8 Anthony Basile gentoo-dev 2014-01-12 16:02:17 UTC
(In reply to Anthony Basile from comment #7)
> (In reply to Mike Gilbert from comment #6)
> > This should fix that.
> > 
> > diff -u -r1.14 avahi-0.6.31-r2.ebuild
> > --- avahi-0.6.31-r2.ebuild	12 Oct 2013 12:14:46 -0000	1.14
> > +++ avahi-0.6.31-r2.ebuild	10 Jan 2014 23:02:42 -0000
> > @@ -44,6 +44,7 @@
> >  		gtk? ( dev-dotnet/gtk-sharp )
> >  	)
> >  	python? (
> > +		${PYTHON_DEPS}
> >  		gtk? ( dev-python/pygtk )
> >  		dbus? ( dev-python/dbus-python )
> >  	)
> 
> Okay its in avahi-0.6.31-r2.  Can you please test if this fixes it for you
> and reopen if it doesn't.  I'm testing now at my end.

Works for me.