1 |
Presently, MANIFEST.MF can receive upstream's "Created-By:" if such line |
2 |
is found in a predefined META-INF/MANIFEST.MF in ${JAVA_RESOURCE_DIRS} |
3 |
This change removes such line before the jar command creates the final |
4 |
MANIFEST.MF putting "Created-By: (GEntoo)" |
5 |
|
6 |
Closes: https://bugs.gentoo.org/897786 |
7 |
Signed-off-by: Volkmar W. Pogatzki <gentoo@××××××××.net> |
8 |
--- |
9 |
eclass/java-pkg-simple.eclass | 3 ++- |
10 |
1 file changed, 2 insertions(+), 1 deletion(-) |
11 |
|
12 |
diff --git a/eclass/java-pkg-simple.eclass b/eclass/java-pkg-simple.eclass |
13 |
index abac18ca03f8..2a817cb759ca 100644 |
14 |
--- a/eclass/java-pkg-simple.eclass |
15 |
+++ b/eclass/java-pkg-simple.eclass |
16 |
@@ -1,4 +1,4 @@ |
17 |
-# Copyright 2004-2022 Gentoo Authors |
18 |
+# Copyright 2004-2023 Gentoo Authors |
19 |
# Distributed under the terms of the GNU General Public License v2 |
20 |
|
21 |
# @ECLASS: java-pkg-simple.eclass |
22 |
@@ -417,6 +417,7 @@ java-pkg-simple_src_compile() { |
23 |
# package |
24 |
local jar_args |
25 |
if [[ -e ${classes}/META-INF/MANIFEST.MF ]]; then |
26 |
+ sed '/Created-By: /d' -i ${classes}/META-INF/MANIFEST.MF |
27 |
jar_args="cfm ${JAVA_JAR_FILENAME} ${classes}/META-INF/MANIFEST.MF" |
28 |
else |
29 |
jar_args="cf ${JAVA_JAR_FILENAME}" |
30 |
-- |
31 |
2.39.2 |