1 |
commit: b806c8f21fafafef17643da079060f2d628bcc4d |
2 |
Author: Volkmar W. Pogatzki <gentoo <AT> pogatzki <DOT> net> |
3 |
AuthorDate: Sat Jul 30 19:58:05 2022 +0000 |
4 |
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jul 30 20:18:21 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b806c8f2 |
7 |
|
8 |
dev-java/jdbc-postgresql: drop 9.4_p1206-r1 |
9 |
|
10 |
Signed-off-by: Volkmar W. Pogatzki <gentoo <AT> pogatzki.net> |
11 |
Closes: https://github.com/gentoo/gentoo/pull/26670 |
12 |
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> |
13 |
|
14 |
dev-java/jdbc-postgresql/Manifest | 1 - |
15 |
.../jdbc-postgresql-9.4_p1201-remove-osgi.patch | 37 ------ |
16 |
.../jdbc-postgresql-9.4_p1204-remove-sspi.patch | 138 --------------------- |
17 |
.../jdbc-postgresql-9.4_p1206-r1.ebuild | 110 ---------------- |
18 |
4 files changed, 286 deletions(-) |
19 |
|
20 |
diff --git a/dev-java/jdbc-postgresql/Manifest b/dev-java/jdbc-postgresql/Manifest |
21 |
index bc169c1a1736..581a031b564b 100644 |
22 |
--- a/dev-java/jdbc-postgresql/Manifest |
23 |
+++ b/dev-java/jdbc-postgresql/Manifest |
24 |
@@ -1,2 +1 @@ |
25 |
DIST postgresql-jdbc-42.4.0.src.tar.gz 966868 BLAKE2B 0a8bffcfbba4ddedcbd77717b6bca2f4e7cd9fe4597c6edb5a2ac8fbea788c692377ae713723aa7342895f857aff7eca0825eedd36cff69f3760b11cbb7b666c SHA512 816967923f54d5c2ad856e3ae2612987fa52234acc6b487f492d56614ac241d9542abd40a1f868ad6d895a45de28f7a0d586f8486dc719600238bcc3ef40819a |
26 |
-DIST postgresql-jdbc-9.4-1206.src.tar.gz 2029837 BLAKE2B b222a0b2f8f99becaf0ae350407fafeb23d9d4bdb130c17996373b4211e0d56d1a76bc5737401dc6fc6618d2a891943d096b0f60f0770ff6ce859ade3e7a178d SHA512 b16816f1afd3ee5986fca197bd7608c2e2f334054e41a8c541c47985827f4f59d7691d23983bdac01c85fc364cd001c991ac6b4e8567429b9d1f4161388dd6bd |
27 |
|
28 |
diff --git a/dev-java/jdbc-postgresql/files/jdbc-postgresql-9.4_p1201-remove-osgi.patch b/dev-java/jdbc-postgresql/files/jdbc-postgresql-9.4_p1201-remove-osgi.patch |
29 |
deleted file mode 100644 |
30 |
index 15b1860d2aa7..000000000000 |
31 |
--- a/dev-java/jdbc-postgresql/files/jdbc-postgresql-9.4_p1201-remove-osgi.patch |
32 |
+++ /dev/null |
33 |
@@ -1,37 +0,0 @@ |
34 |
---- a/build.xml 2015-02-18 17:44:58.000000000 +0100 |
35 |
-+++ b/build.xml 2015-03-23 02:19:03.951945663 +0100 |
36 |
-@@ -403,34 +403,6 @@ |
37 |
- <attribute name="Implementation-Vendor" value="PostgreSQL Global Development Group" /> |
38 |
- </manifest> |
39 |
- </jar> |
40 |
-- |
41 |
-- <!-- add OSGi meta information --> |
42 |
-- <property name="osgidir" value="${builddir}/osgi"/> |
43 |
-- <mkdir dir="${osgidir}"/> |
44 |
-- |
45 |
-- <!-- create a bnd file named after the JAR file so that bnd wrap tool find it --> |
46 |
-- <echo file="${osgidir}/${artifact.version.string}.bnd"> |
47 |
--Bundle-ManifestVersion: 2 |
48 |
-- |
49 |
--Bundle-Name: PostgreSQL JDBC Driver ${jdbc.version.upper} |
50 |
--Bundle-SymbolicName: org.postgresql.${jdbc.version} |
51 |
--Bundle-Version: ${osgi.version} |
52 |
-- |
53 |
--Bundle-Vendor: PostgreSQL Global Development Group |
54 |
--Bundle-Copyright: Copyright (c) 2003-2015, PostgreSQL Global Development Group |
55 |
--Bundle-License: http://www.postgresql.org/about/licence/ |
56 |
--Bundle-DocURL: http://jdbc.postgresql.org/ |
57 |
-- |
58 |
--Bundle-Classpath: . |
59 |
--Bundle-Activator: org.postgresql.osgi.PGBundleActivator |
60 |
--Require-Capability: osgi.ee;filter:="(&(|(osgi.ee=J2SE)(osgi.ee=JavaSE))(version>=${java.specification.version}))" |
61 |
--Export-Package: org.postgresql*; version=${fullversion} |
62 |
--Import-Package: javax.sql, javax.transaction.xa, javax.naming, *;resolution:=optional |
63 |
-- </echo> |
64 |
-- |
65 |
-- <!-- run wrap task from bnd --> |
66 |
-- <taskdef resource="aQute/bnd/ant/taskdef.properties" classpathref="dependency.build.classpath"/> |
67 |
-- <bndwrap jars="${artifact.jar.build}" output="${artifact.jar}" definitions="${osgidir}"/> |
68 |
- </target> |
69 |
- |
70 |
- <!-- create a distribution with docs, dependencies, and driver jar --> |
71 |
|
72 |
diff --git a/dev-java/jdbc-postgresql/files/jdbc-postgresql-9.4_p1204-remove-sspi.patch b/dev-java/jdbc-postgresql/files/jdbc-postgresql-9.4_p1204-remove-sspi.patch |
73 |
deleted file mode 100644 |
74 |
index 16996892b192..000000000000 |
75 |
--- a/dev-java/jdbc-postgresql/files/jdbc-postgresql-9.4_p1204-remove-sspi.patch |
76 |
+++ /dev/null |
77 |
@@ -1,138 +0,0 @@ |
78 |
---- a/org/postgresql/core/v3/ConnectionFactoryImpl.java 2015-10-09 20:55:53.000000000 +0200 |
79 |
-+++ b/org/postgresql/core/v3/ConnectionFactoryImpl.java 2015-10-14 20:42:48.816753341 +0200 |
80 |
-@@ -32,7 +32,6 @@ |
81 |
- import org.postgresql.hostchooser.HostChooserFactory; |
82 |
- import org.postgresql.hostchooser.HostRequirement; |
83 |
- import org.postgresql.hostchooser.HostStatus; |
84 |
--import org.postgresql.sspi.SSPIClient; |
85 |
- import org.postgresql.util.GT; |
86 |
- import org.postgresql.util.HostSpec; |
87 |
- import org.postgresql.util.MD5Digest; |
88 |
-@@ -394,11 +393,7 @@ |
89 |
- // or an authentication request |
90 |
- |
91 |
- String password = PGProperty.PASSWORD.get(info); |
92 |
-- |
93 |
-- /* SSPI negotiation state, if used */ |
94 |
-- SSPIClient sspiClient = null; |
95 |
- |
96 |
-- try { |
97 |
- authloop: |
98 |
- while (true) |
99 |
- { |
100 |
-@@ -514,88 +509,16 @@ |
101 |
- case AUTH_REQ_SSPI: |
102 |
- /* |
103 |
- * Use GSSAPI if requested on all platforms, via JSSE. |
104 |
-- * |
105 |
-- * For SSPI auth requests, if we're on Windows attempt native SSPI |
106 |
-- * authentication if available, and if not disabled by setting a |
107 |
-- * kerberosServerName. On other platforms, attempt JSSE GSSAPI |
108 |
-- * negotiation with the SSPI server. |
109 |
-- * |
110 |
-- * Note that this is slightly different to libpq, which uses SSPI |
111 |
-- * for GSSAPI where supported. We prefer to use the existing Java |
112 |
-- * JSSE Kerberos support rather than going to native (via JNA) calls |
113 |
-- * where possible, so that JSSE system properties etc continue |
114 |
-- * to work normally. |
115 |
-- * |
116 |
-- * Note that while SSPI is often Kerberos-based there's no guarantee |
117 |
-- * it will be; it may be NTLM or anything else. If the client responds |
118 |
-- * to an SSPI request via GSSAPI and the other end isn't using Kerberos |
119 |
-- * for SSPI then authentication will fail. |
120 |
- */ |
121 |
-- final String gsslib = PGProperty.GSS_LIB.get(info); |
122 |
-- final boolean usespnego = PGProperty.USE_SPNEGO.getBoolean(info); |
123 |
-- |
124 |
-- boolean useSSPI = false; |
125 |
-+ org.postgresql.gss.MakeGSS.authenticate(pgStream, host, |
126 |
-+ user, password, |
127 |
-+ PGProperty.JAAS_APPLICATION_NAME.get(info), |
128 |
-+ PGProperty.KERBEROS_SERVER_NAME.get(info), |
129 |
-+ logger, |
130 |
-+ PGProperty.USE_SPNEGO.getBoolean(info)); |
131 |
-+ |
132 |
-+ break; |
133 |
- |
134 |
-- /* |
135 |
-- * Use SSPI if we're in auto mode on windows and have a |
136 |
-- * request for SSPI auth, or if it's forced. Otherwise |
137 |
-- * use gssapi. If the user has specified a Kerberos server |
138 |
-- * name we'll always use JSSE GSSAPI. |
139 |
-- */ |
140 |
-- if (gsslib.equals("gssapi")) |
141 |
-- logger.debug("Using JSSE GSSAPI, param gsslib=gssapi"); |
142 |
-- else if (areq == AUTH_REQ_GSS && !gsslib.equals("sspi")) |
143 |
-- logger.debug("Using JSSE GSSAPI, gssapi requested by server and gsslib=sspi not forced"); |
144 |
-- else |
145 |
-- { |
146 |
-- /* Determine if SSPI is supported by the client */ |
147 |
-- sspiClient = new SSPIClient(pgStream, |
148 |
-- PGProperty.SSPI_SERVICE_CLASS.get(info), |
149 |
-- /* Use negotiation for SSPI, or if explicitly requested for GSS */ |
150 |
-- areq == AUTH_REQ_SSPI || (areq == AUTH_REQ_GSS && usespnego), |
151 |
-- logger); |
152 |
-- |
153 |
-- useSSPI = sspiClient.isSSPISupported(); |
154 |
-- logger.debug("SSPI support detected: " + useSSPI); |
155 |
-- |
156 |
-- if (!useSSPI) { |
157 |
-- /* No need to dispose() if no SSPI used */ |
158 |
-- sspiClient = null; |
159 |
-- |
160 |
-- if (gsslib.equals("sspi")) |
161 |
-- throw new PSQLException("SSPI forced with gsslib=sspi, but SSPI not available; set loglevel=2 for details", |
162 |
-- PSQLState.CONNECTION_UNABLE_TO_CONNECT); |
163 |
-- } |
164 |
-- |
165 |
-- logger.debug("Using SSPI: " + useSSPI + ", gsslib="+gsslib+" and SSPI support detected"); |
166 |
-- } |
167 |
-- |
168 |
-- if (useSSPI) |
169 |
-- { |
170 |
-- /* SSPI requested and detected as available */ |
171 |
-- sspiClient.startSSPI(); |
172 |
-- } |
173 |
-- else |
174 |
-- { |
175 |
-- /* Use JGSS's GSSAPI for this request */ |
176 |
-- org.postgresql.gss.MakeGSS.authenticate(pgStream, host, |
177 |
-- user, password, |
178 |
-- PGProperty.JAAS_APPLICATION_NAME.get(info), |
179 |
-- PGProperty.KERBEROS_SERVER_NAME.get(info), |
180 |
-- logger, |
181 |
-- usespnego); |
182 |
-- } |
183 |
-- |
184 |
-- break; |
185 |
-- |
186 |
-- case AUTH_REQ_GSS_CONTINUE: |
187 |
-- /* |
188 |
-- * Only called for SSPI, as GSS is handled by an inner loop |
189 |
-- * in MakeGSS. |
190 |
-- */ |
191 |
-- sspiClient.continueSSPI(l_msgLen - 8); |
192 |
-- break; |
193 |
-- |
194 |
- case AUTH_REQ_OK: |
195 |
- /* Cleanup after successful authentication */ |
196 |
- if (logger.logDebug()) |
197 |
-@@ -616,18 +539,6 @@ |
198 |
- throw new PSQLException(GT.tr("Protocol error. Session setup failed."), PSQLState.PROTOCOL_VIOLATION); |
199 |
- } |
200 |
- } |
201 |
-- } finally { |
202 |
-- /* Cleanup after successful or failed authentication attempts */ |
203 |
-- if (sspiClient != null) |
204 |
-- { |
205 |
-- try { |
206 |
-- sspiClient.dispose(); |
207 |
-- } catch (RuntimeException ex) { |
208 |
-- logger.log("Unexpected error during SSPI context disposal", ex); |
209 |
-- } |
210 |
-- |
211 |
-- } |
212 |
-- } |
213 |
- |
214 |
- } |
215 |
- |
216 |
|
217 |
diff --git a/dev-java/jdbc-postgresql/jdbc-postgresql-9.4_p1206-r1.ebuild b/dev-java/jdbc-postgresql/jdbc-postgresql-9.4_p1206-r1.ebuild |
218 |
deleted file mode 100644 |
219 |
index b5bfb41864b6..000000000000 |
220 |
--- a/dev-java/jdbc-postgresql/jdbc-postgresql-9.4_p1206-r1.ebuild |
221 |
+++ /dev/null |
222 |
@@ -1,110 +0,0 @@ |
223 |
-# Copyright 1999-2021 Gentoo Authors |
224 |
-# Distributed under the terms of the GNU General Public License v2 |
225 |
- |
226 |
-EAPI=7 |
227 |
- |
228 |
-JAVA_PKG_IUSE="doc source" |
229 |
- |
230 |
-inherit java-pkg-2 java-ant-2 |
231 |
- |
232 |
-MY_PN="postgresql-jdbc" |
233 |
-MY_PV="${PV/_p/-}" |
234 |
-MY_P="${MY_PN}-${MY_PV}.src" |
235 |
- |
236 |
-DESCRIPTION="JDBC Driver for PostgreSQL" |
237 |
-SRC_URI="https://jdbc.postgresql.org/download/${MY_P}.tar.gz" |
238 |
-HOMEPAGE="https://jdbc.postgresql.org/" |
239 |
- |
240 |
-LICENSE="POSTGRESQL" |
241 |
-SLOT="0" |
242 |
-KEYWORDS="amd64 ppc64 x86" |
243 |
-IUSE="test" |
244 |
- |
245 |
-# it does not compile with jdk 11, newer versions should be fine |
246 |
-# BUILD FAILED |
247 |
-# /var/tmp/portage/dev-java/jdbc-postgresql-9.4_p1206-r1/work/postgresql-jdbc-9.4-1206.src/build.xml:197: Unknown JDK version. |
248 |
-DEPEND=" |
249 |
- virtual/jdk:1.8 |
250 |
- doc? ( |
251 |
- dev-libs/libxslt |
252 |
- app-text/docbook-xsl-stylesheets |
253 |
- ) |
254 |
- test? ( |
255 |
- dev-db/postgresql[server] |
256 |
- dev-java/ant-junit:0 |
257 |
- dev-java/hamcrest-core:1.3 |
258 |
- dev-java/junit:4 |
259 |
- dev-java/xml-commons-resolver:0 |
260 |
- )" |
261 |
-RDEPEND=">=virtual/jre-1.8:*" |
262 |
- |
263 |
-RESTRICT="test" # Requires external postgresql server setup |
264 |
- |
265 |
-S="${WORKDIR}/postgresql-jdbc-${MY_PV}.src" |
266 |
- |
267 |
-HTML_DOCS=( build/doc/pgjdbc.html ) |
268 |
- |
269 |
-JAVA_ANT_REWRITE_CLASSPATH="yes" |
270 |
-EANT_DOC_TARGET="publicapi" |
271 |
- |
272 |
-src_prepare() { |
273 |
- default |
274 |
- |
275 |
- # Strip build.xml of maven deps |
276 |
- sed -i -e '/<classpath.*dependency\.compile\.classpath/c\' build.xml || die |
277 |
- sed -i -e '/<classpath.*dependency\.runtime\.classpath/c\' build.xml || die |
278 |
- sed -i -e '/<classpath.*dependency\.test\.classpath/c\' build.xml || die |
279 |
- sed -i -e '/<target name="artifact-version"/,/<[/]target>/{s/depends="maven-dependencies"//}' build.xml || die |
280 |
- sed -i -e '/<target name="compile"/ s/,maven-dependencies//' build.xml || die |
281 |
- |
282 |
- # Remove SSPI, it pulls in Waffle-JNA and is only used on Windows |
283 |
- sed -i -e '/<include.*sspi/c\' build.xml || die |
284 |
- rm -vrf org/postgresql/sspi || die "Error removing sspi" |
285 |
- eapply "${FILESDIR}"/${PN}-9.4_p1204-remove-sspi.patch |
286 |
- |
287 |
- # FIXME @someone who cares: enable through osgi flag? |
288 |
- sed -i -e '/<include.*osgi/c\' build.xml || die |
289 |
- sed -i -e '/<test.*osgi/c\' build.xml || die |
290 |
- rm -vrf org/postgresql/osgi || die "Error removing osgi" |
291 |
- rm -vrf org/postgresql/test/osgi || die "Error removing osgi tests" |
292 |
- eapply "${FILESDIR}"/${PN}-9.4_p1201-remove-osgi.patch |
293 |
- |
294 |
- java-pkg_clean |
295 |
-} |
296 |
- |
297 |
-src_compile() { |
298 |
- EANT_BUILD_TARGET="release-version jar" |
299 |
- java-pkg-2_src_compile |
300 |
- |
301 |
- # There is a task that creates this doc but I didn't find a way how to use system catalog |
302 |
- # to lookup the stylesheet so the 'doc' target is rewritten here to use system call instead. |
303 |
- if use doc; then |
304 |
- mkdir -p "${S}/build/doc" || die |
305 |
- xsltproc -o "${S}/build/doc/pgjdbc.html" http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl \ |
306 |
- "${S}/doc/pgjdbc.xml" || die |
307 |
- fi |
308 |
-} |
309 |
- |
310 |
-src_test() { |
311 |
- einfo "In order to run the tests successfully, you have to have:" |
312 |
- einfo "1) PostgreSQL server running" |
313 |
- einfo "2) database 'test' defined with user 'test' with password 'test'" |
314 |
- einfo " as owner of the database" |
315 |
- einfo "3) plpgsql support in the 'test' database" |
316 |
- einfo |
317 |
- einfo "You can find a general info on how to perform these steps at" |
318 |
- einfo "https://wiki.gentoo.org/wiki/PostgreSQL" |
319 |
- |
320 |
- ANT_TASKS="ant-junit" eant test -Dgentoo.classpath=$(java-pkg_getjars --build-only "hamcrest-core-1.3,junit-4,xml-commons-resolver") |
321 |
-} |
322 |
- |
323 |
-src_install() { |
324 |
- java-pkg_newjar build/jars/postgresql*.jar jdbc-postgresql.jar |
325 |
- |
326 |
- if use doc ; then |
327 |
- java-pkg_dojavadoc build/publicapi |
328 |
- einstalldocs |
329 |
- fi |
330 |
- |
331 |
- use source && java-pkg_dosrc org |
332 |
-} |