Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 381653 - net-dns/bind-9.8.1 - confusing USE requirements
Summary: net-dns/bind-9.8.1 - confusing USE requirements
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Christian Ruppert (idl0r)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-03 08:22 UTC by Geoff Madden
Modified: 2011-09-04 10:02 UTC (History)
2 users (show)

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


Attachments
emerge info x86_64 (emerge.inf,4.82 KB, text/plain)
2011-09-03 08:25 UTC, Geoff Madden
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Geoff Madden 2011-09-03 08:22:44 UTC
trying to update world and net-dns/bind has unsatisfied dependencies all referring to dlz api . What precisely do I need to install to effect an update,as this's blocking further progress

Reproducible: Always

Steps to Reproduce:
1.emerge -uN world
2.
3.
Actual Results:  
got the error message that unresolved dependencies are holding things up

Expected Results:  
installation of updates
Comment 1 Geoff Madden 2011-09-03 08:25:36 UTC
Created attachment 285401 [details]
emerge info x86_64
Comment 2 Alex Legler (RETIRED) archtester gentoo-dev Security 2011-09-03 09:07:55 UTC
Attach the full emerge output containing the error message.
Comment 3 Reuben Farrelly 2011-09-03 11:29:48 UTC
This:

net-dns/bind urandom dlz -geoip -mysql -berkdb -threads

is currently what I have in /etc/portage/package.use (and works for me).

I had to add '-berkdb' to the package.use to get around the problem you've referred to below.

