Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

trying to upgrade to kdelibs-3.5.7-r2: libexpat problems

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
75 posts
  • Previous
  • 1
  • 2
  • 3
  • Next
Author
Message
roderick
l33t
l33t
User avatar
Posts: 908
Joined: Mon Jul 11, 2005 3:06 pm
Location: St. John's, NL CANADA
Contact:
Contact roderick
Website

  • Quote

Post by roderick » Sat Aug 11, 2007 7:25 pm

I had no problems doing the update here and rebuilding using revdep-rebuild. It could be something peculiar to your setup.
If God were a pickle, I'd still say "no pickle on my burger".
http://roderick-greening.blogspot.com/
Top
Carlo
Developer
Developer
User avatar
Posts: 3356
Joined: Mon Aug 12, 2002 10:57 pm

  • Quote

Post by Carlo » Sat Aug 11, 2007 7:51 pm

BitJam wrote:If I emerge the latest stable expat (2.x) it breaks my system and I can no longer re-emerge things
As Portage doesn't depend on expat, you still can emerge "things".
BitJam wrote:I try to be careful with my words and not play with them. There are two separate concepts here (1) is the problem in Gentoo or Expat, and (2) what is the proper solution. My initial comment was addressing the first concept and not the second.
Neither. As you're using a source distribution it is your problem. Such issues inevitably come up every now and then. There is no sane way around it.
BitJam wrote:Since Gentoo has the slots mechanism and from my simple understanding of how Emerge works, ISTM that it is Gentoo that is removing the older version of Expat after the new version is installed. The poster I was responding to thought it was expat that was removing the older version.
The slot mechanismn is not a means to keep all sorts of libraries around just to safe you a rebuild. Period.
BitJam wrote:You keep saying slots are not the correct solution for this problem. I have no idea. But if we don't use slots then don't we need to either fix (or mask) expat or fix all the ebuilds that no longer emerge when the new expat is installed?
Rebuilding the neccessary ebuilds is your fix.
Please make sure that you have searched for an answer to a question after reading all the relevant docs.
Top
BitJam
Advocate
Advocate
Posts: 2513
Joined: Tue Aug 12, 2003 4:15 pm
Location: Silver City, NM

  • Quote

Post by BitJam » Sat Aug 11, 2007 8:11 pm

Carlo wrote:Rebuilding the neccessary ebuilds is your fix.
Since I've told you over and over again that things don't emerge after I install the new expat, are you suggesting I fix 150 ebuild files?
Top
Arfrever
Bodhisattva
Bodhisattva
Posts: 2463
Joined: Sat Apr 29, 2006 5:27 pm
Location: 異世界

  • Quote

Post by Arfrever » Sat Aug 11, 2007 8:27 pm

BitJam wrote:
Carlo wrote:Rebuilding the neccessary ebuilds is your fix.
Since I've told you over and over again that things don't emerge after I install the new expat, are you suggesting I fix 150 ebuild files?
You probably need to reemerge packages in order different than that invented by revdep-rebuild. You should often use `emerge --resume --skip-first`.

Perduodu linkėjimus
Arfrever
Top
rickythesk8r
n00b
n00b
Posts: 62
Joined: Sun Aug 10, 2003 1:26 am

  • Quote

Post by rickythesk8r » Sat Aug 11, 2007 9:32 pm

beso_1717 wrote:the problem is that expat 2.0.1 has changed libexpat.so.0 name, so you have to do a revdep-rebuild -X --library libexpat.so.0 as suggested by the expat 2.0.1 infos <snip>
That's exactly what I did. Right then. As soon as I saw it. I copied those exact words with the middle mouse button onto the next shell input line and pressed the [RETURN] key.
Top
BitJam
Advocate
Advocate
Posts: 2513
Joined: Tue Aug 12, 2003 4:15 pm
Location: Silver City, NM

  • Quote

Post by BitJam » Sat Aug 11, 2007 9:51 pm

Thank you. My apologies to Carlos for arguing.

For me, expat got emerged early on in an "emerge -uDN world" that contained 150 packages, mostly kde stuff that had just gone stable. My existing kdelibs was blocking the updates so I had unmerged it and had gotten out of X to give emerge as much memory as possible. This is what put my machine into a state where most things (qt, kdelibs, the first package picked by revdep-rebuild) would not emerge unless I downgraded expat and I was stuck in the vconsole. For the last year or more, emerge and portage have been rock solid for me so I was taken by surprise when emerge -uDN world caused it to run aground.

