[MCOL-71] Problem changing the MariaDB release version in Columnstore build Created: 2016-05-21  Updated: 2023-10-26  Resolved: 2016-07-13

Status: Closed
Project: MariaDB ColumnStore
Component/s: ?
Affects Version/s: 1.0.0
Fix Version/s: 1.0.2

Type: Bug Priority: Minor
Reporter: David Hill (Inactive) Assignee: David Hill (Inactive)
Resolution: Fixed Votes: 0
Labels: None


 Description   

I have changed the associated files to get the name of the package like I want, 1.0-0. But I haven't been able to figured out how to get the Version shown below by the rpm command to use 1.0-0 instead of 10.1.10. Have it with 10.1.10 requires that we use the force commands when we install the rpms at this point.

ALSO will there be an issue with trying to use 1.0-0 version as the MariaDB version. I have seen in the code checks for minimum version required, so will using 1.0-0 cause any problems.

Another issue to note: The correct release version is 1.0.0, instead of 1.0-1. But currently the InfiniDB code side builds with the '-'. Haven't worked out how to do the '.' instead, but this is something that probably will be addressed when we change our build process to work in the MariaDB environment. Right now, InfiniDB / Columnstore products have their own build environments based on how it was build at the previous company, InfiniDB.

rpm -qpi mariadb-columnstore-1.0-1-x86_64-centos6-server.rpm
Name : mariadb-columnstore-server Relocations: (not relocatable)
Version : 10.1.10 Vendor: MariaDB AB
Release : 1.el6 Build Date: Fri 20 May 2016 07:18:11 PM CDT
Install Date: (not installed) Build Host: srvbuilder
Group : Applications/Databases Source RPM: mariadb-columnstore-server-10.1.10-1.el6.src.rpm
Size : 300033094 License: GPLv2
Signature : (none)
URL : http://mariadb.org
Summary : MariaDB Columnstore: a very fast and robust SQL database server
Description :



 Comments   
Comment by Vladislav Vaintroub [ 2016-05-23 ]

How is the RPM built?

Comment by Vladislav Vaintroub [ 2016-05-23 ]

You can use -DCPACK_RPM_PACKAGE_VERSION=1.0-1 . It did not work for me exactly like that, because cpack would make
1.0_1 from 1.0-1
Perhaps the version you wish is not legal in RPM.

However, what's the reason to change default server versioning?

Comment by David Hill (Inactive) [ 2016-05-23 ]

A couple of issues:

Columnstore version is 1.0.0.

So when it installs mariadb packages it showed 10.1.10. So that is inconsistent.

Also when I install using rpm, I have to use the force command because it says it can't find the correct version for dependence packages. Like server needs clients

Comment by David Hill (Inactive) [ 2016-05-23 ]

This is the issue I'm trying to fix...

rw-rr-. 1 root root 12652744 May 22 20:03 mariadb-columnstore-1.0-0-x86_64-centos6-client.rpm
rw-rr-. 1 root root 24108 May 22 20:03 mariadb-columnstore-1.0-0-x86_64-centos6-common.rpm
rw-rr-. 1 root root 71516204 May 22 20:03 mariadb-columnstore-1.0-0-x86_64-centos6-server.rpm
rw-rr-. 1 root root 1316668 May 22 20:03 mariadb-columnstore-1.0-0-x86_64-centos6-shared.rpm
rw-rr-. 1 root root 4910684 May 22 20:03 mariadb-columnstore-enterprise-1.0-0.x86_64.rpm
rw-rr-. 1 root root 7135972 May 22 20:03 mariadb-columnstore-libs-1.0-0.x86_64.rpm
rw-rr-. 1 root root 3265624 May 22 20:03 mariadb-columnstore-platform-1.0-0.x86_64.rpm
rw-rr-. 1 root root 403504 May 22 20:03 mariadb-columnstore-storage-engine-1.0-0.x86_64.rpm

[root@srvregtest ~]# rpm ivh mariadb-columnstore*rpm
Preparing... ########################################### [100%]
file /usr/local/MariaDB/Columnstore/mysql/init.d/mysql from install of mariadb-columnstore-server-10.1.10-1.el6.x86_64 conflicts with file from package infinidb-mariadb-server-10.1.10-1.el6.x86_64

I can install now using the rpm -force option

Comment by David Hill (Inactive) [ 2016-05-24 ]

Ok, with the use of -DCPACK_RPM_PACKAGE_VERSION=1.0-1, we got closer. Put still same error during the install..

