Skip to content

Commit 1fecc2b

Browse files
trostenfjssilva
authored andcommitted
Fix for Bug#94414 (29384853), Connector/J RPM package have version number in path.
Background: According to RPM package policy[1], jar files should not have version in filename. A unversioned filename makes it more simple to upgrade the package without doing other changes. Fix: Use %{name} RPM macro to name the jar file, giving wanted filename in all cases. Also fix build.xml to accept more generic output from java -version [1]: https://docs.fedoraproject.org/en-US/packaging-guidelines/Java/
1 parent f5d24e3 commit 1fecc2b

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

CHANGES

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33

44
Version 8.0.16
55

6+
- Fix for Bug#94414 (29384853), Connector/J RPM package have version number in path.
7+
68
- Fix for Bug#27786499, REDUNDANT FILES IN DEBIAN PACKAGE FOR DEBIAN9(COMMUNITY PACKAGE) FOR CJAVA.
79

810
- WL#12246, DevAPI: Prepared statement support.

build.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ See also com.mysql.cj.conf.PropertyDefinitions.SYSP_* variables for other test o
362362
<not>
363363
<and>
364364
<equals arg1="${com.mysql.cj.build.jdk.exitStatus}" arg2="0" />
365-
<contains string="${com.mysql.cj.build.jdk.version}" substring="java version &quot;1.8" casesensitive="true" />
365+
<contains string="${com.mysql.cj.build.jdk.version}" substring="version &quot;1.8" casesensitive="true" />
366366
</and>
367367
</not>
368368
</condition>

src/build/misc/rpm.spec.in

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
1+
# Copyright (c) 2017, 2019, Oracle and/or its affiliates. All rights reserved.
22
#
33
# This program is free software; you can redistribute it and/or modify it under
44
# the terms of the GNU General Public License, version 2.0, as published by the
@@ -166,7 +166,7 @@ cp %{with_docs}/en/txt/connector-j.txt package-content/docs/
166166

167167
%install
168168
install -d -m 0755 %{buildroot}%{_javadir}
169-
install -p -m 0644 package-content/@[email protected] %{buildroot}%{_javadir}/@MYSQL_CJ_FULL_PROD_NAME@.jar
169+
install -p -m 0644 package-content/@[email protected] %{buildroot}%{_javadir}/%{name}.jar
170170

171171
%clean
172172
rm -rf %{buildroot}
@@ -187,7 +187,7 @@ rm -rf %{buildroot}
187187
%doc package-content/docs/mvl.css
188188
%endif
189189

190-
%{_javadir}/@MYSQL_CJ_FULL_PROD_NAME@.jar
190+
%{_javadir}/%{name}.jar
191191

192192
%changelog
193193
* Mon Nov 27 2017 MySQL Release Engineering <[email protected]> - 8.0.9-1

0 commit comments

Comments
 (0)