commit:     1c22228aa61ca1ffdf3f5306e886d09e98e54798
Author:     Volkmar W. Pogatzki <gentoo <AT> pogatzki <DOT> net>
AuthorDate: Mon Feb 26 11:27:40 2024 +0000
Commit:     Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
CommitDate: Mon Feb 26 12:52:27 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1c22228a

dev-java/eclipse-ecj: remove .RSA and .SF files from META-INF

Closes: https://bugs.gentoo.org/925083
Signed-off-by: Volkmar W. Pogatzki <gentoo <AT> pogatzki.net>
Closes: https://github.com/gentoo/gentoo/pull/35538
Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>

 .../{eclipse-ecj-4.26-r1.ebuild => eclipse-ecj-4.26-r2.ebuild}    | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/dev-java/eclipse-ecj/eclipse-ecj-4.26-r1.ebuild 
b/dev-java/eclipse-ecj/eclipse-ecj-4.26-r2.ebuild
similarity index 81%
rename from dev-java/eclipse-ecj/eclipse-ecj-4.26-r1.ebuild
rename to dev-java/eclipse-ecj/eclipse-ecj-4.26-r2.ebuild
index ed2724a7e5d4..8843146e1f91 100644
--- a/dev-java/eclipse-ecj/eclipse-ecj-4.26-r1.ebuild
+++ b/dev-java/eclipse-ecj/eclipse-ecj-4.26-r2.ebuild
@@ -46,6 +46,14 @@ src_prepare() {
                | xargs cp --parent -t "${JAVA_RESOURCE_DIRS}" || die
 }
 
+src_compile() {
+       java-pkg-simple_src_compile
+       #925083
+       # Exception in thread "main" java.lang.SecurityException: Invalid 
signature file digest for Manifest main attributes
+       zip -d ecj.jar "META-INF/ECLIPSE_.RSA" || die "Failed to remove 
ECLIPSE_.RSA"
+       zip -d ecj.jar "META-INF/ECLIPSE_.SF" || die "Failed to remove 
ECLIPSE_.SF"
+}
+
 src_install() {
        java-pkg-simple_src_install
        insinto /usr/share/java-config-2/compiler

Reply via email to