Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 224254 - After deleting .link file, linked plugins & features are not uninstalled
Summary: After deleting .link file, linked plugins & features are not uninstalled
Status: RESOLVED DUPLICATE of bug 224110
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: p2 (show other bugs)
Version: 3.4   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: P2 Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-26 19:32 EDT by Nick Boldt CLA
Modified: 2008-06-04 08:46 EDT (History)
4 users (show)

See Also:


Attachments
console log w/ errors (388.35 KB, text/plain)
2008-03-26 19:32 EDT, Nick Boldt CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Boldt CLA 2008-03-26 19:32:18 EDT
Created attachment 93723 [details]
console log w/ errors

Steps to reproduce:

0. Run this script to unpack Eclipse, EMF, and create a .link file pointing Eclipse's dropins/ folder to the emf folder:

#!/bin/bash
workspace=/tmp/workspace-clean-34
pushd ~/eclipse/34clean >/dev/null
if [[ $# -eq 0 ]]; then
        rm -fr eclipse $workspace emf-unpacked
        eclipse=eclipse-SDK-I20080325-2233-linux-gtk.tar.gz
        echo "Unpack $eclipse...";
        tar xzf $eclipse
        emf=emf-sdo-xsd-SDK-p2break.zip
        echo "Unpack $emf into emf-unpacked/"
        unzip -q $emf -d emf-unpacked
        echo "Link emf-unpacked into eclipse/dropins/"
        echo "path=/x/home/nickb/eclipse/34clean/emf-unpacked" \
          > eclipse/dropins/emf.link
fi

vm=/opt/sun-java2-5.0/bin/java
#vm=/opt/ibm-java2-5.0/bin/java

echo "Using vm=$vm and workspace=$workspace"; ./eclipse/eclipse -vm $vm \
  -data $workspace -consolelog &
popd >/dev/null

1. Exit Eclipse. 
2. Delete link file eclipse/dropins/emf.link
3. Restart Eclipse. 
4. In Help > About, EMF/SDO/XSD features and plugins are still listed.
5. In Help > Software Updates > Installed Features, all the EMF/XSD/SDO
features are still listed.
6. Select all listed IUs. CTRL-click on the Eclipse SDK IU to remove it.
7. Click Uninstall..., then Finish.
8. Click Close
9. Restart Eclipse. Repeat steps 3-9 until convinced that these features cannot be uninstalled via p2 installer. 

10. Delete the linked folder, emf-unpacked
11. Restart Eclipse.
12. Now we see a console log (attached) similar to the one attached to bug 224252, for every restart. 

(https://bugs.eclipse.org/bugs/attachment.cgi?id=93721)
Comment 1 Pascal Rapicault CLA 2008-03-26 19:41:46 EDT

*** This bug has been marked as a duplicate of bug 224110 ***
Comment 2 Egidijus Vaisnora CLA 2008-06-04 08:09:29 EDT
I don't know how about bug 224110 (it is marked to be solved), but this bug 224254 seems exist. At least my plugin is integrated with link files and after I remove link files from dropins, plugins still is started, unless I remove entries from the bundles.info file
Comment 3 Egidijus Vaisnora CLA 2008-06-04 08:10:48 EDT
Eclipse build : I20080530-1730
Comment 4 Simon Kaegi CLA 2008-06-04 08:46:00 EDT
Egidijus,
take a look at bug 232094 as that sounds like the problem you're running into.