summaryrefslogtreecommitdiff
path: root/debian/autobake-deb.sh
diff options
context:
space:
mode:
authorOtto Kekäläinen <otto@mariadb.org>2018-04-01 12:30:50 +0300
committerOtto Kekäläinen <otto@mariadb.org>2018-04-04 22:43:45 +0300
commit30f692f0165ada010a70f96f49f491f5215c1ca5 (patch)
treec7c97c8f50df614eb63778cd6bb37a3547905020 /debian/autobake-deb.sh
parentc720a1f8b8d78bb991057e9989a692f590681451 (diff)
downloadmariadb-git-30f692f0165ada010a70f96f49f491f5215c1ca5.tar.gz
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 "/<<PKGBUILDDIR>>/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
Diffstat (limited to 'debian/autobake-deb.sh')
-rwxr-xr-xdebian/autobake-deb.sh25
1 files changed, 22 insertions, 3 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 <<EOF >> 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