summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorVolkmar W. Pogatzki <gentoo@pogatzki.net>2023-02-26 09:40:39 +0100
committerMiroslav Šulc <fordfrog@gentoo.org>2023-02-27 09:28:55 +0100
commitf9921e9eb94a060287dbedb71012c729fe5750b7 (patch)
treef57ea6b678378397605a338ca09d3165d458489c /eclass
parentmail-client/claws-mail-9999: remove outdated libsoup mention (diff)
downloadgentoo-f9921e9eb94a060287dbedb71012c729fe5750b7.tar.gz
gentoo-f9921e9eb94a060287dbedb71012c729fe5750b7.tar.bz2
gentoo-f9921e9eb94a060287dbedb71012c729fe5750b7.zip
java-pkg-simple.eclass: MANIFEST.MF show Gentoo in "Created-By: "
Presently, MANIFEST.MF can receive upstream's "Created-By:" if such line is found in a predefined META-INF/MANIFEST.MF in ${JAVA_RESOURCE_DIRS}. This change removes such line before the jar command creates the final MANIFEST.MF putting "Created-By: (Gentoo)" Closes: https://bugs.gentoo.org/897786 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/29801 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/java-pkg-simple.eclass3
1 files changed, 2 insertions, 1 deletions
diff --git a/eclass/java-pkg-simple.eclass b/eclass/java-pkg-simple.eclass
index abac18ca03f8..a1589b025617 100644
--- a/eclass/java-pkg-simple.eclass
+++ b/eclass/java-pkg-simple.eclass
@@ -1,4 +1,4 @@
-# Copyright 2004-2022 Gentoo Authors
+# Copyright 2004-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: java-pkg-simple.eclass
@@ -417,6 +417,7 @@ java-pkg-simple_src_compile() {
# package
local jar_args
if [[ -e ${classes}/META-INF/MANIFEST.MF ]]; then
+ sed '/Created-By: /Id' -i ${classes}/META-INF/MANIFEST.MF
jar_args="cfm ${JAVA_JAR_FILENAME} ${classes}/META-INF/MANIFEST.MF"
else
jar_args="cf ${JAVA_JAR_FILENAME}"