Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 342880

Summary: Running install-noconsolehelper.sh after running install.sh causes corruption of /usr/bin/consolehelper
Product: z_Archived Reporter: Corey Ashford <cjashfor>
Component: LinuxToolsAssignee: OProfile Inbox <linux.oprofile-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: kksebasti, overholt, sgehwolf
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Patch to remove pre-existing ./opcontrol link/file overholt: iplog+

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).