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

Bug 536553

Summary: Developer Resources 'upgrade' installation fails to ignore stale dependencies
Product: [Eclipse Project] Equinox Reporter: Ed Willink <ed>
Component: p2Assignee: P2 Inbox <equinox.p2-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: Ed.Merks
Version: 4.8.0 Photon   
Target Milestone: ---   
Hardware: PC   
OS: Windows 10   
See Also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=535511
Whiteboard:

Description Ed Willink CLA 2018-07-01 07:46:09 EDT
Unzip the modeling EPP
Install new software OCL Dev Resources + QVTd Dev Resources
=> conflicting OCLs

Install new software OCL Dev Resources
Install new software QVTd Dev Resources
=> OK

?? a P2 bug
Comment 1 Ed Willink CLA 2018-07-01 08:10:19 EDT
Repeating and it fails to reproduce. All OCL versions are clearly v20180611-1119 with QVTd a day later, so where did an OCL from a week earlier com from?

Oops the failing attempt was an RC3.
Comment 2 Ed Willink CLA 2018-07-01 09:04:17 EDT
Precise repro:

Unzip eclipse-modeling-photon-RC3-win32-x86_64.zip to C:\Temp
Rename C:\Temp\eclipse to C:\Temp\Bug536553
Double click C:\Temp\Bug536553\eclipse.exe
-- use C:\Temp\Bug536553\eclipse-workspace as default workspace
-- org.eclipse.ocl.* are v20180604-1557
Dismiss tips
Help install new software from
-- Photon - http://download.eclipse.org/releases/photon
Expand Modeling
-- select OCL Classic SDK: Ecore/UML Parsers,Evaluator,Edit Developer Resources - v20180611-1119
-- (Contact all update sites)
-- Next => failure
Abort solution to show failure

Cannot complete the install because of a conflicting dependency.
  Software being installed: OCL Classic SDK: Ecore/UML Parsers,Evaluator,Edit Developer Resources 5.4.0.v20180611-1119 (org.eclipse.ocl.all.sdk.source.feature.group 5.4.0.v20180611-1119)
  Software currently installed: OCL Classic SDK: Ecore/UML Parsers,Evaluator,Edit 5.4.0.v20180604-1557 (org.eclipse.ocl.all.sdk.feature.group 5.4.0.v20180604-1557)
  Only one of the following can be installed at once: 
    OCL Classic SDK: Ecore/UML Parsers,Evaluator,Edit 5.4.0.v20180611-1119 (org.eclipse.ocl.all.sdk.feature.jar 5.4.0.v20180611-1119)
    OCL Classic SDK: Ecore/UML Parsers,Evaluator,Edit 5.4.0.v20180604-1557 (org.eclipse.ocl.all.sdk.feature.jar 5.4.0.v20180604-1557)
  Cannot satisfy dependency:
    From: OCL Classic SDK: Ecore/UML Parsers,Evaluator,Edit 5.4.0.v20180604-1557 (org.eclipse.ocl.all.sdk.feature.group 5.4.0.v20180604-1557)
    To: org.eclipse.equinox.p2.iu; org.eclipse.ocl.all.sdk.feature.jar [5.4.0.v20180604-1557,5.4.0.v20180604-1557]
  Cannot satisfy dependency:
    From: OCL Classic SDK: Ecore/UML Parsers,Evaluator,Edit 5.4.0.v20180611-1119 (org.eclipse.ocl.all.sdk.feature.group 5.4.0.v20180611-1119)
    To: org.eclipse.equinox.p2.iu; org.eclipse.ocl.all.sdk.feature.jar [5.4.0.v20180611-1119,5.4.0.v20180611-1119]
  Cannot satisfy dependency:
    From: OCL Classic SDK: Ecore/UML Parsers,Evaluator,Edit Developer Resources 5.4.0.v20180611-1119 (org.eclipse.ocl.all.sdk.source.feature.group 5.4.0.v20180611-1119)
    To: org.eclipse.equinox.p2.iu; org.eclipse.ocl.all.sdk.feature.group [5.4.0.v20180611-1119,5.4.0.v20180611-1119]

BUT installing the non Developer Resources succeeds.

It would appear that the Developer Resources installation fails to clear out all the stale dependencies.
Comment 3 Ed Merks CLA 2020-02-17 04:38:03 EST
The packages were restructure to change how the root dependency are included in the product, so I expect this is not reproducible with a recent release.