Skip to content

Commit

Permalink
Merge pull request #2576 from cloudfoundry/pr_fix_mariadb_connector_u…
Browse files Browse the repository at this point in the history
…pgrade

Update mariadb connector packaging script to allow upgrades to 3.4
  • Loading branch information
beyhan authored Oct 17, 2024
2 parents 527d8ce + 397a530 commit b23a68c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion ci/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1368,7 +1368,7 @@ resources:
type: http-resource
source:
index: "https://mariadb.org/connector-c/all-releases/"
regex: '>(?P<version>3\.3.\d+)</a></td><td>\d{4}-\d{2}-\d{2}</td><td>Stable'
regex: '>(?P<version>3\.\d+.\d+)</a></td><td>\d{4}-\d{2}-\d{2}</td><td>Stable'
uri: "https://ftp.osuosl.org/pub/mariadb/connector-c-{version}/mariadb-connector-c-{version}-src.tar.gz"

- name: postgres-10-src
Expand Down
22 changes: 11 additions & 11 deletions packages/mysql/packaging
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# abort script on any command that exit with a non zero value
set -e

(
set -e
tar xzf mysql/mariadb-connector-c-*-src.tar.gz
cd mariadb-connector-c-*-src
mkdir bld
cd bld
cmake .. -DCMAKE_INSTALL_PREFIX=${BOSH_INSTALL_TARGET}
make
make install
)

mkdir -p ${BOSH_INSTALL_TARGET}/bin/
cp mysql-customization/mariadb_config-wrapper.sh ${BOSH_INSTALL_TARGET}/bin/

tar xzf mysql/mariadb-connector-c-*-src.tar.gz
cd mariadb-connector-c-*-src
cmake \
-DCMAKE_INSTALL_PREFIX=${BOSH_INSTALL_TARGET} \
-DDEFAULT_SSL_VERIFY_SERVER_CERT=0
# ^ Needed for mariadb-connector-c >3.4.0 due to changes in default TLS mode. May be removable if mysql2 gem gets updated: https://github.com/brianmario/mysql2/issues/1379

make
make install

0 comments on commit b23a68c

Please sign in to comment.