Harald Hoyer 308914
From 3a043feea1d1d1d1d01762d95b725b9adef61562 Mon Sep 17 00:00:00 2001
Harald Hoyer 308914
From: Alexander Sosedkin <asosedkin@redhat.com>
Harald Hoyer 308914
Date: Thu, 26 Mar 2020 15:11:15 +0100
Harald Hoyer 308914
Subject: [PATCH] url-lib: drop NSS if it's not in curl --version
Harald Hoyer 308914
Harald Hoyer 308914
---
Harald Hoyer 308914
 modules.d/45url-lib/module-setup.sh | 12 +++++++-----
Harald Hoyer 308914
 1 file changed, 7 insertions(+), 5 deletions(-)
Harald Hoyer 308914
Harald Hoyer 308914
diff --git a/modules.d/45url-lib/module-setup.sh b/modules.d/45url-lib/module-setup.sh
Harald Hoyer 308914
index a99e0c56..258a9e16 100755
Harald Hoyer 308914
--- a/modules.d/45url-lib/module-setup.sh
Harald Hoyer 308914
+++ b/modules.d/45url-lib/module-setup.sh
Harald Hoyer 308914
@@ -19,11 +19,13 @@ install() {
Harald Hoyer 308914
     inst_simple "$moddir/url-lib.sh" "/lib/url-lib.sh"
Harald Hoyer 308914
     inst_multiple -o ctorrent
Harald Hoyer 308914
     inst_multiple curl
Harald Hoyer 308914
-    # also install libs for curl https
Harald Hoyer 308914
-    inst_libdir_file "libnsspem.so*"
Harald Hoyer 308914
-    inst_libdir_file "libnsssysinit.so*"
Harald Hoyer 308914
-    inst_libdir_file "libsoftokn3.so*"
Harald Hoyer 308914
-    inst_libdir_file "libsqlite3.so*"
Harald Hoyer 308914
+    if curl --version | grep -qi '\bNSS\b'; then
Harald Hoyer 308914
+        # also install libs for curl https
Harald Hoyer 308914
+        inst_libdir_file "libnsspem.so*"
Harald Hoyer 308914
+        inst_libdir_file "libnsssysinit.so*"
Harald Hoyer 308914
+        inst_libdir_file "libsoftokn3.so*"
Harald Hoyer 308914
+        inst_libdir_file "libsqlite3.so*"
Harald Hoyer 308914
+    fi
Harald Hoyer 308914
 
Harald Hoyer 308914
     for _dir in $libdirs; do
Harald Hoyer 308914
 	[[ -d $dracutsysrootdir$_dir ]] || continue
Harald Hoyer 308914