Bug#989235: p11-kit FTBFS on hurd-any

Helmut Grohne helmut at subdivi.de
Sat May 29 21:56:20 BST 2021


Source: p11-kit
Version: 0.23.22-1
User: helmutg at debian.org
Usertags: rebootstrap
X-Debbugs-Cc: debian-hurd at lists.debian.org

p11-kit fails to build from source on hurd-any. The immediate reason is
an undefined macro SIZE_MAX in p11-kit/lists.c. It happens that this
file fails to #include <stdint.h>, which is generally required for
SIZE_MAX. I'm attaching a patch for this.

Unfortunately, this does not entirely fix p11-kit. Beyond this issue,
one runs into this #error at:
https://sources.debian.org/src/p11-kit/0.23.22-1/common/unix-peer.c/#L133

It seems like all the possible implementations using one of SO_PEERCRED,
getpeereid(), getpeerucred(), or <sys/ucred.h> are unavailable on hurd.
I'm unsure how to proceed here and have Cced the hurd porters for help.

Do note that p11-kit is required for building essential. As such, not
supporting hurd here practically kills hurd ports. If someone happens to
find a fix or workaround, please notify me.

Helmut
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hurd.patch
Type: text/x-diff
Size: 207 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-gnutls-maint/attachments/20210529/94829740/attachment.patch>


More information about the Pkg-gnutls-maint mailing list