From 61c12f741548f8b6ae29a7cf767aef0d3cde6d04 Mon Sep 17 00:00:00 2001 From: Tox Date: Fri, 25 Oct 2024 13:40:35 -0500 Subject: [PATCH] added an SQLite check --- shareddeps/net/nss.xml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/shareddeps/net/nss.xml b/shareddeps/net/nss.xml index 4489868d20..c0d855e120 100644 --- a/shareddeps/net/nss.xml +++ b/shareddeps/net/nss.xml @@ -99,6 +99,24 @@ patch -Np1 -i ../nss-&nss-version;-illegal_instruction-1.patch --> + + + + If you're rebuilding NSS and you have not installed SQLite, run the + following command to prevent a build failure: + + +sqlite3 --version > /dev/null 2>&1 && echo -e "\nDetected an SQLite install. You may continue." || +if [ -f /usr/lib/libsqlite3.so -o -f /usr/lib32/libsqlite3.so ]; then + echo -e "\nDetected an incomplete SQLite installation!" >&2 + rm -vf /usr/lib{,32}/libsqlite3.so + echo "Removed any problematic SQLite libraries. You may continue." +else + echo -e "\nNo SQLite install (complete or otherwise) detected. You may continue." +fi + + + Install NSS by running the following commands: