Source: antlr3
Version: 3.5.3-1
Severity: minor
Tags: trixie sid ftbfs
User: [email protected]
Usertags: ftbfs-binary-20230816 ftbfs-binary-after-build
User: [email protected]
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 antlr3
> dpkg-buildpackage: info: source version 3.5.3-1
> dpkg-buildpackage: info: source distribution unstable
> dpkg-buildpackage: info: source changed by Emmanuel Bourg <[email protected]>
>  dpkg-source --before-build .
> dpkg-buildpackage: info: host architecture amd64
>  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.
> [INFO] Scanning for projects...
> [WARNING] 
> [WARNING] Some problems were encountered while building the 
> effective model for org.antlr:antlr3-maven-plugin:maven-plugin:3.5.3
> [WARNING] 
> 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be 
> unique: org.antlr:antlr:jar -> duplicate declaration of version 3.5.3 @ line 
> 191, column 15
> [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 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
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Reactor Build Order:
> [INFO] 
> [INFO] ANTLR 3 Master build control POM                             
>       [pom]
> [INFO] ANTLR 3 Runtime                                              
>       [jar]
> [INFO] ANTLR 3 Tool                                                 
>       [jar]
> [INFO] ANTLR 3 Maven plugin                                      
> [maven-plugin]
> [INFO] ANTLR 3 gUnit                                                
>       [jar]
> [INFO] ANTLR 3 gUnit Maven plugin                                
> [maven-plugin]
> [INFO] 
> [INFO] -----------------------< 
> org.antlr:antlr-master >-----------------------
> [INFO] Building ANTLR 3 Master build control POM 3.5.3          
>           [1/6]
> [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) @ antlr-master ---
> [INFO] Deleting /<<PKGBUILDDIR>>/target
> [INFO] 
> [INFO] ----------------------< 
> org.antlr:antlr-runtime >-----------------------
> [INFO] Building ANTLR 3 Runtime 3.5.3                           
>           [2/6]
> [INFO] --------------------------------[ jar 
> ]---------------------------------
> [INFO] 
> [INFO] --- maven-clean-plugin:3.2.0:clean 
> (default-clean) @ antlr-runtime ---
> [INFO] Deleting /<<PKGBUILDDIR>>/runtime/Java/target
> [INFO] 
> [INFO] --------------------------< org.antlr:antlr 
> >---------------------------
> [INFO] Building ANTLR 3 Tool 3.5.3                              
>           [3/6]
> [INFO] --------------------------------[ jar 
> ]---------------------------------
> [INFO] 
> [INFO] --- maven-clean-plugin:3.2.0:clean 
> (default-clean) @ antlr ---
> [INFO] Deleting /<<PKGBUILDDIR>>/tool/target
> [INFO] 
> [INFO] -------------------< 
> org.antlr:antlr3-maven-plugin >--------------------
> [INFO] Building ANTLR 3 Maven plugin 3.5.3                      
>           [4/6]
> [INFO] ----------------------------[ maven-plugin 
> ]----------------------------
> [INFO] 
> [INFO] --- maven-clean-plugin:3.2.0:clean 
> (default-clean) @ antlr3-maven-plugin ---
> [INFO] Deleting /<<PKGBUILDDIR>>/antlr3-maven-plugin/target
> [INFO] 
> [INFO] --------------------------< org.antlr:gunit 
> >---------------------------
> [INFO] Building ANTLR 3 gUnit 3.5.3                             
>           [5/6]
> [INFO] --------------------------------[ jar 
> ]---------------------------------
> [INFO] 
> [INFO] --- maven-clean-plugin:3.2.0:clean 
> (default-clean) @ gunit ---
> [INFO] Deleting /<<PKGBUILDDIR>>/gunit/target
> [INFO] 
> [INFO] --------------------< 
> org.antlr:maven-gunit-plugin >--------------------
> [INFO] Building ANTLR 3 gUnit Maven plugin 3.5.3                
>           [6/6]
> [INFO] ----------------------------[ maven-plugin 
> ]----------------------------
> [INFO] 
> [INFO] --- maven-clean-plugin:3.2.0:clean 
> (default-clean) @ maven-gunit-plugin ---
> [INFO] Deleting /<<PKGBUILDDIR>>/gunit-maven-plugin/target
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Reactor Summary for ANTLR 3 Master build control POM 
> 3.5.3:
> [INFO] 
> [INFO] ANTLR 3 Master build control POM ................... 
> SUCCESS [  0.283 s]
> [INFO] ANTLR 3 Runtime .................................... 
> SUCCESS [  0.021 s]
> [INFO] ANTLR 3 Tool ....................................... 
> SUCCESS [  0.043 s]
> [INFO] ANTLR 3 Maven plugin ............................... 
> SUCCESS [  0.008 s]
> [INFO] ANTLR 3 gUnit ...................................... 
> SUCCESS [  0.030 s]
> [INFO] ANTLR 3 gUnit Maven plugin ......................... 
> SUCCESS [  0.013 s]
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] BUILD SUCCESS
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Total time:  0.783 s
> [INFO] Finished at: 2023-08-14T14:39:03Z
> [INFO] 
> ------------------------------------------------------------------------
> rm -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 -b' failed to run.


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

Reply via email to