[MDEV-15083] MyRocks is not present in Ubuntu Artful Created: 2018-01-26  Updated: 2018-02-09  Resolved: 2018-02-09

Status: Closed
Project: MariaDB Server
Component/s: Packaging, Storage Engine - RocksDB
Affects Version/s: 10.2, 10.3
Fix Version/s: 10.2.14

Type: Bug Priority: Major
Reporter: Sergei Petrunia Assignee: Vicențiu Ciorbaru
Resolution: Fixed Votes: 0
Labels: None


 Description   

The release does not have MyRocks packages for Ubuntu Artful:

ftp://ftp.osuosl.org/pub/mariadb/mariadb-10.3.4/repo/ubuntu/pool/main/m/mariadb-10.3/
http://mirror.netcologne.de/mariadb/repo/10.2/ubuntu/pool/main/m/mariadb-10.2/

Reason found by dbart:

@elenst @spetrunia I think I see the issue, or at least, it's an issue that might explain it
debian/autobake-deb.sh and search for rocksdb
there's a line that converts the gcc version number to a "numberical" value
on xenial, for example, it takes gcc 5.4.0 and outputs 50400

on artful the version number is 7
the convoluted sed line outputs 7
that's less than 40800, so it takes rocksdb out of the debian/control file



 Comments   
Comment by Sergei Petrunia [ 2018-01-26 ]

gcc --dumpfullversion is not a solution:

psergey@psergey-desktop:~$ gcc -dumpversion
4.9.2
psergey@psergey-desktop:~$ gcc -dumpfullversion
gcc: fatal error: no input files
compilation terminated.

Comment by Sergei Petrunia [ 2018-01-26 ]

Another suggestion:

if [[ `gcc -dumpversion` < 7 ]]; then
    DUMPVERSION='-dumpversion'
else
    DUMPVERSION='-dumpfullversion'
fi
GCCVERSION=$(gcc ${DUMPVERSION} | sed -e 's/\.\([0-9][0-9]\)/\1/g' -e 's/\.\([0-9]\)/0\1/g' -e 's/^[0-9]\{3,4\}$/&00/')

Comment by Sergei Petrunia [ 2018-01-26 ]

CC: wlad, this also causes mariadb-plugin-aws-key-management plugin not to be built there.

Comment by Sergei Petrunia [ 2018-02-09 ]

Pushed cvicentiu's fix into main 10.2.
Looking at the latest build: http://hasky.askmonty.org/archive/10.2/build-18608/kvm-deb-artful-amd64/debs/binary/
It has mariadb-plugin-rocksdb_10.2.13+maria-artful_amd64.deb

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