Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Upgrade to expat-2.0.x needs revdep-rebuild
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4 ... 18, 19, 20  Next  
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
alanic
n00b
n00b


Joined: 13 Jan 2006
Posts: 41

PostPosted: Fri Aug 17, 2007 4:45 pm    Post subject: Reply with quote

just wanted everyone to know that
Code:
revdep-rebuild -X

and
Code:
revdep-rebuild -X --library=libexpat.so.0

are quite different commands. The former misses many dependencies on libexpat.so.0, the latter does not. I suggest the first post in this thread be edited to use the latter.
Back to top
View user's profile Send private message
avatar:0:0:
n00b
n00b


Joined: 26 Jun 2003
Posts: 34
Location: Poland/Wrocek

PostPosted: Fri Aug 17, 2007 5:26 pm    Post subject: Reply with quote

"revdep-rebuild -X" should pick up ANY missing dependencies, so please explain or give some examples?
Back to top
View user's profile Send private message
alanic
n00b
n00b


Joined: 13 Jan 2006
Posts: 41

PostPosted: Fri Aug 17, 2007 5:38 pm    Post subject: Reply with quote

avatar:0:0: wrote:
"revdep-rebuild -X" should pick up ANY missing dependencies, so please explain or give some examples?


Well it didn't. For example, kmail depends on libkpgp, which depends on expat. I couldn't run kmail because of this (libexpat.so.0 not found), I ran revdep-rebuild -X many times but it always wants to reinstall only openldap, it didn't pick up anything about libkpgp. When I tried the --library=libexpat.so.0 option it caught all the missing dependencies about expat and I'm still building the packages.

(edit: and yes I also used -i and removed ~/.revdep* stuff)
Back to top
View user's profile Send private message
Arfrever
Bodhisattva
Bodhisattva


Joined: 29 Apr 2006
Posts: 2463
Location: 異世界

PostPosted: Fri Aug 17, 2007 7:13 pm    Post subject: Reply with quote

MartinT wrote:
Weird, I ran revdep-rebuild -X and now almost everything runs fine, except svn and apache:

ldd /usr/bin/svn | grep expat
libexpat.so.1 => /usr/lib/libexpat.so.1 (0xb7e69000)
libexpat.so.0 => not found

ldd /usr/sbin/ab2 | grep expat
libexpat.so.1 => /usr/lib/libexpat.so.1 (0xb7d83000)
libexpat.so.0 => not found

I somehow don't get why it requires both versions of expat. I rebuilt these a few times already - same result.


`ldd` shows library dependencies recursively. You must rebuild some library used by these packages.

Perduodu linkėjimus
Arfrever
Back to top
View user's profile Send private message
avatar:0:0:
n00b
n00b


Joined: 26 Jun 2003
Posts: 34
Location: Poland/Wrocek

PostPosted: Fri Aug 17, 2007 8:16 pm    Post subject: Reply with quote

alanic,
are you sure that you don't have two versions of libkpgp installed? for me it's the only way to get into such troubles.
Back to top
View user's profile Send private message
datenwolf
n00b
n00b


Joined: 01 Sep 2003
Posts: 55

PostPosted: Fri Aug 17, 2007 11:59 pm    Post subject: Reply with quote

I think symlinking libexpat.so.1.5.1 -> libexpat.so.0 should be safe for now. Expat is written in pure C, so the only ABI there is is the C ABI which hasn't changed for decades. This is unlike C++, where name mangling rules and the way templates are dealt with are changed oftenly.

AFAIK Expat-2 has been designed with API compatibility in mind (this is also written on the Expat homepage). Being a pure C library this means, that all functions whose prototype hasn't changed will be binary compatible.

So? What ABI change is there? Please give me an exact awnser like "functions are now not longer stdcall-ed but fastcall-ed" or "parameters for function xxx have changed" or similair.

As long as the dynamic linker doesn't complain about unresolved symbols I don't see a problem in symlinking the library until all dependencies have been updated. This is the great thing about pure C, you can safely mix compilers and pure C libraries, it won't break as long as you don't use fancy compiler specific stuff.
Back to top
View user's profile Send private message
alanic
n00b
n00b


