On Thu, Jul 04, 2019 at 09:45:26AM +0200, Martin Kletzander wrote:
On Wed, Jul 03, 2019 at 05:17:42PM +0100, Richard W.M. Jones wrote:
>Two simple patches which make libnbd compile on FreeBSD.
>
>Are we OK to copy common/include/byte-swapping.h from nbdkit? There
>is no license issue that I know of. Should we put it in lib/ or
>create a common/ directory? The header file is actually also needed
>by the tests (follow up patch for that) so putting it in common/ might
>make more sense.
>
>Some notes if you want to compile on FreeBSD:
>
>- OCaml is too old to run the generator, so you can't easily build
> from git. Tarball builds should work, or you can copy the
> generated files across from a Linux machine.
>
Are you sure? I checked
repology.org and it says the FreeBSD Ports have 4.05.0,
which I managed to make work by a simple patch some time ago. I'm setting up a
FreeBSD machine to try it out.
Probably because I'm not running the latest FreeBSD. I think I was
using 11.2.
Rich.
>- Running the tests is difficult because there is no nbdkit
package
> for FreeBSD. With a local build of nbdkit you can play with PATH
> and PKG_CONFIG_PATH to get the tests to work.
>
>Rich.
>
>
>_______________________________________________
>Libguestfs mailing list
>Libguestfs(a)redhat.com
>https://www.redhat.com/mailman/listinfo/libguestfs
--
Richard Jones, Virtualization Group, Red Hat
http://people.redhat.com/~rjones
Read my programming and virtualization blog:
http://rwmj.wordpress.com
virt-p2v converts physical machines to virtual machines. Boot with a
live CD or over the network (PXE) and turn machines into KVM guests.
http://libguestfs.org/virt-v2v