This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
an osgi bundle is plainly listed in OpenIDE-Module-Module-Dependencies also when the according value in Require-Package is optional. The result is that in such a case it might be impossible to install a module even if all mandatory dependencies (as defined in the bundle manifest) are satisfied.
org.netbeans.nbbuild.VerifyUpdateCenter fails too
fixed in core-main #09d776d9da10 so that optional dependencies aren't added to the catalog for now, but we should consider using the OpenIDE-Module-Provides, OpenIDE-Module-Requires and OpenIDE-Module-Recommends tokens
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/09d776d9da10 User: Tomas Stupka <tstupka@netbeans.org> Log: issue #201612 - honor resolution:=optional when creating catalogue entry from osgi bundle do not add optionally required bundles into catalog
Ought to use OpenIDE-Module-Recommends, but this depends on issue #201695.
The partial change made so far is potentially a regression, since JZlib might never be downloaded if the user did not already have it.
(In reply to comment #5) > The partial change made so far is potentially a regression, since JZlib might > never be downloaded if the user did not already have it. if we just want jzlib being available for jsch then lets remove optional from the manifest. or is there more to it?
(In reply to comment #6) > if we just want jzlib being available for jsch then lets remove optional from > the manifest. or is there more to it? Not sure how it is being used. As I understand it, parts of JSch (compression) work when JZlib is available, but these parts are not necessarily used by clients.
(In reply to comment #6) > (In reply to comment #5) > > The partial change made so far is potentially a regression, since JZlib might > > never be downloaded if the user did not already have it. > if we just want jzlib being available for jsch then lets remove optional from > the manifest. or is there more to it? removed optional - core-main #322109309ff9 this was originally filed as p2 because of the failing tests, but that problem is gone => p3
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/322109309ff9 User: Tomas Stupka <tstupka@netbeans.org> Log: Issue #201612 - honor resolution:=optional when creating catalogue entry from osgi bundle hotfix #09d776d9da10 caused that in the uc catalog is no dependency declared at all between jsch and jzlib. Even if it is only optional, for the need of netbeans it makes more sense to declare it as mandatory, so that jzlib will be always downloaded together with jsch.
Please verify whether implementation of bug 206365 helps with this issue. My guess is that it does.
verified. Bundle-SymbolicName: org.eclipse.equinox.preferences; singleton:=true Require-Bundle: org.eclipse.equinox.common;bundle-version="[3.2.0,4.0.0)",org.eclipse.equinox.registry;bundle-version="[3.2.0,4.0.0)";resolution:=optional <module codenamebase="org.eclipse.equinox.preferences" distribution="ide/org-eclipse-equinox-preferences.jar" downloadsize="113791" targetcluster="ide"> <manifest AutoUpdate-Show-In-Client="false" OpenIDE-Module="org.eclipse.equinox.preferences" OpenIDE-Module-Module-Dependencies="org.eclipse.equinox.common > 3.2.0" OpenIDE-Module-Name="Eclipse Preferences Mechanism" OpenIDE-Module-Specification-Version="3.4.2"/> </module>