The case of the missing –as-needed

(Another quote title, although not of the same continuity than the two before, this time it’s Meitantei Conan 😉 )

So seems like the recent breakage due to expat changing soname from to shown to some fellow devs and to other advanced users that –as-needed can be useful. I had a total of 9 files linking to libexpat, and I just needed to rebuild fontconfig to have KDE still working, no rebuild of qt, kdelibs or any kde package at all.

Many people asked me about –as-needed lately, so I started providing more often my –as-needed fixing guide link, as that tries to summarise more or less what you have to know about that flag and the way to fix packages not supporting it. I wish to thanks antarus who cleaned it up, as it used to suck grammatically more than it sucks for the content.

Still there’s who likes to be prissy about these things, wondering why that guide is in qa as “–as-needed is rice”… oh well, if –as-needed is rice, then hardened is rice too, selinux is rice, mips porting is rice..
I don’t see how someone can define rice something that makes the linker work as it should have done rather than following blindly what a developer (that might not even know how a linker work) told it to do.

Anyway, I hope that the attention that –as-needed got recently will help with the efforts to fix the packages that doesn’t work with it so that we can actually start suggesting that to users, as that limits the breakage in case of soname change to the actual packages making use of the changed library, rather than almost the whole system.

Oh a side note, I’m sorry for the wrong patch in drkonqi/kdebase I committed tonight, seems like I was half asleep when I decided to change from the patch full name to ${P}… anyway now with that patch you’re able to get decent backtraces with drkonqi also when using splitdebug, be happy! 🙂