Bug#1026509: openjpa: FTBFS: [exec] Execute failed: java.io.IOException: Cannot run program "svn" (in directory "/<<PKGBUILDDIR>>/openjpa-lib"): error=2, No such file or directory

Lucas Nussbaum lucas at debian.org
Tue Dec 20 16:45:16 GMT 2022


Source: openjpa
Version: 2.4.2-7
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20221220 ftbfs-bookworm

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
>  debian/rules build
> dh build
>    dh_update_autotools_config
>    dh_autoreconf
>    dh_auto_configure
> 	mh_patchpoms -plibopenjpa-java --debian-build --keep-pom-version --maven-repo=/<<PKGBUILDDIR>>/debian/maven-repo
>    dh_auto_build
> 	/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 package -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...
> [INFO] ------------------------------------------------------------------------
> [INFO] Reactor Build Order:
> [INFO] 
> [INFO] OpenJPA Parent POM                                                 [pom]
> [INFO] OpenJPA Utilities Library                                          [jar]
> [INFO] OpenJPA Kernel                                                     [jar]
> [INFO] OpenJPA JDBC                                                       [jar]
> [INFO] OpenJPA Persistence                                                [jar]
> [INFO] OpenJPA Persistence JDBC                                           [jar]
> [INFO] OpenJPA XML Store                                                  [jar]
> [INFO] OpenJPA Slice                                                      [jar]
> [INFO] OpenJPA JEST                                                       [jar]
> [INFO] OpenJPA Aggregate Jar                                           [bundle]
> [INFO] 
> [INFO] -----------------< org.apache.openjpa:openjpa-parent >------------------
> [INFO] Building OpenJPA Parent POM 2.4.2                                 [1/10]
> [INFO] --------------------------------[ pom ]---------------------------------
> [INFO] 
> [INFO] --- maven-compiler-plugin:3.8.1:testCompile (test-source-compile) @ openjpa-parent ---
> [INFO] Not compiling test sources
> [INFO] 
> [INFO] -------------------< org.apache.openjpa:openjpa-lib >-------------------
> [INFO] Building OpenJPA Utilities Library 2.4.2                          [2/10]
> [INFO] --------------------------------[ jar ]---------------------------------
> [WARNING] The artifact org.apache.maven.plugins:maven-resources-plugin:jar:2.6 has been relocated to org.apache.maven.plugins:maven-resources-plugin:jar:3.3.0
> [INFO] 
> [INFO] --- maven-resources-plugin:3.3.0:resources (default-resources) @ openjpa-lib ---
> [INFO] Copying 9 resources
> [INFO] 
> [INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ openjpa-lib ---
> [INFO] Changes detected - recompiling the module!
> [INFO] Compiling 159 source files to /<<PKGBUILDDIR>>/openjpa-lib/target/classes
> [INFO] /<<PKGBUILDDIR>>/openjpa-lib/src/main/java/org/apache/openjpa/lib/rop/SoftRandomAccessResultList.java: Some input files use or override a deprecated API.
> [INFO] /<<PKGBUILDDIR>>/openjpa-lib/src/main/java/org/apache/openjpa/lib/rop/SoftRandomAccessResultList.java: Recompile with -Xlint:deprecation for details.
> [INFO] /<<PKGBUILDDIR>>/openjpa-lib/src/main/java/org/apache/openjpa/lib/meta/XMLMetaDataParser.java: Some input files use unchecked or unsafe operations.
> [INFO] /<<PKGBUILDDIR>>/openjpa-lib/src/main/java/org/apache/openjpa/lib/meta/XMLMetaDataParser.java: Recompile with -Xlint:unchecked for details.
> [INFO] 
> [INFO] --- maven-antrun-plugin:1.8:run (set subversion revision) @ openjpa-lib ---
> [WARNING] The POM for ant-contrib:ant-contrib:jar:debian is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
> [WARNING] Parameter tasks is deprecated, use target instead
> [INFO] Executing tasks
> 
> main:
>      [exec] Execute failed: java.io.IOException: Cannot run program "svnversion" (in directory "/<<PKGBUILDDIR>>/openjpa-lib"): error=2, No such file or directory
>      [exec] Execute failed: java.io.IOException: Cannot run program "svn" (in directory "/<<PKGBUILDDIR>>/openjpa-lib"): error=2, No such file or directory
>    [delete] Deleting: /<<PKGBUILDDIR>>/openjpa-lib/pcenhancer.revision.file
>      [echo] Revision: unknown
>      [echo] OpenJPA version: 2.4.2
>     [mkdir] Created dir: /<<PKGBUILDDIR>>/openjpa-lib/target/classes/META-INF
> [INFO] Executed tasks
> [INFO] 
> [INFO] --- maven-compiler-plugin:3.8.1:testCompile (test-source-compile) @ openjpa-lib ---
> [INFO] Not compiling test sources
> [INFO] 
> [INFO] --- maven-resources-plugin:3.3.0:testResources (default-testResources) @ openjpa-lib ---
> [INFO] Not copying test resources
> [INFO] 
> [INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ openjpa-lib ---
> [INFO] Not compiling test sources
> [INFO] 
> [INFO] --- maven-surefire-plugin:2.22.3:test (default-test) @ openjpa-lib ---
> [INFO] Tests are skipped.
> [INFO] 
> [INFO] --- maven-jar-plugin:3.3.0:jar (default-jar) @ openjpa-lib ---
> [INFO] Building jar: /<<PKGBUILDDIR>>/openjpa-lib/target/openjpa-lib-2.4.2.jar
> [INFO] 
> [INFO] --- maven-jar-plugin:3.3.0:test-jar (attach-tests) @ openjpa-lib ---
> [INFO] Skipping packaging of the test-jar
> [INFO] 
> [INFO] -----------------< org.apache.openjpa:openjpa-kernel >------------------
> [INFO] Building OpenJPA Kernel 2.4.2                                     [3/10]
> [INFO] --------------------------------[ jar ]---------------------------------
> [WARNING] The artifact org.osgi:org.osgi.core:jar:debian has been relocated to org.osgi:osgi.core:jar:debian
> [INFO] 
> [INFO] --- javacc-maven-plugin:2.6:jjtree-javacc (jjtree-javacc-jpql) @ openjpa-kernel ---
> Java Compiler Compiler Version 5.0 (Tree Builder)
> (type "jjtree" with no arguments for help)
> Reading from file /<<PKGBUILDDIR>>/openjpa-kernel/src/main/jjtree/org/apache/openjpa/kernel/jpql/JPQL.jjt . . .
> File "Node.java" does not exist.  Will create one.
> File "JPQLTreeConstants.java" does not exist.  Will create one.
> File "JJTJPQLState.java" does not exist.  Will create one.
> Annotated grammar generated successfully in /<<PKGBUILDDIR>>/openjpa-kernel/target/javacc-1671529367005/node/JPQL.jj
> Java Compiler Compiler Version 5.0 (Parser Generator)
> (type "javacc" with no arguments for help)
> Reading from file /<<PKGBUILDDIR>>/openjpa-kernel/target/javacc-1671529367005/node/JPQL.jj . . .
> Warning: Choice conflict in (...)* construct at line 944, column 17.
>          Expansion nested within construct and expansion following construct
>          have common prefixes, one of which is: "+"
>          Consider using a lookahead of 2 or more for nested expansion.
> Warning: Choice conflict in (...)* construct at line 953, column 17.
>          Expansion nested within construct and expansion following construct
>          have common prefixes, one of which is: "*"
>          Consider using a lookahead of 2 or more for nested expansion.
> File "TokenMgrError.java" does not exist.  Will create one.
> File "ParseException.java" does not exist.  Will create one.
> File "Token.java" does not exist.  Will create one.
> File "JavaCharStream.java" does not exist.  Will create one.
> Parser generated with 0 errors and 2 warnings.
> [INFO] Processed 1 grammar
> [INFO] 
> [INFO] --- maven-resources-plugin:3.3.0:resources (default-resources) @ openjpa-kernel ---
> [INFO] Copying 15 resources
> [INFO] 
> [INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ openjpa-kernel ---
> [INFO] Changes detected - recompiling the module!
> [INFO] Compiling 506 source files to /<<PKGBUILDDIR>>/openjpa-kernel/target/classes
> [INFO] /<<PKGBUILDDIR>>/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/ExpressionStoreQuery.java: Some input files use or override a deprecated API.
> [INFO] /<<PKGBUILDDIR>>/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/ExpressionStoreQuery.java: Recompile with -Xlint:deprecation for details.
> [INFO] /<<PKGBUILDDIR>>/openjpa-kernel/src/main/java/org/apache/openjpa/meta/Extensions.java: Some input files use unchecked or unsafe operations.
> [INFO] /<<PKGBUILDDIR>>/openjpa-kernel/src/main/java/org/apache/openjpa/meta/Extensions.java: Recompile with -Xlint:unchecked for details.
> [INFO] 
> [INFO] --- maven-antrun-plugin:1.8:run (add-was-interfaces) @ openjpa-kernel ---
> [WARNING] Parameter tasks is deprecated, use target instead
> [INFO] Executing tasks
> 
> main:
> WARNING: A terminally deprecated method in java.lang.System has been called
> WARNING: System::setSecurityManager has been called by org.apache.tools.ant.types.Permissions (file:/<<PKGBUILDDIR>>/debian/maven-repo/org/apache/ant/ant/debian/ant-debian.jar)
> WARNING: Please consider reporting this to the maintainers of org.apache.tools.ant.types.Permissions
> WARNING: System::setSecurityManager will be removed in a future release
> [INFO] Executed tasks
> [INFO] 
> [INFO] --- maven-antrun-plugin:1.8:run (generate-standard-sco-proxies) @ openjpa-kernel ---
> [WARNING] Parameter tasks is deprecated, use target instead
> [INFO] Executing tasks
> 
> main:
> org.apache.openjpa.util.java$sql$Date$proxy
> org.apache.openjpa.util.java$sql$Time$proxy
> org.apache.openjpa.util.java$sql$Timestamp$proxy
> org.apache.openjpa.util.java$util$ArrayList$proxy
> org.apache.openjpa.util.java$util$Date$proxy
> org.apache.openjpa.util.java$util$GregorianCalendar$proxy
> org.apache.openjpa.util.java$util$HashMap$proxy
> org.apache.openjpa.util.java$util$HashSet$proxy
> org.apache.openjpa.util.java$util$Hashtable$proxy
> org.apache.openjpa.util.java$util$LinkedList$proxy
> org.apache.openjpa.util.java$util$Properties$proxy
> org.apache.openjpa.util.java$util$TreeMap$proxy
> org.apache.openjpa.util.java$util$TreeSet$proxy
> org.apache.openjpa.util.java$util$Vector$proxy
> org.apache.openjpa.util.java$util$EnumMap$proxy
> org.apache.openjpa.util.java$util$IdentityHashMap$proxy
> org.apache.openjpa.util.java$util$LinkedHashMap$proxy
> org.apache.openjpa.util.java$util$LinkedHashSet$proxy
> org.apache.openjpa.util.java$util$PriorityQueue$proxy
> [INFO] Executed tasks
> [INFO] 
> [INFO] --- maven-compiler-plugin:3.8.1:testCompile (test-source-compile) @ openjpa-kernel ---
> [INFO] Not compiling test sources
> [INFO] 
> [INFO] --- maven-resources-plugin:3.3.0:testResources (default-testResources) @ openjpa-kernel ---
> [INFO] Not copying test resources
> [INFO] 
> [INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ openjpa-kernel ---
> [INFO] Not compiling test sources
> [INFO] 
> [INFO] --- maven-surefire-plugin:2.22.3:test (default-test) @ openjpa-kernel ---
> [INFO] Tests are skipped.
> [INFO] 
> [INFO] --- maven-jar-plugin:3.3.0:jar (default-jar) @ openjpa-kernel ---
> [INFO] Building jar: /<<PKGBUILDDIR>>/openjpa-kernel/target/openjpa-kernel-2.4.2.jar
> [INFO] 
> [INFO] --- maven-jar-plugin:3.3.0:test-jar (attach-tests) @ openjpa-kernel ---
> [INFO] Skipping packaging of the test-jar
> [INFO] 
> [INFO] ------------------< org.apache.openjpa:openjpa-jdbc >-------------------
> [INFO] Building OpenJPA JDBC 2.4.2                                       [4/10]
> [INFO] --------------------------------[ jar ]---------------------------------
> [WARNING] The artifact postgresql:postgresql:jar:debian has been relocated to org.postgresql:postgresql:jar:debian
> [INFO] 
> [INFO] --- maven-resources-plugin:3.3.0:resources (default-resources) @ openjpa-jdbc ---
> [INFO] Copying 14 resources
> [INFO] 
> [INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ openjpa-jdbc ---
> [INFO] Changes detected - recompiling the module!
> [INFO] Compiling 361 source files to /<<PKGBUILDDIR>>/openjpa-jdbc/target/classes
> [INFO] /<<PKGBUILDDIR>>/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/exps/JDBCStringContains.java: Some input files use or override a deprecated API.
> [INFO] /<<PKGBUILDDIR>>/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/exps/JDBCStringContains.java: Recompile with -Xlint:deprecation for details.
> [INFO] /<<PKGBUILDDIR>>/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/MergedResult.java: Some input files use unchecked or unsafe operations.
> [INFO] /<<PKGBUILDDIR>>/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/MergedResult.java: Recompile with -Xlint:unchecked for details.
> [INFO] 
> [INFO] --- maven-compiler-plugin:3.8.1:testCompile (test-source-compile) @ openjpa-jdbc ---
> [INFO] Not compiling test sources
> [INFO] 
> [INFO] --- maven-resources-plugin:3.3.0:testResources (default-testResources) @ openjpa-jdbc ---
> [INFO] Not copying test resources
> [INFO] 
> [INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ openjpa-jdbc ---
> [INFO] Not compiling test sources
> [INFO] 
> [INFO] --- maven-surefire-plugin:2.22.3:test (default-test) @ openjpa-jdbc ---
> [INFO] Tests are skipped.
> [INFO] 
> [INFO] --- maven-jar-plugin:3.3.0:jar (default-jar) @ openjpa-jdbc ---
> [INFO] Building jar: /<<PKGBUILDDIR>>/openjpa-jdbc/target/openjpa-jdbc-2.4.2.jar
> [INFO] 
> [INFO] --- maven-jar-plugin:3.3.0:test-jar (attach-tests) @ openjpa-jdbc ---
> [INFO] Skipping packaging of the test-jar
> [INFO] 
> [INFO] ---------------< org.apache.openjpa:openjpa-persistence >---------------
> [INFO] Building OpenJPA Persistence 2.4.2                                [5/10]
> [INFO] --------------------------------[ jar ]---------------------------------
> [WARNING] The artifact org.osgi:org.osgi.core:jar:debian has been relocated to org.osgi:osgi.core:jar:debian
> [INFO] 
> [INFO] --- maven-resources-plugin:3.3.0:resources (default-resources) @ openjpa-persistence ---
> [INFO] Copying 14 resources
> [INFO] 
> [INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ openjpa-persistence ---
> [INFO] Changes detected - recompiling the module!
> [INFO] Compiling 234 source files to /<<PKGBUILDDIR>>/openjpa-persistence/target/classes
> [INFO] /<<PKGBUILDDIR>>/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/GeneratorImpl.java: Some input files use or override a deprecated API.
> [INFO] /<<PKGBUILDDIR>>/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/GeneratorImpl.java: Recompile with -Xlint:deprecation for details.
> [INFO] /<<PKGBUILDDIR>>/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/validation/ValidatorImpl.java: Some input files use unchecked or unsafe operations.
> [INFO] /<<PKGBUILDDIR>>/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/validation/ValidatorImpl.java: Recompile with -Xlint:unchecked for details.
> [INFO] -------------------------------------------------------------
> [ERROR] COMPILATION ERROR : 
> [INFO] -------------------------------------------------------------
> [ERROR] /<<PKGBUILDDIR>>/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/criteria/SubqueryImpl.java:[213,35] incompatible types: java.util.Set<java.lang.Object> cannot be converted to java.util.Set<javax.persistence.criteria.Join<?,?>>
> [INFO] 1 error
> [INFO] -------------------------------------------------------------
> [INFO] ------------------------------------------------------------------------
> [INFO] Reactor Summary for OpenJPA Parent POM 2.4.2:
> [INFO] 
> [INFO] OpenJPA Parent POM ................................. SUCCESS [  0.130 s]
> [INFO] OpenJPA Utilities Library .......................... SUCCESS [  3.705 s]
> [INFO] OpenJPA Kernel ..................................... SUCCESS [  4.554 s]
> [INFO] OpenJPA JDBC ....................................... SUCCESS [  2.275 s]
> [INFO] OpenJPA Persistence ................................ FAILURE [  1.325 s]
> [INFO] OpenJPA Persistence JDBC ........................... SKIPPED
> [INFO] OpenJPA XML Store .................................. SKIPPED
> [INFO] OpenJPA Slice ...................................... SKIPPED
> [INFO] OpenJPA JEST ....................................... SKIPPED
> [INFO] OpenJPA Aggregate Jar .............................. SKIPPED
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time:  12.904 s
> [INFO] Finished at: 2022-12-20T09:42:55Z
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project openjpa-persistence: Compilation failure
> [ERROR] /<<PKGBUILDDIR>>/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/criteria/SubqueryImpl.java:[213,35] incompatible types: java.util.Set<java.lang.Object> cannot be converted to java.util.Set<javax.persistence.criteria.Join<?,?>>
> [ERROR] -> [Help 1]
> [ERROR] 
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR] 
> [ERROR] For more information about the errors and possible solutions, please read the following articles:
> [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> [ERROR] 
> [ERROR] After correcting the problems, you can resume the build with the command
> [ERROR]   mvn <args> -rf :openjpa-persistence
> dh_auto_build: error: /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 package -DskipTests -Dnotimestamp=true -Dlocale=en_US returned exit code 1
> make: *** [debian/rules:4: build] Error 25


The full build log is available from:
http://qa-logs.debian.net/2022/12/20/openjpa_2.4.2-7_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20221220;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20221220&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

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