Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

www-servers/tomcat: add {9.0.87-r2,10.1.20}, unbundling bnd #35320

Closed
wants to merge 3 commits into from

Conversation

vaukai
Copy link
Contributor

@vaukai vaukai commented Feb 14, 2024

could not resist to try, but it fails:
should we follow upstream and have bnd bundle bndlib?

Override ignored for property "opens.sunrmi"
Override ignored for property "opens.javautil"
Override ignored for property "opens.javautilconcurrent"
 [macrodef] creating macro  runtests
 [macrodef] creating macro  verifyChecksum
Property "jar.uptodate" has not been set
 [macrodef] creating macro  jarIt
 [macrodef] creating macro  hashAndSign
 [macrodef] creating macro  printfile
 [macrodef] creating macro  get-release-hash
 [macrodef] creating macro  compare-hashes
Build sequence for target(s) `add-osgi' is [add-osgi]
Complete build sequence is [add-osgi, download-bnd, setup-bnd, download-compile, compile-prepare, build-docs, build-prepare, download-validate, validate, compile, build-manifests, package, dist-source, package-src-zip, setproxy, download-dist, dist-prepare, build-tomcat-jdbc, compile-webapp-examples, deploy, embed-jars, build-tomcat-jdbc-src, package-src-jar, embed-sources, embed-programmatic-jar, embed, dist-static, package-winzip, download-jacoco, -installer-pre-init, -installer-init, -installer-prep, -installer-create-tempinstaller, -installer-create-uninstaller, download-jsign, setup-jsign, -installer-sign-uninstaller, -installer, -ide-netbeans-check, -ide-netbeans-protect, -ide-netbeans-create, ide-netbeans, download-test-compile, dist-deployer, installer-sign, testexist, downloadzip, release-version-check, gpg-init-1, gpg-init-2, gpg-init-3, release-init, -pre-release-lone-target-check, -check-release-toolchain-versions, echoproperties, test-apr-exists, setup-jacoco, test-compile, test-openssl-exists, test-nio, package-zip, package-deployer-zip, -pre-release-read-asf-username, pre-release, download-spotbugs, -require-release-toolchain-versions, ide-intellij, downloadzip-2, downloadgz-2, sign, downloadfile, clean, package-tgz, package-deployer-tgz, javadoc, package-docs-tgz, package-src-tgz, release, trydownload.check, trydownload, test-apr, add-graal, test-status, test-nio2, coverage-report, test, spotbugs, verify-release, examples-sources, ide-eclipse, downloadgz, ide-netbeans-replace, downloadfile-2, validate-eoln, ]
  [antcall] Entering /var/tmp/portage/www-servers/tomcat-9.0.85-r2/work/apache-tomcat-9.0.85-src/build.xml...
Setting ro project property: ant.project.invoked-targets -> add-osgi
Build sequence for target(s) `add-osgi' is [add-osgi]
Complete build sequence is [add-osgi, download-bnd, setup-bnd, download-compile, compile-prepare, build-docs, build-prepare, download-validate, validate, compile, build-manifests, package, dist-source, package-src-zip, setproxy, download-dist, dist-prepare, build-tomcat-jdbc, compile-webapp-examples, deploy, embed-jars, build-tomcat-jdbc-src, package-src-jar, embed-sources, embed-programmatic-jar, embed, dist-static, package-winzip, download-jacoco, -installer-pre-init, -installer-init, -installer-prep, -installer-create-tempinstaller, -installer-create-uninstaller, download-jsign, setup-jsign, -installer-sign-uninstaller, -installer, -ide-netbeans-check, -ide-netbeans-protect, -ide-netbeans-create, ide-netbeans, download-test-compile, dist-deployer, installer-sign, testexist, downloadzip, release-version-check, gpg-init-1, gpg-init-2, gpg-init-3, release-init, -pre-release-lone-target-check, -check-release-toolchain-versions, echoproperties, test-apr-exists, setup-jacoco, test-compile, test-openssl-exists, test-nio, package-zip, package-deployer-zip, -pre-release-read-asf-username, pre-release, download-spotbugs, -require-release-toolchain-versions, ide-intellij, downloadzip-2, downloadgz-2, sign, downloadfile, clean, package-tgz, package-deployer-tgz, javadoc, package-docs-tgz, package-src-tgz, release, trydownload.check, trydownload, test-apr, add-graal, test-status, test-nio2, coverage-report, test, spotbugs, verify-release, examples-sources, ide-eclipse, downloadgz, ide-netbeans-replace, downloadfile-2, validate-eoln, ]

