Bug#1028895: felix-gogo-command: FTBFS: dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2

Lucas Nussbaum lucas at debian.org
Sat Jan 14 12:46:11 GMT 2023


Source: felix-gogo-command
Version: 0.14.0-2.1
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20230113 ftbfs-bookworm

Hi,

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


Relevant part (hopefully):
>  debian/rules build
> test -x debian/rules
> mkdir -p "."
> /usr/share/maven-debian-helper/copy-repo.sh /<<PKGBUILDDIR>>/debian
> mh_patchpoms -plibfelix-gogo-command-java --debian-build --keep-pom-version --maven-repo=/<<PKGBUILDDIR>>/debian/maven-repo 
> touch debian/stamp-poms-patched
> # before-build target may be used to unpatch the pom files, so we need to check if
> # patching the pom files is needed here, normally not
> if [ ! -f pom.xml.save ]; then \
> 	/usr/bin/make -f debian/rules patch-poms; \
> fi
> cd . && /usr/lib/jvm/default-java/bin/java -noverify -cp /usr/share/maven/boot/plexus-classworlds-2.x.jar: -Dproperties.file.manual=/<<PKGBUILDDIR>>/debian/maven.properties -Dclassworlds.conf=/etc/maven/m2-debian.conf -Dmaven.home=/usr/share/maven -Dmaven.multiModuleProjectDirectory=/<<PKGBUILDDIR>> org.codehaus.plexus.classworlds.launcher.Launcher -s/etc/maven/settings-debian.xml -Dmaven.repo.local=/<<PKGBUILDDIR>>/debian/maven-repo  package -DskipTests
> OpenJDK 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future release.
> [INFO] Scanning for projects...
> [WARNING] 
> [WARNING] Some problems were encountered while building the effective model for org.apache.felix:org.apache.felix.gogo.command:bundle:0.14.0
> [WARNING] The expression ${artifactId} is deprecated. Please use ${project.artifactId} instead.
> [WARNING] The expression ${pom.artifactId} is deprecated. Please use ${project.artifactId} instead.
> [WARNING] The expression ${pom.artifactId} is deprecated. Please use ${project.artifactId} instead.
> [WARNING] 
> [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
> [WARNING] 
> [WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
> [WARNING] 
> [INFO] 
> [INFO] -----------< org.apache.felix:org.apache.felix.gogo.command >-----------
> [INFO] Building Apache Felix Gogo Command 0.14.0
> [INFO] -------------------------------[ bundle ]-------------------------------
> [WARNING] The artifact org.osgi:org.osgi.core:jar:debian has been relocated to org.osgi:osgi.core:jar:debian
> [WARNING] The artifact org.osgi:org.osgi.compendium:jar:debian has been relocated to org.osgi:osgi.cmpn:jar:debian
> [INFO] 
> [INFO] --- maven-resources-plugin:3.3.0:resources (default-resources) @ org.apache.felix.gogo.command ---
> [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
> [INFO] Copying 0 resource
> [INFO] 
> [INFO] --- maven-compiler-plugin:3.10.1:compile (default-compile) @ org.apache.felix.gogo.command ---
> [INFO] Changes detected - recompiling the module!
> [WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
> [INFO] Compiling 8 source files to /<<PKGBUILDDIR>>/target/classes
> Use of target 1.5 is no longer supported, switching to 7
> Use of source 1.5 is no longer supported, switching to 7
> [INFO] /<<PKGBUILDDIR>>/src/main/java/org/apache/felix/gogo/command/Inspect.java: Some input files use or override a deprecated API.
> [INFO] /<<PKGBUILDDIR>>/src/main/java/org/apache/felix/gogo/command/Inspect.java: Recompile with -Xlint:deprecation for details.
> [INFO] /<<PKGBUILDDIR>>/src/main/java/org/apache/felix/gogo/command/OBR.java: Some input files use unchecked or unsafe operations.
> [INFO] /<<PKGBUILDDIR>>/src/main/java/org/apache/felix/gogo/command/OBR.java: Recompile with -Xlint:unchecked for details.
> [INFO] 
> [INFO] --- maven-resources-plugin:3.3.0:testResources (default-testResources) @ org.apache.felix.gogo.command ---
> [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
> [INFO] skip non existing resourceDirectory /<<PKGBUILDDIR>>/src/test/resources
> [INFO] 
> [INFO] --- maven-compiler-plugin:3.10.1:testCompile (default-testCompile) @ org.apache.felix.gogo.command ---
> [INFO] No sources to compile
> [INFO] 
> [INFO] --- maven-surefire-plugin:2.22.3:test (default-test) @ org.apache.felix.gogo.command ---
> [INFO] Tests are skipped.
> [INFO] 
> [INFO] --- maven-bundle-plugin:3.5.1:bundle (default-bundle) @ org.apache.felix.gogo.command ---
> [WARNING] The artifact org.osgi:org.osgi.core:jar:debian has been relocated to org.osgi:osgi.core:jar:debian
> [WARNING] The artifact org.osgi:org.osgi.compendium:jar:debian has been relocated to org.osgi:osgi.cmpn:jar:debian
> [WARNING] Bundle org.apache.felix:org.apache.felix.gogo.command:bundle:0.14.0 : Split package, multiple jars provide the same package:org/osgi/service/log
> Use Import/Export Package directive -split-package:=(merge-first|merge-last|error|first) to get rid of this warning
> Package found in   [Jar:osgi.core, Jar:osgi.cmpn]
> Class path         [Jar:., Jar:osgi.core, Jar:osgi.cmpn, Jar:org.apache.felix.gogo.runtime, Jar:org.apache.felix.bundlerepository]
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD SUCCESS
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time:  2.185 s
> [INFO] Finished at: 2023-01-13T20:28:51Z
> [INFO] ------------------------------------------------------------------------
> cd . && /usr/lib/jvm/default-java/bin/java -noverify -cp /usr/share/maven/boot/plexus-classworlds-2.x.jar: -Dproperties.file.manual=/<<PKGBUILDDIR>>/debian/maven.properties -Dclassworlds.conf=/etc/maven/m2-debian.conf -Dmaven.home=/usr/share/maven -Dmaven.multiModuleProjectDirectory=/<<PKGBUILDDIR>> org.codehaus.plexus.classworlds.launcher.Launcher -s/etc/maven/settings-debian.xml -Dmaven.repo.local=/<<PKGBUILDDIR>>/debian/maven-repo  -Ddebian.dir=/<<PKGBUILDDIR>>/debian -Ddebian.package=libfelix-gogo-command-java -Dmaven.repo.local=/<<PKGBUILDDIR>>/debian/maven-repo -Dinstall.to.usj=true test
> OpenJDK 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future release.
> [INFO] Scanning for projects...
> [WARNING] 
> [WARNING] Some problems were encountered while building the effective model for org.apache.felix:org.apache.felix.gogo.command:bundle:0.14.0
> [WARNING] The expression ${artifactId} is deprecated. Please use ${project.artifactId} instead.
> [WARNING] The expression ${pom.artifactId} is deprecated. Please use ${project.artifactId} instead.
> [WARNING] The expression ${pom.artifactId} is deprecated. Please use ${project.artifactId} instead.
> [WARNING] 
> [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
> [WARNING] 
> [WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
> [WARNING] 
> [INFO] 
> [INFO] -----------< org.apache.felix:org.apache.felix.gogo.command >-----------
> [INFO] Building Apache Felix Gogo Command 0.14.0
> [INFO] -------------------------------[ bundle ]-------------------------------
> [WARNING] The artifact org.osgi:org.osgi.core:jar:debian has been relocated to org.osgi:osgi.core:jar:debian
> [WARNING] The artifact org.osgi:org.osgi.compendium:jar:debian has been relocated to org.osgi:osgi.cmpn:jar:debian
> [INFO] 
> [INFO] --- maven-resources-plugin:3.3.0:resources (default-resources) @ org.apache.felix.gogo.command ---
> [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
> [INFO] Copying 0 resource
> [INFO] 
> [INFO] --- maven-compiler-plugin:3.10.1:compile (default-compile) @ org.apache.felix.gogo.command ---
> [INFO] Nothing to compile - all classes are up to date
> [INFO] 
> [INFO] --- maven-resources-plugin:3.3.0:testResources (default-testResources) @ org.apache.felix.gogo.command ---
> [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
> [INFO] skip non existing resourceDirectory /<<PKGBUILDDIR>>/src/test/resources
> [INFO] 
> [INFO] --- maven-compiler-plugin:3.10.1:testCompile (default-testCompile) @ org.apache.felix.gogo.command ---
> [INFO] No sources to compile
> [INFO] 
> [INFO] --- maven-surefire-plugin:2.22.3:test (default-test) @ org.apache.felix.gogo.command ---
> [INFO] No tests to run.
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD SUCCESS
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time:  0.802 s
> [INFO] Finished at: 2023-01-13T20:28:53Z
> [INFO] ------------------------------------------------------------------------
> touch debian/stamp-maven-check
> if [ ! -f pom.xml.save ]; then \
> 	/usr/bin/make -f debian/rules patch-poms; \
> fi
> cd . && /usr/lib/jvm/default-java/bin/java -noverify -cp /usr/share/maven/boot/plexus-classworlds-2.x.jar: -Dproperties.file.manual=/<<PKGBUILDDIR>>/debian/maven.properties -Dclassworlds.conf=/etc/maven/m2-debian.conf -Dmaven.home=/usr/share/maven -Dmaven.multiModuleProjectDirectory=/<<PKGBUILDDIR>> org.codehaus.plexus.classworlds.launcher.Launcher -s/etc/maven/settings-debian.xml -Dmaven.repo.local=/<<PKGBUILDDIR>>/debian/maven-repo  -Ddebian.dir=/<<PKGBUILDDIR>>/debian -Ddebian.package=libfelix-gogo-command-java-doc -Dnotimestamp=true -Dlocale=en_US javadoc:jar
> OpenJDK 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future release.
> [INFO] Scanning for projects...
> [WARNING] 
> [WARNING] Some problems were encountered while building the effective model for org.apache.felix:org.apache.felix.gogo.command:bundle:0.14.0
> [WARNING] The expression ${artifactId} is deprecated. Please use ${project.artifactId} instead.
> [WARNING] The expression ${pom.artifactId} is deprecated. Please use ${project.artifactId} instead.
> [WARNING] The expression ${pom.artifactId} is deprecated. Please use ${project.artifactId} instead.
> [WARNING] 
> [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
> [WARNING] 
> [WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
> [WARNING] 
> [WARNING] The artifact org.apache.maven.plugins:maven-clean-plugin:jar:2.5 has been relocated to org.apache.maven.plugins:maven-clean-plugin:jar:3.2.0
> [WARNING] The POM for org.apache.maven.plugins:maven-site-plugin:jar:3.3 is missing, no dependency information available
> [WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-site-plugin:3.3: Plugin org.apache.maven.plugins:maven-site-plugin:3.3 or one of its dependencies could not be resolved: Cannot access central (https://repo.maven.apache.org/maven2) in offline mode and the artifact org.apache.maven.plugins:maven-site-plugin:jar:3.3 has not been downloaded from it before.
> [WARNING] The POM for org.apache.maven.plugins:maven-antrun-plugin:jar:1.3 is missing, no dependency information available
> [WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-antrun-plugin:1.3: Plugin org.apache.maven.plugins:maven-antrun-plugin:1.3 or one of its dependencies could not be resolved: Cannot access central (https://repo.maven.apache.org/maven2) in offline mode and the artifact org.apache.maven.plugins:maven-antrun-plugin:jar:1.3 has not been downloaded from it before.
> [WARNING] The POM for org.apache.maven.plugins:maven-assembly-plugin:jar:2.2-beta-5 is missing, no dependency information available
> [WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-5: Plugin org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-5 or one of its dependencies could not be resolved: Cannot access central (https://repo.maven.apache.org/maven2) in offline mode and the artifact org.apache.maven.plugins:maven-assembly-plugin:jar:2.2-beta-5 has not been downloaded from it before.
> [WARNING] The POM for org.apache.maven.plugins:maven-dependency-plugin:jar:2.8 is missing, no dependency information available
> [WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-dependency-plugin:2.8: Plugin org.apache.maven.plugins:maven-dependency-plugin:2.8 or one of its dependencies could not be resolved: Cannot access central (https://repo.maven.apache.org/maven2) in offline mode and the artifact org.apache.maven.plugins:maven-dependency-plugin:jar:2.8 has not been downloaded from it before.
> [WARNING] The POM for org.apache.maven.plugins:maven-release-plugin:jar:2.5.3 is missing, no dependency information available
> [WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-release-plugin:2.5.3: Plugin org.apache.maven.plugins:maven-release-plugin:2.5.3 or one of its dependencies could not be resolved: Cannot access central (https://repo.maven.apache.org/maven2) in offline mode and the artifact org.apache.maven.plugins:maven-release-plugin:jar:2.5.3 has not been downloaded from it before.
> [INFO] 
> [INFO] -----------< org.apache.felix:org.apache.felix.gogo.command >-----------
> [INFO] Building Apache Felix Gogo Command 0.14.0
> [INFO] -------------------------------[ bundle ]-------------------------------
> [WARNING] The POM for org.apache.maven.plugins:maven-site-plugin:jar:3.3 is missing, no dependency information available
> [WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-site-plugin:3.3: Plugin org.apache.maven.plugins:maven-site-plugin:3.3 or one of its dependencies could not be resolved: Cannot access central (https://repo.maven.apache.org/maven2) in offline mode and the artifact org.apache.maven.plugins:maven-site-plugin:jar:3.3 has not been downloaded from it before.
> [WARNING] The POM for org.apache.maven.plugins:maven-antrun-plugin:jar:1.3 is missing, no dependency information available
> [WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-antrun-plugin:1.3: Plugin org.apache.maven.plugins:maven-antrun-plugin:1.3 or one of its dependencies could not be resolved: Cannot access central (https://repo.maven.apache.org/maven2) in offline mode and the artifact org.apache.maven.plugins:maven-antrun-plugin:jar:1.3 has not been downloaded from it before.
> [WARNING] The POM for org.apache.maven.plugins:maven-assembly-plugin:jar:2.2-beta-5 is missing, no dependency information available
> [WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-5: Plugin org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-5 or one of its dependencies could not be resolved: Cannot access central (https://repo.maven.apache.org/maven2) in offline mode and the artifact org.apache.maven.plugins:maven-assembly-plugin:jar:2.2-beta-5 has not been downloaded from it before.
> [WARNING] The POM for org.apache.maven.plugins:maven-dependency-plugin:jar:2.8 is missing, no dependency information available
> [WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-dependency-plugin:2.8: Plugin org.apache.maven.plugins:maven-dependency-plugin:2.8 or one of its dependencies could not be resolved: Cannot access central (https://repo.maven.apache.org/maven2) in offline mode and the artifact org.apache.maven.plugins:maven-dependency-plugin:jar:2.8 has not been downloaded from it before.
> [WARNING] The POM for org.apache.maven.plugins:maven-release-plugin:jar:2.5.3 is missing, no dependency information available
> [WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-release-plugin:2.5.3: Plugin org.apache.maven.plugins:maven-release-plugin:2.5.3 or one of its dependencies could not be resolved: Cannot access central (https://repo.maven.apache.org/maven2) in offline mode and the artifact org.apache.maven.plugins:maven-release-plugin:jar:2.5.3 has not been downloaded from it before.
> [WARNING] The artifact org.osgi:org.osgi.core:jar:debian has been relocated to org.osgi:osgi.core:jar:debian
> [WARNING] The artifact org.osgi:org.osgi.compendium:jar:debian has been relocated to org.osgi:osgi.cmpn:jar:debian
> [INFO] 
> [INFO] --- maven-javadoc-plugin:3.4.1:jar (default-cli) @ org.apache.felix.gogo.command ---
> [WARNING] Source files encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
> [INFO] Adding the --ignore-source-errors option
> [INFO] No previous run data found, generating javadoc.
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time:  1.369 s
> [INFO] Finished at: 2023-01-13T20:28:56Z
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:3.4.1:jar (default-cli) on project org.apache.felix.gogo.command: MavenReportException: Error while generating Javadoc: 
> [ERROR] Exit code: 2 - error: Source option 5 is no longer supported. Use 7 or later.
> [ERROR] error: Target option 5 is no longer supported. Use 7 or later.
> [ERROR] 2 errors
> [ERROR] 
> [ERROR] Command line was: /usr/lib/jvm/java-17-openjdk-amd64/bin/javadoc @options @packages
> [ERROR] 
> [ERROR] Refer to the generated Javadoc files in '/<<PKGBUILDDIR>>/target/apidocs' dir.
> [ERROR] 
> [ERROR] -> [Help 1]
> [ERROR] 
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR] 
> [ERROR] For more information about the errors and possible solutions, please read the following articles:
> [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
> make: *** [/usr/share/cdbs/1/class/maven.mk:141: debian/stamp-maven-doc] Error 1
> dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
> --------------------------------------------------------------------------------
> Build finished at 2023-01-13T20:28:56Z


The full build log is available from:
http://qa-logs.debian.net/2023/01/13/felix-gogo-command_0.14.0-2.1_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20230113;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20230113&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