From 30f692f0165ada010a70f96f49f491f5215c1ca5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Otto=20Kek=C3=A4l=C3=A4inen?= Date: Sun, 1 Apr 2018 12:30:50 +0300 Subject: Deb: Make AWS key management plugin a special plugin not in Linux distros It will only build if there is network access, which is a strict no-go for Linux distributions. Thus the AWS plugin needs to be a custom built only special plugin that is not built as part of the normal sources. This fixes the build error in e.g. Launchpad: Performing download step (git clone) for 'aws_sdk_cpp' cd "/<>/builddir/plugin/aws_key_management" && /usr/bin/cmake .. Cloning into 'aws-sdk-cpp'... fatal: unable to access 'https://github.com/awslabs/aws-sdk-cpp.git/': Could not resolve host: github.com --- debian/autobake-deb.sh | 25 ++++++++++++++++++++++--- debian/control | 15 --------------- 2 files changed, 22 insertions(+), 18 deletions(-) diff --git a/debian/autobake-deb.sh b/debian/autobake-deb.sh index 078bcba65a8..f72e1136d83 100755 --- a/debian/autobake-deb.sh +++ b/debian/autobake-deb.sh @@ -86,11 +86,30 @@ then sed '/Package: mariadb-plugin-rocksdb/,+14d' -i debian/control fi -# AWS SDK requires c++11 -capable compiler +# AWS SDK requires c++11 -capable compiler. # Minimal supported versions are g++ 4.8 and clang 3.3. -if [[ $GCCVERSION -lt 40800 ]] || [[ $TRAVIS ]] +# AWS SDK also requires the build machine to have network access and git, so +# it cannot be part of the base version included in Linux distros, but a pure +# custom built plugin. +if [[ $GCCVERSION -gt 40800 ]] && [[ ! $TRAVIS ]] && ping -c 1 github.com then - sed '/Package: mariadb-plugin-aws-key-management/,+14d' -i debian/control + cat <> debian/control + +Package: mariadb-plugin-aws-key-management +Architecture: any +Breaks: mariadb-aws-key-management-10.1, + mariadb-aws-key-management-10.2 +Replaces: mariadb-aws-key-management-10.1, + mariadb-aws-key-management-10.2 +Depends: libcurl3, + mariadb-server-10.3, + \${misc:Depends}, + \${shlibs:Depends} +Description: Amazon Web Service Key Management Service Plugin for MariaDB + This encryption key management plugin gives an interface to the Amazon Web + Services Key Management Service for managing encryption keys used for MariaDB + data-at-rest encryption. +EOF fi # Mroonga, TokuDB never built on Travis CI anyway, see build flags above diff --git a/debian/control b/debian/control index 1ac448079a2..8b6ef727da0 100644 --- a/debian/control +++ b/debian/control @@ -694,21 +694,6 @@ Description: CrackLib Password Validation Plugin for MariaDB This password validation plugin uses cracklib to allow only sufficiently secure (as defined by cracklib) user passwords in MariaDB. -Package: mariadb-plugin-aws-key-management -Architecture: any -Breaks: mariadb-aws-key-management-10.1, - mariadb-aws-key-management-10.2 -Replaces: mariadb-aws-key-management-10.1, - mariadb-aws-key-management-10.2 -Depends: libcurl3, - mariadb-server-10.3, - ${misc:Depends}, - ${shlibs:Depends} -Description: Amazon Web Service Key Management Service Plugin for MariaDB - This encryption key management plugin gives an interface to the Amazon Web - Services Key Management Service for managing encryption keys used for MariaDB - data-at-rest encryption. - Package: mariadb-test Architecture: any Depends: mariadb-client-10.3 (= ${binary:Version}), -- cgit v1.2.1