[root@srvss1 ~]# rpm -pqi mariadb-columnstore-1.0-0-x86_64-centos6-server.rpm
Name : mariadb-columnstore-server Relocations: (not relocatable)
Version : 1.0_1 Vendor: MariaDB AB
Release : 1.el6 Build Date: Mon 23 May 2016 07:27:30 PM CDT
Install Date: (not installed) Build Host: srvbuilder
Group : Applications/Databases Source RPM: mariadb-columnstore-server-1.0_1-1.el6.src.rpm
Size : 300033486 License: GPLv2
Signature : (none)
URL : http://mariadb.org
Summary : MariaDB Columnstore: a very fast and robust SQL database server
Description :

It is GPL v2 licensed, which means you can use the it free of charge under the
conditions of the GNU General Public License Version 2 (http://www.gnu.org/licenses/).

MariaDB documentation can be found at http://kb.askmonty.org/
MariaDB bug reports should be submitted through https://mariadb.atlassian.net/
[root@srvss1 ~]# rpm ivh mariadb-columnstore*rpm
Preparing... ########################################### [100%]
file /usr/local/MariaDB/Columnstore/mysql/my.cnf conflicts between attempted installs of mariadb-columnstore-storage-engine-1.0-0.x86_64 and mariadb-columnstore-common-1.0_1-1.el6.x86_64
[root@srvss1 ~]#

Still need to figure out how to get the 2 products in-sync with release version numbers.

Comment by David Hill (Inactive) [ 2016-05-24 ]

also this is flagging that the same file is being installed, working tocorrect that also hopefully trying to get the infinidb and mariadb package version and releases insync

file /usr/local/MariaDB/Columnstore/mysql/my.cnf conflicts between attempted installs of mariadb-columnstore-storage-engine-1.0-0.x86_64 and mariadb-columnstore-common-1.0_1-1.el6.x86_64

also tried -DCPACK_RPM_PACKAGE_VERSION=1.0 -DCPACK_RPM_PACKAGE_RELEASE=0

RELEASE option didn't take.. Still had 1.el6

Comment by David Hill (Inactive) [ 2016-05-24 ]

OK, I got it to where I can install all packages without using the 'force', sorry luke..
Will continue to see if I can get the release/version all in-sync.. But this is good..

rwxrr-. 1 root root 12652864 May 23 22:36 mariadb-columnstore-1.0-0-x86_64-centos6-client.rpm
rwxrr-. 1 root root 23728 May 23 22:36 mariadb-columnstore-1.0-0-x86_64-centos6-common.rpm
rwxrr-. 1 root root 71515172 May 23 22:36 mariadb-columnstore-1.0-0-x86_64-centos6-server.rpm
rwxrr-. 1 root root 1316644 May 23 22:36 mariadb-columnstore-1.0-0-x86_64-centos6-shared.rpm
rwxrr-. 1 root root 4910692 May 23 22:36 mariadb-columnstore-enterprise-1.0-0.x86_64.rpm
rwxrr-. 1 root root 7135968 May 23 22:36 mariadb-columnstore-libs-1.0-0.x86_64.rpm
rwxrr-. 1 root root 3265640 May 23 22:36 mariadb-columnstore-platform-1.0-0.x86_64.rpm
rwxrr-. 1 root root 403520 May 23 22:36 mariadb-columnstore-storage-engine-1.0-0.x86_64.rpm

rpm -pqi mariadb-columnstore-1.0-0-x86_64-centos6-server.rpm
Name : mariadb-columnstore-server Relocations: (not relocatable)
Version : 1.0 Vendor: MariaDB AB
Release : 1.el6 Build Date: Mon 23 May 2016 10:34:04 PM CDT

Comment by Dipti Joshi (Inactive) [ 2016-05-31 ]

hillIf this is fixed - please close this

Comment by David Hill (Inactive) [ 2016-05-31 ]

Not fixed, still shows 1.elf as the release version... Should be '0' or 0.elf.

[root@srvregtest ~]# rpm -qi mariadb-columnstore-server-1.0-1.el6.x86_64
Name : mariadb-columnstore-server Relocations: (not relocatable)
Version : 1.0 Vendor: MariaDB AB
Release : 1.el6 Build Date: Mon 30 May 2016 07:05:12 PM CDT
Install Date: Mon 30 May 2016 07:59:57 PM CDT Build Host: srvbuilder
Group : Applications/Databases Source RPM: mariadb-columnstore-server-1.0-1.el6.src.rpm
Size : 300212070 License: GPLv2
Signature : (none)
URL : http://mariadb.org
Summary : MariaDB Columnstore: a very fast and robust SQL database server
Description :

Comment by Dipti Joshi (Inactive) [ 2016-06-11 ]

hill Is this fixed now ?

Comment by David Hill (Inactive) [ 2016-07-13 ]

resolved, can now build with matching releasing numbers in server and engine rpms at 1.0.2-1

Generated at Thu Feb 08 02:18:17 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.