Joined: 13 Jan 2006
Posts: 41

PostPosted: Sat Aug 18, 2007 12:23 am    Post subject: Reply with quote

avatar:0:0: wrote:
alanic,
are you sure that you don't have two versions of libkpgp installed? for me it's the only way to get into such troubles.


you just made it up. what does it have to do with two different behaviors of revdep-rebuild? what does having two versions of a library have anything to do with a chain shared object dependency not being satisfied? if nothing else, it would even make it easier to be satisfied.
Back to top
View user's profile Send private message
gnac
Guru
Guru


Joined: 30 Jun 2003
Posts: 302
Location: Columbia River Gorge

PostPosted: Sat Aug 18, 2007 3:33 am    Post subject: Reply with quote

FWIW, it looks like the digikam ebuild needs to be modified to reflect the dependency on expat.

I ran revdep-rebuild and allowed it to fix what it found, but digikam still gives me a no libexpat.so.0 error. I am manually rebuilding digikam as we speak so hopefully that will fix it.

Currently (pre-digikam rebuild) revdep-rebuild gives the following output indicating breakage of kmymoney, but doesn't actually try to build anything?

Code:
# revdep-rebuild -p -X
Configuring search environment for revdep-rebuild

Checking reverse dependencies...

Packages containing binaries and libraries broken by a package update
will be emerged.

Collecting system binaries and libraries... done.
  (/root/.revdep-rebuild.1_files)

Collecting complete LD_LIBRARY_PATH... done.
  (/root/.revdep-rebuild.2_ldpath)

Checking dynamic linking consistency...
  broken /usr/bin/kmymoney2 (requires  libexpat.so.0)
  broken /usr/lib/kde3/kmm_kbanking.so (requires  libexpat.so.0)
  broken /usr/lib/kde3/kmm_ofximport.so (requires  libexpat.so.0)
  broken /usr/lib/libkipi.so.0.1.0 (requires  libexpat.so.0)
 done.
  (/root/.revdep-rebuild.3_rebuild)

Assigning files to packages...
  /usr/bin/kmymoney2 -> app-office/kmymoney2
  /usr/lib/kde3/kmm_kbanking.so -> app-office/kmymoney2
  /usr/lib/kde3/kmm_ofximport.so -> app-office/kmymoney2
  /usr/lib/libkipi.so.0.1.0 -> media-libs/libkipi
 done.
  (/root/.revdep-rebuild.4_packages_raw, /root/.revdep-rebuild.4_package_owners)

Cleaning list of packages to rebuild... done.
  (/root/.revdep-rebuild.4_packages)

