public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] sys-libs/db & dev-lang/php dependency problem...
@ 2009-10-03 16:56 Jarry
  2009-11-04  7:54 ` [gentoo-user] " Nicolas Sebrecht
  2009-11-04 10:47 ` [gentoo-user] " Alex Schuster
  0 siblings, 2 replies; 5+ messages in thread
From: Jarry @ 2009-10-03 16:56 UTC (permalink / raw
  To: gentoo-user

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.



^ permalink raw reply	[flat|nested] 5+ messages in thread

* [gentoo-user] Re: sys-libs/db & dev-lang/php dependency problem...
  2009-10-03 16:56 [gentoo-user] sys-libs/db & dev-lang/php dependency problem Jarry
@ 2009-11-04  7:54 ` Nicolas Sebrecht
  2009-11-04  8:06   ` Alan McKinnon
  2009-11-04 10:47 ` [gentoo-user] " Alex Schuster
  1 sibling, 1 reply; 5+ messages in thread
From: Nicolas Sebrecht @ 2009-11-04  7:54 UTC (permalink / raw
  To: gentoo-user; +Cc: Nicolas Sebrecht

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



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] Re: sys-libs/db & dev-lang/php dependency problem...
  2009-11-04  7:54 ` [gentoo-user] " Nicolas Sebrecht
@ 2009-11-04  8:06   ` Alan McKinnon
  0 siblings, 0 replies; 5+ messages in thread
From: Alan McKinnon @ 2009-11-04  8:06 UTC (permalink / raw
  To: gentoo-user

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



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] sys-libs/db & dev-lang/php dependency problem...
  2009-10-03 16:56 [gentoo-user] sys-libs/db & dev-lang/php dependency problem Jarry
  2009-11-04  7:54 ` [gentoo-user] " Nicolas Sebrecht
@ 2009-11-04 10:47 ` Alex Schuster
  2009-11-04 19:54   ` [gentoo-user] " Nicolas Sebrecht
  1 sibling, 1 reply; 5+ messages in thread
From: Alex Schuster @ 2009-11-04 10:47 UTC (permalink / raw
  To: gentoo-user

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



^ permalink raw reply	[flat|nested] 5+ messages in thread

* [gentoo-user] Re: sys-libs/db & dev-lang/php dependency problem...
  2009-11-04 10:47 ` [gentoo-user] " Alex Schuster
@ 2009-11-04 19:54   ` Nicolas Sebrecht
  0 siblings, 0 replies; 5+ messages in thread
From: Nicolas Sebrecht @ 2009-11-04 19:54 UTC (permalink / raw
  To: gentoo-user; +Cc: Nicolas Sebrecht

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



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-11-04 19:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-03 16:56 [gentoo-user] sys-libs/db & dev-lang/php dependency problem Jarry
2009-11-04  7:54 ` [gentoo-user] " Nicolas Sebrecht
2009-11-04  8:06   ` Alan McKinnon
2009-11-04 10:47 ` [gentoo-user] " Alex Schuster
2009-11-04 19:54   ` [gentoo-user] " Nicolas Sebrecht

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox