[Debian-med-packaging] Bug#1086465: libjung-free-java: FTBFS: rm: cannot remove 'debian/libjung-free-java-doc.doc-base.javadoc': No such file or directory

Santiago Vila sanvila at debian.org
Wed Oct 30 21:38:53 GMT 2024


Package: src:libjung-free-java
Version: 2.1.1-2
Severity: serious
Tags: ftbfs patch

Dear maintainer:

During a rebuild of all packages in unstable, your package failed to build:

(Note: Trivial patch attached)

--------------------------------------------------------------------------------
[...]
  debian/rules binary
dh binary --buildsystem=maven --with javahelper
    dh_update_autotools_config -O--buildsystem=maven
    dh_autoreconf -O--buildsystem=maven
    dh_auto_configure -O--buildsystem=maven
	mh_patchpoms -plibjung-free-java --debian-build --keep-pom-version --maven-repo=/<<PKGBUILDDIR>>/debian/maven-repo
    jh_linkjars -O--buildsystem=maven
Duplicate specification "unlink|u" for option "u"
    dh_auto_build -O--buildsystem=maven
	/usr/lib/jvm/default-java/bin/java -noverify -cp /usr/share/maven/boot/plexus-classworlds-2.x.jar -Dmaven.home=/usr/share/maven -Dmaven.multiModuleProjectDirectory=/<<PKGBUILDDIR>> -Dclassworlds.conf=/etc/maven/m2-debian.conf org.codehaus.plexus.classworlds.launcher.Launcher -s/etc/maven/settings-debian.xml -Ddebian.dir=/<<PKGBUILDDIR>>/debian -Dmaven.repo.local=/<<PKGBUILDDIR>>/debian/maven-repo --batch-mode package javadoc:jar javadoc:aggregate -DskipTests -Dnotimestamp=true -Dlocale=en_US
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] The project net.sf.jung:jung-parent:pom:2.1.1 uses prerequisites which is only intended for maven-plugin projects but not for non maven-plugin projects. For such purposes you should use the maven-enforcer-plugin. See https://maven.apache.org/enforcer/enforcer-rules/requireMavenVersion.html
[INFO] ------------------------------------------------------------------------

[... snipped ...]