add-osgi:
     [echo] add-osgi /var/tmp/portage/www-servers/tomcat-9.0.85-r2/work/apache-tomcat-9.0.85-src/output/build/lib/annotations-api.jar true
  [antcall] Exiting /var/tmp/portage/www-servers/tomcat-9.0.85-r2/work/apache-tomcat-9.0.85-src/build.xml.

BUILD FAILED
/var/tmp/portage/www-servers/tomcat-9.0.85-r2/work/apache-tomcat-9.0.85-src/build.xml:1007: The following error occurred while executing this line:
/var/tmp/portage/www-servers/tomcat-9.0.85-r2/work/apache-tomcat-9.0.85-src/build.xml:3256: The following error occurred while executing this line:
/var/tmp/portage/www-servers/tomcat-9.0.85-r2/work/apache-tomcat-9.0.85-src/build.xml:3275: Problem: failed to create task or type bnd
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.

	at org.apache.tools.ant.UnknownElement.getNotFoundException(UnknownElement.java:506)
	at org.apache.tools.ant.UnknownElement.makeObject(UnknownElement.java:438)
	at org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:166)
	at org.apache.tools.ant.Task.perform(Task.java:349)
	at org.apache.tools.ant.Target.execute(Target.java:449)
	at org.apache.tools.ant.Target.performTasks(Target.java:470)
	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1401)
	at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:36)
	at org.apache.tools.ant.Project.executeTargets(Project.java:1264)
	at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:437)
	at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:106)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:299)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
	at org.apache.tools.ant.Task.perform(Task.java:350)
	at java.base/java.util.Vector.forEach(Vector.java:1359)
	at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:67)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:299)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
	at org.apache.tools.ant.Task.perform(Task.java:350)
	at java.base/java.util.Vector.forEach(Vector.java:1359)
	at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:67)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:299)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
	at org.apache.tools.ant.Task.perform(Task.java:350)
	at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:391)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:299)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
	at org.apache.tools.ant.Task.perform(Task.java:350)
	at org.apache.tools.ant.Target.execute(Target.java:449)
	at org.apache.tools.ant.Target.performTasks(Target.java:470)
	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1401)
	at org.apache.tools.ant.Project.executeTarget(Project.java:1374)
	at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
	at org.apache.tools.ant.Project.executeTargets(Project.java:1264)
	at org.apache.tools.ant.Main.runBuild(Main.java:818)
	at org.apache.tools.ant.Main.startAnt(Main.java:223)
	at org.apache.tools.ant.launch.Launcher.run(Launcher.java:284)
	at org.apache.tools.ant.launch.Launcher.main(Launcher.java:101)