Can you try the same and see if this also helps you?
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2011-09-03 14:33:51 UTC
I guess this is what you meant? (I actually wonder why you didn't simply paste the troubling output in the Description.)

$ ACCEPT_KEYWORDS="~amd64" emerge -vp =net-dns/bind-9.8.1

These are the packages that would be merged, in order:

Calculating dependencies [...]

!!! Problem resolving dependencies for =net-dns/bind-9.8.1                                                                        ... done!

!!! The ebuild selected to satisfy "=net-dns/bind-9.8.1" has unmet requirements.
- net-dns/bind-9.8.1::gentoo USE="berkdb geoip idn ipv6 ssl threads -caps -dlz -doc -gost -gssapi -ldap -mysql -odbc -pkcs11 -postgres -rpz -sdb-ldap (-selinux) -urandom -xml"

  The following REQUIRED_USE flag constraints are unsatisfied:
    berkdb? ( dlz )

  The above constraints are a subset of the following complete expression:
    postgres? ( dlz ) berkdb? ( dlz ) mysql? ( dlz !threads ) odbc? ( dlz ) ldap? ( dlz ) sdb-ldap? ( dlz ) gost? ( ssl )


USE=berkdb is enabled by default in all or most profiles, but in this case it does not make sense. For USE=dlz you would expect some kind of data storage requirement, but not the other way round, i.e. if the user (unwittingly) specifies USE="somelibrary featurethatusessomelibrary", then the former does not intuitively imply the latter, however logically correct it may seem. It's like saying "people desire theft prevention, therefore they desire theft".
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2011-09-03 14:37:01 UTC
Actually, this looks like it could do with some GLEP 56 attention as well. If you insist on keeping the REQUIRED_USE as is, then at least explain to users why you're doing it.
Comment 6 Christian Ruppert (idl0r) gentoo-dev 2011-09-03 16:37:12 UTC
(In reply to comment #5)
> Actually, this looks like it could do with some GLEP 56 attention as well. If
> you insist on keeping the REQUIRED_USE as is, then at least explain to users
> why you're doing it.

How shall I explain that? In the ebuild ...?
Should be easy to understand anyway, with or without comments.

berkdb, mysql, postgres, odbc, ldap and sdb-ldap require USE="dlz" for bind. mysql also requires "-threads".
Comment 7 Jeroen Roovers (RETIRED) gentoo-dev 2011-09-03 17:26:48 UTC
(In reply to comment #6)
> (In reply to comment #5)
> > Actually, this looks like it could do with some GLEP 56 attention as well. If
> > you insist on keeping the REQUIRED_USE as is, then at least explain to users
> > why you're doing it.
> 
> How shall I explain that? In the ebuild ...?

In metadata.xml. GLEP 56. :)
Comment 8 Christian Ruppert (idl0r) gentoo-dev 2011-09-03 17:55:14 UTC
The flags are already described, global and/or local. So you want me to add "... requires USE="dlz"" and hope that all users will use euse or something else to take a look? Sorry, I dunno... the message clearly (IMO) says what's wrong.
Comment 9 Geoff Madden 2011-09-04 02:45:32 UTC
Calculating dependencies /

!!! Problem resolving dependencies for net-dns/bind from @selected
... done!

!!! The ebuild selected to satisfy "net-dns/bind" has unmet requirements.
- net-dns/bind-9.8.1::gentoo USE="doc ipv6 (multilib) mysql postgres ssl threads xml -berkdb -caps -dlz -geoip -gost -gssapi -idn -ldap -odbc -pkcs11 -rpz -sdb-ldap (-selinux) -urandom"

  The following REQUIRED_USE flag constraints are unsatisfied:
    postgres? ( dlz ) mysql? ( dlz !threads )

  The above constraints are a subset of the following complete expression:
    postgres? ( dlz ) berkdb? ( dlz ) mysql? ( dlz !threads ) odbc? ( dlz ) ldap? ( dlz ) sdb-ldap? ( dlz ) gost? ( ssl )

(dependency required by "@selected" [set])
(dependency required by "@world" [argument])

This is the output from the emerge statement, after trying the -berkdb suggestion. There is no difference from previous output that I can see.(In reply to comment #8)
> The flags are already described, global and/or local. So you want me to add
> "... requires USE="dlz"" and hope that all users will use euse or something
> else to take a look? Sorry, I dunno... the message clearly (IMO) says what's
> wrong.

In answer to comment 8 yes when you really look at the screen and see what is printed on there,but at 03am,the brain is a little addled and I missed the pertinent data. The addition of comment #1 to package.use allowed compilation to procede. Just hope the update to firefox completes otherwise there will be another report    Geoff
Comment 10 Christian Ruppert (idl0r) gentoo-dev 2011-09-04 10:02:23 UTC
(In reply to comment #9)
> Calculating dependencies /
> 
> !!! Problem resolving dependencies for net-dns/bind from @selected
> ... done!
> 
> !!! The ebuild selected to satisfy "net-dns/bind" has unmet requirements.
> - net-dns/bind-9.8.1::gentoo USE="doc ipv6 (multilib) mysql postgres ssl
> threads xml -berkdb -caps -dlz -geoip -gost -gssapi -idn -ldap -odbc -pkcs11
> -rpz -sdb-ldap (-selinux) -urandom"
> 
>   The following REQUIRED_USE flag constraints are unsatisfied:
>     postgres? ( dlz ) mysql? ( dlz !threads )
> 
>   The above constraints are a subset of the following complete expression:
>     postgres? ( dlz ) berkdb? ( dlz ) mysql? ( dlz !threads ) odbc? ( dlz )
> ldap? ( dlz ) sdb-ldap? ( dlz ) gost? ( ssl )
> 
> (dependency required by "@selected" [set])
> (dependency required by "@world" [argument])
> 
> This is the output from the emerge statement, after trying the -berkdb
> suggestion. There is no difference from previous output that I can see.(In
> reply to comment #8)
> > The flags are already described, global and/or local. So you want me to add
> > "... requires USE="dlz"" and hope that all users will use euse or something
> > else to take a look? Sorry, I dunno... the message clearly (IMO) says what's
> > wrong.
> 
> In answer to comment 8 yes when you really look at the screen and see what is
> printed on there,but at 03am,the brain is a little addled and I missed the
> pertinent data. The addition of comment #1 to package.use allowed compilation
> to procede. Just hope the update to firefox completes otherwise there will be
> another report    Geoff

Well.. As you can see it says: You have USE="postgres mysql" but you also need USE="dlz -threads" or you disable those DB backends...