[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  02:36 min
[INFO] Finished at: 2024-10-29T07:53:35Z
[INFO] ------------------------------------------------------------------------
    create-stamp debian/debhelper-build-stamp
    dh_testroot -O--buildsystem=maven
    dh_prep -O--buildsystem=maven
    dh_auto_install -O--buildsystem=maven
	/usr/lib/jvm/default-java/bin/java -noverify -cp /usr/share/maven/boot/plexus-classworlds-2.x.jar -Dmaven.home=/usr/share/maven -Dmaven.multiModuleProjectDirectory=/<<PKGBUILDDIR>> -Dclassworlds.conf=/etc/maven/m2-debian.conf org.codehaus.plexus.classworlds.launcher.Launcher -s/etc/maven/settings-debian.xml -Ddebian.dir=/<<PKGBUILDDIR>>/debian -Dmaven.repo.local=/<<PKGBUILDDIR>>/debian/maven-repo --batch-mode -Ddebian.dir=/<<PKGBUILDDIR>>/debian -Ddebian.package=libjung-free-java -Dmaven.repo.local=/<<PKGBUILDDIR>>/debian/maven-repo -Dinstall.to.usj=true org.debian.maven:debian-maven-plugin:2.6:install
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] The project net.sf.jung:jung-parent:pom:2.1.1 uses prerequisites which is only intended for maven-plugin projects but not for non maven-plugin projects. For such purposes you should use the maven-enforcer-plugin. See https://maven.apache.org/enforcer/enforcer-rules/requireMavenVersion.html
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] JUNG (parent metadata project)                                     [pom]
[INFO] JUNG - API                                                         [jar]
[INFO] JUNG - Graph Implementations                                       [jar]
[INFO] JUNG - Algorithms                                                  [jar]
[INFO] JUNG - I/O Support                                                 [jar]
[INFO] JUNG - Visualization Support                                       [jar]
[INFO] JUNG - Samples                                                     [jar]
[INFO]
[INFO] ----------------------< net.sf.jung:jung-parent >-----------------------
[INFO] Building JUNG (parent metadata project) 2.1.1                      [1/7]
[INFO]   from pom.xml
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- debian-maven-plugin:2.6:install (default-cli) @ jung-parent ---
[INFO] Cleaning pom file: /<<PKGBUILDDIR>>/pom.xml.save with options:
[INFO] 	--keep-pom-version --package=libjung-free-java
[INFO] 	--rules=/<<PKGBUILDDIR>>/debian/maven.rules
[INFO] 	--ignore-rules=/<<PKGBUILDDIR>>/debian/maven.ignoreRules
[INFO] 	--published-rules=/<<PKGBUILDDIR>>/debian/maven.publishedRules
[INFO]
[INFO] ------------------------< net.sf.jung:jung-api >------------------------
[INFO] Building JUNG - API 2.1.1                                          [2/7]
[INFO]   from jung-api/pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- debian-maven-plugin:2.6:install (default-cli) @ jung-api ---
[INFO] Cleaning pom file: /<<PKGBUILDDIR>>/jung-api/pom.xml.save with options:
[INFO] 	--keep-pom-version --package=libjung-free-java
[INFO] 	--rules=/<<PKGBUILDDIR>>/debian/maven.rules
[INFO] 	--ignore-rules=/<<PKGBUILDDIR>>/debian/maven.ignoreRules
[INFO] 	--published-rules=/<<PKGBUILDDIR>>/debian/maven.publishedRules
[INFO] Install jar for jung-api into /usr/share/java
[INFO]
[INFO] --------------------< net.sf.jung:jung-graph-impl >---------------------
[INFO] Building JUNG - Graph Implementations 2.1.1                        [3/7]
[INFO]   from jung-graph-impl/pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- debian-maven-plugin:2.6:install (default-cli) @ jung-graph-impl ---
[INFO] Cleaning pom file: /<<PKGBUILDDIR>>/jung-graph-impl/pom.xml.save with options:
[INFO] 	--keep-pom-version --package=libjung-free-java
[INFO] 	--rules=/<<PKGBUILDDIR>>/debian/maven.rules
[INFO] 	--ignore-rules=/<<PKGBUILDDIR>>/debian/maven.ignoreRules
[INFO] 	--published-rules=/<<PKGBUILDDIR>>/debian/maven.publishedRules
[INFO] Install jar for jung-graph-impl into /usr/share/java
[INFO]
[INFO] --------------------< net.sf.jung:jung-algorithms >---------------------
[INFO] Building JUNG - Algorithms 2.1.1                                   [4/7]
[INFO]   from jung-algorithms/pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- debian-maven-plugin:2.6:install (default-cli) @ jung-algorithms ---
[INFO] Cleaning pom file: /<<PKGBUILDDIR>>/jung-algorithms/pom.xml.save with options:
[INFO] 	--keep-pom-version --package=libjung-free-java
[INFO] 	--rules=/<<PKGBUILDDIR>>/debian/maven.rules
[INFO] 	--ignore-rules=/<<PKGBUILDDIR>>/debian/maven.ignoreRules
[INFO] 	--published-rules=/<<PKGBUILDDIR>>/debian/maven.publishedRules
[INFO] Install jar for jung-algorithms into /usr/share/java
[INFO]
[INFO] ------------------------< net.sf.jung:jung-io >-------------------------
[INFO] Building JUNG - I/O Support 2.1.1                                  [5/7]
[INFO]   from jung-io/pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- debian-maven-plugin:2.6:install (default-cli) @ jung-io ---
[INFO] Cleaning pom file: /<<PKGBUILDDIR>>/jung-io/pom.xml.save with options:
[INFO] 	--keep-pom-version --package=libjung-free-java
[INFO] 	--rules=/<<PKGBUILDDIR>>/debian/maven.rules
[INFO] 	--ignore-rules=/<<PKGBUILDDIR>>/debian/maven.ignoreRules
[INFO] 	--published-rules=/<<PKGBUILDDIR>>/debian/maven.publishedRules
[INFO] Install jar for jung-io into /usr/share/java
[INFO]
[INFO] -------------------< net.sf.jung:jung-visualization >-------------------
[INFO] Building JUNG - Visualization Support 2.1.1                        [6/7]
[INFO]   from jung-visualization/pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- debian-maven-plugin:2.6:install (default-cli) @ jung-visualization ---
[INFO] Cleaning pom file: /<<PKGBUILDDIR>>/jung-visualization/pom.xml.save with options:
[INFO] 	--keep-pom-version --package=libjung-free-java
[INFO] 	--rules=/<<PKGBUILDDIR>>/debian/maven.rules
[INFO] 	--ignore-rules=/<<PKGBUILDDIR>>/debian/maven.ignoreRules
[INFO] 	--published-rules=/<<PKGBUILDDIR>>/debian/maven.publishedRules
[INFO] Install jar for jung-visualization into /usr/share/java
[INFO]
[INFO] ----------------------< net.sf.jung:jung-samples >----------------------
[INFO] Building JUNG - Samples 2.1.1                                      [7/7]
[INFO]   from jung-samples/pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- debian-maven-plugin:2.6:install (default-cli) @ jung-samples ---
[INFO] Cleaning pom file: /<<PKGBUILDDIR>>/jung-samples/pom.xml.save with options:
[INFO] 	--keep-pom-version --package=libjung-free-java
[INFO] 	--rules=/<<PKGBUILDDIR>>/debian/maven.rules
[INFO] 	--ignore-rules=/<<PKGBUILDDIR>>/debian/maven.ignoreRules
[INFO] 	--published-rules=/<<PKGBUILDDIR>>/debian/maven.publishedRules
[INFO] Install jar for jung-samples into /usr/share/java
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for JUNG (parent metadata project) 2.1.1:
[INFO]
[INFO] JUNG (parent metadata project) ..................... SUCCESS [  0.349 s]
[INFO] JUNG - API ......................................... SUCCESS [  0.063 s]
[INFO] JUNG - Graph Implementations ....................... SUCCESS [  0.036 s]
[INFO] JUNG - Algorithms .................................. SUCCESS [  0.020 s]
[INFO] JUNG - I/O Support ................................. SUCCESS [  0.025 s]
[INFO] JUNG - Visualization Support ....................... SUCCESS [  0.020 s]
[INFO] JUNG - Samples ..................................... SUCCESS [  0.028 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  0.727 s
[INFO] Finished at: 2024-10-29T07:53:37Z
[INFO] ------------------------------------------------------------------------
	mh_resolve_dependencies --non-interactive --offline --build -plibjung-free-java --javadoc --base-directory=/<<PKGBUILDDIR>> --non-explore
Analysing pom.xml...
Analysing jung-algorithms/pom.xml...
Checking the parent dependency in the sub project jung-algorithms/pom.xml
Analysing jung-api/pom.xml...
Checking the parent dependency in the sub project jung-api/pom.xml
Analysing jung-graph-impl/pom.xml...
Checking the parent dependency in the sub project jung-graph-impl/pom.xml
Analysing jung-io/pom.xml...
Checking the parent dependency in the sub project jung-io/pom.xml
Analysing jung-samples/pom.xml...
Checking the parent dependency in the sub project jung-samples/pom.xml
Analysing jung-visualization/pom.xml...
Checking the parent dependency in the sub project jung-visualization/pom.xml
Checking dependencies for documentation packages...
> dpkg --search /usr/share/doc/libguava-java/api/index.html 
dpkg failed to execute successfully
Offline mode. Give up looking for package containing /usr/share/doc/libguava-java/api/index.html
> dpkg --search /usr/share/doc/libguava-java-doc/api/index.html 
dpkg failed to execute successfully
Offline mode. Give up looking for package containing /usr/share/doc/libguava-java-doc/api/index.html
> dpkg --search /usr/share/doc/libguava-java/apidocs/index.html 
dpkg failed to execute successfully
Offline mode. Give up looking for package containing /usr/share/doc/libguava-java/apidocs/index.html
> dpkg --search /usr/share/doc/libguava-java-doc/apidocs/index.html 
dpkg failed to execute successfully
Offline mode. Give up looking for package containing /usr/share/doc/libguava-java-doc/apidocs/index.html
	bash -c "rm -f target/apidocs/*.sh target/apidocs/options"
	mh_unpatchpoms -plibjung-free-java
    debian/rules override_jh_installjavadoc
make[1]: Entering directory '/<<PKGBUILDDIR>>'
jh_installjavadoc
Duplicate specification "A" for option "A"
Duplicate specification "author|A=s" for option "A"
jh_installjavadoc: warning: Javadoc source target/site/apidocs does not exist or is not a directory, skipping
# Removing wrong doc-base.javadoc file generated by jh_installjavadoc
rm debian/libjung-free-java-doc.doc-base.javadoc
rm: cannot remove 'debian/libjung-free-java-doc.doc-base.javadoc': No such file or directory
make[1]: *** [debian/rules:13: override_jh_installjavadoc] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:4: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------

The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here:

https://people.debian.org/~sanvila/build-logs/202410/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you could not reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and affects, so that this is still visible in the BTS web
page for this package.

Thanks.
-------------- next part --------------
--- a/debian/rules
+++ b/debian/rules
@@ -10,4 +10,4 @@ override_dh_auto_clean:
 override_jh_installjavadoc:
 	jh_installjavadoc
 	# Removing wrong doc-base.javadoc file generated by jh_installjavadoc
-	rm debian/libjung-free-java-doc.doc-base.javadoc
+	rm -f debian/libjung-free-java-doc.doc-base.javadoc


More information about the Debian-med-packaging mailing list