1 |
commit: 24bdae50918fa910251f1d71f3d562045a553322 |
2 |
Author: Volkmar W. Pogatzki <gentoo <AT> pogatzki <DOT> net> |
3 |
AuthorDate: Sun Apr 3 20:23:39 2022 +0000 |
4 |
Commit: Florian Schmaus <flow <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Apr 4 10:00:48 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=24bdae50 |
7 |
|
8 |
dev-java/log4j-core: Bump to 2.17.2 |
9 |
|
10 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
11 |
Signed-off-by: Volkmar W. Pogatzki <gentoo <AT> pogatzki.net> |
12 |
Signed-off-by: Florian Schmaus <flow <AT> gentoo.org> |
13 |
|
14 |
dev-java/log4j-core/Manifest | 1 + |
15 |
dev-java/log4j-core/log4j-core-2.17.2.ebuild | 172 +++++++++++++++++++++++++++ |
16 |
2 files changed, 173 insertions(+) |
17 |
|
18 |
diff --git a/dev-java/log4j-core/Manifest b/dev-java/log4j-core/Manifest |
19 |
index c2ad720f37fa..6f8f1df09bcb 100644 |
20 |
--- a/dev-java/log4j-core/Manifest |
21 |
+++ b/dev-java/log4j-core/Manifest |
22 |
@@ -1 +1,2 @@ |
23 |
DIST apache-log4j-2.17.1-src.tar.gz 11602282 BLAKE2B 6e6a69565ee28fc138ddb78258ac30b13a9be3f3baee64c3427b63b059c552d314be3c4a345ea297010d345c4dcb31d154aaea6cd2fc587512c6087c5dfe0745 SHA512 21cdfca54eb0d6af261a5ae89ff98197473d9c0203b0ab530f3aef6c90957bfb95a423983c8a19d7fbab05ec194b6fad8e46628e32270dd8b94ddd194a1cb177 |
24 |
+DIST apache-log4j-2.17.2-src.tar.gz 11680029 BLAKE2B 19baf31f4e00f0572fad810177d52bf3376f73a47a70ea251ce60a198f4bb322e6e97691f23b1ebb78e29f4eb6f0a36093bd2c6cb558486841d569b601d11015 SHA512 ae09c3af8662fcf5fdc4e7c7dd298e91ec85e90272b8247ce4ee60c7d4ecd48a4cd294fc9e51c0b307fbb58c677e61e31527eab4085debcc9b40919af0920176 |
25 |
|
26 |
diff --git a/dev-java/log4j-core/log4j-core-2.17.2.ebuild b/dev-java/log4j-core/log4j-core-2.17.2.ebuild |
27 |
new file mode 100644 |
28 |
index 000000000000..9dcdcd2dc96a |
29 |
--- /dev/null |
30 |
+++ b/dev-java/log4j-core/log4j-core-2.17.2.ebuild |
31 |
@@ -0,0 +1,172 @@ |
32 |
+# Copyright 1999-2022 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+# Skeleton command: |
36 |
+# java-ebuilder --generate-ebuild --workdir . --pom log4j-core/pom.xml --download-uri mirror://apache/logging/log4j/2.17.2/apache-log4j-2.17.2-src.tar.gz --slot 2 --keywords "~amd64 ~arm ~arm64 ~ppc64 ~x86" --ebuild log4j-core-2.17.2.ebuild |
37 |
+ |
38 |
+EAPI=8 |
39 |
+ |
40 |
+JAVA_PKG_IUSE="doc source test" |
41 |
+MAVEN_ID="org.apache.logging.log4j:log4j-core:2.17.2" |
42 |
+# JAVA_TESTING_FRAMEWORKS="junit-vintage junit-jupiter" |
43 |
+ |
44 |
+inherit java-pkg-2 java-pkg-simple |
45 |
+ |
46 |
+DESCRIPTION="The Apache Log4j Implementation" |
47 |
+HOMEPAGE="https://logging.apache.org/log4j/2.x/" |
48 |
+SRC_URI="mirror://apache/logging/log4j/${PV}/apache-log4j-${PV}-src.tar.gz" |
49 |
+ |
50 |
+LICENSE="Apache-2.0" |
51 |
+SLOT="2" |
52 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" |
53 |
+ |
54 |
+# We don't have junit-vintage and junit-jupiter |
55 |
+RESTRICT="test" |
56 |
+ |
57 |
+# Common dependencies |
58 |
+# POM: ${PN}/pom.xml |
59 |
+# com.conversantmedia:disruptor:1.2.15 -> >=dev-java/conversant-disruptor-1.2.19:0 |
60 |
+# com.fasterxml.jackson.core:jackson-core:2.13.1 -> >=dev-java/jackson-core-2.13.2:0 |
61 |
+# com.fasterxml.jackson.core:jackson-databind:2.13.1 -> >=dev-java/jackson-databind-2.13.2:0 |
62 |
+# com.fasterxml.jackson.dataformat:jackson-dataformat-xml:2.13.1 -> >=dev-java/jackson-dataformat-xml-2.13.2:0 |
63 |
+# com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.13.1 -> >=dev-java/jackson-dataformat-yaml-2.13.2:0 |
64 |
+# com.fasterxml.woodstox:woodstox-core:6.2.8 -> >=dev-java/woodstox-core-6.2.8:0 |
65 |
+# com.lmax:disruptor:3.4.4 -> >=dev-java/lmax-disruptor-3.4.4:0 |
66 |
+# com.sun.mail:javax.mail:1.6.2 -> !!!suitable-mavenVersion-not-found!!! |
67 |
+# org.apache.commons:commons-compress:1.21 -> >=dev-java/commons-compress-1.21:0 |
68 |
+# org.apache.commons:commons-csv:1.9.0 -> >=dev-java/commons-csv-1.9.0:0 |
69 |
+# org.apache.kafka:kafka-clients:1.1.1 -> >=dev-java/kafka-clients-1.1.1:0 |
70 |
+# org.apache.logging.log4j:log4j-api:2.17.2 -> >=dev-java/log4j-api-2.17.2:2 |
71 |
+# org.fusesource.jansi:jansi:2.4.0 -> >=dev-java/jansi-2.4.0:2 |
72 |
+# org.jctools:jctools-core:1.2.1 -> >=dev-java/jctools-core-2.0.2:0 |
73 |
+# org.slf4j:slf4j-api:1.7.35 -> >=dev-java/slf4j-api-1.7.36:0 |
74 |
+# org.zeromq:jeromq:0.4.3 -> >=dev-java/jeromq-0.5.2:0 |
75 |
+ |
76 |
+CP_DEPEND=" |
77 |
+ dev-java/commons-compress:0 |
78 |
+ dev-java/commons-csv:0 |
79 |
+ dev-java/conversant-disruptor:0 |
80 |
+ dev-java/jackson-core:0 |
81 |
+ dev-java/jackson-databind:0 |
82 |
+ dev-java/jackson-dataformat-xml:0 |
83 |
+ dev-java/jackson-dataformat-yaml:0 |
84 |
+ dev-java/jakarta-activation-api:1 |
85 |
+ dev-java/jansi:2 |
86 |
+ dev-java/javax-mail:0 |
87 |
+ dev-java/jctools-core:0 |
88 |
+ dev-java/jeromq:0 |
89 |
+ dev-java/kafka-clients:0 |
90 |
+ dev-java/lmax-disruptor:0 |
91 |
+ ~dev-java/log4j-api-${PV}:2 |
92 |
+ dev-java/slf4j-api:0 |
93 |
+ dev-java/woodstox-core:0 |
94 |
+" |
95 |
+ |
96 |
+# Compile dependencies |
97 |
+# POM: ${PN}/pom.xml |
98 |
+# org.jboss.spec.javax.jms:jboss-jms-api_1.1_spec:1.0.1.Final -> >=dev-java/jboss-jms-api-1.0.1:1.1 |
99 |
+# org.osgi:org.osgi.core:4.3.1 -> >=dev-java/osgi-core-api-5.0.0:0 |
100 |
+# POM: ${PN}/pom.xml |
101 |
+# test? ch.qos.logback:logback-classic:1.2.3 -> !!!groupId-not-found!!! |
102 |
+# test? ch.qos.logback:logback-core:1.2.3 -> !!!groupId-not-found!!! |
103 |
+# test? com.github.tomakehurst:wiremock:2.26.3 -> !!!groupId-not-found!!! |
104 |
+# test? com.google.code.java-allocation-instrumenter:java-allocation-instrumenter:3.3.0 -> !!!groupId-not-found!!! |
105 |
+# test? com.h2database:h2:1.4.200 -> !!!groupId-not-found!!! |
106 |
+# test? commons-codec:commons-codec:1.15 -> >=dev-java/commons-codec-1.15:0 |
107 |
+# test? commons-io:commons-io:2.11.0 -> >=dev-java/commons-io-2.11.0:1 |
108 |
+# test? commons-logging:commons-logging:1.2 -> >=dev-java/commons-logging-1.2:0 |
109 |
+# test? log4j:log4j:1.2.17 -> >=dev-java/log4j-1.2.17:0 |
110 |
+# test? net.javacrumbs.json-unit:json-unit:2.32.0 -> !!!groupId-not-found!!! |
111 |
+# test? org.apache-extras.beanshell:bsh:2.0b6 -> >=dev-java/bsh-2.0_beta6:0 |
112 |
+# test? org.apache.activemq:activemq-broker:5.16.4 -> !!!groupId-not-found!!! |
113 |
+# test? org.apache.commons:commons-lang3:3.12.0 -> >=dev-java/commons-lang-3.12.0:3.6 |
114 |
+# test? org.apache.felix:org.apache.felix.framework:5.6.12 -> !!!groupId-not-found!!! |
115 |
+# test? org.apache.logging.log4j:log4j-api:2.17.2 -> >=dev-java/log4j-api-2.17.2:2 |
116 |
+# test? org.apache.maven:maven-core:3.8.4 -> !!!groupId-not-found!!! |
117 |
+# test? org.awaitility:awaitility:4.1.1 -> !!!groupId-not-found!!! |
118 |
+# test? org.codehaus.groovy:groovy-dateutil:3.0.9 -> !!!groupId-not-found!!! |
119 |
+# test? org.codehaus.groovy:groovy-jsr223:3.0.9 -> !!!groupId-not-found!!! |
120 |
+# test? org.codehaus.plexus:plexus-utils:3.4.1 -> !!!groupId-not-found!!! |
121 |
+# test? org.eclipse.tycho:org.eclipse.osgi:3.13.0.v20180226-1711 -> !!!groupId-not-found!!! |
122 |
+# test? org.hamcrest:hamcrest:2.2 -> !!!artifactId-not-found!!! |
123 |
+# test? org.hdrhistogram:HdrHistogram:2.1.12 -> !!!groupId-not-found!!! |
124 |
+# test? org.hsqldb:hsqldb:2.5.2 -> !!!groupId-not-found!!! |
125 |
+# test? org.jmdns:jmdns:3.5.7 -> !!!groupId-not-found!!! |
126 |
+# test? org.junit-pioneer:junit-pioneer:1.6.1 -> !!!groupId-not-found!!! |
127 |
+# test? org.junit.jupiter:junit-jupiter-engine:5.8.2 -> !!!groupId-not-found!!! |
128 |
+# test? org.junit.jupiter:junit-jupiter-params:5.8.2 -> !!!groupId-not-found!!! |
129 |
+# test? org.junit.platform:junit-platform-commons:1.8.2 -> !!!groupId-not-found!!! |
130 |
+# test? org.junit.vintage:junit-vintage-engine:5.8.2 -> !!!groupId-not-found!!! |
131 |
+# test? org.mockito:mockito-core:4.3.1 -> !!!suitable-mavenVersion-not-found!!! |
132 |
+# test? org.mockito:mockito-junit-jupiter:4.3.1 -> !!!artifactId-not-found!!! |
133 |
+# test? org.slf4j:slf4j-ext:1.7.35 -> >=dev-java/slf4j-ext-1.7.36:0 |
134 |
+# test? org.springframework:spring-test:5.3.15 -> !!!groupId-not-found!!! |
135 |
+# test? org.tukaani:xz:1.9 -> >=dev-java/xz-java-1.9:0 |
136 |
+# test? org.xmlunit:xmlunit-core:2.9.0 -> !!!groupId-not-found!!! |
137 |
+# test? org.xmlunit:xmlunit-matchers:2.9.0 -> !!!groupId-not-found!!! |
138 |
+# test? org.zapodot:embedded-ldap-junit:0.8.1 -> !!!groupId-not-found!!! |
139 |
+ |
140 |
+DEPEND="${CP_DEPEND} |
141 |
+ dev-java/jboss-jms-api:1.1 |
142 |
+ dev-java/osgi-core-api:0 |
143 |
+ >=virtual/jdk-1.8:*" |
144 |
+# test? ( |
145 |
+# !!!artifactId-not-found!!! |
146 |
+# !!!groupId-not-found!!! |
147 |
+# !!!suitable-mavenVersion-not-found!!! |
148 |
+# >=dev-java/bsh-2.0_beta6:0 |
149 |
+# >=dev-java/commons-codec-1.15:0 |
150 |
+# >=dev-java/commons-io-2.11.0:1 |
151 |
+# >=dev-java/commons-lang-3.12.0:3.6 |
152 |
+# >=dev-java/commons-logging-1.2:0 |
153 |
+# >=dev-java/log4j-1.2.17:0 |
154 |
+# ~dev-java/log4j-api-${PV}:2 |
155 |
+# >=dev-java/slf4j-ext-1.7.36:0 |
156 |
+# >=dev-java/xz-java-1.9:0 |
157 |
+# ) |
158 |
+#" |
159 |
+ |
160 |
+RDEPEND=" |
161 |
+ >=virtual/jre-1.8:* |
162 |
+ ${CP_DEPEND}" |
163 |
+ |
164 |
+DOCS=( {CONTRIBUTING,README,RELEASE-NOTES,SECURITY}.md ) |
165 |
+ |
166 |
+S="${WORKDIR}/apache-log4j-${PV}-src" |
167 |
+ |
168 |
+JAVA_CLASSPATH_EXTRA="jboss-jms-api-1.1,osgi-core-api" |
169 |
+JAVA_SRC_DIR="${PN}/src/main/java" |
170 |
+JAVA_RESOURCE_DIRS="${PN}/src/main/resources" |
171 |
+ |
172 |
+# JAVA_TEST_GENTOO_CLASSPATH="!!!groupId-not-found!!!,!!!groupId-not-found!!!,!!!groupId-not-found!!!,!!!groupId-not-found!!!,!!!groupId-not-found!!!,commons-codec,commons-io-1,commons-logging,log4j,!!!groupId-not-found!!!,bsh,!!!groupId-not-found!!!,commons-lang-3.6,!!!groupId-not-found!!!,log4j-api-2,!!!groupId-not-found!!!,!!!groupId-not-found!!!,!!!groupId-not-found!!!,!!!groupId-not-found!!!,!!!groupId-not-found!!!,!!!groupId-not-found!!!,!!!artifactId-not-found!!!,!!!groupId-not-found!!!,!!!groupId-not-found!!!,!!!groupId-not-found!!!,!!!groupId-not-found!!!,!!!groupId-not-found!!!,!!!groupId-not-found!!!,!!!suitable-mavenVersion-not-found!!!,!!!artifactId-not-found!!!,!!!artifactId-not-found!!!,!!!groupId-not-found!!!,xz-java,!!!groupId-not-found!!!,!!!groupId-not-found!!!,!!!groupId-not-found!!!" |
173 |
+# JAVA_TEST_SRC_DIR="${PN}/src/test/java" |
174 |
+# JAVA_TEST_RESOURCE_DIRS=( |
175 |
+# "${PN}/src/test/resources" |
176 |
+# ) |
177 |
+ |
178 |
+src_compile() { |
179 |
+ java-pkg-simple_src_compile |
180 |
+ |
181 |
+ # Process the @Plugin annotation used on Log4j 2 built-in plugins |
182 |
+ # to generate a serialized plugin listing file |
183 |
+ # https://logging.apache.org/log4j/2.x/manual/plugins.html |
184 |
+ local processor="org.apache.logging.log4j.core.config.plugins.processor.PluginProcessor" |
185 |
+ local classes="target/classes" |
186 |
+ local classpath="${JAVA_JAR_FILENAME}:$(\ |
187 |
+ java-pkg_getjars --build-only --with-dependencies \ |
188 |
+ "${JAVA_GENTOO_CLASSPATH},${JAVA_CLASSPATH_EXTRA}")" |
189 |
+ # Just in case java-pkg-simple.eclass changes the path in the future |
190 |
+ mkdir -p "${classes}" || die "Failed to create directory for classes" |
191 |
+ ejavac -d "${classes}" -cp "${classpath}" \ |
192 |
+ -proc:only -processor "${processor}" \ |
193 |
+ $(find "${JAVA_SRC_DIR}" -name "*.java") |
194 |
+ # Update the JAR to include the serialized plugin listing file |
195 |
+ local jar="$(java-config -j)" |
196 |
+ "${jar}" -uf "${JAVA_JAR_FILENAME}" -C "${classes}" . || |
197 |
+ die "Failed to update JAR" |
198 |
+} |
199 |
+ |
200 |
+src_install() { |
201 |
+ default # https://bugs.gentoo.org/789582 |
202 |
+ java-pkg-simple_src_install |
203 |
+} |