<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Dec 9, 2014 at 9:20 AM, Richard W.M. Jones <span dir="ltr"><<a href="mailto:rjones@redhat.com" target="_blank">rjones@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="">On Tue, Dec 09, 2014 at 09:10:19AM -0800, Jason Helfman wrote:<br>
> On Thu, Mar 27, 2014 at 3:26 PM, Richard W.M. Jones <<a href="mailto:rjones@redhat.com">rjones@redhat.com</a>><br>
> wrote:<br>
><br>
> > I'm pleased to announce libguestfs 1.26, a library and set of tools<br>
> > for accessing and modifying virtual machine disk images.  This release<br>
> > took more than 6 months of work by a considerable number of people,<br>
> > and has many new features (see release notes below).<br>
> ><br>
> > You can get libguestfs 1.26 here:<br>
> ><br>
> > Main website:     <a href="http://libguestfs.org/" target="_blank">http://libguestfs.org/</a><br>
> ><br>
> >       Source:     <a href="http://libguestfs.org/download/1.26-stable/" target="_blank">http://libguestfs.org/download/1.26-stable/</a><br>
> >                   You will also need latest supermin from here:<br>
> >                   <a href="http://libguestfs.org/download/supermin/" target="_blank">http://libguestfs.org/download/supermin/</a><br>
> ><br>
> ><br>
> Hello All,<br>
><br>
> Is there any particular reason that you think this would not run on FreeBSD?<br>
> Any Linux-isms that are just not available on FreeBSD?<br>
<br>
</span>There are a few.  However I'm quite happy to accept patches to make it<br>
work / work better on FreeBSD.<br>
<span class=""><br>
> I noticed this announcement [1] awhile ago, that mentioned febootstrap as a<br>
> requirement,<br>
> however we don't have this for FreeBSD. However, we do have debootstrap<br>
> [2]. Debian is listed<br>
> in the announcement [1], so thought that it could work with debootstrap,<br>
> but wanted inquire about<br>
> any gotchas or experiences before diving in and seeing for myself.<br>
><br>
> [1] <a href="https://www.redhat.com/archives/libguestfs/2011-March/msg00098.html" target="_blank">https://www.redhat.com/archives/libguestfs/2011-March/msg00098.html</a><br>
> [2] <a href="https://wiki.debian.org/Debootstrap" target="_blank">https://wiki.debian.org/Debootstrap</a><br>
<br>
</span>Unfortunately debootstrap is not going to help.<br>
<br>
The package that libguestfs depends on is 'supermin':<br>
<br>
  <a href="http://libguestfs.org/supermin.1.html" target="_blank">http://libguestfs.org/supermin.1.html</a><br>
<br>
Supermin makes certain assumptions about package managers that may or<br>
may not apply to FreeBSD ports/packages.  For example:<br>
<br>
 - that a package manager (similar to rpm/dpkg/etc) exists<br>
<br>
 - that it packages pre-compiled binaries (not sources)<br>
<br>
 - that you can list out the files belonging to a package<br>
<br>
 - that there are dependency relationships between packages<br>
<br>
 - that all files on the filesystem are part of a package (except<br>
   user-generated files)<br>
<br>
There are various ways to make libguestfs work without supermin, see<br>
the FAQ here:<br>
<br>
  <a href="http://libguestfs.org/guestfs-faq.1.html#how-can-i-compile-and-install-libguestfs-without-supermin" target="_blank">http://libguestfs.org/guestfs-faq.1.html#how-can-i-compile-and-install-libguestfs-without-supermin</a><br>
<br>
although depending on a Fedora-built appliance may not be very<br>
satisfying.<br>
<br>
You could build a fixed FreeBSD-based appliance, but distributing it<br>
wouldn't be very nice, and getting security updates even less so.<br>
Supermin solves these kinds of problems.<br>
<span class=""><br>
Rich.<br>
<br>
--<br>
Richard Jones, Virtualization Group, Red Hat <a href="http://people.redhat.com/~rjones" target="_blank">http://people.redhat.com/~rjones</a><br>
</span>Read my programming and virtualization blog: <a href="http://rwmj.wordpress.com" target="_blank">http://rwmj.wordpress.com</a><br>
Fedora Windows cross-compiler. Compile Windows programs, test, and<br>
build Windows installers. Over 100 libraries supported.<br>
<a href="http://fedoraproject.org/wiki/MinGW" target="_blank">http://fedoraproject.org/wiki/MinGW</a><br>
<br>
</blockquote></div><br></div><div class="gmail_extra">Is there a way to get it to support 'pkg' the packaging utility for FreeBSD? It supports<br>everything you noted above, will full API support.<br><br><a href="https://wiki.freebsd.org/pkgng/">https://wiki.freebsd.org/pkgng/</a><br><br></div><div class="gmail_extra">I'll look at the link you provided. Thanks!<br><br></div><div class="gmail_extra">-jgh<br clear="all"></div><div class="gmail_extra"><br>-- <br><div class="gmail_signature"><div dir="ltr">Jason Helfman          | FreeBSD Committer<br>jgh@FreeBSD.org     | <a href="http://people.freebsd.org/%7Ejgh" target="_blank">http://people.freebsd.org/~jgh</a>  | The Power to Serve<br></div></div>
</div></div>