I'm working on getting my own small contributions to KDE out the door before the 4.0-beta freeze so I'm going to wait a week or so before coming back to fix this problem on my machine.
Top
cibonato
Apprentice
Apprentice
User avatar
Posts: 200
Joined: Tue Apr 25, 2006 3:17 pm
Location: Macross City

  • Quote

Post by cibonato » Sat Aug 11, 2007 10:00 pm

I had the same problem described on the posts above and the solution was to downgrade Expat to version 1.98.5.

Now everything works again and the file /etc/portage/packages.mask has a new line:

>dev-libs/expat-2.0.0

Greetings!!!
64 Bits, good good!
Top
didymos
Advocate
Advocate
User avatar
Posts: 4798
Joined: Mon Oct 10, 2005 2:09 am
Location: California

  • Quote

Post by didymos » Sat Aug 11, 2007 10:58 pm

Hey, for those who haven't noticed yet, expat-2.0.1 just went stable on amd64. I'd like to thank the Academy, my parents, God, and "--as-needed" for making this upgrade possible.
Thomas S. Howard
Top
Polynomial-C
Retired Dev
Retired Dev
User avatar
Posts: 1432
Joined: Sun Jun 01, 2003 4:19 pm
Location: Germany

  • Quote

Post by Polynomial-C » Sun Aug 12, 2007 12:26 am

didymos wrote:I'd like to thank [...] "--as-needed" for making this upgrade possible.
Wise words pal... ;)
I really hope, --as-needed will get support by Gentoo at some time... with regards to updates like expat this is a real pain-saver.

Cheers
Poly-C
The manual said "Requires Windows10 or better" so I installed GNU/Linux...

my portage overlay

Need a stage1 tarball? (Unofficial builds)
Top
didymos
Advocate
Advocate
User avatar
Posts: 4798
Joined: Mon Oct 10, 2005 2:09 am
Location: California

  • Quote

Post by didymos » Sun Aug 12, 2007 12:44 am

It's never been officially supported but in a way, it really is. There's an --as-needed tracker on Bugzilla, and most of the bugs blocking on that have been fixed, and fixed pretty quickly. Occasionally an "--as-needed" bug gets marked INVALID, but that has been the (rare) exception for as long as "--as-needed" has been around, basically.

For the interested:

[bug=129413][Tracker] LDFLAGS="-Wl,--as-needed" support[/bug]

I actually fixed a few for some gnome-1 packages; of course, they went and removed gnome-1 from the tree, so now I'm bitter. :evil:

Anyway, since there is no official support, you do have to stash some ebuilds in the local overlay with the patches, but even that isn't that common. I've also noticed that upstream is starting to use it. Coreutils comes to mind.
Thomas S. Howard
Top
Polynomial-C
Retired Dev
Retired Dev
User avatar
Posts: 1432
Joined: Sun Jun 01, 2003 4:19 pm
Location: Germany

  • Quote

Post by Polynomial-C » Sun Aug 12, 2007 12:47 am

At least there is a howto about --as-needed: http://www.gentoo.org/proj/en/qa/asneeded.xml
So everyone interested in this can inform him-/herself...
The manual said "Requires Windows10 or better" so I installed GNU/Linux...

my portage overlay

Need a stage1 tarball? (Unofficial builds)
Top
slartibartfasz
Veteran
Veteran
User avatar
Posts: 1462
Joined: Tue Oct 29, 2002 10:27 pm
Location: Vienna, Austria

  • Quote

Post by slartibartfasz » Sun Aug 12, 2007 6:58 am

BitJam wrote: For me, expat got emerged early on in an "emerge -uDN world" that contained 150 packages, mostly kde stuff that had just gone stable. My existing kdelibs was blocking the updates so I had unmerged it and had gotten out of X to give emerge as much memory as possible. This is what put my machine into a state where most things (qt, kdelibs, the first package picked by revdep-rebuild) would not emerge unless I downgraded expat and I was stuck in the vconsole. For the last year or more, emerge and portage have been rock solid for me so I was taken by surprise when emerge -uDN world caused it to run aground.
I had exactly the same scenario here. For the moment I masked expat >=2.0.0 to be able to emerge kde. This was the first major glitch for me in gentoo for a while and for less experienced users somthing like this can be pretty annoying I guess. Ah well... still much better than struggling with Windows :P
To an engineer the glass is neither half full, nor half empty - it is just twice as big as it needs to be.
Top
hilde
n00b
n00b
Posts: 42
Joined: Wed Jun 09, 2004 3:09 pm
Location: Buggenhout, Belgium

  • Quote

Post by hilde » Sun Aug 12, 2007 1:44 pm

