Bug#1043834: antlr3: Fails to build source after successful build
Lucas Nussbaum
lucas at debian.org
Sun Aug 13 14:17:54 BST 2023
Source: antlr3
Version: 3.5.3-1
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 antlr3
> dpkg-buildpackage: info: source version 3.5.3-1
> dpkg-buildpackage: info: source distribution unstable
> dpkg-buildpackage: info: source changed by Emmanuel Bourg <ebourg at apache.org>
> dpkg-source --before-build .
> fakeroot debian/rules clean
> test -x debian/rules
> mkdir -p "."
> 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 -DbuildNumber="debian-1" 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.
> [[1;34mINFO[m] Scanning for projects...
> [[1;33mWARNING[m]
> [[1;33mWARNING[m] Some problems were encountered while building the effective model for org.antlr:antlr3-maven-plugin:maven-plugin:3.5.3
> [[1;33mWARNING[m] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.antlr:antlr:jar -> duplicate declaration of version 3.5.3 @ line 191, column 15
> [[1;33mWARNING[m]
> [[1;33mWARNING[m] It is highly recommended to fix these problems because they threaten the stability of your build.
> [[1;33mWARNING[m]
> [[1;33mWARNING[m] For this reason, future Maven versions might no longer support building such malformed projects.
> [[1;33mWARNING[m]
> [[1;33mWARNING[m] The project org.antlr:antlr-master:pom:3.5.3 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
> [[1;34mINFO[m] [1m------------------------------------------------------------------------[m
> [[1;34mINFO[m] [1mReactor Build Order:[m
> [[1;34mINFO[m]
> [[1;34mINFO[m] ANTLR 3 Master build control POM [pom]
> [[1;34mINFO[m] ANTLR 3 Runtime [jar]
> [[1;34mINFO[m] ANTLR 3 Tool [jar]
> [[1;34mINFO[m] ANTLR 3 Maven plugin [maven-plugin]
> [[1;34mINFO[m] ANTLR 3 gUnit [jar]
> [[1;34mINFO[m] ANTLR 3 gUnit Maven plugin [maven-plugin]
> [[1;34mINFO[m]
> [[1;34mINFO[m] [1m-----------------------< [0;36morg.antlr:antlr-master[0;1m >-----------------------[m
> [[1;34mINFO[m] [1mBuilding ANTLR 3 Master build control POM 3.5.3 [1/6][m
> [[1;34mINFO[m] [1m--------------------------------[ pom ]---------------------------------[m
> [[1;33mWARNING[m] 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
> [[1;34mINFO[m]
> [[1;34mINFO[m] [1m--- [0;32mmaven-clean-plugin:3.2.0:clean[m [1m(default-clean)[m @ [36mantlr-master[0;1m ---[m
> [[1;34mINFO[m] Deleting /<<PKGBUILDDIR>>/target
> [[1;34mINFO[m]
> [[1;34mINFO[m] [1m----------------------< [0;36morg.antlr:antlr-runtime[0;1m >-----------------------[m
> [[1;34mINFO[m] [1mBuilding ANTLR 3 Runtime 3.5.3 [2/6][m
> [[1;34mINFO[m] [1m--------------------------------[ jar ]---------------------------------[m
> [[1;34mINFO[m]
> [[1;34mINFO[m] [1m--- [0;32mmaven-clean-plugin:3.2.0:clean[m [1m(default-clean)[m @ [36mantlr-runtime[0;1m ---[m
> [[1;34mINFO[m] Deleting /<<PKGBUILDDIR>>/runtime/Java/target
> [[1;34mINFO[m]
> [[1;34mINFO[m] [1m--------------------------< [0;36morg.antlr:antlr[0;1m >---------------------------[m
> [[1;34mINFO[m] [1mBuilding ANTLR 3 Tool 3.5.3 [3/6][m
> [[1;34mINFO[m] [1m--------------------------------[ jar ]---------------------------------[m
> [[1;34mINFO[m]
> [[1;34mINFO[m] [1m--- [0;32mmaven-clean-plugin:3.2.0:clean[m [1m(default-clean)[m @ [36mantlr[0;1m ---[m
> [[1;34mINFO[m] Deleting /<<PKGBUILDDIR>>/tool/target
> [[1;34mINFO[m]
> [[1;34mINFO[m] [1m-------------------< [0;36morg.antlr:antlr3-maven-plugin[0;1m >--------------------[m
> [[1;34mINFO[m] [1mBuilding ANTLR 3 Maven plugin 3.5.3 [4/6][m
> [[1;34mINFO[m] [1m----------------------------[ maven-plugin ]----------------------------[m
> [[1;34mINFO[m]
> [[1;34mINFO[m] [1m--- [0;32mmaven-clean-plugin:3.2.0:clean[m [1m(default-clean)[m @ [36mantlr3-maven-plugin[0;1m ---[m
> [[1;34mINFO[m] Deleting /<<PKGBUILDDIR>>/antlr3-maven-plugin/target
> [[1;34mINFO[m]
> [[1;34mINFO[m] [1m--------------------------< [0;36morg.antlr:gunit[0;1m >---------------------------[m
> [[1;34mINFO[m] [1mBuilding ANTLR 3 gUnit 3.5.3 [5/6][m
> [[1;34mINFO[m] [1m--------------------------------[ jar ]---------------------------------[m
> [[1;34mINFO[m]
> [[1;34mINFO[m] [1m--- [0;32mmaven-clean-plugin:3.2.0:clean[m [1m(default-clean)[m @ [36mgunit[0;1m ---[m
> [[1;34mINFO[m] Deleting /<<PKGBUILDDIR>>/gunit/target
> [[1;34mINFO[m]
> [[1;34mINFO[m] [1m--------------------< [0;36morg.antlr:maven-gunit-plugin[0;1m >--------------------[m
> [[1;34mINFO[m] [1mBuilding ANTLR 3 gUnit Maven plugin 3.5.3 [6/6][m
> [[1;34mINFO[m] [1m----------------------------[ maven-plugin ]----------------------------[m
> [[1;34mINFO[m]
> [[1;34mINFO[m] [1m--- [0;32mmaven-clean-plugin:3.2.0:clean[m [1m(default-clean)[m @ [36mmaven-gunit-plugin[0;1m ---[m
> [[1;34mINFO[m] Deleting /<<PKGBUILDDIR>>/gunit-maven-plugin/target
> [[1;34mINFO[m] [1m------------------------------------------------------------------------[m
> [[1;34mINFO[m] [1mReactor Summary for ANTLR 3 Master build control POM 3.5.3:[m
> [[1;34mINFO[m]
> [[1;34mINFO[m] ANTLR 3 Master build control POM ................... [1;32mSUCCESS[m [ 0.201 s]
> [[1;34mINFO[m] ANTLR 3 Runtime .................................... [1;32mSUCCESS[m [ 0.028 s]
> [[1;34mINFO[m] ANTLR 3 Tool ....................................... [1;32mSUCCESS[m [ 0.069 s]
> [[1;34mINFO[m] ANTLR 3 Maven plugin ............................... [1;32mSUCCESS[m [ 0.010 s]
> [[1;34mINFO[m] ANTLR 3 gUnit ...................................... [1;32mSUCCESS[m [ 0.038 s]
> [[1;34mINFO[m] ANTLR 3 gUnit Maven plugin ......................... [1;32mSUCCESS[m [ 0.007 s]
> [[1;34mINFO[m] [1m------------------------------------------------------------------------[m
> [[1;34mINFO[m] [1;32mBUILD SUCCESS[m
> [[1;34mINFO[m] [1m------------------------------------------------------------------------[m
> [[1;34mINFO[m] Total time: 0.569 s
> [[1;34mINFO[m] Finished at: 2023-08-12T12:35:50Z
> [[1;34mINFO[m] [1m------------------------------------------------------------------------[m
> [0m[0mrm -f -r /<<PKGBUILDDIR>>/debian/maven-repo debian/stamp-maven-build
> rm -f debian/*.substvars
> /usr/bin/make -f debian/rules unpatch-poms
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> mh_unpatchpoms -pantlr3
> rm -f -f debian/stamp-poms-patched
> make[1]: Leaving directory '/<<PKGBUILDDIR>>'
> dh_clean
> rm: cannot remove './tool/src/main/java/org/antlr/grammar/v3': Is a directory
> dh_clean: error: rm -f -- debian/antlr3.substvars debian/antlr3-maven-plugin.substvars debian/libantlr3-runtime-java.substvars debian/libantlr3-gunit-java.substvars debian/antlr3-gunit-maven-plugin.substvars ./tool/src/main/java/ActionAnalysis.tokens ./tool/src/main/java/ActionTranslator.tokens ./tool/src/main/java/ANTLR.tokens ./tool/src/main/java/ANTLRTreePrinter.tokens ./tool/src/main/java/ANTLRv3.tokens ./tool/src/main/java/ANTLRv3Tree.tokens ./tool/src/main/java/AssignTokenTypesWalker.tokens ./tool/src/main/java/CodeGenTreeWalker.tokens ./tool/src/main/java/DefineGrammarItemsWalker.tokens ./tool/src/main/java/LeftRecursiveRuleWalker.tokens ./tool/src/main/java/TreeToNFAConverter.tokens ./tool/src/main/java/org/antlr/grammar/v3 ./antlr-ant/main/antlr3-task/antlr3-task.jar ./antlr-ant/main/antlr3-task/antlr3-src/org/apache/tools/ant/antlr/ANTLR3.class debian/files returned exit code 1
> make: *** [/usr/share/cdbs/1/rules/debhelper.mk:213: clean] Error 25
> dpkg-buildpackage: error: fakeroot debian/rules clean subprocess returned exit status 2
>
> 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/antlr3_3.5.3-1_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