Bug#1027508: eclipse-platform-runtime: FTBFS: [javac] /<<PKGBUILDDIR>>/bundles/org.eclipse.core.contenttype/target/sources/org/eclipse/core/internal/content/ContentType.java:23: error: package org.osgi.service.prefs does not exist
Lucas Nussbaum
lucas at debian.org
Sun Jan 1 14:30:47 GMT 2023
Source: eclipse-platform-runtime
Version: 4.23-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 build
> dh build --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.core.contenttype org.eclipse.core.expressions org.eclipse.core.jobs org.eclipse.core.runtime org.eclipse.e4.core.contexts org.eclipse.e4.core.di org.eclipse.e4.core.di.annotations org.eclipse.e4.core.di.extensions org.eclipse.e4.core.di.extensions.supplier org.eclipse.e4.core.services -Duser.name debian
> Buildfile: /<<PKGBUILDDIR>>/debian/build.xml
>
> org.eclipse.core.contenttype:
> [echo] Building bundle 'Eclipse Content Mechanism' (org.eclipse.core.contenttype:3.8.100)
> [mkdir] Created dir: /<<PKGBUILDDIR>>/bundles/org.eclipse.core.contenttype/target/classes
> [touch] Creating /<<PKGBUILDDIR>>/bundles/org.eclipse.core.contenttype/target/dependencies
> [mkdir] Created dir: /<<PKGBUILDDIR>>/bundles/org.eclipse.core.contenttype/target/sources
> [copy] Copying 35 files to /<<PKGBUILDDIR>>/bundles/org.eclipse.core.contenttype/target/sources
> [javac] Compiling 35 source files to /<<PKGBUILDDIR>>/bundles/org.eclipse.core.contenttype/target/classes
> [javac] /<<PKGBUILDDIR>>/bundles/org.eclipse.core.contenttype/target/sources/org/eclipse/core/internal/content/ContentType.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.contenttype/target/sources/org/eclipse/core/internal/content/ContentType.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.contenttype/target/sources/org/eclipse/core/internal/content/ContentTypeManager.java:26: error: package org.osgi.service.prefs does not exist
> [javac] import org.osgi.service.prefs.BackingStoreException;
> [javac] ^
> [javac] /<<PKGBUILDDIR>>/bundles/org.eclipse.core.contenttype/target/sources/org/eclipse/core/internal/content/ContentTypeMatcher.java:24: error: package org.osgi.service.prefs does not exist
> [javac] import org.osgi.service.prefs.BackingStoreException;
> [javac] ^
> [javac] /<<PKGBUILDDIR>>/bundles/org.eclipse.core.contenttype/target/sources/org/eclipse/core/internal/content/ContentType.java:548: error: cannot find symbol
> [javac] void processPreferences(Preferences contentTypeNode) {
> [javac] ^
> [javac] symbol: class Preferences
> [javac] location: class ContentType
> [javac] /<<PKGBUILDDIR>>/bundles/org.eclipse.core.contenttype/target/sources/org/eclipse/core/internal/content/ContentType.java:624: error: cannot find symbol
> [javac] static void setPreference(Preferences node, String key, String value) {
> [javac] ^
> [javac] symbol: class Preferences
> [javac] location: class ContentType
> [javac] /<<PKGBUILDDIR>>/bundles/org.eclipse.core.contenttype/target/sources/org/eclipse/core/internal/content/ContentTypeSettings.java:23: error: package org.osgi.service.prefs does not exist
> [javac] import org.osgi.service.prefs.Preferences;
> [javac] ^
> [javac] /<<PKGBUILDDIR>>/bundles/org.eclipse.core.contenttype/target/sources/org/eclipse/core/internal/content/ContentTypeSettings.java:56: error: cannot find symbol
> [javac] static String[] getFileSpecs(Preferences contentTypeNode, int type) {
> [javac] ^
> [javac] symbol: class Preferences
> [javac] location: class ContentTypeSettings
> [javac] /<<PKGBUILDDIR>>/bundles/org.eclipse.core.contenttype/target/sources/org/eclipse/core/internal/content/ContentTypeSettings.java:62: error: cannot find symbol
> [javac] public static String internalGetDefaultProperty(ContentType current, final Preferences contentTypePrefs, final QualifiedName key) throws BackingStoreException {
> [javac] ^
> [javac] symbol: class Preferences
> [javac] location: class ContentTypeSettings
> [javac] /<<PKGBUILDDIR>>/bundles/org.eclipse.core.contenttype/target/sources/org/eclipse/core/internal/content/ContentTypeSettings.java:62: error: cannot find symbol
> [javac] public static String internalGetDefaultProperty(ContentType current, final Preferences contentTypePrefs, final QualifiedName key) throws BackingStoreException {
> [javac] ^
> [javac] symbol: class BackingStoreException
> [javac] location: class ContentTypeSettings
> [javac] /<<PKGBUILDDIR>>/bundles/org.eclipse.core.contenttype/target/sources/org/eclipse/core/internal/content/ContentType.java:164: error: cannot find symbol
> [javac] Preferences contentTypeNode = manager.getPreferences().node(id);
> [javac] ^
> [javac] symbol: class Preferences
> [javac] location: class ContentType
> [javac] /<<PKGBUILDDIR>>/bundles/org.eclipse.core.contenttype/target/sources/org/eclipse/core/internal/content/ContentType.java:171: error: cannot find symbol
> [javac] } catch (BackingStoreException bse) {
> [javac] ^
> [javac] symbol: class BackingStoreException
> [javac] location: class ContentType
> [javac] /<<PKGBUILDDIR>>/bundles/org.eclipse.core.contenttype/target/sources/org/eclipse/core/internal/content/ContentType.java:578: error: cannot find symbol
> [javac] Preferences contentTypeNode = manager.getPreferences().node(id);
> [javac] ^
> [javac] symbol: class Preferences
> [javac] location: class ContentType
> [javac] /<<PKGBUILDDIR>>/bundles/org.eclipse.core.contenttype/target/sources/org/eclipse/core/internal/content/ContentType.java:585: error: cannot find symbol
> [javac] } catch (BackingStoreException bse) {
> [javac] ^
> [javac] symbol: class BackingStoreException
> [javac] location: class ContentType
> [javac] /<<PKGBUILDDIR>>/bundles/org.eclipse.core.contenttype/target/sources/org/eclipse/core/internal/content/ContentType.java:611: error: cannot find symbol
> [javac] Preferences contentTypeNode = manager.getPreferences().node(id);
> [javac] ^
> [javac] symbol: class Preferences
> [javac] location: class ContentType
> [javac] /<<PKGBUILDDIR>>/bundles/org.eclipse.core.contenttype/target/sources/org/eclipse/core/internal/content/ContentType.java:615: error: cannot find symbol
> [javac] } catch (BackingStoreException bse) {
> [javac] ^
> [javac] symbol: class BackingStoreException
> [javac] location: class ContentType
> [javac] /<<PKGBUILDDIR>>/bundles/org.eclipse.core.contenttype/target/sources/org/eclipse/core/internal/content/ContentTypeMatcher.java:115: error: cannot find symbol
> [javac] ContentType associated = catalog.getContentType(node.name());
> [javac] ^
> [javac] symbol: method name()
> [javac] location: variable node of type IEclipsePreferences
> [javac] /<<PKGBUILDDIR>>/bundles/org.eclipse.core.contenttype/target/sources/org/eclipse/core/internal/content/ContentTypeMatcher.java:122: error: cannot find symbol
> [javac] } catch (BackingStoreException bse) {
> [javac] ^
> [javac] symbol: class BackingStoreException
> [javac] location: class ContentTypeMatcher
> [javac] /<<PKGBUILDDIR>>/bundles/org.eclipse.core.contenttype/target/sources/org/eclipse/core/internal/content/ContentTypeMatcher.java:142: error: cannot find symbol
> [javac] ContentType associated = catalog.getContentType(node.name());
> [javac] ^
> [javac] symbol: method name()
> [javac] location: variable node of type IEclipsePreferences
> [javac] /<<PKGBUILDDIR>>/bundles/org.eclipse.core.contenttype/target/sources/org/eclipse/core/internal/content/ContentTypeMatcher.java:149: error: cannot find symbol
> [javac] } catch (BackingStoreException bse) {
> [javac] ^
> [javac] symbol: class BackingStoreException
> [javac] location: class ContentTypeMatcher
> [javac] /<<PKGBUILDDIR>>/bundles/org.eclipse.core.contenttype/target/sources/org/eclipse/core/internal/content/ContentTypeManager.java:262: error: cannot find symbol
> [javac] getContext().getNode(ContentType.PREF_USER_DEFINED).put(ContentType.PREF_USER_DEFINED,
> [javac] ^
> [javac] symbol: method put(String,String)
> [javac] location: interface IEclipsePreferences
> [javac] /<<PKGBUILDDIR>>/bundles/org.eclipse.core.contenttype/target/sources/org/eclipse/core/internal/content/ContentTypeManager.java:265: error: cannot find symbol
> [javac] getContext().getNode(ContentType.PREF_USER_DEFINED).flush();
> [javac] ^
> [javac] symbol: method flush()
> [javac] location: interface IEclipsePreferences
> [javac] /<<PKGBUILDDIR>>/bundles/org.eclipse.core.contenttype/target/sources/org/eclipse/core/internal/content/ContentTypeManager.java:266: error: cannot find symbol
> [javac] } catch (BackingStoreException e) {
> [javac] ^
> [javac] symbol: class BackingStoreException
> [javac] location: class ContentTypeManager
> [javac] /<<PKGBUILDDIR>>/bundles/org.eclipse.core.contenttype/target/sources/org/eclipse/core/internal/content/ContentTypeManager.java:292: error: cannot find symbol
> [javac] .get(ContentType.PREF_USER_DEFINED, ContentType.EMPTY_STRING);
> [javac] ^
> [javac] symbol: method get(String,String)
> [javac] location: interface IEclipsePreferences
> [javac] /<<PKGBUILDDIR>>/bundles/org.eclipse.core.contenttype/target/sources/org/eclipse/core/internal/content/ContentTypeManager.java:296: error: cannot find symbol
> [javac] getContext().getNode(ContentType.PREF_USER_DEFINED).put(ContentType.PREF_USER_DEFINED, currentUserDefined + id);
> [javac] ^
> [javac] symbol: method put(String,String)
> [javac] location: interface IEclipsePreferences
> [javac] /<<PKGBUILDDIR>>/bundles/org.eclipse.core.contenttype/target/sources/org/eclipse/core/internal/content/ContentTypeManager.java:299: error: cannot find symbol
> [javac] contextTypeNode.put(ContentType.PREF_USER_DEFINED__NAME, name);
> [javac] ^
> [javac] symbol: method put(String,String)
> [javac] location: variable contextTypeNode of type IEclipsePreferences
> [javac] /<<PKGBUILDDIR>>/bundles/org.eclipse.core.contenttype/target/sources/org/eclipse/core/internal/content/ContentTypeManager.java:301: error: cannot find symbol
> [javac] contextTypeNode.put(ContentType.PREF_USER_DEFINED__BASE_TYPE_ID, baseType.getId());
> [javac] ^
> [javac] symbol: method put(String,String)
> [javac] location: variable contextTypeNode of type IEclipsePreferences
> [javac] /<<PKGBUILDDIR>>/bundles/org.eclipse.core.contenttype/target/sources/org/eclipse/core/internal/content/ContentTypeManager.java:304: error: cannot find symbol
> [javac] getContext().getNode(ContentType.PREF_USER_DEFINED).flush();
> [javac] ^
> [javac] symbol: method flush()
> [javac] location: interface IEclipsePreferences
> [javac] /<<PKGBUILDDIR>>/bundles/org.eclipse.core.contenttype/target/sources/org/eclipse/core/internal/content/ContentTypeManager.java:305: error: cannot find symbol
> [javac] contextTypeNode.flush();
> [javac] ^
> [javac] symbol: method flush()
> [javac] location: variable contextTypeNode of type IEclipsePreferences
> [javac] /<<PKGBUILDDIR>>/bundles/org.eclipse.core.contenttype/target/sources/org/eclipse/core/internal/content/ContentTypeManager.java:306: error: cannot find symbol
> [javac] } catch (BackingStoreException e) {
> [javac] ^
> [javac] symbol: class BackingStoreException
> [javac] location: class ContentTypeManager
> [javac] /<<PKGBUILDDIR>>/bundles/org.eclipse.core.contenttype/target/sources/org/eclipse/core/internal/content/ContentTypeManager.java:322: error: cannot find symbol
> [javac] .get(ContentType.PREF_USER_DEFINED, ContentType.EMPTY_STRING);
> [javac] ^
> [javac] symbol: method get(String,String)
> [javac] location: interface IEclipsePreferences
> [javac] /<<PKGBUILDDIR>>/bundles/org.eclipse.core.contenttype/target/sources/org/eclipse/core/internal/content/ContentTypeBuilder.java:101: error: cannot find symbol
> [javac] node.get(ContentType.PREF_USER_DEFINED__NAME, ContentType.EMPTY_STRING),
> [javac] ^
> [javac] symbol: method get(String,String)
> [javac] location: variable node of type IEclipsePreferences
> [javac] /<<PKGBUILDDIR>>/bundles/org.eclipse.core.contenttype/target/sources/org/eclipse/core/internal/content/ContentTypeBuilder.java:103: error: cannot find symbol
> [javac] node.get(ContentType.PREF_USER_DEFINED__BASE_TYPE_ID, null), null, Collections.emptyMap(),
> [javac] ^
> [javac] symbol: method get(String,<null>)
> [javac] location: variable node of type IEclipsePreferences
> [javac] /<<PKGBUILDDIR>>/bundles/org.eclipse.core.contenttype/target/sources/org/eclipse/core/internal/content/ContentTypeBuilder.java:122: error: cannot find symbol
> [javac] ContentType contentType = localCatalog.internalGetContentType(node.name());
> [javac] ^
> [javac] symbol: method name()
> [javac] location: variable node of type IEclipsePreferences
> [javac] /<<PKGBUILDDIR>>/bundles/org.eclipse.core.contenttype/target/sources/org/eclipse/core/internal/content/ContentTypeBuilder.java:128: error: cannot find symbol
> [javac] } catch (BackingStoreException bse) {
> [javac] ^
> [javac] symbol: class BackingStoreException
> [javac] location: class ContentTypeBuilder
> [javac] /<<PKGBUILDDIR>>/bundles/org.eclipse.core.contenttype/target/sources/org/eclipse/core/internal/content/ContentTypeSettings.java:31: error: cannot find symbol
> [javac] Preferences contentTypeNode = ContentTypeManager.getInstance().getPreferences(context).node(contentTypeId);
> [javac] ^
> [javac] symbol: class Preferences
> [javac] location: class ContentTypeSettings
> [javac] /<<PKGBUILDDIR>>/bundles/org.eclipse.core.contenttype/target/sources/org/eclipse/core/internal/content/ContentTypeSettings.java:44: error: cannot find symbol
> [javac] } catch (BackingStoreException bse) {
> [javac] ^
> [javac] symbol: class BackingStoreException
> [javac] location: class ContentTypeSettings
> [javac] /<<PKGBUILDDIR>>/bundles/org.eclipse.core.contenttype/target/sources/org/eclipse/core/internal/content/ContentTypeSettings.java:52: error: cannot find symbol
> [javac] Preferences contentTypeNode = ContentTypeManager.getInstance().getPreferences(context).node(contentTypeId);
> [javac] ^
> [javac] symbol: class Preferences
> [javac] location: class ContentTypeSettings
> [javac] /<<PKGBUILDDIR>>/bundles/org.eclipse.core.contenttype/target/sources/org/eclipse/core/internal/content/ContentTypeSettings.java:65: error: cannot find symbol
> [javac] Preferences contentTypeNode = contentTypePrefs.node(id);
> [javac] ^
> [javac] symbol: class Preferences
> [javac] location: class ContentTypeSettings
> [javac] /<<PKGBUILDDIR>>/bundles/org.eclipse.core.contenttype/target/sources/org/eclipse/core/internal/content/ContentTypeSettings.java:80: error: cannot find symbol
> [javac] Preferences contentTypeNode = ContentTypeManager.getInstance().getPreferences(context).node(contentTypeId);
> [javac] ^
> [javac] symbol: class Preferences
> [javac] location: class ContentTypeSettings
> [javac] /<<PKGBUILDDIR>>/bundles/org.eclipse.core.contenttype/target/sources/org/eclipse/core/internal/content/ContentTypeSettings.java:101: error: cannot find symbol
> [javac] } catch (BackingStoreException bse) {
> [javac] ^
> [javac] symbol: class BackingStoreException
> [javac] location: class ContentTypeSettings
> [javac] /<<PKGBUILDDIR>>/bundles/org.eclipse.core.contenttype/target/sources/org/eclipse/core/internal/content/ContentTypeSettings.java:130: error: cannot find symbol
> [javac] final Preferences contentTypePrefs = ContentTypeManager.getInstance().getPreferences(context);
> [javac] ^
> [javac] symbol: class Preferences
> [javac] location: class ContentTypeSettings
> [javac] /<<PKGBUILDDIR>>/bundles/org.eclipse.core.contenttype/target/sources/org/eclipse/core/internal/content/ContentTypeSettings.java:134: error: cannot find symbol
> [javac] } catch (BackingStoreException e) {
> [javac] ^
> [javac] symbol: class BackingStoreException
> [javac] location: class ContentTypeSettings
> [javac] /<<PKGBUILDDIR>>/bundles/org.eclipse.core.contenttype/target/sources/org/eclipse/core/internal/content/ContentTypeSettings.java:156: error: cannot find symbol
> [javac] Preferences contentTypeNode = ContentTypeManager.getInstance().getPreferences(context).node(contentType.getId());
> [javac] ^
> [javac] symbol: class Preferences
> [javac] location: class ContentTypeSettings
> [javac] /<<PKGBUILDDIR>>/bundles/org.eclipse.core.contenttype/target/sources/org/eclipse/core/internal/content/ContentTypeSettings.java:160: error: cannot find symbol
> [javac] } catch (BackingStoreException bse) {
> [javac] ^
> [javac] symbol: class BackingStoreException
> [javac] location: class ContentTypeSettings
> [javac] /<<PKGBUILDDIR>>/bundles/org.eclipse.core.contenttype/target/sources/org/eclipse/core/internal/content/PreferenceModifyListener.java:24: 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.contenttype/target/sources/org/eclipse/core/internal/content/PreferenceModifyListener.java:27: 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.contenttype/target/sources/org/eclipse/core/internal/content/PreferenceModifyListener.java:31: error: cannot find symbol
> [javac] } catch (BackingStoreException e) {
> [javac] ^
> [javac] symbol: class BackingStoreException
> [javac] location: class PreferenceModifyListener
> [javac] Note: Some input files use unchecked or unsafe operations.
> [javac] Note: Recompile with -Xlint:unchecked for details.
> [javac] 48 errors
>
> BUILD FAILED
> /<<PKGBUILDDIR>>/debian/build.xml:23: 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: 3 seconds
> dh_auto_build: error: ant -Dbasedir . -Dbundledir bundles -f debian/build.xml org.eclipse.core.contenttype org.eclipse.core.expressions org.eclipse.core.jobs org.eclipse.core.runtime org.eclipse.e4.core.contexts org.eclipse.e4.core.di org.eclipse.e4.core.di.annotations org.eclipse.e4.core.di.extensions org.eclipse.e4.core.di.extensions.supplier org.eclipse.e4.core.services -Duser.name debian returned exit code 1
> make: *** [debian/rules:6: build] Error 25
The full build log is available from:
http://qa-logs.debian.net/2023/01/01/eclipse-platform-runtime_4.23-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