Help!

[gentoo-user] sys-libs/db & dev-lang/php dependency proble..

 
  

Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> User RSS
Next:  Bug#549470: Please build sauerbraten for powerpc ..  
Author Message
Jarry
External


Since: Sep 03, 2009
Posts: 3



PostPosted: Sat Oct 03, 2009 2:10 pm    Post subject: [gentoo-user] sys-libs/db & dev-lang/php dependency problem...
Archived from groups: linux>gentoo>user (more info?)

Hi,
I updated my server and came accros of this problem:

# emerge --depclean
....
Calculating dependencies... done!
>>> Checking for lib consumers...
>>> Assigning files to packages...
* In order to avoid breakage of link level dependencies, one or more
* packages will not be removed. This can be solved by rebuilding the
* packages that pulled them in.
*
* sys-libs/db-4.6.21_p4 pulled in by:
* dev-lang/php-5.2.10
*
>>> Adding lib providers to graph... \
Calculating dependencies... done!
>>> No packages selected for removal by depclean
>>> To see reverse dependencies, use --verbose


"revdep-rebuild", did not fix it.
Then I tried "emerge --oneshot dev-lang/php" (once in the past
I had such a problem and this helped) and after that I repeated
"emerge --depclean", again with the same output-message.
I repeated it a few times, still the same. So what can I do more
to fix it?

Jarry

--
_______________________________________________________________
This mailbox accepts e-mails only from selected mailing-lists!
Everything else is considered to be spam and therefore deleted.
Back to top
Nicolas Sebrecht
External


Since: Sep 08, 2009
Posts: 5



PostPosted: Wed Nov 04, 2009 4:10 am    Post subject: [gentoo-user] Re: sys-libs/db & dev-lang/php dependency problem... [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Sat, Oct 03, 2009 at 06:56:17PM +0200, Jarry wrote:

> # emerge --depclean

<...>

> * In order to avoid breakage of link level dependencies, one or more
> * packages will not be removed. This can be solved by rebuilding the
> * packages that pulled them in.
> *
> * sys-libs/db-4.6.21_p4 pulled in by:
> * dev-lang/php-5.2.10
> *

"depclean" says it won't clean the db package because of a php
dependency. I _guess_ it comes from the "berkdb" use flag of php.

> I repeated it a few times, still the same. So what can I do more
> to fix it?

I you're sure you don't need db, you could try to remove it by hand and
see if 'emerge php' want reinstall it. I think you should use quickpkg
or demerge before everything else.

--
Nicolas Sebrecht
Back to top
Alan McKinnon
External


Since: Jun 26, 2009
Posts: 68



PostPosted: Wed Nov 04, 2009 4:10 am    Post subject: Re: [gentoo-user] Re: sys-libs/db & dev-lang/php dependency problem... [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Wednesday 04 November 2009 09:54:07 Nicolas Sebrecht wrote:
> On Sat, Oct 03, 2009 at 06:56:17PM +0200, Jarry wrote:
> > # emerge --depclean
>
> <...>
>
> > * In order to avoid breakage of link level dependencies, one or more
> > * packages will not be removed. This can be solved by rebuilding the
> > * packages that pulled them in.
> > *
> > * sys-libs/db-4.6.21_p4 pulled in by:
> > * dev-lang/php-5.2.10
> > *
>
> "depclean" says it won't clean the db package because of a php
> dependency. I _guess_ it comes from the "berkdb" use flag of php.
>
> > I repeated it a few times, still the same. So what can I do more
> > to fix it?
>
> I you're sure you don't need db, you could try to remove it by hand and
> see if 'emerge php' want reinstall it. I think you should use quickpkg
> or demerge before everything else.
>

I have a similar recurring problem and simply rebuilding packages does not
help. In my case it's caused by a package linking to a library which is not in
DEPEND. (Yes, this has broken policy on how to do these things). The result is
that the portage dependency tree says the library can be removed, but ldd says
otherwise. Sometimes you have to put the library in world

If you run ldd on the php binaries, what do you can with regard to db?
db is also slotted, what does "eix -e db" say?

--
alan dot mckinnon at gmail dot com
Back to top
Alex Schuster
External


Since: Dec 18, 2006
Posts: 47



PostPosted: Wed Nov 04, 2009 6:10 am    Post subject: Re: [gentoo-user] sys-libs/db & dev-lang/php dependency problem... [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Jarry writes:

> # emerge --depclean
[...]
> * In order to avoid breakage of link level dependencies, one or more
> * packages will not be removed. This can be solved by rebuilding the
> * packages that pulled them in.
> *
> * sys-libs/db-4.6.21_p4 pulled in by:
> * dev-lang/php-5.2.10
> *
[...]
> Then I tried "emerge --oneshot dev-lang/php" (once in the past
> I had such a problem and this helped) and after that I repeated
> "emerge --depclean", again with the same output-message.
> I repeated it a few times, still the same. So what can I do more
> to fix it?

I just posted a message ("emerge --depclean does not remove due to link
level dependencies") due to similar issues. My guess is that php links to
some sys-libs/db library, even if db is not a dependency to php. You can
try to remove db (use quickpkg before), and rebuild php.

Wonko
Back to top
Nicolas Sebrecht
External


Since: Sep 08, 2009
Posts: 5



PostPosted: Thu Nov 05, 2009 7:10 am    Post subject: [gentoo-user] Re: sys-libs/db & dev-lang/php dependency problem... [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Wed, Nov 04, 2009 at 11:47:41AM +0100, Alex Schuster wrote:

> I just posted a message ("emerge --depclean does not remove due to link
> level dependencies") due to similar issues. My guess is that php links to
> some sys-libs/db library, even if db is not a dependency to php.

To be correct, if php links to db, db _IS_ a dependency of php. If
portage is not aware of this dependency, the _ebuild_ is wrong and miss
a declaration for this dependency.

--
Nicolas Sebrecht
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> User All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum