Bug#1027534: eclipse-platform-team: FTBFS: [javac] /<<PKGBUILDDIR>>/bundles/org.eclipse.core.net/target/sources/org/eclipse/core/internal/net/PreferenceManager.java:23: error: package org.osgi.service.prefs does not exist

Lucas Nussbaum lucas at debian.org
Sun Jan 1 14:30:50 GMT 2023


Source: eclipse-platform-team
Version: 4.22-1
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20230101 ftbfs-bookworm

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
>  debian/rules binary
> dh binary --buildsystem=eclipse_bundles
>    dh_update_autotools_config -O--buildsystem=eclipse_bundles
>    dh_autoreconf -O--buildsystem=eclipse_bundles
>    dh_auto_configure -O--buildsystem=eclipse_bundles
>    dh_auto_build -O--buildsystem=eclipse_bundles
> 	ant -Dbasedir . -Dbundledir bundles -f debian/build.xml org.eclipse.compare org.eclipse.compare.core org.eclipse.core.net org.eclipse.jsch.core org.eclipse.jsch.ui org.eclipse.team.core org.eclipse.team.genericeditor.diff.extension org.eclipse.team.ui -Duser.name debian
> Buildfile: /<<PKGBUILDDIR>>/debian/build.xml
> 
> org.eclipse.compare.core:
>      [echo] Building bundle 'Core Compare Support' (org.eclipse.compare.core:3.6.1000)
>     [mkdir] Created dir: /<<PKGBUILDDIR>>/bundles/org.eclipse.compare.core/target/classes
>     [touch] Creating /<<PKGBUILDDIR>>/bundles/org.eclipse.compare.core/target/dependencies
>     [mkdir] Created dir: /<<PKGBUILDDIR>>/bundles/org.eclipse.compare.core/target/sources
>      [copy] Copying 26 files to /<<PKGBUILDDIR>>/bundles/org.eclipse.compare.core/target/sources
>     [javac] Compiling 26 source files to /<<PKGBUILDDIR>>/bundles/org.eclipse.compare.core/target/classes
>      [copy] Copying 4 files to /<<PKGBUILDDIR>>/bundles/org.eclipse.compare.core/target/classes
>       [jar] Building jar: /<<PKGBUILDDIR>>/bundles/org.eclipse.compare.core/target/org.eclipse.compare.core.jar
>      [copy] Copying 1 file to /<<PKGBUILDDIR>>/bundles/org.eclipse.compare.core/target
> 
> org.eclipse.compare:
>      [echo] Building bundle 'Compare Support' (org.eclipse.compare:3.8.200)
>     [mkdir] Created dir: /<<PKGBUILDDIR>>/bundles/org.eclipse.compare/target/classes
>     [touch] Creating /<<PKGBUILDDIR>>/bundles/org.eclipse.compare/target/dependencies
>     [mkdir] Created dir: /<<PKGBUILDDIR>>/bundles/org.eclipse.compare/target/sources
>      [copy] Copying 162 files to /<<PKGBUILDDIR>>/bundles/org.eclipse.compare/target/sources
>     [javac] Compiling 162 source files to /<<PKGBUILDDIR>>/bundles/org.eclipse.compare/target/classes
>     [javac] Note: Some input files use or override a deprecated API.
>     [javac] Note: Recompile with -Xlint:deprecation for details.
>      [copy] Copying 145 files to /<<PKGBUILDDIR>>/bundles/org.eclipse.compare/target/classes
>       [jar] Building jar: /<<PKGBUILDDIR>>/bundles/org.eclipse.compare/target/org.eclipse.compare.jar
>      [copy] Copying 1 file to /<<PKGBUILDDIR>>/bundles/org.eclipse.compare/target
> 
> org.eclipse.compare.core:
> 
> org.eclipse.core.net:
>      [echo] Building bundle '' (org.eclipse.core.net:1.3.1100)
>     [mkdir] Created dir: /<<PKGBUILDDIR>>/bundles/org.eclipse.core.net/target/classes
>     [touch] Creating /<<PKGBUILDDIR>>/bundles/org.eclipse.core.net/target/dependencies
>     [mkdir] Created dir: /<<PKGBUILDDIR>>/bundles/org.eclipse.core.net/target/sources
>      [copy] Copying 27 files to /<<PKGBUILDDIR>>/bundles/org.eclipse.core.net/target/sources
>     [javac] Compiling 27 source files to /<<PKGBUILDDIR>>/bundles/org.eclipse.core.net/target/classes
>     [javac] /<<PKGBUILDDIR>>/bundles/org.eclipse.core.net/target/sources/org/eclipse/core/internal/net/PreferenceManager.java:23: error: package org.osgi.service.prefs does not exist
>     [javac] import org.osgi.service.prefs.BackingStoreException;
>     [javac]                              ^
>     [javac] /<<PKGBUILDDIR>>/bundles/org.eclipse.core.net/target/sources/org/eclipse/core/internal/net/PreferenceManager.java:24: error: package org.osgi.service.prefs does not exist
>     [javac] import org.osgi.service.prefs.Preferences;
>     [javac]                              ^
>     [javac] /<<PKGBUILDDIR>>/bundles/org.eclipse.core.net/target/sources/org/eclipse/core/internal/net/PreferenceManager.java:231: error: cannot find symbol
>     [javac] 	public void removeNode(String node) throws BackingStoreException {
>     [javac] 	                                           ^
>     [javac]   symbol:   class BackingStoreException
>     [javac]   location: class PreferenceManager
>     [javac] /<<PKGBUILDDIR>>/bundles/org.eclipse.core.net/target/sources/org/eclipse/core/internal/net/PreferenceManager.java:241: error: cannot find symbol
>     [javac] 	public void flush() throws BackingStoreException {
>     [javac] 	                           ^
>     [javac]   symbol:   class BackingStoreException
>     [javac]   location: class PreferenceManager
>     [javac] /<<PKGBUILDDIR>>/bundles/org.eclipse.core.net/target/sources/org/eclipse/core/internal/net/PreferenceManager.java:259: error: cannot find symbol
>     [javac] 	void migrateInstanceScopePreferences(Preferences instanceScope, Preferences configuration, ProxyType[] proxies, boolean isInitialize) {
>     [javac] 	                                     ^
>     [javac]   symbol:   class Preferences
>     [javac]   location: class PreferenceManager
>     [javac] /<<PKGBUILDDIR>>/bundles/org.eclipse.core.net/target/sources/org/eclipse/core/internal/net/PreferenceManager.java:259: error: cannot find symbol
>     [javac] 	void migrateInstanceScopePreferences(Preferences instanceScope, Preferences configuration, ProxyType[] proxies, boolean isInitialize) {
>     [javac] 	                                                                ^
>     [javac]   symbol:   class Preferences
>     [javac]   location: class PreferenceManager
>     [javac] /<<PKGBUILDDIR>>/bundles/org.eclipse.core.net/target/sources/org/eclipse/core/internal/net/PreferenceManager.java:306: error: cannot find symbol
>     [javac] 	private void migrateUpdateHttpProxy(Preferences instanceScope, ProxyType[] proxies, boolean isInitialize) {
>     [javac] 	                                    ^
>     [javac]   symbol:   class Preferences
>     [javac]   location: class PreferenceManager
>     [javac] /<<PKGBUILDDIR>>/bundles/org.eclipse.core.net/target/sources/org/eclipse/core/internal/net/PreferenceManager.java:362: error: cannot find symbol
>     [javac] 	private static PreferenceManager createInstanceManager(Preferences instance) {
>     [javac] 	                                                       ^
>     [javac]   symbol:   class Preferences
>     [javac]   location: class PreferenceManager
>     [javac] /<<PKGBUILDDIR>>/bundles/org.eclipse.core.net/target/sources/org/eclipse/core/internal/net/ProxyManager.java:389: error: cannot find symbol
>     [javac] 	void migrateInstanceScopePreferences(Preferences instance,
>     [javac] 	                                     ^
>     [javac]   symbol:   class Preferences
>     [javac]   location: class ProxyManager
>     [javac] /<<PKGBUILDDIR>>/bundles/org.eclipse.core.net/target/sources/org/eclipse/core/internal/net/ProxyManager.java:390: error: cannot find symbol
>     [javac] 			Preferences configuration, boolean isInitialize) {
>     [javac] 			^
>     [javac]   symbol:   class Preferences
>     [javac]   location: class ProxyManager
>     [javac] /<<PKGBUILDDIR>>/bundles/org.eclipse.core.net/target/sources/org/eclipse/core/internal/net/PreferenceManager.java:242: error: cannot find symbol
>     [javac] 		currentScope.flush();
>     [javac] 		            ^
>     [javac]   symbol:   method flush()
>     [javac]   location: variable currentScope of type IEclipsePreferences
>     [javac] /<<PKGBUILDDIR>>/bundles/org.eclipse.core.net/target/sources/org/eclipse/core/internal/net/PreferenceManager.java:251: error: cannot find symbol
>     [javac] 		if (currentScope.getBoolean(PREF_HAS_MIGRATED, false)
>     [javac] 		                ^
>     [javac]   symbol:   method getBoolean(String,boolean)
>     [javac]   location: variable currentScope of type IEclipsePreferences
>     [javac] /<<PKGBUILDDIR>>/bundles/org.eclipse.core.net/target/sources/org/eclipse/core/internal/net/PreferenceManager.java:252: error: cannot find symbol
>     [javac] 				|| currentScope.name().equals(InstanceScope.SCOPE)) {
>     [javac] 				               ^
>     [javac]   symbol:   method name()
>     [javac]   location: variable currentScope of type IEclipsePreferences
>     [javac] /<<PKGBUILDDIR>>/bundles/org.eclipse.core.net/target/sources/org/eclipse/core/internal/net/PreferenceManager.java:255: error: cannot find symbol
>     [javac] 		currentScope.putBoolean(PREF_HAS_MIGRATED, true);
>     [javac] 		            ^
>     [javac]   symbol:   method putBoolean(String,boolean)
>     [javac]   location: variable currentScope of type IEclipsePreferences
>     [javac] /<<PKGBUILDDIR>>/bundles/org.eclipse.core.net/target/sources/org/eclipse/core/internal/net/PreferenceManager.java:300: error: cannot find symbol
>     [javac] 			} catch (BackingStoreException e) {
>     [javac] 			         ^
>     [javac]   symbol:   class BackingStoreException
>     [javac]   location: class PreferenceManager
>     [javac] /<<PKGBUILDDIR>>/bundles/org.eclipse.core.net/target/sources/org/eclipse/core/internal/net/ProxyType.java:190: error: cannot find symbol
>     [javac] 			} catch (BackingStoreException e) {
>     [javac] 			         ^
>     [javac]   symbol:   class BackingStoreException
>     [javac]   location: class ProxyType
>     [javac] /<<PKGBUILDDIR>>/bundles/org.eclipse.core.net/target/sources/org/eclipse/core/internal/net/ProxyType.java:205: error: cannot find symbol
>     [javac] 		} catch (BackingStoreException e) {
>     [javac] 		         ^
>     [javac]   symbol:   class BackingStoreException
>     [javac]   location: class ProxyType
>     [javac] /<<PKGBUILDDIR>>/bundles/org.eclipse.core.net/target/sources/org/eclipse/core/internal/net/PreferenceInitializer.java:37: error: cannot find symbol
>     [javac] 		node.put(ProxyManager.PREF_NON_PROXIED_HOSTS, DEFAULT_PREF_NON_PROXIED_HOSTS);
>     [javac] 		    ^
>     [javac]   symbol:   method put(String,String)
>     [javac]   location: variable node of type IEclipsePreferences
>     [javac] /<<PKGBUILDDIR>>/bundles/org.eclipse.core.net/target/sources/org/eclipse/core/internal/net/PreferenceInitializer.java:38: error: cannot find symbol
>     [javac] 		node.putBoolean(ProxyManager.PREF_ENABLED, DEFAULT_PREF_ENABLED);
>     [javac] 		    ^
>     [javac]   symbol:   method putBoolean(String,boolean)
>     [javac]   location: variable node of type IEclipsePreferences
>     [javac] /<<PKGBUILDDIR>>/bundles/org.eclipse.core.net/target/sources/org/eclipse/core/internal/net/PreferenceInitializer.java:39: error: cannot find symbol
>     [javac] 		node.putBoolean(ProxyManager.PREF_OS, DEFAULT_PREF_OS);
>     [javac] 		    ^
>     [javac]   symbol:   method putBoolean(String,boolean)
>     [javac]   location: variable node of type IEclipsePreferences
>     [javac] /<<PKGBUILDDIR>>/bundles/org.eclipse.core.net/target/sources/org/eclipse/core/internal/net/PreferenceInitializer.java:41: error: cannot find symbol
>     [javac] 		Preferences type = node.node(ProxyType.PREF_PROXY_DATA_NODE).node(IProxyData.HTTP_PROXY_TYPE);
>     [javac] 		^
>     [javac]   symbol:   class Preferences
>     [javac]   location: class PreferenceInitializer
>     [javac] /<<PKGBUILDDIR>>/bundles/org.eclipse.core.net/target/sources/org/eclipse/core/internal/net/PreferenceInitializer.java:54: error: cannot find symbol
>     [javac] 			node.flush();
>     [javac] 			    ^
>     [javac]   symbol:   method flush()
>     [javac]   location: variable node of type IEclipsePreferences
>     [javac] /<<PKGBUILDDIR>>/bundles/org.eclipse.core.net/target/sources/org/eclipse/core/internal/net/PreferenceInitializer.java:55: error: cannot find symbol
>     [javac] 		} catch (BackingStoreException e) {
>     [javac] 		         ^
>     [javac]   symbol:   class BackingStoreException
>     [javac]   location: class PreferenceInitializer
>     [javac] /<<PKGBUILDDIR>>/bundles/org.eclipse.core.net/target/sources/org/eclipse/core/internal/net/PreferenceModifyListener.java:32: error: cannot find symbol
>     [javac] 		Preferences root = node.node("/"); //$NON-NLS-1$
>     [javac] 		^
>     [javac]   symbol:   class Preferences
>     [javac]   location: class PreferenceModifyListener
>     [javac] /<<PKGBUILDDIR>>/bundles/org.eclipse.core.net/target/sources/org/eclipse/core/internal/net/PreferenceModifyListener.java:36: error: cannot find symbol
>     [javac] 				Preferences instance = root.node(InstanceScope.SCOPE);
>     [javac] 				^
>     [javac]   symbol:   class Preferences
>     [javac]   location: class PreferenceModifyListener
>     [javac] /<<PKGBUILDDIR>>/bundles/org.eclipse.core.net/target/sources/org/eclipse/core/internal/net/PreferenceModifyListener.java:46: error: cannot find symbol
>     [javac] 		} catch (BackingStoreException e) {
>     [javac] 		         ^
>     [javac]   symbol:   class BackingStoreException
>     [javac]   location: class PreferenceModifyListener
>     [javac] /<<PKGBUILDDIR>>/bundles/org.eclipse.core.net/target/sources/org/eclipse/core/internal/net/ProxyManager.java:147: error: cannot find symbol
>     [javac] 		} catch (BackingStoreException e) {
>     [javac] 		         ^
>     [javac]   symbol:   class BackingStoreException
>     [javac]   location: class ProxyManager
>     [javac] /<<PKGBUILDDIR>>/bundles/org.eclipse.core.net/target/sources/org/eclipse/core/internal/net/ProxyManager.java:241: error: cannot find symbol
>     [javac] 		} catch (BackingStoreException e) {
>     [javac] 		         ^
>     [javac]   symbol:   class BackingStoreException
>     [javac]   location: class ProxyManager
>     [javac] Note: /<<PKGBUILDDIR>>/bundles/org.eclipse.core.net/target/sources/org/eclipse/core/internal/net/ProxyManager.java uses or overrides a deprecated API.
>     [javac] Note: Recompile with -Xlint:deprecation for details.
>     [javac] 28 errors
> 
> BUILD FAILED
> /<<PKGBUILDDIR>>/debian/build.xml:46: The following error occurred while executing this line:
> /usr/share/eclipse-debian-helper/build-eclipse-bundle.xml:64: Compile failed; see the compiler error output for details.
> 
> Total time: 4 seconds
> dh_auto_build: error: ant -Dbasedir . -Dbundledir bundles -f debian/build.xml org.eclipse.compare org.eclipse.compare.core org.eclipse.core.net org.eclipse.jsch.core org.eclipse.jsch.ui org.eclipse.team.core org.eclipse.team.genericeditor.diff.extension org.eclipse.team.ui -Duser.name debian returned exit code 1
> make: *** [debian/rules:6: binary] Error 25


The full build log is available from:
http://qa-logs.debian.net/2023/01/01/eclipse-platform-team_4.22-1_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20230101;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20230101&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.



More information about the pkg-java-maintainers mailing list