[Pkg-dns-devel] Bug#811315: getdns: FTBFS[kfreebsd]: needs getentropy implementation

Guillem Jover guillem at debian.org
Thu Jun 9 00:50:55 UTC 2016


Control: forwarded -1 https://github.com/getdnsapi/getdns/pull/182

On Mon, 2016-01-18 at 13:59:00 +0000, Steven Chamberlain wrote:
> Guillem Jover wrote:
> > Steven Chamberlain wrote:
> > > getdns FTBFS on kfreebsd because it lacks a getentropy implementation
> > > for the FreeBSD kernel.  But there is one already in LibreSSL Portable
> > > we can use, and works fine here.
> > 
> > BTW, libbsd has also a getentropy(3) implementation (lifted too from
> > LibreSSL), which is currently not exposed but if people want to use it
> > I could make it public, instead of embedding this in all sorts of
> > places. The difference being that libbsd is already in Debian, while
> > LibreSSL is not.
> > 
> >   <http://cgit.freedesktop.org/libbsd/tree/src>

> I think the only use case for getentropy is arc4random, so perhaps don't
> export getentropy(3), but lets try to standardise on one implementation
> of arc4random (in libbsd?) and try to get more people using that?
> 
> It would be nice to have the kernel-specific parts (getentropy) confined
> to libbsd, and that may become even more important if applications start
> sandboxing (e.g. can't read /dev/urandom any more, have to use sysctls).
> Or if getrandom(2) becomes standard, we'd only need to implement it in
> one place (as a supplement / eventual replacement to getentropy(3)).

Sure, I've now implemented this and sent a pull request to upstream,
plus the required packaging bits, attached here both for convenience.

Thanks,
Guillem
-------------- next part --------------
A non-text attachment was scrubbed...
Name: getdns-0.9.0-libbsd-dep.patch
Type: text/x-diff
Size: 366 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-dns-devel/attachments/20160609/4ea32479/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Use-libbsd-when-available.patch
Type: text/x-diff
Size: 2502 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-dns-devel/attachments/20160609/4ea32479/attachment-0001.patch>


More information about the pkg-dns-devel mailing list