Bug#1027577: eclipse-jdt-ui: FTBFS: [javac] /<<PKGBUILDDIR>>/org.eclipse.jdt.core.manipulation/target/sources/org/eclipse/jdt/internal/core/manipulation/ProjectTemplateStore.java:23: error: package org.osgi.service.prefs does not exist
Lucas Nussbaum
lucas at debian.org
Sun Jan 1 14:30:40 GMT 2023
Source: eclipse-jdt-ui
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 -f debian/build.xml org.eclipse.jdt.astview org.eclipse.jdt.core.manipulation org.eclipse.jdt.junit.core org.eclipse.jdt.junit.runtime org.eclipse.jdt.junit4.runtime org.eclipse.jdt.ui org.eclipse.ltk.core.refactoring org.eclipse.ltk.ui.refactoring -Duser.name debian
> Buildfile: /<<PKGBUILDDIR>>/debian/build.xml
>
> org.eclipse.ltk.core.refactoring:
> [echo] Building bundle 'Refactoring Core' (org.eclipse.ltk.core.refactoring:3.12.100)
> [mkdir] Created dir: /<<PKGBUILDDIR>>/org.eclipse.ltk.core.refactoring/target/classes
> [touch] Creating /<<PKGBUILDDIR>>/org.eclipse.ltk.core.refactoring/target/dependencies
> [mkdir] Created dir: /<<PKGBUILDDIR>>/org.eclipse.ltk.core.refactoring/target/sources
> [copy] Copying 144 files to /<<PKGBUILDDIR>>/org.eclipse.ltk.core.refactoring/target/sources
> [javac] Compiling 144 source files to /<<PKGBUILDDIR>>/org.eclipse.ltk.core.refactoring/target/classes
> [javac] Note: Some input files use or override a deprecated API.
> [javac] Note: Recompile with -Xlint:deprecation for details.
> [copy] Copying 6 files to /<<PKGBUILDDIR>>/org.eclipse.ltk.core.refactoring/target/classes
> [jar] Building jar: /<<PKGBUILDDIR>>/org.eclipse.ltk.core.refactoring/target/org.eclipse.ltk.core.refactoring.jar
> [copy] Copying 1 file to /<<PKGBUILDDIR>>/org.eclipse.ltk.core.refactoring/target
>
> org.eclipse.jdt.core.manipulation:
> [echo] Building bundle 'Java Code Manipulation Functionality' (org.eclipse.jdt.core.manipulation:1.16.0)
> [mkdir] Created dir: /<<PKGBUILDDIR>>/org.eclipse.jdt.core.manipulation/target/classes
> [touch] Creating /<<PKGBUILDDIR>>/org.eclipse.jdt.core.manipulation/target/dependencies
> [mkdir] Created dir: /<<PKGBUILDDIR>>/org.eclipse.jdt.core.manipulation/target/sources
> [copy] Copying 468 files to /<<PKGBUILDDIR>>/org.eclipse.jdt.core.manipulation/target/sources
> [javac] Compiling 468 source files to /<<PKGBUILDDIR>>/org.eclipse.jdt.core.manipulation/target/classes
> [javac] /<<PKGBUILDDIR>>/org.eclipse.jdt.core.manipulation/target/sources/org/eclipse/jdt/internal/core/manipulation/ProjectTemplateStore.java:23: error: package org.osgi.service.prefs does not exist
> [javac] import org.osgi.service.prefs.BackingStoreException;
> [javac] ^
> [javac] /<<PKGBUILDDIR>>/org.eclipse.jdt.core.manipulation/target/sources/org/eclipse/jdt/core/manipulation/JavaManipulation.java:111: error: cannot access Preferences
> [javac] val= new ProjectScope(project.getProject()).getNode(JavaManipulation.fgPreferenceNodeId).get(key, null);
> [javac] ^
> [javac] class file for org.osgi.service.prefs.Preferences not found
> [javac] /<<PKGBUILDDIR>>/org.eclipse.jdt.core.manipulation/target/sources/org/eclipse/jdt/core/manipulation/JavaManipulation.java:116: error: cannot find symbol
> [javac] val= InstanceScope.INSTANCE.getNode(JavaManipulation.fgPreferenceNodeId).get(key, null);
> [javac] ^
> [javac] symbol: method get(String,<null>)
> [javac] location: interface IEclipsePreferences
> [javac] /<<PKGBUILDDIR>>/org.eclipse.jdt.core.manipulation/target/sources/org/eclipse/jdt/core/manipulation/JavaManipulation.java:120: error: cannot find symbol
> [javac] return DefaultScope.INSTANCE.getNode(JavaManipulation.fgPreferenceNodeId).get(key, null);
> [javac] ^
> [javac] symbol: method get(String,<null>)
> [javac] location: interface IEclipsePreferences
> [javac] /<<PKGBUILDDIR>>/org.eclipse.jdt.core.manipulation/target/sources/org/eclipse/jdt/core/manipulation/TypeNameMatchCollector.java:104: error: cannot find symbol
> [javac] val= node.get(key, null);
> [javac] ^
> [javac] symbol: method get(String,<null>)
> [javac] location: variable node of type IEclipsePreferences
> [javac] /<<PKGBUILDDIR>>/org.eclipse.jdt.core.manipulation/target/sources/org/eclipse/jdt/core/manipulation/TypeNameMatchCollector.java:111: error: cannot find symbol
> [javac] return node.get(key, null);
> [javac] ^
> [javac] symbol: method get(String,<null>)
> [javac] location: variable node of type IEclipsePreferences
> [javac] /<<PKGBUILDDIR>>/org.eclipse.jdt.core.manipulation/target/sources/org/eclipse/jdt/internal/core/manipulation/MembersOrderPreferenceCacheCommon.java:114: error: cannot find symbol
> [javac] boolean defaultValue= fDefaultPreferenceStore.getBoolean(APPEARANCE_ENABLE_VISIBILITY_SORT_ORDER, false);
> [javac] ^
> [javac] symbol: method getBoolean(String,boolean)
> [javac] location: variable fDefaultPreferenceStore of type IEclipsePreferences
> [javac] /<<PKGBUILDDIR>>/org.eclipse.jdt.core.manipulation/target/sources/org/eclipse/jdt/internal/core/manipulation/MembersOrderPreferenceCacheCommon.java:115: error: cannot find symbol
> [javac] fSortByVisibility= fPreferences.getBoolean(APPEARANCE_ENABLE_VISIBILITY_SORT_ORDER, defaultValue);
> [javac] ^
> [javac] symbol: method getBoolean(String,boolean)
> [javac] location: variable fPreferences of type IEclipsePreferences
> [javac] /<<PKGBUILDDIR>>/org.eclipse.jdt.core.manipulation/target/sources/org/eclipse/jdt/internal/core/manipulation/MembersOrderPreferenceCacheCommon.java:140: error: cannot find symbol
> [javac] boolean defaultValue= fDefaultPreferenceStore.getBoolean(key, false);
> [javac] ^
> [javac] symbol: method getBoolean(String,boolean)
> [javac] location: variable fDefaultPreferenceStore of type IEclipsePreferences
> [javac] /<<PKGBUILDDIR>>/org.eclipse.jdt.core.manipulation/target/sources/org/eclipse/jdt/internal/core/manipulation/MembersOrderPreferenceCacheCommon.java:141: error: cannot find symbol
> [javac] fSortByVisibility= fPreferences.getBoolean(key, defaultValue);
> [javac] ^
> [javac] symbol: method getBoolean(String,boolean)
> [javac] location: variable fPreferences of type IEclipsePreferences
> [javac] /<<PKGBUILDDIR>>/org.eclipse.jdt.core.manipulation/target/sources/org/eclipse/jdt/internal/core/manipulation/MembersOrderPreferenceCacheCommon.java:158: error: cannot find symbol
> [javac] boolean success= fillCategoryOffsetsFromPreferenceString(fPreferences.get(key, ""), offsets); //$NON-NLS-1$
> [javac] ^
> [javac] symbol: method get(String,String)
> [javac] location: variable fPreferences of type IEclipsePreferences
> [javac] /<<PKGBUILDDIR>>/org.eclipse.jdt.core.manipulation/target/sources/org/eclipse/jdt/internal/core/manipulation/MembersOrderPreferenceCacheCommon.java:160: error: cannot find symbol
> [javac] String defaultValue= fDefaultPreferenceStore.get(key, ""); //$NON-NLS-1$
> [javac] ^
> [javac] symbol: method get(String,String)
> [javac] location: variable fDefaultPreferenceStore of type IEclipsePreferences
> [javac] /<<PKGBUILDDIR>>/org.eclipse.jdt.core.manipulation/target/sources/org/eclipse/jdt/internal/core/manipulation/MembersOrderPreferenceCacheCommon.java:161: error: cannot find symbol
> [javac] fPreferences.put(key, defaultValue);
> [javac] ^
> [javac] symbol: method put(String,String)
> [javac] location: variable fPreferences of type IEclipsePreferences
> [javac] /<<PKGBUILDDIR>>/org.eclipse.jdt.core.manipulation/target/sources/org/eclipse/jdt/internal/core/manipulation/MembersOrderPreferenceCacheCommon.java:229: error: cannot find symbol
> [javac] boolean success= fillVisibilityOffsetsFromPreferenceString(fPreferences.get(key, ""), offsets); //$NON-NLS-1$
> [javac] ^
> [javac] symbol: method get(String,String)
> [javac] location: variable fPreferences of type IEclipsePreferences
> [javac] /<<PKGBUILDDIR>>/org.eclipse.jdt.core.manipulation/target/sources/org/eclipse/jdt/internal/core/manipulation/MembersOrderPreferenceCacheCommon.java:231: error: cannot find symbol
> [javac] String defaultValue= fDefaultPreferenceStore.get(key, ""); //$NON-NLS-1$
> [javac] ^
> [javac] symbol: method get(String,String)
> [javac] location: variable fDefaultPreferenceStore of type IEclipsePreferences
> [javac] /<<PKGBUILDDIR>>/org.eclipse.jdt.core.manipulation/target/sources/org/eclipse/jdt/internal/core/manipulation/MembersOrderPreferenceCacheCommon.java:232: error: cannot find symbol
> [javac] fPreferences.put(key, defaultValue);
> [javac] ^
> [javac] symbol: method put(String,String)
> [javac] location: variable fPreferences of type IEclipsePreferences
> [javac] /<<PKGBUILDDIR>>/org.eclipse.jdt.core.manipulation/target/sources/org/eclipse/jdt/internal/core/manipulation/ProjectTemplateStore.java:74: error: cannot find symbol
> [javac] projectSettings.put(KEY, output.toString());
> [javac] ^
> [javac] symbol: method put(String,String)
> [javac] location: variable projectSettings of type IEclipsePreferences
> [javac] /<<PKGBUILDDIR>>/org.eclipse.jdt.core.manipulation/target/sources/org/eclipse/jdt/internal/core/manipulation/ProjectTemplateStore.java:76: error: cannot find symbol
> [javac] projectSettings.flush();
> [javac] ^
> [javac] symbol: method flush()
> [javac] location: variable projectSettings of type IEclipsePreferences
> [javac] /<<PKGBUILDDIR>>/org.eclipse.jdt.core.manipulation/target/sources/org/eclipse/jdt/internal/core/manipulation/ProjectTemplateStore.java:77: error: cannot find symbol
> [javac] } catch (BackingStoreException e) {
> [javac] ^
> [javac] symbol: class BackingStoreException
> [javac] /<<PKGBUILDDIR>>/org.eclipse.jdt.core.manipulation/target/sources/org/eclipse/jdt/internal/core/manipulation/ProjectTemplateStore.java:85: error: cannot find symbol
> [javac] projectSettings.put(KEY, ""); //$NON-NLS-1$
> [javac] ^
> [javac] symbol: method put(String,String)
> [javac] location: variable projectSettings of type IEclipsePreferences
> [javac] /<<PKGBUILDDIR>>/org.eclipse.jdt.core.manipulation/target/sources/org/eclipse/jdt/internal/core/manipulation/ProjectTemplateStore.java:87: error: cannot find symbol
> [javac] projectSettings.flush();
> [javac] ^
> [javac] symbol: method flush()
> [javac] location: variable projectSettings of type IEclipsePreferences
> [javac] /<<PKGBUILDDIR>>/org.eclipse.jdt.core.manipulation/target/sources/org/eclipse/jdt/internal/core/manipulation/ProjectTemplateStore.java:88: error: cannot find symbol
> [javac] } catch (BackingStoreException e) {
> [javac] ^
> [javac] symbol: class BackingStoreException
> [javac] /<<PKGBUILDDIR>>/org.eclipse.jdt.core.manipulation/target/sources/org/eclipse/jdt/internal/core/manipulation/ProjectTemplateStore.java:96: error: cannot find symbol
> [javac] String pref= new ProjectScope(project).getNode(JavaManipulation.getPreferenceNodeId()).get(KEY, null);
> [javac] ^
> [javac] symbol: method get(String,<null>)
> [javac] location: interface IEclipsePreferences
> [javac] Note: Some input files use or override a deprecated API.
> [javac] Note: Recompile with -Xlint:deprecation for details.
> [javac] Note: Some input files use unchecked or unsafe operations.
> [javac] Note: Recompile with -Xlint:unchecked for details.
> [javac] 23 errors
>
> BUILD FAILED
> /<<PKGBUILDDIR>>/debian/build.xml:28: 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: 9 seconds
> dh_auto_build: error: ant -Dbasedir . -Dbundledir -f debian/build.xml org.eclipse.jdt.astview org.eclipse.jdt.core.manipulation org.eclipse.jdt.junit.core org.eclipse.jdt.junit.runtime org.eclipse.jdt.junit4.runtime org.eclipse.jdt.ui org.eclipse.ltk.core.refactoring org.eclipse.ltk.ui.refactoring -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-jdt-ui_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