On Thu, Feb 18, 2010 at 04:58:05PM +0100, Kevin Kofler wrote:
Richard W.M. Jones wrote:
> It really does require those exact files. It's not linking, it's
> composing an appliance on the fly using files taken from the host:
>
>
http://rwmj.wordpress.com/2009/10/22/supermin-appliance-now-in-febootstrap/
Why don't you just have it use wildcards to select the files to copy in,
e.g. libntfs-3g.so.*, instead of hardcoding the exact names? That way you
wouldn't have to care about this kind of file deps at all, it'd just work
always.
In the file ("hostfiles") that tells us what to copy in from the host
system we do use wildcards. But we only wildcard the minor and
release numbers, not the soname major number, since an soname bump
probably implies some sort of major change which requires human
attention.
You can see how it works from this script:
http://git.annexia.org/?p=libguestfs.git;a=blob;f=appliance/supermin-spli...
Rich.
--
Richard Jones, Virtualization Group, Red Hat
http://people.redhat.com/~rjones
Read my programming blog:
http://rwmj.wordpress.com
Fedora now supports 80 OCaml packages (the OPEN alternative to F#)
http://cocan.org/getting_started_with_ocaml_on_red_hat_and_fedora