Richard W.M. Jones
2009-Dec-16 11:17 UTC
[Libguestfs] [PATCH] appliance: Special case handling for libbfd in the supermin appliance.
This patch isn't very elegant, but it should be a conservative change that has the least chance of breaking something else. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. http://et.redhat.com/~rjones/virt-df/ -------------- next part -------------->From 4b09663f01224c27f00376011022526437680078 Mon Sep 17 00:00:00 2001From: Richard Jones <rjones at redhat.com> Date: Wed, 16 Dec 2009 11:15:26 +0000 Subject: [PATCH] appliance: Special case handling for libbfd in the supermin appliance. The libbfd library has a constantly changing, non-standard and very long name, eg: /usr/lib64/libbfd-2.20.51.0.2-7.fc13.so Just add a special case to deal with this. This fixes the guestfs_strings command, which relies on the external strings binary which uses this library. --- appliance/supermin-split.sh.in | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/appliance/supermin-split.sh.in b/appliance/supermin-split.sh.in index 61df891..7b83afb 100755 --- a/appliance/supermin-split.sh.in +++ b/appliance/supermin-split.sh.in @@ -74,6 +74,10 @@ for path in $(find -not -name fakeroot.log); do elif [[ "$file" =~ '^ld-[.0-9]+\.so$' ]]; then echo "$dir/ld-*.so" >&6 + # Special case for libbfd + elif [[ "$file" =~ '^libbfd-.*\.so$' ]]; then + echo "$dir/libbfd-*.so" >&6 + # libfoo-1.2.3.so elif [[ "$file" =~ '^lib(.*)-[-.0-9]+\.so$' ]]; then echo "$dir/lib${BASH_REMATCH[1]}-*.so" >&6 -- 1.6.5.2
Matthew Booth
2009-Dec-16 12:20 UTC
[Libguestfs] [PATCH] appliance: Special case handling for libbfd in the supermin appliance.
On 16/12/09 11:17, Richard W.M. Jones wrote:> > This patch isn't very elegant, but it should be a conservative > change that has the least chance of breaking something else. > > Rich. > > > > > _______________________________________________ > Libguestfs mailing list > Libguestfs at redhat.com > https://www.redhat.com/mailman/listinfo/libguestfsACK. Matt -- Matthew Booth, RHCA, RHCSS Red Hat Engineering, Virtualisation Team M: +44 (0)7977 267231 GPG ID: D33C3490 GPG FPR: 3733 612D 2D05 5458 8A8A 1600 3441 EA19 D33C 3490
Reasonably Related Threads
- [PATCH 0/12] Add support for writing to hive files
- [PATCH REBASED] Remove main loop
- [PATCH 0/2] Use link-local addresses when communicating between appliance and host (RHBZ#588763)
- [PATCH 0/3] 3 small code fixes
- [PATCH 0/4] Fix RHBZ#597112 (get-e2uuid command)