Bug#1045085: fop: Fails to build source after successful build

Lucas Nussbaum lucas at debian.org
Sun Aug 13 17:56:55 BST 2023


Source: fop
Version: 1:2.8-2
Severity: minor
Tags: trixie sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-sab-20230813 ftbfs-source-after-build
User: debian-qa at lists.debian.org
Usertags: qa-doublebuild

Hi,

This package fails to build a source package after a successful build
(dpkg-buildpackage ; dpkg-buildpackage -S).

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/SourceAfterBuild

Relevant part of the build log:
> cd /<<PKGBUILDDIR>> && runuser -u user42 -- dpkg-buildpackage --sanitize-env -us -uc -rfakeroot -S
> -----------------------------------------------------------------------------------------------------------
> 
> dpkg-buildpackage: info: source package fop
> dpkg-buildpackage: info: source version 1:2.8-2
> dpkg-buildpackage: info: source distribution unstable
> dpkg-buildpackage: info: source changed by Mathieu Malaterre <malat at debian.org>
>  dpkg-source --before-build .
>  debian/rules clean
> dh clean --buildsystem=maven
>    debian/rules override_dh_auto_clean
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> dh_clean fop/build/
> dh_clean fop/lib/
> dh_clean fop/hyph/*.xml
> dh_clean org/
> dh_clean javac.sh
> dh_auto_clean
> 	mh_patchpoms -plibfop-java --debian-build --keep-pom-version --maven-repo=/<<PKGBUILDDIR>>/debian/maven-repo
> 	/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 -Dproperties.file.manual=/<<PKGBUILDDIR>>/debian/maven.properties 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 clean
> 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...
> [INFO] ------------------------------------------------------------------------
> [INFO] Reactor Build Order:
> [INFO] 
> [INFO] Apache FOP Parent                                                  [pom]
> [INFO] Apache FOP Utilities                                               [jar]
> [INFO] Apache FOP Events                                                  [jar]
> [INFO] Apache FOP Core                                                    [jar]
> [INFO] Apache FOP All-In-One                                              [jar]
> [INFO] Apache FOP Sandbox                                                 [jar]
> [INFO] Apache FOP Transcoder                                              [jar]
> [INFO] Apache FOP Transcoder All-In-One                                   [jar]
> [INFO] 
> [INFO] -----------------< org.apache.xmlgraphics:fop-parent >------------------
> [INFO] Building Apache FOP Parent 2.8                                     [1/8]
> [INFO] --------------------------------[ pom ]---------------------------------
> [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
> [INFO] 
> [INFO] --- maven-clean-plugin:3.2.0:clean (default-clean) @ fop-parent ---
> [INFO] Deleting /<<PKGBUILDDIR>>/target
> [INFO] 
> [INFO] ------------------< org.apache.xmlgraphics:fop-util >-------------------
> [INFO] Building Apache FOP Utilities 2.8                                  [2/8]
> [INFO] --------------------------------[ jar ]---------------------------------
> [INFO] 
> [INFO] --- maven-clean-plugin:3.2.0:clean (default-clean) @ fop-util ---
> [INFO] Deleting /<<PKGBUILDDIR>>/fop-util/target
> [INFO] 
> [INFO] -----------------< org.apache.xmlgraphics:fop-events >------------------
> [INFO] Building Apache FOP Events 2.8                                     [3/8]
> [INFO] --------------------------------[ jar ]---------------------------------
> [INFO] 
> [INFO] --- maven-clean-plugin:3.2.0:clean (default-clean) @ fop-events ---
> [INFO] Deleting /<<PKGBUILDDIR>>/fop-events/target
> [INFO] 
> [INFO] ------------------< org.apache.xmlgraphics:fop-core >-------------------
> [INFO] Building Apache FOP Core 2.8                                       [4/8]
> [INFO] --------------------------------[ jar ]---------------------------------
> [INFO] 
> [INFO] --- maven-clean-plugin:3.2.0:clean (default-clean) @ fop-core ---
> [INFO] Deleting /<<PKGBUILDDIR>>/fop-core/target
> [INFO] 
> [INFO] ---------------------< org.apache.xmlgraphics:fop >---------------------
> [INFO] Building Apache FOP All-In-One 2.8                                 [5/8]
> [INFO] --------------------------------[ jar ]---------------------------------
> [INFO] 
> [INFO] --- maven-clean-plugin:3.2.0:clean (default-clean) @ fop ---
> [INFO] Deleting /<<PKGBUILDDIR>>/fop/target
> [INFO] 
> [INFO] -----------------< org.apache.xmlgraphics:fop-sandbox >-----------------
> [INFO] Building Apache FOP Sandbox 2.8                                    [6/8]
> [INFO] --------------------------------[ jar ]---------------------------------
> [INFO] 
> [INFO] --- maven-clean-plugin:3.2.0:clean (default-clean) @ fop-sandbox ---
> [INFO] Deleting /<<PKGBUILDDIR>>/fop-sandbox/target
> [INFO] 
> [INFO] ---------------< org.apache.xmlgraphics:fop-transcoder >----------------
> [INFO] Building Apache FOP Transcoder 2.8                                 [7/8]
> [INFO] --------------------------------[ jar ]---------------------------------
> [INFO] 
> [INFO] --- maven-clean-plugin:3.2.0:clean (default-clean) @ fop-transcoder ---
> [INFO] Deleting /<<PKGBUILDDIR>>/fop-transcoder/target
> [INFO] 
> [INFO] -----------< org.apache.xmlgraphics:fop-transcoder-allinone >-----------
> [INFO] Building Apache FOP Transcoder All-In-One 2.8                      [8/8]
> [INFO] --------------------------------[ jar ]---------------------------------
> [INFO] 
> [INFO] --- maven-clean-plugin:3.2.0:clean (default-clean) @ fop-transcoder-allinone ---
> [INFO] Deleting /<<PKGBUILDDIR>>/fop-transcoder-allinone/target
> [INFO] ------------------------------------------------------------------------
> [INFO] Reactor Summary for Apache FOP Parent 2.8:
> [INFO] 
> [INFO] Apache FOP Parent .................................. SUCCESS [  0.228 s]
> [INFO] Apache FOP Utilities ............................... SUCCESS [  0.008 s]
> [INFO] Apache FOP Events .................................. SUCCESS [  0.015 s]
> [INFO] Apache FOP Core .................................... SUCCESS [  0.209 s]
> [INFO] Apache FOP All-In-One .............................. SUCCESS [  0.004 s]
> [INFO] Apache FOP Sandbox ................................. SUCCESS [  0.004 s]
> [INFO] Apache FOP Transcoder .............................. SUCCESS [  0.004 s]
> [INFO] Apache FOP Transcoder All-In-One ................... SUCCESS [  0.006 s]
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD SUCCESS
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time:  0.677 s
> [INFO] Finished at: 2023-08-12T12:22:17Z
> [INFO] ------------------------------------------------------------------------
> 	bash -c "for dir in \$(find . -name target -type d); do if [ -f \$(echo \$dir | sed -e s/target\$/pom.xml/) ]; then rm -Rf \$dir; fi done"
> 	mh_unpatchpoms -plibfop-java
> make[1]: Leaving directory '/<<PKGBUILDDIR>>'
>    dh_autoreconf_clean -O--buildsystem=maven
>    dh_clean -O--buildsystem=maven
>  dpkg-source -b .
> dpkg-source: warning: upstream signing key but no upstream tarball signature
> dpkg-source: info: using source format '3.0 (quilt)'
> dpkg-source: info: building fop using existing ./fop_2.8.orig.tar.gz
> dpkg-source: info: using patch list from debian/patches/series
> dpkg-source: warning: ignoring deletion of directory fop/lib
> dpkg-source: warning: ignoring deletion of file fop/lib/xml-apis.LICENSE-SAX.html, use --include-removal to override
> dpkg-source: warning: ignoring deletion of file fop/lib/servlet-2.2.jar, use --include-removal to override
> dpkg-source: warning: ignoring deletion of file fop/lib/fontbox-2.0.24.jar, use --include-removal to override
> dpkg-source: warning: ignoring deletion of file fop/lib/batik.LICENSE.txt, use --include-removal to override
> dpkg-source: warning: ignoring deletion of file fop/lib/xml-apis-ext.NOTICE.txt, use --include-removal to override
> dpkg-source: warning: ignoring deletion of file fop/lib/servlet.LICENSE.txt, use --include-removal to override
> dpkg-source: warning: ignoring deletion of file fop/lib/xml-apis-ext.LICENSE.txt, use --include-removal to override
> dpkg-source: warning: ignoring deletion of file fop/lib/xml-apis-ext.README.dom.txt, use --include-removal to override
> dpkg-source: warning: ignoring deletion of file fop/lib/README.txt, use --include-removal to override
> dpkg-source: warning: ignoring deletion of file fop/lib/xmlgraphics-commons.NOTICE.txt, use --include-removal to override
> dpkg-source: warning: ignoring deletion of file fop/lib/commons-logging-1.0.4.jar, use --include-removal to override
> dpkg-source: warning: ignoring deletion of file fop/lib/xml-apis.LICENSE.DOM-documentation.html, use --include-removal to override
> dpkg-source: warning: ignoring deletion of file fop/lib/xml-apis-ext.LICENSE.dom-documentation.txt, use --include-removal to override
> dpkg-source: warning: ignoring deletion of file fop/lib/xml-apis.NOTICE.txt, use --include-removal to override
> dpkg-source: warning: ignoring deletion of file fop/lib/batik.NOTICE.txt, use --include-removal to override
> dpkg-source: warning: ignoring deletion of file fop/lib/commons-logging.NOTICE.txt, use --include-removal to override
> dpkg-source: warning: ignoring deletion of file fop/lib/commons-io-2.11.0.jar, use --include-removal to override
> dpkg-source: warning: ignoring deletion of file fop/lib/xml-apis-1.4.01.jar, use --include-removal to override
> dpkg-source: warning: ignoring deletion of file fop/lib/xml-apis.LICENSE.DOM-software.html, use --include-removal to override
> dpkg-source: warning: ignoring deletion of file fop/lib/xml-apis.LICENSE.txt, use --include-removal to override
> dpkg-source: warning: ignoring deletion of file fop/lib/xml-apis-ext-1.3.04.jar, use --include-removal to override
> dpkg-source: warning: ignoring deletion of file fop/lib/xmlgraphics-commons.LICENSE.txt, use --include-removal to override
> dpkg-source: warning: ignoring deletion of file fop/lib/commons-io.NOTICE.txt, use --include-removal to override
> dpkg-source: warning: ignoring deletion of file fop/lib/batik-all-1.16.jar, use --include-removal to override
> dpkg-source: warning: ignoring deletion of file fop/lib/serializer-2.7.2.jar, use --include-removal to override
> dpkg-source: warning: ignoring deletion of file fop/lib/serializer.NOTICE.txt, use --include-removal to override
> dpkg-source: warning: ignoring deletion of file fop/lib/xml-apis-ext.LICENSE.sac.html, use --include-removal to override
> dpkg-source: warning: ignoring deletion of file fop/lib/serializer.LICENSE.txt, use --include-removal to override
> dpkg-source: warning: ignoring deletion of file fop/lib/commons-logging.LICENSE.txt, use --include-removal to override
> dpkg-source: warning: ignoring deletion of file fop/lib/xmlgraphics-commons-2.8.jar, use --include-removal to override
> dpkg-source: warning: ignoring deletion of file fop/lib/commons-io.LICENSE.txt, use --include-removal to override
> dpkg-source: warning: ignoring deletion of file fop/lib/xml-apis-ext.LICENSE.dom-software.txt, use --include-removal to override
> dpkg-source: warning: ignoring deletion of directory fop/lib/build
> dpkg-source: warning: ignoring deletion of file fop/lib/build/mockito-core-2.28.2.LICENCE.txt, use --include-removal to override
> dpkg-source: warning: ignoring deletion of file fop/lib/build/jaxen.LICENSE.txt, use --include-removal to override
> dpkg-source: warning: ignoring deletion of file fop/lib/build/pmd-4.2.5.jar, use --include-removal to override
> dpkg-source: warning: ignoring deletion of file fop/lib/build/pmd.LICENSE.txt, use --include-removal to override
> dpkg-source: warning: ignoring deletion of file fop/lib/build/asm-3.1.jar, use --include-removal to override
> dpkg-source: warning: ignoring deletion of file fop/lib/build/qdox.LICENSE.txt, use --include-removal to override
> dpkg-source: warning: ignoring deletion of file fop/lib/build/asm.LICENSE.txt, use --include-removal to override
> dpkg-source: warning: ignoring deletion of file fop/lib/build/qdox-1.12.jar, use --include-removal to override
> dpkg-source: warning: ignoring deletion of file fop/lib/build/mockito-core-2.28.2.NOTICE.txt, use --include-removal to override
> dpkg-source: warning: ignoring deletion of file fop/lib/build/xmlunit-1.2.jar, use --include-removal to override
> dpkg-source: warning: ignoring deletion of file fop/lib/build/mockito-core-2.28.2.jar, use --include-removal to override
> dpkg-source: warning: ignoring deletion of file fop/lib/build/hamcrest.core-1.1.0.jar, use --include-removal to override
> dpkg-source: warning: ignoring deletion of file fop/lib/build/objenesis-1.0.0.jar, use --include-removal to override
> dpkg-source: warning: ignoring deletion of file fop/lib/build/xmlunit.LICENSE.txt, use --include-removal to override
> dpkg-source: warning: ignoring deletion of file fop/lib/build/objenesis-1.0.0.LICENSE.txt, use --include-removal to override
> dpkg-source: warning: ignoring deletion of file fop/lib/build/jaxen-1.1.1.jar, use --include-removal to override
> dpkg-source: warning: ignoring deletion of file fop/lib/build/hamcrest.core-1.1.0.LICENSE.txt, use --include-removal to override
> dpkg-source: error: cannot represent change to fop/.fop: binary file contents changed
> dpkg-source: error: add fop/.fop in debian/source/include-binaries if you want to store the modified binary in the debian tarball
> dpkg-source: error: unrepresentable changes to source
> dpkg-buildpackage: error: dpkg-source -b . subprocess returned exit status 1
> 
> E: Command 'cd /<<PKGBUILDDIR>> && runuser -u user42 -- dpkg-buildpackage --sanitize-env -us -uc -rfakeroot -S' failed to run.


The full build log is available from:
http://qa-logs.debian.net/2023/08/13/fop_2.8-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