I had the same problem: kdelibs failed because it didn't find qt3 (because of the new expat). I didn't feel like recompiling my entire old kde to be able to install the new version.
I managed to re-emerge qt3 after re-emerging fontconfig. I'm now living in hope that the new kde (3.5.7) will compile without further problems. Kdelibs has now been compiling for a longer time already than the previous time, so hopefully it will succeed this time.
Top
hilde
n00b
n00b
Posts: 42
Joined: Wed Jun 09, 2004 3:09 pm
Location: Buggenhout, Belgium

  • Quote

Post by hilde » Sun Aug 12, 2007 2:04 pm

Yes! Kdelibs-3.5.7 has successfully been emerged on my amd64 desktop computer, so I think what I proposed in my previous post is the way to go if you don't want to compile kde twice.
Top
MostAwesomeDude
Guru
Guru
Posts: 373
Joined: Sun Aug 12, 2007 2:44 pm

  • Quote

Post by MostAwesomeDude » Sun Aug 12, 2007 2:51 pm

FYI, I had to do this too. Here's what I did:

# emerge -v1 expat
# emerge -v1 gettext
# emerge -v1 intltool
# emerge -v1 kdelibs
# emerge -av --update --deep --newuse world
# revdep-rebuild -X
# revdep-rebuild

Gettext and intltool need to be relinked first if you have USE="nls" set. Kdelibs is next for KDE users. I had updates that I did not want revdep-rebuild to ignore, which is why I did them beforehand. You will probably want to stop kdm and drop to the VC to do this...

<Ctrl+Alt+F1>
# /etc/init.d/xdm stop

Enjoy!
Top
bloedie
Tux's lil' helper
Tux's lil' helper
Posts: 88
Joined: Mon Jul 03, 2006 6:02 am
Location: Germany
Contact:
Contact bloedie
Website

  • Quote

Post by bloedie » Sun Aug 12, 2007 3:10 pm

Hi.

I did
emerge expat

first then

emerge kdebase

after this I did

revdep-rebuild -X

For me it works well in this way.

Cu.
bloedie
Top
fallen
n00b
n00b
Posts: 22
Joined: Fri Aug 10, 2007 4:28 am
Location: KC,MO

  • Quote

Post by fallen » Sun Aug 12, 2007 5:13 pm

i was wondering, is it bad if say.. you're missing libexpat.so.1, and you have libexpat.so.0, so you just go ahead.. and cp libexpat.so.0 libexpat.so.1,


i've done it a couple times for a quick fix, and i've never had any problems so far
where it's at
Top
Arfrever
Bodhisattva
Bodhisattva
Posts: 2463
Joined: Sat Apr 29, 2006 5:27 pm
Location: 異世界

  • Quote

Post by Arfrever » Sun Aug 12, 2007 5:38 pm

fallen wrote:i was wondering, is it bad if say.. you're missing libexpat.so.1, and you have libexpat.so.0, so you just go ahead.. and cp libexpat.so.0 libexpat.so.1
libexpat.so.0 is incompatible with libexpat.so.1. libexpat.so.1 have many bug fixes. Libraries should be never copied in such a way.

Perduodu linkėjimus
Arfrever
Top
flysideways
Guru
Guru
Posts: 527
Joined: Sat Jan 29, 2005 1:06 pm

  • Quote

Post by flysideways » Sun Aug 12, 2007 5:49 pm

I'm just sort of curious about how expat was put so early in the update order, before things that needed it?
Top
rsa4046
l33t
l33t
User avatar
Posts: 660
Joined: Mon Feb 07, 2005 12:13 am
Location: The Big H, a bit SSW

  • Quote

Post by rsa4046 » Sun Aug 12, 2007 9:05 pm

MostAwesomeDude wrote:# emerge -v1 expat
# emerge -v1 gettext
# emerge -v1 intltool
# emerge -v1 kdelibs
# emerge -av --update --deep --newuse world
# revdep-rebuild -X
# revdep-rebuild
This worked for me, thanks.

Edit:
Woops, spoke to soon. emerge did not complete, despite --resume --skipfirst, etc., ...so I ended up following Bitjam, downgrading expat, and rebuilding kde from there.

***Edit, much later:
So in summary, two rebuilds were necessary: mask expat-2.0, emerge -vaDNu world (upgrade kde), revdep-rebuild, unmask expat-2.0, emerge -vaDNu world, and revdep-rebuild again.
Last edited by rsa4046 on Tue Aug 14, 2007 11:01 am, edited 1 time in total.
I love gentoo, but I am certainly no guru, despite what it says above.
Top
didymos
Advocate
Advocate
User avatar
Posts: 4798
Joined: Mon Oct 10, 2005 2:09 am
Location: California

  • Quote