Assigning packages to ebuilds...^[ done.
  (/root/.revdep-rebuild.4_ebuilds)

Evaluating package order... done.
  (/root/.revdep-rebuild.5_order)

Dynamic linking on your system is consistent... All done.


[edit]
Damn, rebuilt digikam and I still get the error:
Code:
digikam: error while loading shared libraries: libexpat.so.0: cannot open shared object file: No such file or directory


wtf?
_________________
"I thought she'd steal my heart, instead she stole my kidney,
and now its for sale, on the black market in Sydney" - Better Abraham
Back to top
View user's profile Send private message
spankmygentoo
n00b
n00b


Joined: 20 Jun 2005
Posts: 39
Location: Utah

PostPosted: Sat Aug 18, 2007 4:34 am    Post subject: Reply with quote

It worked for me, and I also deleted some games/files that were taking up space. I was at 100% capacity on the drive. Doh! Lucky for me I have ssh set up on the desktop so I just ssh'd into it from my iBook. It's all fixed now! Thanks!
_________________
--Time moves forward, whether or not you do.
Back to top
View user's profile Send private message
maverick256
Tux's lil' helper
Tux's lil' helper


Joined: 26 Jan 2005
Posts: 96
Location: New York/NY

PostPosted: Sat Aug 18, 2007 4:59 am    Post subject: Reply with quote

Man, all this compiling took a day to sort out. But it's sorted out. I always wonder, perhaps it might be useful to put all the warning/info messages of all the packages to be compiled upfront, so the user can read them before deciding to emerge? But maybe I just need to get into the habit of reading the logs more.
Back to top
View user's profile Send private message
alanic
n00b
n00b


Joined: 13 Jan 2006
Posts: 41

PostPosted: Sat Aug 18, 2007 6:40 am    Post subject: Reply with quote

gnac wrote:
I ran revdep-rebuild and allowed it to fix what it found, but digikam still gives me a no libexpat.so.0 error. I am manually rebuilding digikam as we speak so hopefully that will fix it.


Did you try
Code:
revdep-rebuild -X --library=libexpat.so.0


It's different than just revdep-rebuild -X and I'm sure it'll fix all your problems about libexpat.so.0.
Back to top
View user's profile Send private message
datenwolf
n00b
n00b


Joined: 01 Sep 2003
Posts: 55

PostPosted: Sat Aug 18, 2007 10:13 am    Post subject: Reply with quote

I'd like to mention, that revdep-rebuild will probably report more broken binaries, as there really are. revdep-rebuild internally uses the ldd tool to determine, which libraries a program requires.

However ldd displays what libraries a program needs to be executed, NOT what libraries it directly depends on. Say A and B are libaries (A.so, B.so), B uses functionality of A and is thus B.so is linked against A.so. Now say executable C links against B.so. To be executed the dynamic linker has to load A.so and B.so, which ldd reports so.

Now say A.so gets changed and revdep-rebuild-ed. revdep-rebuild will report that C needs to be rebuilt, but actually it is B only that needs to be rebuilt.

ldd can report such dependency trees when invoked with -v mode, but from what I've seen in the revdep-rebuild code this is not used.

I think the best strategy would be to temporarily symlink libexpat.so.0 (it's a pure C library so this is one of the few cases where this doesn't hurt) and let the dependencies on it slowly dribble out of the system as things get updated.
Back to top
View user's profile Send private message
transpetaflops
Apprentice
Apprentice


Joined: 16 May 2005
Posts: 159

PostPosted: Sat Aug 18, 2007 10:49 am    Post subject: Reply with quote

I'm in the middle of an emerge -uDN world now which seems to be working now after creating that symlink. Should I NOT remove that symlink after I complete the upgrade?
Back to top
View user's profile Send private message
santaclaws
Apprentice
Apprentice


Joined: 05 Jan 2007
Posts: 161
Location: Deeper Underground

PostPosted: Sat Aug 18, 2007 1:50 pm    Post subject: Reply with quote

I do still have some annoying problems with revdep-rebuild, besides I used the correct way to upgrade expat. (I mean no stupid symlinks, etc).

But still this output appears each time when using revdep-rebuild and I do not know how to solve it although my system is running stable.

Any suggestions, please? :D

I refer to that help written by kerneloftruth: https://forums.gentoo.org/viewtopic-t-573412-highlight-opal.html

Code:

 revdep-rebuild -X --library libexpat.so.0 -i
Configuring search environment for revdep-rebuild

Checking reverse dependencies...

Packages containing binaries and libraries using libexpat.so.0
will be emerged.

Collecting system binaries and libraries... done.
  (/root/.revdep-rebuild.1_files)

Checking dynamic linking...
  found /usr/bin/dbus-viewer
  found /usr/bin/gfloppy
  found /usr/bin/gimp-2.2
  found /usr/bin/gnomesu
  found /usr/bin/shares-admin
  found /usr/lib/libfontconfig.so.1.0.4
  found /usr/lib/libgdk-x11-2.0.so.0.1000.6
  found /usr/lib/libgnomeprint/2.12.1/modules/transports/libgnomeprint-custom.so
  found /usr/lib/libgnomeprint/2.12.1/modules/transports/libgnomeprint-file.so
  found /usr/lib/libgnomeprint/2.12.1/modules/transports/libgnomeprint-lpr.so
  found /usr/lib/libneon.so.26.0.1
  found /usr/lib/libpangocairo-1.0.so.0.1400.9
  found /usr/lib/libpangoft2-1.0.so.0.1400.9
  found /usr/lib/libpangoxft-1.0.so.0.1400.9
  found /usr/lib/libvte.so.9.1.6
  found /usr/lib/libwx_baseu_xml-2.6.so.0.2.0
  found /usr/lib/libwx_base_xml-2.6.so.0.2.0
  found /usr/lib/libwx_gtk2_gizmos_xrc-2.6.so.0.2.0
  found /usr/lib/libwx_gtk2u_gizmos_xrc-2.6.so.0.2.0
  found /usr/sbin/ab2
  found /usr/sbin/ab2-ssl
  found /usr/sbin/apache2
  found /usr/sbin/checkgid2
  found /usr/sbin/htdbm
  found /usr/sbin/htdigest2
  found /usr/sbin/htpasswd2
  found /usr/sbin/httxt2dbm
  found /usr/sbin/logresolve2
  found /usr/sbin/rotatelogs2
 done.
  (/root/.revdep-rebuild_77938876.3_rebuild)

Assigning files to packages...
  *** /usr/bin/dbus-viewer not owned by any package is broken! ***
  /usr/bin/dbus-viewer -> (none)
  *** /usr/bin/gfloppy not owned by any package is broken! ***
  /usr/bin/gfloppy -> (none)
  *** /usr/bin/gimp-2.2 not owned by any package is broken! ***
  /usr/bin/gimp-2.2 -> (none)
  *** /usr/bin/gnomesu not owned by any package is broken! ***
  /usr/bin/gnomesu -> (none)
  *** /usr/bin/shares-admin not owned by any package is broken! ***
  /usr/bin/shares-admin -> (none)
  *** /usr/lib/libfontconfig.so.1.0.4 not owned by any package is broken! ***
  /usr/lib/libfontconfig.so.1.0.4 -> (none)
  *** /usr/lib/libgdk-x11-2.0.so.0.1000.6 not owned by any package is broken! ***
  /usr/lib/libgdk-x11-2.0.so.0.1000.6 -> (none)
  *** /usr/lib/libgnomeprint/2.12.1/modules/transports/libgnomeprint-custom.so not owned by any package is broken! ***
  /usr/lib/libgnomeprint/2.12.1/modules/transports/libgnomeprint-custom.so -> (none)
  *** /usr/lib/libgnomeprint/2.12.1/modules/transports/libgnomeprint-file.so not owned by any package is broken! ***
  /usr/lib/libgnomeprint/2.12.1/modules/transports/libgnomeprint-file.so -> (none)
  *** /usr/lib/libgnomeprint/2.12.1/modules/transports/libgnomeprint-lpr.so not owned by any package is broken! ***
  /usr/lib/libgnomeprint/2.12.1/modules/transports/libgnomeprint-lpr.so -> (none)
  *** /usr/lib/libneon.so.26.0.1 not owned by any package is broken! ***
  /usr/lib/libneon.so.26.0.1 -> (none)
  *** /usr/lib/libpangocairo-1.0.so.0.1400.9 not owned by any package is broken! ***
  /usr/lib/libpangocairo-1.0.so.0.1400.9 -> (none)
  *** /usr/lib/libpangoft2-1.0.so.0.1400.9 not owned by any package is broken! ***
  /usr/lib/libpangoft2-1.0.so.0.1400.9 -> (none)
  *** /usr/lib/libpangoxft-1.0.so.0.1400.9 not owned by any package is broken! ***
  /usr/lib/libpangoxft-1.0.so.0.1400.9 -> (none)
  *** /usr/lib/libvte.so.9.1.6 not owned by any package is broken! ***
  /usr/lib/libvte.so.9.1.6 -> (none)
  *** /usr/lib/libwx_baseu_xml-2.6.so.0.2.0 not owned by any package is broken! ***
  /usr/lib/libwx_baseu_xml-2.6.so.0.2.0 -> (none)
  *** /usr/lib/libwx_base_xml-2.6.so.0.2.0 not owned by any package is broken! ***
  /usr/lib/libwx_base_xml-2.6.so.0.2.0 -> (none)
  *** /usr/lib/libwx_gtk2_gizmos_xrc-2.6.so.0.2.0 not owned by any package is broken! ***
  /usr/lib/libwx_gtk2_gizmos_xrc-2.6.so.0.2.0 -> (none)
  *** /usr/lib/libwx_gtk2u_gizmos_xrc-2.6.so.0.2.0 not owned by any package is broken! ***
  /usr/lib/libwx_gtk2u_gizmos_xrc-2.6.so.0.2.0 -> (none)
  *** /usr/sbin/ab2 not owned by any package is broken! ***
  /usr/sbin/ab2 -> (none)
  *** /usr/sbin/ab2-ssl not owned by any package is broken! ***
  /usr/sbin/ab2-ssl -> (none)
  *** /usr/sbin/apache2 not owned by any package is broken! ***
  /usr/sbin/apache2 -> (none)
  *** /usr/sbin/checkgid2 not owned by any package is broken! ***
  /usr/sbin/checkgid2 -> (none)
  *** /usr/sbin/htdbm not owned by any package is broken! ***
  /usr/sbin/htdbm -> (none)
  *** /usr/sbin/htdigest2 not owned by any package is broken! ***
  /usr/sbin/htdigest2 -> (none)
  *** /usr/sbin/htpasswd2 not owned by any package is broken! ***
  /usr/sbin/htpasswd2 -> (none)
  *** /usr/sbin/httxt2dbm not owned by any package is broken! ***
  /usr/sbin/httxt2dbm -> (none)
  *** /usr/sbin/logresolve2 not owned by any package is broken! ***
  /usr/sbin/logresolve2 -> (none)
  *** /usr/sbin/rotatelogs2 not owned by any package is broken! ***
  /usr/sbin/rotatelogs2 -> (none)
 done.
  (/root/.revdep-rebuild_77938876.4_packages_raw, /root/.revdep-rebuild_77938876.4_package_owners)

Cleaning list of packages to rebuild... done.
  (/root/.revdep-rebuild_77938876.4_packages)

Assigning packages to ebuilds... Nothing to rebuild

Evaluating package order... done.
  (/root/.revdep-rebuild_77938876.5_order)

There are no dynamic links to libexpat.so.0... All done.

_________________
Software is like sex. It is better when ist is free.
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Sat Aug 18, 2007 1:53 pm    Post subject: Reply with quote

now that looks like a mess :lol:

try emerge -e system , then execute revdep-rebuild again and see if it works better

you eventually need to unmask latest portage / gentoolkit / gentoolkit-dev
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
santaclaws
Apprentice
Apprentice


Joined: 05 Jan 2007
Posts: 161
Location: Deeper Underground

PostPosted: Sat Aug 18, 2007 2:00 pm    Post subject: Reply with quote

kernelOfTruth wrote:
now that looks like a mess :lol:

try emerge -e system , then execute revdep-rebuild again and see if it works better

you eventually need to unmask latest portage / gentoolkit / gentoolkit-dev


D'oh! 8O

I have done a re-emerge of my system half a week before upgrading and as my vaio is not the very fastest laptop it needs hours and hours to recompile my system.

Ok. Lets find out whether it will help.


I'll be back later.
_________________
Software is like sex. It is better when ist is free.
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Sat Aug 18, 2007 2:08 pm    Post subject: Reply with quote

wait wait :!:

then try equery b library.so.1 (whatever)

for every file which can't be linked to any package

then emerge those packages, no need for an emerge -e system :wink:

just thought you have a "fast" / up-to-date system
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
santaclaws
Apprentice
Apprentice


Joined: 05 Jan 2007
Posts: 161
Location: Deeper Underground

PostPosted: Sat Aug 18, 2007 2:15 pm    Post subject: Reply with quote

kernelOfTruth wrote:
wait wait :!:

then try equery b library.so.1 (whatever)

for every file which can't be linked to any package

then emerge those packages, no need for an emerge -e system :wink:

just thought you have a "fast" / up-to-date system


Thank for that hint. :D :lol:

You saved me a lot of time and nerves.


Anything else that I should take care of?
_________________
Software is like sex. It is better when ist is free.
Back to top
View user's profile Send private message
Captain Newbie
Apprentice
Apprentice


Joined: 22 Dec 2006
Posts: 182
Location: Socal

PostPosted: Sat Aug 18, 2007 2:24 pm    Post subject: Reply with quote

kernelOfTruth wrote:
wait wait :!:

then try equery b library.so.1 (whatever)

for every file which can't be linked to any package

then emerge those packages, no need for an emerge -e system :wink:

just thought you have a "fast" / up-to-date system

Hello all, related problem.

Eventually decided to emerge -e world and that's got most everything working—life's good, wishing I'd checked here first :). Something odd happens:

Trying to emerge apr-util (subversion dependency) yields:
configure: error: berkeley DB not found

(And lo, he did type ls /usr/lib/db*, and yea, there were the files there, as in /usr/include...and everywhere else that sys-libs/db installs, there were those files (as shown by equery files sys-libs/db).)

It's not a big deal, as I'm not using svn at the moment...but it will rapidly become a big deal when the school year starts.
_________________
/* Nobody will ever see this message :-) */
panic("Cannot initialize video hardware\n");
"As much as it pains me, we hope that developers know what they're doing." - wolf31o2
Back to top
View user's profile Send private message
gnac
Guru
Guru


Joined: 30 Jun 2003
Posts: 302
Location: Columbia River Gorge

PostPosted: Sat Aug 18, 2007 5:31 pm    Post subject: Reply with quote

So I'm still not sure why, after rebuilding expat, running revdep-rebuild -X and revdep-rebuild -X --library=libexpat.so.0 and rebuilding digikam, I am still getting the missing libexpat error when trying to run digikam?

I am currently rebuilding anything with a lib, a dev or a sys in

Code:
equery depends expat
[ Searching for packages depending on expat... ]
app-editors/nvu-1.0-r4 (dev-libs/expat)
dev-lang/python-2.4.4-r4 (!build? dev-libs/expat)
dev-libs/apr-util-0.9.12-r1 (dev-libs/expat)
dev-libs/apr-util-1.2.8 (dev-libs/expat)
dev-perl/XML-Parser-2.34-r1 (>=dev-libs/expat-1.95.1-r1)
mail-client/mozilla-thunderbird-2.0.0.6 (dev-libs/expat)
media-libs/fontconfig-2.4.2 (!xml? >=dev-libs/expat-1.95.3)
media-libs/libwmf-0.2.8.4 (expat? dev-libs/expat)
media-libs/mesa-6.5.2-r1 (dev-libs/expat)
media-libs/raptor-1.4.9 (!xml? dev-libs/expat)
media-sound/audacity-1.3.3 (dev-libs/expat)
media-video/dvdstyler-1.4 (dev-libs/expat)
net-misc/neon-0.26.3 (expat? dev-libs/expat)
sys-apps/dbus-1.0.2-r2 (>=dev-libs/expat-1.95.8)
sys-apps/hal-0.5.9-r1 (>=dev-libs/expat-1.95.8)
sys-devel/gettext-0.16.1 (dev-libs/expat)
www-client/mozilla-firefox-2.0.0.6 (dev-libs/expat)
www-servers/apache-2.0.58-r2 (dev-libs/expat)


but still can't figure out why digikam wont start. I can't imaging I am the only person with this problem. Interestingly digikam doesn't even show up in this list.

Hate to have to do the symlink thing, seems VERY hacky to me.
_________________
"I thought she'd steal my heart, instead she stole my kidney,
and now its for sale, on the black market in Sydney" - Better Abraham
Back to top
View user's profile Send private message
alanic
n00b
n00b


Joined: 13 Jan 2006
Posts: 41

PostPosted: Sat Aug 18, 2007 6:01 pm    Post subject: Reply with quote

gnac wrote:
So I'm still not sure why, after rebuilding expat, running revdep-rebuild -X and revdep-rebuild -X --library=libexpat.so.0 and rebuilding digikam, I am still getting the missing libexpat error when trying to run digikam?


Digikam does not show up there because it depends on something that depends on something else ... that depends on expat. It's probably like: digikam -> some lib -> some other lib -> some other lib -> expat. Now technically if you reemerge all the packages in the output of "equery depends expat" you should be fine. But you can probably get away with less reemerges.

Try this:

Code:
equery g digikam > graph


then find all occurances of expat in the graph file, go up the tree from expat, for all the packages that are ancestors of expat, do this:
Code:
equery f packagename | grep "\.so"


and ldd all the results you get. you can automatically do it this way:

Code:
equery f packagename | grep "\.so" | xargs -n1 ldd | grep "not found"


So in bottom-up order starting from expat in the tree, identify the packages that have "not found" outputs and reemerge them with emerge -1. Note that once you reemerge a package in the tree, it's ancestors may get fixed because they don't use expat directly. You can just do ldd digikam or try to run digikam after each reemerge.

If you follow this step by step, I'm sure it'll be all good in the end.
Back to top
View user's profile Send private message
extraketchup
n00b
n00b


Joined: 21 Jun 2004
Posts: 29
Location: Maine

PostPosted: Sat Aug 18, 2007 6:13 pm    Post subject: I'm usually a Gentoo Fan, BUT.. Reply with quote

I'm usually a Gentoo Fan, BUT it's things like this that really make me mad and frustrated. I was doing what should have been a simple a quick update, only to find out it ended up breaking the system and now I need to do all this tedious voodoo to make things work again. Surely there has to be a better way to handle these kinds of library updates. At the very least, Portage should warn us with a "WARNING - if you proceed with this emerge it will take a lot longer than normal and will require you to jump through 1000 hoops to get your system working again! Are you sure you want to do that right now?"

Anyone else feel my frustration?
_________________
There are more things in heaven and earth, Horatio, Than are dreamt of in your philosophy.
Back to top
View user's profile Send private message
gnac
Guru
Guru


Joined: 30 Jun 2003
Posts: 302
Location: Columbia River Gorge

PostPosted: Sat Aug 18, 2007 6:14 pm    Post subject: Reply with quote

oh, thats simple enough. /sarcasm

Alanic, thanks for the info, but I do have to echo extraketchups sentiments.

This upgrade process still seams broken to me if a user has to go through this much effort to upgrade an "unmasked", un keyworded package.
_________________
"I thought she'd steal my heart, instead she stole my kidney,
and now its for sale, on the black market in Sydney" - Better Abraham
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Sat Aug 18, 2007 6:17 pm    Post subject: Reply with quote

Quote:
"WARNING - if you proceed with this emerge it will take a lot longer than normal and will require you to jump through 1000 hoops to get your system working again! Are you sure you want to do that right now?"


:lol:

I feel ya :o

for me it took 4-5 days (including big packages like koffice-meta kdesdk-meta kde-meta and such, approx compiling 8-10 hours a days)
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
alanic
n00b
n00b


Joined: 13 Jan 2006
Posts: 41

PostPosted: Sat Aug 18, 2007 6:24 pm    Post subject: Reply with quote

well it didn't take me too long to get rid of this. Now I think we all did something wrong to get ourselves into this mess, normally when it updates something it should make sure it's updating other stuff that depends on the updated package. I think it's the -D option that opens the gates to hell.
(See I learned someting today;) )
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Goto page Previous  1, 2, 3, 4 ... 18, 19, 20  Next
Page 3 of 20

 
Jump to:  
You cannot post new topics in this forum
You cannot 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