Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 145667 - app-accessibilty/sphinx3 overwrites glibc's libutil.so
Summary: app-accessibilty/sphinx3 overwrites glibc's libutil.so
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All All
: Highest critical
Assignee: William Hubbs
URL:
Whiteboard:
Keywords:
: 149295 154390 (view as bug list)
Depends on:
Blocks: 145550 148179
  Show dependency tree
 
Reported: 2006-08-30 19:19 UTC by SpanKY
Modified: 2006-11-09 08:43 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
sphinx3-0.6-libutil.patch (sphinx3-0.6-libutil.patch,139.89 KB, patch)
2006-09-17 03:02 UTC, Matteo Azzali (RETIRED)
Details | Diff
sphinx3-0.6-r1.ebuild (sphinx3-0.6-r1.ebuild,988 bytes, text/plain)
2006-09-17 03:08 UTC, Matteo Azzali (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description SpanKY gentoo-dev 2006-08-30 19:19:41 UTC
as the summary said, the sphinx3 package is very f-ed up as it installs /usr/lib/libutil.so thus nuking the standard libutil.so provided by glibc

in the case of poor Felix, his openssh is all screwed up now
Comment 1 SpanKY gentoo-dev 2006-08-30 19:33:37 UTC
hrm, other problems:
 - the src_unpack is outdated, remove it and dont inherit gnuconfig_update
 - USE=static is completely wrong, remove it (and thus remove src_unpack)
Comment 2 SpanKY gentoo-dev 2006-09-08 19:29:25 UTC
ive gone ahead and package.mask-ed this due to the severity of the bug
Comment 3 Matteo Azzali (RETIRED) gentoo-dev 2006-09-15 11:52:09 UTC
Some suggestions on how to fix a screwed up system? For now I recreated
the links /usr/lib/libutil.so -> ../../lib/libutil.so.1 and
/usr/lib/libutil.so.0 -> ../../lib/libutil.so.1,

This is enough to start some apps but doesn't fully solves the issue,
(for sure some app are now asking for /usr/lib/libutil.la during
emerge,probably cause some dependancies were built against that trash)
so I tried an "emerge -1 glibc". 

Still is not enough,I did  a row of revdep-rebuild:
"revdep-rebuild --pretend --ignore --library libutil.so"
"revdep-rebuild --pretend --ignore --library libutil.so.0"
"revdep-rebuild --pretend --ignore --library libutil.la"
(probably there was a better way but I was a bit in a hurry)

Discovering that all my kde apps were linked against libutil.so.0 and 
nothing was linked against the other 2.
So I'll end with a:
"revdep-rebuild --library libutil.so.0"

Also, maybe a warning of some kind to anyone using/who emerged  sphinx3 
could be useful.
Comment 4 Matteo Azzali (RETIRED) gentoo-dev 2006-09-15 12:03:14 UTC
ops, sorry , correction, not all my kde packages but just 18 of them, phew....
Comment 5 SpanKY gentoo-dev 2006-09-15 14:05:40 UTC
read this:
http://bugs.gentoo.org/show_bug.cgi?id=145550#c19
Comment 6 Matteo Azzali (RETIRED) gentoo-dev 2006-09-16 03:39:31 UTC
That's not enough for kde packages linked to /usr/lib/libutil.so.0 cause
this file belongs to sphinx but not to glibc. A:

#rm -f /usr/lib/libutil.so.0 ; revdep-rebuild --library libutil.so.0

fixes all.
Comment 7 Matteo Azzali (RETIRED) gentoo-dev 2006-09-17 03:02:08 UTC
Created attachment 97218 [details, diff]
sphinx3-0.6-libutil.patch

Raw patch for this issue, ebuild to follow (patch isn't enough)
Comment 8 Matteo Azzali (RETIRED) gentoo-dev 2006-09-17 03:08:56 UTC
Created attachment 97219 [details]
sphinx3-0.6-r1.ebuild

Ebuild that will emerge the package with /usr/lib/libsphinxutil.* instead.
not tested if sphinx works fine after this intervent (well, it should, please test).

NOTE: NEEDS to be applied in a sane environment.... if you already have sphinx3 you need to do:

#emerge -C sphinx3 ; emerge -1 glibc ; revdep-rebuild --library libutil.so.0

before emerging new version.
Comment 9 mike daugird 2006-09-29 11:47:10 UTC
has anyone considered adding this to portage?
I had this problem break gnupg and it seems silly that an sync done on the 20th would have given me a known broken ebuild.  

It just seems that even if the patch here wasn't perfect it prevents breaking a pretty important library....

still the patch hasn't made it to portage.
FWIW 
Comment 10 Jakub Moc (RETIRED) gentoo-dev 2006-09-29 13:26:43 UTC
*** Bug 149295 has been marked as a duplicate of this bug. ***
Comment 11 William Hubbs gentoo-dev 2006-09-30 11:03:18 UTC
 am looking at this -- there is a new version of sphinx3 which I am testing right now.

Comment 12 William Hubbs gentoo-dev 2006-09-30 12:12:43 UTC
I committed sphinx3-0.6.3 to portage after testing it with colission-protect in features to be sure it doesn't overwrite anything.

Let me know if I can remove it from package.mask.

Comment 13 SpanKY gentoo-dev 2006-09-30 12:43:16 UTC
ive cleaned up the 0.6.3 a bit

once you remove the broken ebuilds (aka everything older than 0.6.3) then you can remove it from p.mask
Comment 14 William Hubbs gentoo-dev 2006-09-30 13:37:31 UTC
I have removed the old ebuilds and removed this from p.mask.  This bug is being closed.
Comment 15 Ilya Semenov 2006-11-09 08:43:46 UTC
*** Bug 154390 has been marked as a duplicate of this bug. ***