Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 342880 - Running install-noconsolehelper.sh after running install.sh causes corruption of /usr/bin/consolehelper
Summary: Running install-noconsolehelper.sh after running install.sh causes corruption...
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: LinuxTools (show other bugs)
Version: unspecified   Edit
Hardware: All Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: OProfile Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-14 14:55 EDT by Corey Ashford CLA
Modified: 2022-01-13 14:51 EST (History)
3 users (show)

See Also:


Attachments
Patch to remove pre-existing ./opcontrol link/file (710 bytes, patch)
2011-04-14 17:30 EDT, Corey Ashford CLA
overholt: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Corey Ashford CLA 2011-04-14 14:55:34 EDT
Build Identifier: M20110210-1200

install.sh creates a soft-link to /usr/bin/consolehelper

If you subsequently run install-noconsolehelper.sh, it will write an "opcontrol" script on top of the existing soft link to /usr/bin/consolehelper, corrupting it.


Reproducible: Always

Steps to Reproduce:
1. cd org.eclipse.linuxtools.oprofile.core*/natives/linux/scripts
2. sh ./install.sh
3. sh ./install-noconsolehelper.sh
4. observe that /usr/bin/consolehelper is now a two-line script which invokes sude on opcontrol.
Comment 1 Corey Ashford CLA 2011-04-14 14:57:24 EDT
install-noconsolehelper.sh needs to be fixed so that it first removes any existing opcontrol script/link/etc before creating a new script.

I'll submit a patch that does this later today.
Comment 2 Corey Ashford CLA 2011-04-14 14:58:36 EDT
I should note that if you do happen to run into this problem, you can fix the corruption by running:

yum reinstall usermode
Comment 3 Corey Ashford CLA 2011-04-14 17:30:30 EDT
Created attachment 193303 [details]
Patch to remove pre-existing ./opcontrol link/file
Comment 4 Severin Gehwolf CLA 2011-04-19 16:57:57 EDT
Fixed with commit 679f6dd395870095701759d02435b205d47b6e60. Thanks!
Comment 5 Andrew Overholt CLA 2011-04-27 17:47:04 EDT
Un-setting iplog+ on the bug (it should be set on the attachment).