Skip to content

Commit

Permalink
Set LTO to thin. Fixes #2531. [ci full]
Browse files Browse the repository at this point in the history
Build with SQL Cipher 4.3.0 with NSS backend

Build with SQL Cipher 4.3.0
  • Loading branch information
Thom Chiovoloni authored and dp-mason committed Feb 29, 2020
1 parent 8b716c3 commit f1c3678
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 18 deletions.
20 changes: 20 additions & 0 deletions CHANGES_UNRELEASED.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,24 @@

# Unreleased Changes

<<<<<<< HEAD
[Full Changelog](https://github.com/mozilla/application-services/compare/v0.53.0...master)
=======
[Full Changelog](https://github.com/mozilla/application-services/compare/v0.52.0...master)

## FxA Client

### What's changed

- The `ensureCapabilities` method will not perform any network requests if the
given capabilities are already registered with the server.
([#2681](https://github.com/mozilla/application-services/pull/2681)).

## Libs

### What's changed

- The project now builds with version 4.3.0 of SQL Cipher instead of a fork
of version 4.2.0. Newest version has NSS crypto backend.
([Issue #1386](https://github.com/mozilla/application-services/issues/1386)).
>>>>>>> Set LTO to thin. Fixes #2531. [ci full]
32 changes: 14 additions & 18 deletions libs/build-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

set -euvx

# SQLCIPHER_VERSION="4.1.0"
# SQLCIPHER_SHA256="65144ca3ba4c0f9cd4bae8c20bb42f2b84424bf29d1ebcf04c44a728903b1faa"
SQLCIPHER_VERSION="4.3.0"
SQLCIPHER_SHA256="fccb37e440ada898902b294d02cde7af9e8706b185d77ed9f6f4d5b18b4c305f"

NSS="nss-3.46"
NSS_ARCHIVE="nss-3.46-with-nspr-4.22.tar.gz"
Expand Down Expand Up @@ -46,22 +46,18 @@ if ! [[ -x "$(command -v tclsh)" ]]; then
exit 1
fi

# Delete the following...
rm -rf sqlcipher
git clone --single-branch --branch nss-crypto-impl --depth 1 "https://github.com/eoger/sqlcipher.git"
SQLCIPHER_SRC_PATH=$(abspath "sqlcipher")
# ... and uncomment the following once SQLCipher has an NSS crypto backend.
# SQLCIPHER="v${SQLCIPHER_VERSION}"
# rm -rf "${SQLCIPHER}"
# if [[ ! -e "${SQLCIPHER}.tar.gz" ]]; then
# echo "Downloading ${SQLCIPHER}.tar.gz"
# curl -sfSL --retry 5 --retry-delay 10 -O "https://github.com/sqlcipher/sqlcipher/archive/${SQLCIPHER}.tar.gz"
# else
# echo "Using ${SQLCIPHER}.tar.gz"
# fi
# echo "${SQLCIPHER_SHA256} ${SQLCIPHER}.tar.gz" | shasum -a 256 -c - || exit 2
# tar xfz "${SQLCIPHER}.tar.gz"
# SQLCIPHER_SRC_PATH=$(abspath "sqlcipher-${SQLCIPHER_VERSION}")
# Use currrent version of SQL Cipher with NSS crypto backend
SQLCIPHER="v${SQLCIPHER_VERSION}"
rm -rf "${SQLCIPHER}"
if [[ ! -e "${SQLCIPHER}.tar.gz" ]]; then
echo "Downloading ${SQLCIPHER}.tar.gz"
curl -sfSL --retry 5 --retry-delay 10 -O "https://github.com/sqlcipher/sqlcipher/archive/${SQLCIPHER}.tar.gz"
else
echo "Using ${SQLCIPHER}.tar.gz"
fi
echo "${SQLCIPHER_SHA256} ${SQLCIPHER}.tar.gz" | shasum -a 256 -c - || exit 2
tar xfz "${SQLCIPHER}.tar.gz"
SQLCIPHER_SRC_PATH=$(abspath "sqlcipher-${SQLCIPHER_VERSION}")

rm -rf "${NSS}"
if [[ ! -e "${NSS_ARCHIVE}" ]]; then
Expand Down

0 comments on commit f1c3678

Please sign in to comment.