Bug#618592: zfsutils misses zdb, zinject and ztest (with patch)
2011/3/16 Arno Töll <firstname.lastname@example.org>:
> However packages do not build (but compiling and usage of them succeeds
> when using the proper libraries) because dpkg-shlibdeps fails to resolve
> the dependency for libavl, as I did not provide a binary for this
> package, it is included in the source though and builds fine. Problem
> is, there is a non ABI and API compatible libavl package in Debian
> already (http://packages.debian.org/source/squeeze/libavl) which clashes
> with the implementation those utilities use.
A small bit of advice:
- The extra libraries could be linked statically instead of providing them
as packages. This solves the libavl API conflict.
- The alloca and __unused hacks could be done via CFLAGS (other packages
of FreeBSD code do this IIRC)
- Instead of embedding strlcpy() you can use the one in libbsd.