Blame SOURCES/0374-95iscsi-Install-libgcc_s-library.patch

a0a3b4
From 9eab750787d7e94e53df282119640a5d2beb04e4 Mon Sep 17 00:00:00 2001
a0a3b4
From: Hannes Reinecke <hare@suse.de>
a0a3b4
Date: Thu, 25 Feb 2016 20:58:10 +0800
a0a3b4
Subject: [PATCH] 95iscsi: Install libgcc_s library
a0a3b4
a0a3b4
iscsiuio is using pthread, which requires libgcc_s for
a0a3b4
pthread_cancel to work.
a0a3b4
Without this library iscsiuio will crash with SIGABRT.
a0a3b4
a0a3b4
References: bnc#881692
a0a3b4
a0a3b4
Signed-off-by: Hannes Reinecke <hare@suse.de>
a0a3b4
Signed-off-by: Thomas Renninger <trenn@suse.de>
a0a3b4
---
a0a3b4
 modules.d/95iscsi/module-setup.sh | 1 +
a0a3b4
 1 file changed, 1 insertion(+)
a0a3b4
a0a3b4
diff --git a/modules.d/95iscsi/module-setup.sh b/modules.d/95iscsi/module-setup.sh
a0a3b4
index 7ef0caa..422bea7 100755
a0a3b4
--- a/modules.d/95iscsi/module-setup.sh
a0a3b4
+++ b/modules.d/95iscsi/module-setup.sh
a0a3b4
@@ -104,6 +104,7 @@ cmdline() {
a0a3b4
 install() {
a0a3b4
     inst_multiple umount iscsistart hostname iscsi-iname
a0a3b4
     inst_multiple -o iscsiuio
a0a3b4
+    inst_libdir_file 'libgcc_s.so*'
a0a3b4
     inst_hook cmdline 90 "$moddir/parse-iscsiroot.sh"
a0a3b4
     inst_hook cleanup 90 "$moddir/cleanup-iscsi.sh"
a0a3b4
     inst "$moddir/iscsiroot.sh" "/sbin/iscsiroot"