Post by didymos » Sun Aug 12, 2007 11:36 pm

flysideways wrote:I'm just sort of curious about how expat was put so early in the update order, before things that needed it?
The devs all got together and figured out how to rewrite revdep-rebuild so as to annoy and upset the greatest number of users. It was decided expat was the perfect tool for this. Either that or it's an ordering bug (or maybe that's just what they want you to think). :twisted:
Thomas S. Howard
Top
Carlo
Developer
Developer
User avatar
Posts: 3356
Joined: Mon Aug 12, 2002 10:57 pm

  • Quote

Post by Carlo » Mon Aug 13, 2007 10:31 am

didymos wrote:The devs all got together and figured out how to rewrite revdep-rebuild [...
It isn't revdep-rebuild, but a longstanding Portage bug.
Please make sure that you have searched for an answer to a question after reading all the relevant docs.
Top
didymos
Advocate
Advocate
User avatar
Posts: 4798
Joined: Mon Oct 10, 2005 2:09 am
Location: California

  • Quote

Post by didymos » Mon Aug 13, 2007 10:55 am

Carlo wrote:It isn't revdep-rebuild, but a longstanding Portage bug.
I was not even remotely serious about that. I just picked revdep-rebuild because it sounded good and because it was recently rewritten.

[edit] Actually, what bug number is that?
Thomas S. Howard
Top
Carlo
Developer
Developer
User avatar
Posts: 3356
Joined: Mon Aug 12, 2002 10:57 pm

  • Quote

Post by Carlo » Tue Aug 14, 2007 3:59 pm

didymos wrote:Actually, what bug number is that?
Good question. I know for sure that there was one, but it's not open anymore as it seems. Please follow [bug]188782[/bug].
Please make sure that you have searched for an answer to a question after reading all the relevant docs.
Top
trizz
n00b
n00b
User avatar
Posts: 52
Joined: Tue Jan 04, 2005 1:19 pm

  • Quote

Post by trizz » Wed Aug 15, 2007 1:48 pm

<rant>
What the F!

I just read this whole thread, it's like a carousel, goes round and round, it's portage, it's expat, it's revdep-rebuild, it's a gentoo problem, it's a slotting problem, it's the devs, it's flags...

...is it gremlins?

Gentoo is the most highly configurable and has been the most reliable distro I've used, performance wise it's hard to beat, and generally I like portage 1^10 better than any other package system... but but but... stuff like this is more than annoying, it's expensive. Time is money and right now I'm wasting time messing around with this update. Unacceptable.
</rant>

OK, that out of the way, I'm trying the revdep-rebuild -X then revdep-rebuild approach now. I'm not running an ~<arch> system here so I'm hoping things go well.

I did an install on my laptop this week as well, with that I didn't run into as much trouble, not much to revdep-rebuild on a new install and it worked. I did however run into the expat issue there too. I was able keep things going by reading the errors, searching the forums and usually just adjusting a flag in package.use here and there... then of course after the update, revde-rebuild again... :-/


[edit]
So, after the first revdep-rebuild -X I do revdep-rebuild -a and have:

Code: Select all

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

Calculating dependencies... done!
[ebuild     UD] kde-base/kdelibs-3.5.5-r10 [3.5.7-r2] USE="ssl%* -zeroconf%" LINGUAS="-he%"
[ebuild   R   ] dev-libs/apr-util-0.9.12-r1
[ebuild   R   ] sys-devel/gcc-4.1.2
[ebuild     UD] kde-base/kwin-3.5.5-r2 [3.5.7]
[ebuild     UD] kde-base/kscreensaver-3.5.5 [3.5.7]
[ebuild   R   ] kde-base/kdeartwork-styles-3.5.5
[ebuild   R   ] kde-base/kommander-3.5.5
[ebuild   R   ] kde-base/kimagemapeditor-3.5.5
[ebuild   R   ] kde-base/klinkstatus-3.5.5
[ebuild   R   ] kde-base/kworldwatch-3.5.5
[ebuild   R   ] kde-base/kfilereplace-3.5.5
[ebuild   R   ] kde-base/kxsldbg-3.5.5
[ebuild   R   ] kde-base/kdeartwork-kwin-styles-3.5.5
[ebuild   R   ] kde-base/kdeartwork-kscreensaver-3.5.5
I don't want to downgrade kde, this sucks.
Top
Post Reply

75 posts
  • Previous
  • 1
  • 2
  • 3
  • Next

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic