Source: p11-kit
Version: 0.23.22-1
User: helm...@debian.org
Usertags: rebootstrap
X-Debbugs-Cc: debian-h...@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
--- a/p11-kit/lists.c
+++ b/p11-kit/lists.c
@@ -40,6 +40,7 @@
 #include <assert.h>
 #include <ctype.h>
 #include <string.h>
+#include <stdint.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <unistd.h>

Reply via email to