Total time: 18 seconds
 �[31;01m*�[0m ERROR: www-servers/tomcat-9.0.85-r2::gentoo failed (compile phase):
 �[31;01m*�[0m   eant failed
 �[31;01m*�[0m 
 �[31;01m*�[0m Call stack:
 �[31;01m*�[0m     ebuild.sh, line  136:  Called src_compile
 �[31;01m*�[0m   environment, line 3132:  Called java-pkg-2_src_compile
 �[31;01m*�[0m   environment, line 1500:  Called eant 'deploy' '-f' 'build.xml' '-Dversion=9.0.85-gentoo' '-Dversion.number=9.0.85' '-Dcompile.debug=false' '-Dbnd.jar=/var/tmp/portage/www-servers/tomcat-9.0.85-r2/work/apache-tomcat-9.0.85-src/tomcat-build-libs/bnd/biz.aQute.bnd-7.0.0.jar'
 �[31;01m*�[0m   environment, line  603:  Called die
 �[31;01m*�[0m The specific snippet of code:
 �[31;01m*�[0m       ant ${antflags} "${@}" || die "eant failed"
 �[31;01m*�[0m 
 �[31;01m*�[0m If you need support, post the output of `emerge --info '=www-servers/tomcat-9.0.85-r2::gentoo'`,
 �[31;01m*�[0m the complete build log and the output of `emerge -pqv '=www-servers/tomcat-9.0.85-r2::gentoo'`.
!!! When you file a bug report, please include the following information:
GENTOO_VM=openjdk-bin-21  CLASSPATH="" JAVA_HOME="/opt/openjdk-bin-21.0.1_p12"
JAVACFLAGS="-source 1.8 -target 1.8" COMPILER="javac"
and of course, the output of emerge --info =tomcat-9.0.85
 �[31;01m*�[0m The complete build log is located at '/var/tmp/portage/www-servers/tomcat-9.0.85-r2/temp/build.log'.
 �[31;01m*�[0m The ebuild environment file is located at '/var/tmp/portage/www-servers/tomcat-9.0.85-r2/temp/environment'.
 �[31;01m*�[0m Working directory: '/var/tmp/portage/www-servers/tomcat-9.0.85-r2/work/apache-tomcat-9.0.85-src'
 �[31;01m*�[0m S: '/var/tmp/portage/www-servers/tomcat-9.0.85-r2/work/apache-tomcat-9.0.85-src'

@vaukai vaukai marked this pull request as draft February 14, 2024 10:08
@gentoo-bot
Copy link

Pull Request assignment

Submitter: @vaukai
Areas affected: ebuilds
Packages affected: dev-java/bnd, dev-java/javacc, dev-java/javaparser-core, www-servers/tomcat

dev-java/bnd: @gentoo/proxy-maint (new package)
dev-java/javacc: @gentoo/java
dev-java/javaparser-core: @gentoo/proxy-maint (new package)
www-servers/tomcat: @gentoo/java

Linked bugs

Bugs linked: 203080


In order to force reassignment and/or bug reference scan, please append [please reassign] to the pull request title.

Docs: Code of ConductCopyright policy (expl.) ● DevmanualGitHub PRsProxy-maint guide

@gentoo-bot gentoo-bot added new package The PR is adding a new package. assigned PR successfully assigned to the package maintainer(s). bug linked Bug/Closes found in footer, and cross-linked with the PR. labels Feb 14, 2024
@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2024-02-14 10:58 UTC
Newest commit scanned: 23286b0
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/8faaa2499c/output.html

@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2024-02-15 08:28 UTC
Newest commit scanned: 4da8d66
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/f9fad35d33/output.html

@fordfrog
Copy link
Contributor

from the error it seems to miss bnd ant task. i just emerged bndlib and didn't find anything that would resemble the bnd ant task. but i haven't used ant for quite a long time. so, to fix the issue, we need bnd ant task available for ant.

@vaukai
Copy link
Contributor Author

vaukai commented Feb 16, 2024

from the error it seems to miss bnd ant task. i just emerged bndlib and didn't find anything that would resemble the bnd ant task. but i haven't used ant for quite a long time. so, to fix the issue, we need bnd ant task available for ant.

even with biz.aQute.bnd.ant/srcadded to dev-java/bnds JAVA_SRC_DIR, tomcat would fail with the same error.
to proove i didn't do wrong in tomcat, i copied the upstream and then it works.

cp /var/cache/distfiles/biz.aQute.bnd-7.0.0.jar /usr/share/bnd/lib/bnd.jar

so i guess i have to add more stuff to the bnd ebuild but i dislike bundling libg or bndlib there. should we completely replicate upstream's bnd-7.0.0.jar including all bundled stuff?

@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2024-02-16 14:18 UTC
Newest commit scanned: 2ae466c
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/8549bfabff/output.html

@fordfrog
Copy link
Contributor

so i guess i have to add more stuff to the bnd ebuild but i dislike bundling libg or bndlib there. should we completely replicate upstream's bnd-7.0.0.jar including all bundled stuff?

i think we don't need to bundle all that stuff that we already have in the tree and can put it on classpath. and if there is something that we don't have in the tree, better than bundling is to package it separately.

anyway, the main issue is that the build system cannot find the bnd task. looking at the build.xml, i can see that the task is defined in a properties file: https://github.com/apache/tomcat/blob/9.0.x/build.xml#L3932

and that file reveals that the task is defined by aQute.bnd.ant.BndTask:
https://github.com/bndtools/bnd/blob/master/biz.aQute.bnd.ant/src/aQute/bnd/ant/taskdef.properties

i guess this is what we miss and need.

@vaukai
Copy link
Contributor Author

vaukai commented Feb 17, 2024

anyway, the main issue is that the build system cannot find the bnd task. looking at the build.xml, i can see that the task is defined in a properties file: https://github.com/apache/tomcat/blob/9.0.x/build.xml#L3932

and that file reveals that the task is defined by aQute.bnd.ant.BndTask: https://github.com/bndtools/bnd/blob/master/biz.aQute.bnd.ant/src/aQute/bnd/ant/taskdef.properties

i guess this is what we miss and need.

that's it, almost. adding the missing resource file takes me a step further. i'll split the new bnd-ant once we know what else needs to be added.
next problem is:

A class needed by class aQute.bnd.ant.TestTask cannot be found: aQute/service/reporter/Reporter

aQute/service/reporter/Reporter is in the libg package and we have it on classpath.

here is the last part of the log:

Adding reference: files.tomcat-embed-el
Adding reference: files.tomcat-embed-websocket
Override ignored for property "junit.formatter.type"
Override ignored for property "junit.formatter.usefile"
Override ignored for property "junit.formatter.extension"
Override ignored for property "opens.javalang"
Override ignored for property "opens.javaio"
Override ignored for property "opens.sunrmi"
Override ignored for property "opens.javautil"
Override ignored for property "opens.javautilconcurrent"
 [macrodef] creating macro  runtests
 [macrodef] creating macro  verifyChecksum
Property "jar.uptodate" has not been set
 [macrodef] creating macro  jarIt
 [macrodef] creating macro  hashAndSign
 [macrodef] creating macro  printfile
 [macrodef] creating macro  get-release-hash
 [macrodef] creating macro  compare-hashes
Build sequence for target(s) `downloadfile' is [testexist, setproxy, downloadfile]
Complete build sequence is [testexist, setproxy, downloadfile, download-bnd, setup-bnd, download-compile, compile-prepare, build-docs, build-prepare, download-validate, validate, compile, build-manifests, package, dist-source, package-src-zip, download-dist, dist-prepare, build-tomcat-jdbc, compile-webapp-examples, deploy, embed-jars, build-tomcat-jdbc-src, package-src-jar, embed-sources, embed-programmatic-jar, embed, dist-static, package-winzip, download-jacoco, -installer-pre-init, -installer-init, -installer-prep, -installer-create-tempinstaller, -installer-create-uninstaller, download-jsign, setup-jsign, -installer-sign-uninstaller, -installer, -ide-netbeans-check, -ide-netbeans-protect, -ide-netbeans-create, ide-netbeans, download-test-compile, dist-deployer, installer-sign, downloadzip, release-version-check, gpg-init-1, gpg-init-2, gpg-init-3, release-init, -pre-release-lone-target-check, -check-release-toolchain-versions, echoproperties, test-apr-exists, setup-jacoco, test-compile, test-openssl-exists, test-nio, package-zip, package-deployer-zip, -pre-release-read-asf-username, pre-release, download-spotbugs, -require-release-toolchain-versions, ide-intellij, downloadzip-2, downloadgz-2, sign, clean, package-tgz, package-deployer-tgz, javadoc, package-docs-tgz, package-src-tgz, release, trydownload.check, trydownload, test-apr, add-graal, add-osgi, test-status, test-nio2, coverage-report, test, spotbugs, verify-release, examples-sources, ide-eclipse, downloadgz, ide-netbeans-replace, downloadfile-2, validate-eoln, ]
  [antcall] Entering /var/tmp/portage/www-servers/tomcat-9.0.85-r2/work/apache-tomcat-9.0.85-src/build.xml...
Setting ro project property: ant.project.invoked-targets -> downloadfile
Build sequence for target(s) `downloadfile' is [testexist, setproxy, downloadfile]
Complete build sequence is [testexist, setproxy, downloadfile, download-bnd, setup-bnd, download-compile, compile-prepare, build-docs, build-prepare, download-validate, validate, compile, build-manifests, package, dist-source, package-src-zip, download-dist, dist-prepare, build-tomcat-jdbc, compile-webapp-examples, deploy, embed-jars, build-tomcat-jdbc-src, package-src-jar, embed-sources, embed-programmatic-jar, embed, dist-static, package-winzip, download-jacoco, -installer-pre-init, -installer-init, -installer-prep, -installer-create-tempinstaller, -installer-create-uninstaller, download-jsign, setup-jsign, -installer-sign-uninstaller, -installer, -ide-netbeans-check, -ide-netbeans-protect, -ide-netbeans-create, ide-netbeans, download-test-compile, dist-deployer, installer-sign, downloadzip, release-version-check, gpg-init-1, gpg-init-2, gpg-init-3, release-init, -pre-release-lone-target-check, -check-release-toolchain-versions, echoproperties, test-apr-exists, setup-jacoco, test-compile, test-openssl-exists, test-nio, package-zip, package-deployer-zip, -pre-release-read-asf-username, pre-release, download-spotbugs, -require-release-toolchain-versions, ide-intellij, downloadzip-2, downloadgz-2, sign, clean, package-tgz, package-deployer-tgz, javadoc, package-docs-tgz, package-src-tgz, release, trydownload.check, trydownload, test-apr, add-graal, add-osgi, test-status, test-nio2, coverage-report, test, spotbugs, verify-release, examples-sources, ide-eclipse, downloadgz, ide-netbeans-replace, downloadfile-2, validate-eoln, ]

testexist:
     [echo] Testing  for /var/tmp/portage/www-servers/tomcat-9.0.85-r2/work/apache-tomcat-9.0.85-src/tomcat-build-libs/bnd/biz.aQute.bnd-7.0.0.jar
[available] Found: tomcat-build-libs/bnd/biz.aQute.bnd-7.0.0.jar
Setting project property: exist -> true

setproxy:
Property "proxy.use" has not been set
Property "proxy.use" has not been set
Skipped because property '${proxy.use}' not set.

downloadfile:
Skipped because property 'exist' set.
  [antcall] Exiting /var/tmp/portage/www-servers/tomcat-9.0.85-r2/work/apache-tomcat-9.0.85-src/build.xml.

setup-bnd:
Adding reference: bnd.classpath
fileset: Setup scanner in dir /var/tmp/portage/www-servers/tomcat-9.0.85-r2/work/apache-tomcat-9.0.85-src/tomcat-build-libs/bnd with patternSet{ includes: [biz.aQute.bnd-7.0.0.jar] excludes: [] }
Finding class aQute.bnd.ant.TestTask
Loaded from /var/tmp/portage/www-servers/tomcat-9.0.85-r2/work/apache-tomcat-9.0.85-src/tomcat-build-libs/bnd/biz.aQute.bnd-7.0.0.jar aQute/bnd/ant/TestTask.class
Finding class aQute.bnd.ant.BaseTask
Loaded from /var/tmp/portage/www-servers/tomcat-9.0.85-r2/work/apache-tomcat-9.0.85-src/tomcat-build-libs/bnd/biz.aQute.bnd-7.0.0.jar aQute/bnd/ant/BaseTask.class
Finding class aQute.service.reporter.Reporter

BUILD FAILED
/var/tmp/portage/www-servers/tomcat-9.0.85-r2/work/apache-tomcat-9.0.85-src/build.xml:3217: taskdef A class needed by class aQute.bnd.ant.TestTask cannot be found: aQute/service/reporter/Reporter
 using the classloader AntClassLoader[/var/tmp/portage/www-servers/tomcat-9.0.85-r2/work/apache-tomcat-9.0.85-src/tomcat-build-libs/bnd/biz.aQute.bnd-7.0.0.jar]
	at org.apache.tools.ant.taskdefs.Definer.addDefinition(Definer.java:603)
	at org.apache.tools.ant.taskdefs.Definer.loadProperties(Definer.java:401)
	at org.apache.tools.ant.taskdefs.Definer.execute(Definer.java:263)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:299)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
	at org.apache.tools.ant.Task.perform(Task.java:350)
	at org.apache.tools.ant.Target.execute(Target.java:449)
	at org.apache.tools.ant.Target.performTasks(Target.java:470)
	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1401)
	at org.apache.tools.ant.Project.executeTarget(Project.java:1374)
	at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
	at org.apache.tools.ant.Project.executeTargets(Project.java:1264)
	at org.apache.tools.ant.Main.runBuild(Main.java:818)
	at org.apache.tools.ant.Main.startAnt(Main.java:223)
	at org.apache.tools.ant.launch.Launcher.run(Launcher.java:284)
	at org.apache.tools.ant.launch.Launcher.main(Launcher.java:101)
Caused by: java.lang.NoClassDefFoundError: aQute/service/reporter/Reporter
	at java.base/java.lang.ClassLoader.defineClass1(Native Method)
	at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1027)
	at org.apache.tools.ant.AntClassLoader.defineClassFromData(AntClassLoader.java:1172)
	at org.apache.tools.ant.AntClassLoader.getClassFromStream(AntClassLoader.java:1340)
	at org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoader.java:1392)
	at org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:1357)
	at org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:1112)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:526)
	at java.base/java.lang.ClassLoader.defineClass1(Native Method)
	at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1027)
	at org.apache.tools.ant.AntClassLoader.defineClassFromData(AntClassLoader.java:1172)
	at org.apache.tools.ant.AntClassLoader.getClassFromStream(AntClassLoader.java:1340)
	at org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoader.java:1392)
	at org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:1357)
	at org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:1112)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:526)
	at java.base/java.lang.Class.forName0(Native Method)
	at java.base/java.lang.Class.forName(Class.java:534)
	at java.base/java.lang.Class.forName(Class.java:513)
	at org.apache.tools.ant.taskdefs.Definer.addDefinition(Definer.java:569)
	... 17 more
Caused by: java.lang.ClassNotFoundException: aQute.service.reporter.Reporter
	at org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoader.java:1402)
	at org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:1357)
	at org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:1112)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:526)
	... 37 more

Total time: 1 second

@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2024-02-17 15:58 UTC
Newest commit scanned: a79f17c
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/346237b6ed/output.html

@fordfrog
Copy link
Contributor

is it on ant classpath or on compilation classpath? our standard way to define which ant tasks are needed is to use ANT_TASKS variable.

@vaukai
Copy link
Contributor Author

vaukai commented Mar 1, 2024

is it on ant classpath or on compilation classpath? our standard way to define which ant tasks are needed is to use ANT_TASKS variable.

sorry for long delay. bnd-ant is now a separate package. the ANT_TASKS variable and its usage is a black box for me. presently not really inclined to dive in here much deeper.

@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2024-03-01 12:22 UTC
Newest commit scanned: 3b8c54f
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/8a352404bb/output.html

@fordfrog
Copy link
Contributor

fordfrog commented Mar 1, 2024

is it on ant classpath or on compilation classpath? our standard way to define which ant tasks are needed is to use ANT_TASKS variable.

sorry for long delay. bnd-ant is now a separate package. the ANT_TASKS variable and its usage is a black box for me. presently not really inclined to dive in here much deeper.

i think putting WANT_ANT_TASKS="bnd-ant" before the inherits should handle both the dependency declaration and also putting the ant task on ant classpath. though, if it would not work, it would mean that the build system handles it differently.

@vaukai
Copy link
Contributor Author

vaukai commented Mar 2, 2024

is it on ant classpath or on compilation classpath? our standard way to define which ant tasks are needed is to use ANT_TASKS variable.

sorry for long delay. bnd-ant is now a separate package. the ANT_TASKS variable and its usage is a black box for me. presently not really inclined to dive in here much deeper.

i think putting WANT_ANT_TASKS="bnd-ant" before the inherits should handle both the dependency declaration and also putting the ant task on ant classpath. though, if it would not work, it would mean that the build system handles it differently.

adding that line blocks pkgdev commit:

 * www-servers/tomcat-9.0.86-r1: failed sourcing ebuild: java-pkg_ant-tasks-depend() failed, (java-ant-2.eclass, line  65:  called die)

would i need to rename dev-java/bnd-ant -> dev-java/ant-bnd-ant, according to java-utils-2.eclass#n1796?

there are some packages in ::gentoo having java-pkg_register-ant-task in src_install().
would we need to add such line also to the bnd-ant ebuild?``

from the description in java-utils-2.eclass it looks like that function could even be completely removed (after adjusting that handful of ebuilds using it). what do you think?

@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2024-03-02 09:47 UTC
Newest commit scanned: 4451003
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/1c60d47db5/output.html

@fordfrog
Copy link
Contributor

fordfrog commented Mar 2, 2024

would i need to rename dev-java/bnd-ant -> dev-java/ant-bnd-ant, according to java-utils-2.eclass#n1796?

well, looking at the code you can use WANT_ANT_TASKS=dev-java/bnd-ant too.

there are some packages in ::gentoo having java-pkg_register-ant-task in src_install(). would we need to add such line also to the bnd-ant ebuild?``

from the description in java-utils-2.eclass it looks like that function could even be completely removed (after adjusting that handful of ebuilds using it). what do you think?

yes, i agree that it would be better to use use WANT_ANT_TASK and remove java-pkg_register-ant-task. it seems it's there for some historical reasons and might be really obsolete now. it just needs some testing.

@vaukai
Copy link
Contributor Author

vaukai commented Mar 2, 2024

would i need to rename dev-java/bnd-ant -> dev-java/ant-bnd-ant, according to java-utils-2.eclass#n1796?

well, looking at the code you can use WANT_ANT_TASKS=dev-java/bnd-ant too.

that's what i've tried before and it didn't even let me pkgdev commit,
probably because of if [[ ${i} = ant-* ]]; then in the java-pkg_ant-tasks-depend() function.
after removal of old ant-task packages there would be nothing left in ::gentoo matching that condition. should we could enhance that condition for bnd-ant in order to avoid the strange package rename?

there are some packages in ::gentoo having java-pkg_register-ant-task in src_install(). would we need to add such line also to the bnd-ant ebuild?``
from the description in java-utils-2.eclass it looks like that function could even be completely removed (after adjusting that handful of ebuilds using it). what do you think?

yes, i agree that it would be better to use use WANT_ANT_TASK and remove java-pkg_register-ant-task. it seems it's there for some historical reasons and might be really obsolete now. it just needs some testing.

this can be done separately after cleaning old ant.

@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2024-03-02 19:38 UTC
Newest commit scanned: f39aef9
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/1347cc7ae6/output.html

@vaukai
Copy link
Contributor Author

vaukai commented Mar 3, 2024

tried dev-java/bnd-ant with [[ ${i} = ant-* || ${i} = bnd-ant ]] but doesn't work.

@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2024-03-03 11:12 UTC
Newest commit scanned: 41c0a0f
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/7a82b24725/output.html

@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2024-03-18 17:43 UTC
Newest commit scanned: 1c055ba
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/718ce8d06f/output.html

@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2024-03-19 14:22 UTC
Newest commit scanned: c159d0f
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/d646e0df0d/output.html

@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2024-03-19 20:12 UTC
Newest commit scanned: 5be51e1
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/ae8bf2cc73/output.html

@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2024-03-20 08:13 UTC
Newest commit scanned: 87b2a11
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/043c5cd74f/output.html

@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2024-03-22 08:13 UTC
Newest commit scanned: 4f2099d
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/756071275d/output.html

@vaukai
Copy link
Contributor Author

vaukai commented Mar 26, 2024

@fordfrog moving to 10.1.20 hopefully - just running compilation test

@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2024-03-26 10:10 UTC
Newest commit scanned: 808cb73
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/d890a7e793/output.html

@vaukai vaukai changed the title www-servers/tomcat: add 9.0.87-r2, unbundle bnd www-servers/tomcat: add {9.0.87-r2,10.1.20}, unbundling bnd Mar 26, 2024
@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2024-04-01 08:41 UTC
Newest commit scanned: 64d595b
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/0d6aff4aab/output.html

@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2024-04-02 12:15 UTC
Newest commit scanned: 233769a
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/93eb043962/output.html

<link href="../websocketapi"/>
<link href="../jaspicapi"/>
- <link href="https://docs.oracle.com/en/java/javase/11/docs/api/"/>
- <link href="https://jakarta.ee/specifications/platform/10/apidocs/"/>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is not copy related so might be a separate patch or the patch should be renamed

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is not copy related so might be a separate patch or the patch should be renamed

done, separated.

JAVAC="@GENTOO_PORTAGE_EPREFIX@/usr/bin/ecj-4.27"
PACKAGE="=dev-java/eclipse-ecj-4.27*"
SUPPORTED_TARGET="1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 9 10 11 12 13 14 15 16 17 18 19"
SUPPORTED_SOURCE="1.3 1.4 1.5 1.6 1.7 1.8 9 10 11 12 13 14 15 16 17 18 19"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fordfrog
Copy link
Contributor

fordfrog commented Apr 3, 2024

i merged the two ecj commits. as for tomcat, we should polish the patches i think.

- adds here document "build.properties" for configuration
- reduces the -build.xml.patch by using build.properties
- adds tomcat-9.0.87-gentoo-bnd.patch re-adding the unbundled parts
- removes the src_unpack() section
- removes -Dbnd.jar from EANT_EXTRA_ARGS
- updates eclipse-ecj 4.15 -> 4.20
- drops REWRITE_CLASSPATH, allows to drop -9.0.37-fix-build-rewrite.patch
- drops EANT_NEED_TOOLS
- removes the src_configure() section
- simplifies MY_P
- shortens verify-sig string by using MY_P
- unkeyword 9.0.87-r2 for ~x86

Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2024-04-03 09:46 UTC
Newest commit scanned: 0c2b30a
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/20ccaf08fd/output.html

@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2024-04-03 10:25 UTC
Newest commit scanned: 41de4a1
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/aeafee2fa1/output.html

@gentoo-bot gentoo-bot closed this in 8921750 Apr 4, 2024
@vaukai vaukai deleted the tomcat branch April 4, 2024 08:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
assigned PR successfully assigned to the package maintainer(s). bug linked Bug/Closes found in footer, and cross-linked with the PR. new package The PR is adding a new package.
Projects
None yet
4 participants