Is it possible to also provide aspectj-weaver or it needs another ebuild?
The bug has been referenced in the following commit(s):
Author: Volkmar W. Pogatzki <email@example.com>
AuthorDate: 2021-04-21 06:58:56 +0000
Commit: Miroslav Šulc <firstname.lastname@example.org>
CommitDate: 2021-04-21 09:47:20 +0000
dev-java/aspectj: bump to 1.9.6
Package-Manager: Portage-3.0.17, Repoman-3.0.2
Signed-off-by: Volkmar W. Pogatzki <email@example.com>
Signed-off-by: Miroslav Šulc <firstname.lastname@example.org>
dev-java/aspectj/Manifest | 1 +
dev-java/aspectj/aspectj-1.9.6.ebuild | 45 +++++++++++++++++++++++++++++++++++
dev-java/aspectj/metadata.xml | 4 ++++
3 files changed, 50 insertions(+)
Alessandro, the new version (1.9.6) has org.aspectj.weaver, is that what you meant? i did not check the older version whether it was part of the jar aswell. if that is what you meant, i suppose we can close this bug.
Thank you, I'll try it now. Having Weaver only in the last version is fine for me.
I can't see Weaver installed with the last version
Is it possible to also provide the aspectj compiler (ajc)?
if you try the following command, there's not what you need?
unzip -l /usr/share/aspectj/lib/aspectj.jar | grep weaver
From here it wants an aspectjweaver.jar
(In reply to Alessandro Barbieri from comment #7)
> From here it wants an aspectjweaver.jar
Doesn't it work with dev-java/aspectj-1.9.6?
If not, what's the error message?
configure will check first for aspect.jar, then for ajc and then for aspectweaver.jar
it expect them to be in the same tree structure as the one you have while manually installing the bundled jar from upstream
checking for Java directory... found
checking for Java... /usr/lib64/openjdk-8/bin/java
checking for Java compiler... /usr/lib64/openjdk-8/bin/javac
checking for Java header and stub file generator... /usr/lib64/openjdk-8/bin/javah
checking for Java archive tool... /usr/lib64/openjdk-8/bin/jar
checking for Java include directories... found
checking for Java JVMTI header files... found
checking for AspectJ directory... found
checking for AspectJ compiler (ajc)... configure: error: Cannot find ajc within AspectJ given path!
(In reply to Alessandro Barbieri from comment #9)
> configure will check first for aspect.jar, then for ajc and then for
> it expect them to be in the same tree structure as the one you have while
> manually installing the bundled jar from upstream
Well, looks like there's clearly something wrong with the ebuild:
qlist aspectj | grep jar
The .jar files to be provided are:
* aspectjrt - the AspectJ runtime
* aspectjweaver - the AspectJ weaver
* aspectjtools - the AspectJ compiler
as listed on https://github.com/eclipse/org.aspectj#building
Created attachment 709632 [details]
Comparison of installed dev-java/aspectj and upstream aspectjweaver.jar
Running pkgdiff with the installed /usr/share/aspectj/lib/aspectj.jar and original aspectjweaver.jar confirms these are widely identical. The installed however is missing some parts.