Build: Only set the gppkg version to lower case
diff --git a/deploy/gppkg/gppkg_spec.yml.in b/deploy/gppkg/gppkg_spec.yml.in
index 33ea2f4..17dfb5b 100644
--- a/deploy/gppkg/gppkg_spec.yml.in
+++ b/deploy/gppkg/gppkg_spec.yml.in
@@ -1,8 +1,8 @@
Pkgname: madlib
Architecture: @CPACK_RPM_PACKAGE_ARCHITECTURE@
-Version: ossv@MADLIB_VERSION_STRING@_pv@MADLIB_GPPKG_VERSION@_@GPDB_VARIANT_SHORT@@GPDB_VERSION@
+Version: ossv@MADLIB_VERSION_STRING@_pv@MADLIB_GPPKG_VERSION@_@GPDB_VARIANT_SHORT@@GPDB_VERSION_LC@
OS: rhel5
-GPDBVersion: @GPDB_VERSION@
+GPDBVersion: @GPDB_VERSION_LC@
Description: Madlib is an open source library which provides scalable in-database analytics. It provides data-parallel implementations of mathematical, statistical and machine learning methods for structured and unstructured data.
PostInstall:
- Master: "echo 'Please run the following command to deploy MADlib';
diff --git a/src/ports/greenplum/cmake/GreenplumUtils.cmake b/src/ports/greenplum/cmake/GreenplumUtils.cmake
index 2b736a8..6ce3d52 100644
--- a/src/ports/greenplum/cmake/GreenplumUtils.cmake
+++ b/src/ports/greenplum/cmake/GreenplumUtils.cmake
@@ -13,8 +13,8 @@
set(${OUT_FEATURES} "${${OUT_FEATURES}}" PARENT_SCOPE)
endfunction(define_greenplum_features)
-function(add_gppkg GPDB_VERSION_UC GPDB_VARIANT GPDB_VARIANT_SHORT UPGRADE_SUPPORT)
- string(TOLOWER ${GPDB_VERSION_UC} GPDB_VERSION)
+function(add_gppkg GPDB_VERSION GPDB_VARIANT GPDB_VARIANT_SHORT UPGRADE_SUPPORT)
+ string(TOLOWER ${GPDB_VERSION} GPDB_VERSION_LC)
string(REPLACE "." "_" VERSION_ "${GPDB_VERSION}")
file(WRITE "${CMAKE_BINARY_DIR}/deploy/gppkg/${GPDB_VARIANT}_${VERSION_}_gppkg.cmake" "
@@ -26,6 +26,7 @@
)
set(GPDB_VERSION \"${GPDB_VERSION}\")
+ set(GPDB_VERSION_LC \"${GPDB_VERSION_LC}\")
set(GPDB_VARIANT \"${GPDB_VARIANT}\")
set(GPDB_VARIANT_SHORT \"${GPDB_VARIANT_SHORT}\")
set(UPGRADE_SUPPORT \"${UPGRADE_SUPPORT}\")