Package: liblowdown-dev
Version: 0.10.0-1
Severity: normal

While packaging nix I encountered this problem:
https://github.com/NixOS/nix/issues/5931

/usr/bin/ld: /usr/lib/x86_64-linux-gnu/liblowdown.a(document.o): in function 
`parse_list':
(.text+0x49ad): undefined reference to `strtonum'

The strtonum function is in libbsd and lowdown comes with polyfills for bsd
functions for non-bsd systems. However it was decided not to use the polyfills:
https://sources.debian.org/src/lowdown/0.10.0-1/debian/rules/#L10

In turn lowdown should somehow declare it's dependency on bsd in it's
pkg-config file. I'm not sure how to do this correctly.

(In the particular case of nix this alone would not help since upstream's
build system does not expect lowdown to have any dependencies and thus does
not call pkg-config to collect them. This could of course also be reported to
nix upstream.)

BTW: Apparently the next release of lowdown will also come with a shared 
library:
https://github.com/kristapsdz/lowdown/issues/45

  • Bug#1004541: lowdown.pc should Require bsd(?) Thomas Koch

Reply via email to