Bug#1049677: libjt400-java: Fails to build binary packages again after successful build

Lucas Nussbaum lucas at debian.org
Wed Aug 16 08:42:49 BST 2023


Source: libjt400-java
Version: 9.4-2
Severity: minor
Tags: trixie sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-binary-20230816 ftbfs-binary-after-build
User: debian-qa at lists.debian.org
Usertags: qa-doublebuild

Hi,

This package fails to do build a binary-only build (not source) after a
successful build (dpkg-buildpackage ; dpkg-buildpackage -b).

This is probably a clear violation of Debian Policy section 4.9 (clean target),
but this is filed as severity:minor for now, because a discussion on
debian-devel showed that we might want to revisit the requirement of a working
'clean' target.

More information about this class of issues, included common problems and
solutions, is available at
https://wiki.debian.org/qa.debian.org/FTBFS/DoubleBuild

Relevant part of the build log:
> cd /<<PKGBUILDDIR>> && runuser -u user42 -- dpkg-buildpackage --sanitize-env -us -uc -rfakeroot -b
> -------------------------------------------------------------------------------------------------------------------------------
> 
> dpkg-buildpackage: info: source package libjt400-java
> dpkg-buildpackage: info: source version 9.4-2
> dpkg-buildpackage: info: source distribution unstable
> dpkg-buildpackage: info: source changed by tony mancill <tmancill at debian.org>
>  dpkg-source --before-build .
> dpkg-buildpackage: info: host architecture amd64
>  fakeroot debian/rules clean
> dh clean --with maven_repo_helper
>    debian/rules override_dh_auto_clean
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> ant -Dbuild=. clean
> Buildfile: /<<PKGBUILDDIR>>/build.xml
> 
> clean-javadoc:
>    [delete] Deleting directory /<<PKGBUILDDIR>>/javadoc
>    [delete] Deleting directory /<<PKGBUILDDIR>>/javadoc-jtopenlite
> 
> clean-dist:
>    [delete] Deleting directory /<<PKGBUILDDIR>>/dist
> 
> clean-output:
>    [delete] Deleting directory /<<PKGBUILDDIR>>/output
>    [delete] Deleting directory /<<PKGBUILDDIR>>/output-micro
>    [delete] Deleting directory /<<PKGBUILDDIR>>/output-jtopenlite
>    [delete] Deleting directory /<<PKGBUILDDIR>>/output-micro-verified
> 
> clean-javadoc6:
>    [delete] Deleting directory /<<PKGBUILDDIR>>/javadoc6
> 
> clean-dist6:
>    [delete] Deleting directory /<<PKGBUILDDIR>>/dist6
> 
> clean-output6:
>    [delete] Deleting directory /<<PKGBUILDDIR>>/output6
> 
> clean-javadoc8:
>    [delete] Deleting directory /<<PKGBUILDDIR>>/javadoc8
> 
> clean-dist8:
>    [delete] Deleting directory /<<PKGBUILDDIR>>/dist8
> 
> clean-output8:
>    [delete] Deleting directory /<<PKGBUILDDIR>>/output8
> 
> clean-android:
>    [delete] Deleting directory /<<PKGBUILDDIR>>/android
> 
> clean-android6:
>    [delete] Deleting directory /<<PKGBUILDDIR>>/android6
> 
> clean:
> 
> BUILD SUCCESSFUL
> Total time: 1 second
> #remove files not cleaned by ant
> rm -rf include/servlet-api.jar java8/ jdbc42/
> #remove code that depend of non-free code (because we don't have jui400.jar)
> rm -rf */com/ibm/as400/vaccess
> rm -rf */utilities/VRunJavaApplication.java
> rm -rf */com/ibm/as400/util/commtrace/*
> # remove precompiled java files
> find . -iname '*.class' -delete
> make[1]: Leaving directory '/<<PKGBUILDDIR>>'
>    dh_clean
>  debian/rules build
> make: 'build' is up to date.
>  fakeroot debian/rules binary
> dh binary --with maven_repo_helper
>    dh_update_autotools_config
>    dh_autoreconf
>    dh_auto_configure
>    debian/rules override_dh_auto_build
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> #this build the ant task required by ant
> cd build && javac -cp /usr/share/java/ant.jar *.java
> Note: PCMLTask.java uses or overrides a deprecated API.
> Note: Recompile with -Xlint:deprecation for details.
> Note: Some input files use unchecked or unsafe operations.
> Note: Recompile with -Xlint:unchecked for details.
> #link required libraries
> ln -s /usr/share/java/servlet-api.jar include/servlet.jar
> ln: failed to create symbolic link 'include/servlet.jar': File exists
> make[1]: *** [debian/rules:24: override_dh_auto_build] Error 1
> make[1]: Leaving directory '/<<PKGBUILDDIR>>'
> make: *** [debian/rules:7: binary] Error 2
> dpkg-buildpackage: error: fakeroot debian/rules binary subprocess returned exit status 2
> 
> E: Command 'cd /<<PKGBUILDDIR>> && runuser -u user42 -- dpkg-buildpackage --sanitize-env -us -uc -rfakeroot -b' failed to run.


The full build log is available from:
http://qa-logs.debian.net/2023/08/16/libjt400-java_9.4-2_unstable.log

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