Skip to content

Commit 40fa681

Browse files
committed
ET#67376 [Connctor/C++] Fix the build-date in the INFO_BIN in Fedora packages
Updated the spec file to override the default value of epoch date from the macros. Removed the unsetting the SOURCE_DATE_EPOCH env variable in cmake.
1 parent 938d766 commit 40fa681

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

buildinfo.cmake

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ FUNCTION(GENERATE_INFO_BIN)
3636
ENDIF()
3737

3838
MESSAGE("Generating INFO_BIN")
39-
UNSET(ENV{SOURCE_DATE_EPOCH})
4039
string(TIMESTAMP INFO_DATE "%Y-%m-%d")
4140

4241
IF (CMAKE_BUILD_TYPE)

packaging/mysql-connector-c++.spec.in

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@
4848
%global dist .sl15
4949
%endif
5050

51+
%global source_date_epoch_from_changelog 0
52+
5153
Summary: MySQL database connector for C++
5254
Name: mysql-connector-c++%{?product_suffix}
5355
Version: @CONCPP_VERSION@
@@ -222,6 +224,9 @@ rm %{buildroot}/usr/{INFO_SRC,INFO_BIN}
222224
%endif
223225

224226
%changelog
227+
* Thu Jun 04 2020 Gipson Pulla <[email protected]> - 8.0.21-1
228+
- Updated the macro to use the system date
229+
225230
* Fri Feb 15 2019 Bjorn Munch <[email protected]> - 8.0.16-1
226231
- CMake 3 should not be used on Fedora, only on Oracle Linux or Red Hat
227232
- Removed use of cmake_path as it is no longer needed

0 commit comments

Comments
 (0)