Bug 12498

Summary: setup.sh unintentionally installs latest Eclipse feature
Product: [Yocto Project Subprojects] Eclipse Plugin Reporter: Chin Huat Ang <chin.huat.ang>
Component: eclipse-pluginAssignee: Chin Huat Ang <chin.huat.ang>
Status: CLOSED WONTFIX QA Contact: Toaster default assignee <toaster>
Severity: normal    
Priority: Medium CC: david.reyna, ioanax.grigoropol, yp.ep.watcher, yp.watcher
Version: 2.5   
Target Milestone: 4.99   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Attachments:
Description Flags
code snippet with solution and test cases none

Description Chin Huat Ang 2018-01-18 07:26:01 UTC
Eclipse Poky has been updated to build againsts Oxygen.0 and CDT 9.3.0, however autobuilder log for oxygen-master build says 9.4.0 is installed.

Autobuilder log:

https://autobuilder.yocto.io/builders/eclipse-plugin-oxygen/builds/214/steps/Building%20Eclipse%20Plugin/logs/stdio

Observe that incorrect CDT version installed:

Please wait. Installing CDT.SDK.FEATURE.GROUP
Installing org.eclipse.cdt.sdk.feature.group 9.4.0.201712051550.
Operation completed in 33379 ms.
Comment 1 Chin Huat Ang 2018-01-25 04:46:04 UTC
Created attachment 4186 [details]
code snippet with solution and test cases

Attached code snippet provides test_version and compare_version functions which are tested againsts these test cases

### compare_version test cases ###
0	= 0	-- PASSED
0	= 0.0	-- PASSED
0	= 0.0.0	-- PASSED
0.0	= 0	-- PASSED
0.0	= 0.0	-- PASSED
0.0	= 0.0.0	-- PASSED
0.0.0	= 0	-- PASSED
0.0.0	= 0.0	-- PASSED
0.0.0	= 0.0.0	-- PASSED
0	< 0.0.1	-- PASSED
0.0	< 0.0.1	-- PASSED
0.0.0	< 0.0.1	-- PASSED
0	< 0.1	-- PASSED
0	< 0.1.0	-- PASSED
0.0	< 0.1	-- PASSED
0.0	< 0.1.0	-- PASSED
0.0.0	< 0.1	-- PASSED
0.0.0	< 0.1.0	-- PASSED
0	< 1	-- PASSED
0.0	< 1	-- PASSED
0.0.0	< 1	-- PASSED
0	< 1.0	-- PASSED
0.0	< 1.0	-- PASSED
0.0.0	< 1.0	-- PASSED
0	< 1.0.0	-- PASSED
0.0	< 1.0.0	-- PASSED
0.0.0	< 1.0.0	-- PASSED
0.0.1	> 0	-- PASSED
0.0.1	> 0.0	-- PASSED
0.0.1	> 0.0.0	-- PASSED
0.1	> 0	-- PASSED
0.1.0	> 0	-- PASSED
0.1	> 0.0	-- PASSED
0.1.0	> 0.0	-- PASSED
0.1	> 0.0.0	-- PASSED
0.1.0	> 0.0.0	-- PASSED
1	> 0	-- PASSED
1.0	> 0	-- PASSED
1.0.0	> 0	-- PASSED
1	> 0.0	-- PASSED
1.0	> 0.0	-- PASSED
1.0.0	> 0.0	-- PASSED
1	> 0.0.0	-- PASSED
1.0	> 0.0.0	-- PASSED
1.0.0	> 0.0.0	-- PASSED
0	= 0.0.0.1	-- PASSED
0.0	= 0.0.0.1	-- PASSED
0.0.0	= 0.0.0.1	-- PASSED
0.0.0	= 0.0.0.1.2	-- PASSED
0.0.0.0	= 0	-- PASSED
0.0.0.0	= 0.0	-- PASSED
0.0.0.1	= 0.0.0	-- PASSED
0.0.0.1.2	= 0.0.0	-- PASSED

### test_version test cases ###
0.0.0 <  0.0.0	 -- PASSED
0.0.0 <= 0.0.0	 -- PASSED
0.0.0 == 0.0.0	 -- PASSED
0.0.0 >= 0.0.0	 -- PASSED
0.0.0 >  0.0.0	 -- PASSED
0.0.0 <  1.0.0	 -- PASSED
0.0.0 <= 1.0.0	 -- PASSED
0.0.0 == 1.0.0	 -- PASSED
0.0.0 >= 1.0.0	 -- PASSED
0.0.0 >  1.0.0	 -- PASSED
1.0.0 <  0.0.0	 -- PASSED
1.0.0 <= 0.0.0	 -- PASSED
1.0.0 == 0.0.0	 -- PASSED
1.0.0 >= 0.0.0	 -- PASSED
1.0.0 >  0.0.0	 -- PASSED
Comment 2 Armin Kuster 2019-05-23 15:00:11 UTC
eclipse has been dropped.
Comment 3 Armin Kuster 2019-05-23 15:06:54 UTC
closing