Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 241382 - Prelinking breaks x11-misc/bbkeys on up-to-date amd64 and x86 systems
Summary: Prelinking breaks x11-misc/bbkeys on up-to-date amd64 and x86 systems
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Desktop WM Team (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-11 14:54 UTC by Marek Szuba
Modified: 2010-06-16 19:18 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marek Szuba archtester gentoo-dev 2008-10-11 14:54:41 UTC
One of the updates several months ago (not sure which one, however I suspect X libraries) has caused x11-misc/bbkeys to stop being prelinkable on (at least) amd64 and x86 platforms. Right after emerging the ebuild, /usr/bin/bbkeys starts fine; however, as soon as prelink is run trying to start the program results in a segmentation fault.


Reproducible: Always

Steps to Reproduce:
1. Make sure your system is up-to-date.
2. Emerge x11-misc/bbkeys and verify that the program runs correctly
3. Run 'prelink -amR' or wait for it to be executed by cron
4. Try to start bbkeys again
5. Re-emerge x11-misc/bbkeys, see that the program works again

Actual Results:  
bbkeys dies with a segmentation fault right after start-up


Tested on several amd64 and one x86 box, with identical results. In each case only stable keywords have been accepted by default, except for bbkeys itself on amd64 (no stable version exists for that platform).

The problem can be worked around by marking /usr/bin/bbkeys as not-to-be-modified for prelink. From the point of view of an ebuild, this can be done by having it create a file in /etc/env.d/ containing the line

PRELINK_PATH_MASK="/usr/bin/bbkeys"
Comment 1 Wormo (RETIRED) gentoo-dev 2008-10-13 00:54:20 UTC
Thanks for the report and the suggested fix, assigning to maintainers.
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2010-06-16 19:18:25 UTC
+  16 Jun 2010; Samuli Suominen <ssuominen@gentoo.org> bbkeys-0.9.1.ebuild:
+  Don't prelink bbkeys wrt #241382 by Marek Szuba.