Your message dated Fri, 08 Oct 2021 12:00:12 +0000
with message-id <[email protected]>
and subject line Bug#995049: fixed in p11-kit 0.24.0-4
has caused the Debian Bug report #995049,
regarding p11-kit: FTBFS on hurd-i386
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
995049: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=995049
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: p11-kit
Version: 0.24.0-2
Severity: important
Tags: patch
User: [email protected] [email protected]
Usertags: hurd
Hi,
Currently p11-kit FTBFS on GNU/Hurd due to a missing implementation in
common/unix-peer.c. Fortunately the function getpeereid() is available in the
libbsd library. The same function is also available for kFreeBSD. The patch
debian_control.diff adds a build dependency of libbsd0 for kFreeBSD and Hurd.
configure.ac.diff adds the bsd library, while common_unix_peer.diff adds the
declaration of the function getpeereid(). This is added so that the header file
bsd/unistd.h is not necessarily included (which conflicts with parts of
unistd.h).
Note that with the attached patches the patch, 41_kfreebsd_LOCAL_PEERCRED.diff,
for kFreeBSD is no longer needed.
The patches have been used to successfully build p11-kit on Linux, Hurd and
kFreeBSD.
Thanks!
Index: p11-kit-0.24.0-2.3/common/unix-peer.c
===================================================================
--- p11-kit-0.24.0-2.3.orig/common/unix-peer.c
+++ p11-kit-0.24.0-2.3/common/unix-peer.c
@@ -47,6 +47,11 @@
# include <ucred.h>
#endif
+#ifdef HAVE_GETPEEREID
+/* Declare getpeereid from /usr/include/bsd/unistd.h */
+extern int getpeereid(int s, uid_t *euid, gid_t *egid);
+#endif
+
/* Returns the unix domain socket peer information.
* Returns zero on success.
*/
@@ -73,7 +78,8 @@ p11_get_upeer_id (int cfd, uid_t *uid, u
*pid = cr.pid;
#elif defined(HAVE_GETPEEREID)
- /* *BSD/MacOSX */
+ /* *BSD/MacOSX/kFreeBSD/Hurd */
+
uid_t euid;
gid_t egid;
Index: p11-kit-0.24.0-2.3/configure.ac
===================================================================
--- p11-kit-0.24.0-2.3.orig/configure.ac
+++ p11-kit-0.24.0-2.3/configure.ac
@@ -132,6 +132,16 @@ if test "$os_unix" = "yes"; then
AC_CHECK_FUNCS([getpeereid])
AC_CHECK_FUNCS([getpeerucred])
AC_CHECK_FUNCS([issetugid])
+ case "$host_os" in
+ kfreebsd*-gnu | gnu*)
+ have_getpeereid=no
+ AC_CHECK_LIB(bsd, getpeereid, have_getpeereid=yes)
+ if test "x$have_getpeereid" = "xyes"; then
+ AC_DEFINE([HAVE_GETPEEREID], [1], [have getpeereid])
+ AC_SEARCH_LIBS([getpeereid], [bsd])
+ fi
+ ;;
+ esac
AC_CACHE_CHECK([for thread-local storage class],
[ac_cv_tls_keyword],
--- a/debian/control 2021-06-20 14:49:24.000000000 +0200
+++ b/debian/control 2021-09-25 01:02:28.693455906 +0200
@@ -7,7 +7,8 @@
gtk-doc-tools,
libffi-dev,
libtasn1-6-dev,
- pkg-config
+ pkg-config,
+ libbsd0 [kfreebsd-any hurd-any]
Standards-Version: 4.5.1
Rules-Requires-Root: no
Section: libs
--- End Message ---
--- Begin Message ---
Source: p11-kit
Source-Version: 0.24.0-4
Done: Andreas Metzler <[email protected]>
We believe that the bug you reported is fixed in the latest version of
p11-kit, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Andreas Metzler <[email protected]> (supplier of updated p11-kit package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Sat, 02 Oct 2021 14:25:26 +0200
Source: p11-kit
Binary: libp11-kit-dev libp11-kit0 libp11-kit0-dbgsym p11-kit p11-kit-dbgsym
p11-kit-doc p11-kit-modules p11-kit-modules-dbgsym
Architecture: source amd64 all
Version: 0.24.0-4
Distribution: experimental
Urgency: medium
Maintainer: Debian GnuTLS Maintainers <[email protected]>
Changed-By: Andreas Metzler <[email protected]>
Description:
libp11-kit-dev - library for loading and coordinating access to PKCS#11
modules -
libp11-kit0 - library for loading and coordinating access to PKCS#11 modules -
p11-kit - p11-glue utilities
p11-kit-doc - library for loading and coordinating access to PKCS#11 modules -
p11-kit-modules - p11-glue proxy and trust modules
Closes: 995049
Changes:
p11-kit (0.24.0-4) experimental; urgency=medium
.
* Drop 41_kfreebsd_LOCAL_PEERCRED.diff, add 40_getpeereid_from_libbsd.diff
and use libbsd on kfreebsd and hurd. Hopefully fixes build on both hurd
and kfreebsd. Thanks, Svante Signell. Closes: #995049
* Move documentation to separate package. It is the only way to fix
binNMUs breaking multi-arch installation of libp11-kit-dev (See
#995162!) although the package size does not justify the split-off.
Checksums-Sha1:
277b9b360183673f510892070ad8e6e602a3b8c4 2496 p11-kit_0.24.0-4.dsc
05d18e4c479df79dc77154a34bea265e1c117e25 23084 p11-kit_0.24.0-4.debian.tar.xz
462581cc9c414c37d4a0f02ba8eb759a00104136 174512
libp11-kit-dev_0.24.0-4_amd64.deb
8d376444928b8f8f5f3d478bf7653116516d9ad8 1248176
libp11-kit0-dbgsym_0.24.0-4_amd64.deb
7e24086084e8f7dc8381faff1aac922aea87f333 347044 libp11-kit0_0.24.0-4_amd64.deb
1a8e345b3f140176d721016a250d0d2dff0963bd 241828
p11-kit-dbgsym_0.24.0-4_amd64.deb
7eaafe08feba95ab150cc64ccf55da2928a1e652 206952 p11-kit-doc_0.24.0-4_all.deb
433126f0eea9b565796d5ab904e7f769b6239d85 1349828
p11-kit-modules-dbgsym_0.24.0-4_amd64.deb
a78f05fb150af4500eba6c72a50d89fc5fc39c5d 229956
p11-kit-modules_0.24.0-4_amd64.deb
70d133b57e090f393e1b301bca5b3c59628dcc28 8694 p11-kit_0.24.0-4_amd64.buildinfo
993af20f060c2a4f9154c18ae7062eaa55b8dc0a 294456 p11-kit_0.24.0-4_amd64.deb
Checksums-Sha256:
f8f3a3c1665201766dff858d3b8c5e3ebe2ff5e865341a84ba639319128b15e9 2496
p11-kit_0.24.0-4.dsc
85f963eb65b08c4d32fc30bd5d1bc37d813ba58fa6918053a2b6761decf0e9cc 23084
p11-kit_0.24.0-4.debian.tar.xz
7412ff2bd6a3b884b94ff0561812249441d3ad72316b8fc2e4ef47f65bc5fcbd 174512
libp11-kit-dev_0.24.0-4_amd64.deb
bd8ae16a89d7156c7ca2a7a4cb594e582c4c49546e6d86d6dae8c6e8b69148da 1248176
libp11-kit0-dbgsym_0.24.0-4_amd64.deb
1f8d87a8d7be22c5bffda24c7900bddd15ad89a5d61a002209b9781e6f9970cf 347044
libp11-kit0_0.24.0-4_amd64.deb
07bfb8f5b7a1f2d7ef73cfabde6f0356d08835d37c23f765fb597a02b3ff4d1c 241828
p11-kit-dbgsym_0.24.0-4_amd64.deb
865f6e44b5ba316a9cbd73585f4af958390a1cc2576d13db273636afb01a5c9a 206952
p11-kit-doc_0.24.0-4_all.deb
1dec74179495614ec985c2a8e2a72fe3308197e0f301f8c105b173c4c38225dc 1349828
p11-kit-modules-dbgsym_0.24.0-4_amd64.deb
b3e49d8afe01927d5acf1a115de734e8c0e2a4e4cd0734abc5ff267a58b8b72e 229956
p11-kit-modules_0.24.0-4_amd64.deb
d46ef71745a3e8768c9f34b3bb699b718ad11ae587b5e78e522104b43ef1289f 8694
p11-kit_0.24.0-4_amd64.buildinfo
ec9aedb018f2fa7aedd9145954bf27e5409cc24365b88c4c263b4ff3d81685e8 294456
p11-kit_0.24.0-4_amd64.deb
Files:
77959e6014edb52fca2acc37323cc07d 2496 libs optional p11-kit_0.24.0-4.dsc
05fcd2c67d9848db2770cf14de17e822 23084 libs optional
p11-kit_0.24.0-4.debian.tar.xz
eeeec6889e4b3658a9465a46009eeac6 174512 libdevel optional
libp11-kit-dev_0.24.0-4_amd64.deb
9e351ffacdf9ece71aa256b0859f5f5b 1248176 debug optional
libp11-kit0-dbgsym_0.24.0-4_amd64.deb
64812cb112927647042f366b53bd6ffd 347044 libs optional
libp11-kit0_0.24.0-4_amd64.deb
22bb3cda7a8be5963a87d70e753d85b4 241828 debug optional
p11-kit-dbgsym_0.24.0-4_amd64.deb
c09ad4a8d5cf0288b10dce9a2488eba2 206952 doc optional
p11-kit-doc_0.24.0-4_all.deb
836863c7dc2adec9568394116b909a19 1349828 debug optional
p11-kit-modules-dbgsym_0.24.0-4_amd64.deb
0121b323b58d9089c7a93898cb4be7ca 229956 misc optional
p11-kit-modules_0.24.0-4_amd64.deb
625a9292f835ec7e41144a46b29550cb 8694 libs optional
p11-kit_0.24.0-4_amd64.buildinfo
72146112f74baf07d1344a55000df4cd 294456 misc optional
p11-kit_0.24.0-4_amd64.deb
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEE0uCSA5741Jbt9PpepU8BhUOCFIQFAmFYUMEACgkQpU8BhUOC
FISnaQ/9HMnlCJ6tvzF5NFxUqvFiuhqYUFRQaUCUZjcGVRrRQtmyenwd3Pur+obn
Q8twRTFfRjLdvRNcRQamqi0lf30j1Nh3znvE4b7zGaDJNA4rMfMjcCsBGv7Hyaby
vnp0TEJudAZ0MmxtWqenUZW6bo+tc9oUa5LXb10d3Y4row+SywDet0TRGaXUDhyX
mNJOtBTKdbv9cYQWBjT0dxAn6/0RPc+z+ibeRTqV/PN0hzb0tS0m/ho+ucs5h4uA
3iWDY4ZtHwq6z0LaC6c8YKAs1t8k52LeYAQm5uN0+nB6iSkpLsYV3js50Y/JI2UB
Av3gFZqMuJOvTj8uqCeNyG9ywjInSO4u7XojZQq6yZ05QcekYEE3Wd7iWPq814JC
6t4Uw7I0Igm24Lo7dlsN3JqEApGBdYeM0XJ5AaY6i7tj2zLb3T5F34P3qcW4UYJK
s04gkgsA591wSPEu8S3MYSXlNvB3DyO6lnWvxT4y1NTGerzUkpSV+04n3aQfSOo8
opjXdDzQLmm2eAhEXYJ/XP9m6thk4HZbwG8LpbFClEWCSOR9O6i9zzfglDf0EcCi
LiDp5D51LYyR7NMgV6ZzvkT3hE8eOesc4jNb8D5mmdjei+aMHBnx5mmDNfpW/IQ2
8VNG3ZLcLljDDzQ/5kJlImonk7gcJADvZuz/dFKkpUKkM4U3IJo=
=Fb8r
-----END PGP SIGNATURE-----
--- End Message ---