[Pkg-samba-maint] [Git][samba-team/samba][master] 2 commits: heimdal-errno-include.patch

Michael Tokarev (@mjt) gitlab at salsa.debian.org
Fri Jun 26 06:34:51 BST 2026



Michael Tokarev pushed to branch master at Debian Samba Team / samba


Commits:
15240170 by Pino Toscano at 2026-06-07T06:46:09+02:00
heimdal-errno-include.patch

fix build on Hurd using fix from upstream heimdal

- - - - -
feebc8fc by Michael Tokarev at 2026-06-26T08:34:49+03:00
Merge branch 'hurd-heimdal' into 'master'

fix build on Hurd using fix from upstream heimdal

See merge request samba-team/samba!71
- - - - -


2 changed files:

- + debian/patches/heimdal-errno-include.patch
- debian/patches/series


Changes:

=====================================
debian/patches/heimdal-errno-include.patch
=====================================
@@ -0,0 +1,36 @@
+From: Pino Toscano <toscano.pino at tiscali.it>
+Date: Sat Jun 6 22:25:09 2026 +0200
+Subject: asn1: Include <errno.h> before using/checking bits from it
+Origin: upstream, https://github.com/heimdal/heimdal/commit/2194be6c9259f79b97131cec8ae44e1180b4f309
+Forwarded: not-needed
+
+Commit 232c936ea3eabfd702aaaa106ddf9474f231d776 added a fallback ENOTSUP
+definition. The check itself and the fallback definition rely on
+<errno.h> to be included already, so in case it was not (depending on
+the platform) then there will be a wrong definition of ENOTSUP.
+
+Instead of rely on <errno.h> to be included before including a
+generated header from this tool, include it manually. This way both
+the ENOTSUP check and its fallback definition (if ever) will always
+work.
+
+--- a/third_party/heimdal/lib/asn1/gen.c
++++ b/third_party/heimdal/lib/asn1/gen.c
+@@ -191,6 +191,7 @@ init_generate (const char *filename, con
+     fprintf (headerfile,
+ 	     "#include <stddef.h>\n"
+ 	     "#include <stdint.h>\n"
++	     "#include <errno.h>\n"
+ 	     "#include <time.h>\n\n");
+     fprintf (headerfile,
+ 	     "#ifndef __asn1_common_definitions__\n"
+--- a/third_party/heimdal/lib/asn1/template.c
++++ b/third_party/heimdal/lib/asn1/template.c
+@@ -38,6 +38,7 @@
+ #include <vis.h>
+ #include <vis-extras.h>
+ #include <heimbase.h>
++#include <errno.h>
+ 
+ #ifndef ENOTSUP
+ /* Very old MSVC CRTs don't have ENOTSUP */


=====================================
debian/patches/series
=====================================
@@ -26,3 +26,4 @@ heimdal-kdc-fix-memset_s-calls-1296.patch
 inline-getprogname.diff
 inline-openat2.diff
 check-for-openat2.patch
+heimdal-errno-include.patch



View it on GitLab: https://salsa.debian.org/samba-team/samba/-/compare/7effbabd441002a95c5b8556a289a46a8ffc14c2...feebc8fca75b1a1084188f29048138ee8acea9f2

-- 
View it on GitLab: https://salsa.debian.org/samba-team/samba/-/compare/7effbabd441002a95c5b8556a289a46a8ffc14c2...feebc8fca75b1a1084188f29048138ee8acea9f2
You're receiving this email because of your account on salsa.debian.org. Manage all notifications: https://salsa.debian.org/-/profile/notifications | Help: https://salsa.debian.org/help


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-samba-maint/attachments/20260626/618dfa85/attachment-0001.htm>


More information about the Pkg-samba-maint mailing list