psss / rpms / libguestfs

Forked from rpms/libguestfs 5 years ago
Clone

Blame 0001-supermin-Add-special-case-for-libgcc_s-.so.N.patch

ff5c8b9
From dab98a0e52b9bb9930048b94d637a2fdb218fc45 Mon Sep 17 00:00:00 2001
ff5c8b9
From: Richard Jones <rjones@redhat.com>
ff5c8b9
Date: Thu, 28 Jan 2010 09:59:08 +0000
ff5c8b9
Subject: [PATCH] supermin: Add special case for libgcc_s-*.so.N
ff5c8b9
ff5c8b9
Because this file contains the GCC version and a date, it frequently
ff5c8b9
changes on the host.  Create a special case so that this file is
ff5c8b9
matched using a wildcard for the version/date part of the name.
ff5c8b9
---
ff5c8b9
 appliance/supermin-split.sh.in |    4 ++++
ff5c8b9
 1 files changed, 4 insertions(+), 0 deletions(-)
ff5c8b9
ff5c8b9
diff --git a/appliance/supermin-split.sh.in b/appliance/supermin-split.sh.in
ff5c8b9
index 7b83afb..c710dc3 100755
ff5c8b9
--- a/appliance/supermin-split.sh.in
ff5c8b9
+++ b/appliance/supermin-split.sh.in
ff5c8b9
@@ -78,6 +78,10 @@ for path in $(find -not -name fakeroot.log); do
ff5c8b9
     elif [[ "$file" =~ '^libbfd-.*\.so$' ]]; then
ff5c8b9
         echo "$dir/libbfd-*.so" >&6
ff5c8b9
 
ff5c8b9
+    # Special case for libgcc_s-<gccversion>-<date>.so.N
ff5c8b9
+    elif [[ "$file" =~ '^libgcc_s-.*\.so\.([0-9]+)$' ]]; then
ff5c8b9
+        echo "$dir/libgcc_s-*.so.${BASH_REMATCH[1]}" >&6
ff5c8b9
+
ff5c8b9
     # libfoo-1.2.3.so
ff5c8b9
     elif [[ "$file" =~ '^lib(.*)-[-.0-9]+\.so$' ]]; then
ff5c8b9
         echo "$dir/lib${BASH_REMATCH[1]}-*.so" >&6
ff5c8b9
-- 
ff5c8b9
1.6.5.2
ff5c8b9