Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 335191 - Bundle-NativeCode: osname=win32 isn't matched by Windows Server 2008 R2
Summary: Bundle-NativeCode: osname=win32 isn't matched by Windows Server 2008 R2
Status: RESOLVED FIXED
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: Framework (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 3.7 M6   Edit
Assignee: Thomas Watson CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-24 09:30 EST by J.-P. Pellet CLA
Modified: 2012-10-23 07:45 EDT (History)
0 users

See Also:


Attachments
patch (1.03 KB, patch)
2011-01-24 11:03 EST, Thomas Watson CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description J.-P. Pellet CLA 2011-01-24 09:30:30 EST
Build Identifier: 3.6.1 (M20100909-0800)

If I want to start a bundle that has native code according to its Bundle-NativeCode entry, then entry parts with the osname=win32 filter are not selected on a platform where System.getProperty("os.name") returns "Windows Server 2008 R2".

This is a follow-up to https://bugs.eclipse.org/bugs/show_bug.cgi?id=281075

Reproducible: Always

Steps to Reproduce:
1. Add 'Bundle-NativeCode' header in MANIFEST.MF, and using 'win32' to match all
Windows platform
2. Bundle is not resolved and cannot be activated because the matching native code is not found.
Comment 1 Thomas Watson CLA 2011-01-24 11:03:45 EST
Created attachment 187436 [details]
patch

According to the latest at http://www.osgi.org/Specifications/Reference the name should be WindowsServer2008 for the old version.  Equinox currently uses Windows2008.  This patch keeps Windows2008 so we don't break anyone but adds the following lines:

WindowsServer2008 "Windows 2008" "Windows Server 2008" Win2008 Win32 # Microsoft
WindowsServer2008R2 "Windows 2008 R2" "Windows Server 2008 R2" Win2008R2 Win32 # Microsoft

I am adding a new line for R2 because it appears to be a new OS with new features and API and cannot simply be aliased to WindowsServer2008.
Comment 2 Thomas Watson CLA 2011-01-31 16:29:18 EST
Patch released.