Commit 321f5d9d authored by Vicențiu Ciorbaru's avatar Vicențiu Ciorbaru

Fix debian architecture parsing

parent 788382f7
...@@ -77,7 +77,7 @@ fi ...@@ -77,7 +77,7 @@ 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/') 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/')
# Don't build rocksdb package if gcc version is less than 4.8 or we are running on # Don't build rocksdb package if gcc version is less than 4.8 or we are running on
# x86 32 bit. # x86 32 bit.
if [ $GCCVERSION -lt 40800 ] || [ $(uname -i) -eq "i386" ] || [$(uname -i) -eq "i486"] if [[ $GCCVERSION -lt 40800 ]] || [[ $(arch) =~ i[346]86 ]]
then then
sed '/Package: mariadb-plugin-rocksdb/,+7d' -i debian/control sed '/Package: mariadb-plugin-rocksdb/,+7d' -i debian/control
fi fi
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment