Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package mysql-connector-java for
openSUSE:Factory checked in at 2023-02-11 21:55:50
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/mysql-connector-java (Old)
and /work/SRC/openSUSE:Factory/.mysql-connector-java.new.1848 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "mysql-connector-java"
Sat Feb 11 21:55:50 2023 rev:41 rq:1064176 version:8.0.32
Changes:
--------
---
/work/SRC/openSUSE:Factory/mysql-connector-java/mysql-connector-java.changes
2023-01-28 20:00:46.335596162 +0100
+++
/work/SRC/openSUSE:Factory/.mysql-connector-java.new.1848/mysql-connector-java.changes
2023-02-11 21:55:54.099091444 +0100
@@ -1,0 +2,7 @@
+Fri Jan 27 16:38:41 UTC 2023 - David Anes <[email protected]>
+
+- Ship protobuf 3.9.2 compatible generated files to support
+ older distro versions.
+ - Added file mysql-connector-java-generated-for-protobuf-3.9.2.tar.xz
+
+-------------------------------------------------------------------
New:
----
mysql-connector-java-generated-for-protobuf-3.9.2.tar.xz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ mysql-connector-java.spec ++++++
--- /var/tmp/diff_new_pack.GDhSrL/_old 2023-02-11 21:55:55.123097819 +0100
+++ /var/tmp/diff_new_pack.GDhSrL/_new 2023-02-11 21:55:55.127097844 +0100
@@ -25,6 +25,13 @@
License: GPL-2.0-or-later
URL: https://dev.mysql.com/downloads/connector/j/
Source0:
https://github.com/mysql/mysql-connector-j/archive/refs/tags/%{version}.tar.gz#:/%{name}-%{version}.tar.gz
+# NOTE:
+# the following file contains the generated protobuf files with
+# previous versions of protoc (protobuf) that are needed to build
+# in previous SUSE distros.
+# Source from:
+#
https://github.com/mysql/mysql-connector-j/commit/6976d9d779b498c254fc5cab5e69cfc74fc3e4f0
+Source1: mysql-connector-java-generated-for-protobuf-3.9.2.tar.xz
Group: Development/Languages/Java
Patch0: javac-check.patch
# NOTE: Oracle OCI is not packaged yet
@@ -70,6 +77,15 @@
%patch0 -p1
%patch1 -p1
+%if 0%{?suse_version} <= 1500 && 0%{?sle_version} <= 150200
+# ship protobuf generated files compatible with protobuf 3.9.2
+# which is the version we have in SLE15 SP2, the files were taken
+# from commit 6976d9d779b498c254fc5cab5e69cfc74fc3e4f0, which is
+# the last version compatible with that version of protobuf and
+# are equivalent in functionality
+tar -xvf %SOURCE1 -C .
+%endif
+
# remove OCI support
rm -rf
src/main/protocol-impl/java/com/mysql/cj/protocol/a/authentication/AuthenticationOciClient.java