Skip to contentSkip to conversation

tools: add more checks for devel packages

PATCH New Jan Beulich 1 participant 1 message Nov 13, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tools: add more checks for devel packages

On different systems I ran into different build failures that can be made more understandable by adding appropriate -devel package installation checks.

All files must be given exec permission after applying the patch.

tools/check/check_crypto_lib new file +11 -0
Index: 2006-10-30/tools/check/check_crypto_lib
===================================================================
@@ -0,0 +1,11 @@
+#!/bin/bash
+# CHECK-BUILD CHECK-INSTALL
+
+function error {
+    echo
+    echo "  *** Check for crypto library FAILED"
+    exit 1
+}
+
+set -e
+ldconfig -p | grep -q libcrypto.so || error
tools/check/check_openssl_devel new file +11 -0
Index: 2006-10-30/tools/check/check_openssl_devel
===================================================================
@@ -0,0 +1,11 @@
+#!/bin/bash
+# CHECK-BUILD
+
+function error {
+    echo
+    echo "  *** Check for openssl headers FAILED"
+    exit 1
+}
+
+set -e
+[ -e /usr/include/openssl/md5.h ] || error
tools/check/check_x11_devel new file +11 -0
Index: 2006-10-30/tools/check/check_x11_devel
===================================================================
@@ -0,0 +1,11 @@
+#!/bin/bash
+# CHECK-BUILD
+
+function error {
+    echo
+    echo "  *** Check for x11 headers FAILED"
+    exit 1
+}
+
+set -e
+[ -e /usr/include/X11/keysymdef.h ] || error