summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGyorgy Sarvari <skandigraun@gmail.com>2026-02-02 17:37:07 +0100
committerKhem Raj <raj.khem@gmail.com>2026-02-04 20:53:29 -0800
commitd92fa873e5616ee7a7b25683ddfdb6849ef72d29 (patch)
treebf28f9ff5fc6fefc4b6ef9d3183c4e40688b028f
parent14f88522a1a1d5ede6441f1c9258a96edb2a5e79 (diff)
downloadmeta-openembedded-d92fa873e5616ee7a7b25683ddfdb6849ef72d29.tar.gz
hiawatha: upgrade 11.7 -> 11.8
Drop patches that are included in this release. Changes: * mbed TLS updated to 3.6.4. * Small bugfixes. Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-webserver/recipes-httpd/hiawatha/files/0001-Add-__attribute__-nonstring-to-remove-unterminated-s.patch43
-rw-r--r--meta-webserver/recipes-httpd/hiawatha/files/0002-Replace-__attribute__-nonstring-with-macro-MBEDTLS_A.patch42
-rw-r--r--meta-webserver/recipes-httpd/hiawatha/files/define-MBEDTLS_ATTRIBUTE_UNTERMINATED_STRING.patch33
-rw-r--r--meta-webserver/recipes-httpd/hiawatha/hiawatha_11.8.bb (renamed from meta-webserver/recipes-httpd/hiawatha/hiawatha_11.7.bb)5
4 files changed, 1 insertions, 122 deletions
diff --git a/meta-webserver/recipes-httpd/hiawatha/files/0001-Add-__attribute__-nonstring-to-remove-unterminated-s.patch b/meta-webserver/recipes-httpd/hiawatha/files/0001-Add-__attribute__-nonstring-to-remove-unterminated-s.patch
deleted file mode 100644
index 5a9c719b6d..0000000000
--- a/meta-webserver/recipes-httpd/hiawatha/files/0001-Add-__attribute__-nonstring-to-remove-unterminated-s.patch
+++ /dev/null
@@ -1,43 +0,0 @@
1From 56b26ede007453a4ee9832076597e82d2a903700 Mon Sep 17 00:00:00 2001
2From: Felix Conway <felix.conway@arm.com>
3Date: Wed, 11 Jun 2025 16:04:06 +0100
4Subject: [PATCH 1/2] Add __attribute__ ((nonstring)) to remove
5 unterminated-string-initialization warning
6
7Upstream-Status: Backport [https://github.com/Mbed-TLS/mbedtls/pull/10216]
8Signed-off-by: Felix Conway <felix.conway@arm.com>
9Signed-off-by: Khem Raj <raj.khem@gmail.com>
10---
11 library/ssl_tls13_keys.c | 3 ++-
12 library/ssl_tls13_keys.h | 3 ++-
13 2 files changed, 4 insertions(+), 2 deletions(-)
14
15diff --git a/library/ssl_tls13_keys.c b/library/ssl_tls13_keys.c
16index 739414e..375814c 100644
17--- a/library/ssl_tls13_keys.c
18+++ b/library/ssl_tls13_keys.c
19@@ -81,7 +81,8 @@ struct mbedtls_ssl_tls13_labels_struct const mbedtls_ssl_tls13_labels =
20 * the HkdfLabel structure on success.
21 */
22
23-static const char tls13_label_prefix[6] = "tls13 ";
24+/* We need to tell the compiler that we meant to leave out the null character. */
25+static const char tls13_label_prefix[6] __attribute__ ((nonstring)) = "tls13 ";
26
27 #define SSL_TLS1_3_KEY_SCHEDULE_HKDF_LABEL_LEN(label_len, context_len) \
28 (2 /* expansion length */ \
29diff --git a/library/ssl_tls13_keys.h b/library/ssl_tls13_keys.h
30index d3a4c6c..95cde7a 100644
31--- a/library/ssl_tls13_keys.h
32+++ b/library/ssl_tls13_keys.h
33@@ -40,8 +40,9 @@
34
35 #if defined(MBEDTLS_SSL_PROTO_TLS1_3)
36
37+/* We need to tell the compiler that we meant to leave out the null character. */
38 #define MBEDTLS_SSL_TLS1_3_LABEL(name, string) \
39- const unsigned char name [sizeof(string) - 1];
40+ const unsigned char name [sizeof(string) - 1] __attribute__ ((nonstring));
41
42 union mbedtls_ssl_tls13_labels_union {
43 MBEDTLS_SSL_TLS1_3_LABEL_LIST
diff --git a/meta-webserver/recipes-httpd/hiawatha/files/0002-Replace-__attribute__-nonstring-with-macro-MBEDTLS_A.patch b/meta-webserver/recipes-httpd/hiawatha/files/0002-Replace-__attribute__-nonstring-with-macro-MBEDTLS_A.patch
deleted file mode 100644
index 2f94cee277..0000000000
--- a/meta-webserver/recipes-httpd/hiawatha/files/0002-Replace-__attribute__-nonstring-with-macro-MBEDTLS_A.patch
+++ /dev/null
@@ -1,42 +0,0 @@
1From 91ec670d3f6399510995dedbf99dca2e7e9bd2d8 Mon Sep 17 00:00:00 2001
2From: Felix Conway <felix.conway@arm.com>
3Date: Thu, 12 Jun 2025 11:28:56 +0100
4Subject: [PATCH 2/2] Replace __attribute__((nonstring)) with macro
5 MBEDTLS_ATTRIBUTE_UNTERMINATED_STRING
6
7This macro applies __attribute__((nonstring)) when using a compiler that supports it
8
9Upstream-Status: Backport [https://github.com/Mbed-TLS/mbedtls/pull/10216]
10Signed-off-by: Felix Conway <felix.conway@arm.com>
11Signed-off-by: Khem Raj <raj.khem@gmail.com>
12---
13 library/ssl_tls13_keys.c | 2 +-
14 library/ssl_tls13_keys.h | 2 +-
15 2 files changed, 2 insertions(+), 2 deletions(-)
16
17diff --git a/library/ssl_tls13_keys.c b/library/ssl_tls13_keys.c
18index 375814c..621a7d5 100644
19--- a/library/ssl_tls13_keys.c
20+++ b/library/ssl_tls13_keys.c
21@@ -82,7 +82,7 @@ struct mbedtls_ssl_tls13_labels_struct const mbedtls_ssl_tls13_labels =
22 */
23
24 /* We need to tell the compiler that we meant to leave out the null character. */
25-static const char tls13_label_prefix[6] __attribute__ ((nonstring)) = "tls13 ";
26+static const char tls13_label_prefix[6] MBEDTLS_ATTRIBUTE_UNTERMINATED_STRING = "tls13 ";
27
28 #define SSL_TLS1_3_KEY_SCHEDULE_HKDF_LABEL_LEN(label_len, context_len) \
29 (2 /* expansion length */ \
30diff --git a/library/ssl_tls13_keys.h b/library/ssl_tls13_keys.h
31index 95cde7a..3aa94d7 100644
32--- a/library/ssl_tls13_keys.h
33+++ b/library/ssl_tls13_keys.h
34@@ -42,7 +42,7 @@
35
36 /* We need to tell the compiler that we meant to leave out the null character. */
37 #define MBEDTLS_SSL_TLS1_3_LABEL(name, string) \
38- const unsigned char name [sizeof(string) - 1] __attribute__ ((nonstring));
39+ const unsigned char name [sizeof(string) - 1] MBEDTLS_ATTRIBUTE_UNTERMINATED_STRING;
40
41 union mbedtls_ssl_tls13_labels_union {
42 MBEDTLS_SSL_TLS1_3_LABEL_LIST
diff --git a/meta-webserver/recipes-httpd/hiawatha/files/define-MBEDTLS_ATTRIBUTE_UNTERMINATED_STRING.patch b/meta-webserver/recipes-httpd/hiawatha/files/define-MBEDTLS_ATTRIBUTE_UNTERMINATED_STRING.patch
deleted file mode 100644
index 6e2d9eb5f1..0000000000
--- a/meta-webserver/recipes-httpd/hiawatha/files/define-MBEDTLS_ATTRIBUTE_UNTERMINATED_STRING.patch
+++ /dev/null
@@ -1,33 +0,0 @@
1Replace __attribute__((nonstring)) with macro MBEDTLS_ATTRIBUTE_UNTERMINATED_STRING
2This macro applies __attribute__((nonstring)) when using a compiler that supports it
3
4Upstream-Status: Backport [https://github.com/Mbed-TLS/TF-PSA-Crypto/commit/996f4fa3a2fbe8792ed3efd1bcb3657001f35ae1]
5
6Signed-off-by: Felix Conway <felix.conway@arm.com>
7Signed-off-by: Khem Raj <raj.khem@gmail.com>
8
9--- a/library/ssl_tls13_keys.h
10+++ b/library/ssl_tls13_keys.h
11@@ -7,6 +7,22 @@
12 #if !defined(MBEDTLS_SSL_TLS1_3_KEYS_H)
13 #define MBEDTLS_SSL_TLS1_3_KEYS_H
14
15+/* GCC >= 15 has a warning 'unterminated-string-initialization' which complains if you initialize
16+ * a string into an array without space for a terminating NULL character. In some places in the
17+ * codebase this behaviour is intended, so we add the macro MBEDTLS_ATTRIBUTE_UNTERMINATED_STRING
18+ * to suppress the warning in these places.
19+ */
20+#if defined(__has_attribute)
21+#if __has_attribute(nonstring)
22+#define MBEDTLS_HAS_ATTRIBUTE_NONSTRING
23+#endif /* __has_attribute(nonstring) */
24+#endif /* __has_attribute */
25+#if defined(MBEDTLS_HAS_ATTRIBUTE_NONSTRING)
26+#define MBEDTLS_ATTRIBUTE_UNTERMINATED_STRING __attribute__((nonstring))
27+#else
28+#define MBEDTLS_ATTRIBUTE_UNTERMINATED_STRING
29+#endif /* MBEDTLS_HAS_ATTRIBUTE_NONSTRING */
30+
31 /* This requires MBEDTLS_SSL_TLS1_3_LABEL( idx, name, string ) to be defined at
32 * the point of use. See e.g. the definition of mbedtls_ssl_tls13_labels_union
33 * below. */
diff --git a/meta-webserver/recipes-httpd/hiawatha/hiawatha_11.7.bb b/meta-webserver/recipes-httpd/hiawatha/hiawatha_11.8.bb
index 4e7e5fa31d..720c292026 100644
--- a/meta-webserver/recipes-httpd/hiawatha/hiawatha_11.7.bb
+++ b/meta-webserver/recipes-httpd/hiawatha/hiawatha_11.8.bb
@@ -7,14 +7,11 @@ DEPENDS = "libxml2 libxslt virtual/crypt"
7SECTION = "net" 7SECTION = "net"
8 8
9SRC_URI = "https://hiawatha.leisink.net/files/hiawatha-${PV}.tar.gz \ 9SRC_URI = "https://hiawatha.leisink.net/files/hiawatha-${PV}.tar.gz \
10 file://0001-Add-__attribute__-nonstring-to-remove-unterminated-s.patch;patchdir=mbedtls \
11 file://0002-Replace-__attribute__-nonstring-with-macro-MBEDTLS_A.patch;patchdir=mbedtls \
12 file://define-MBEDTLS_ATTRIBUTE_UNTERMINATED_STRING.patch;patchdir=mbedtls \
13 file://hiawatha-init \ 10 file://hiawatha-init \
14 file://hiawatha.service \ 11 file://hiawatha.service \
15 " 12 "
16 13
17SRC_URI[sha256sum] = "8bc180ae3b986d02466f081efeefdb1595d96783f581fded2a9b198752ab7ae1" 14SRC_URI[sha256sum] = "1376763750fb9a88a780bac6aba8707bc2a78f8ee089c62d433e50216a5183bd"
18 15
19INITSCRIPT_NAME = "hiawatha" 16INITSCRIPT_NAME = "hiawatha"
20INITSCRIPT_PARAMS = "defaults 70" 17INITSCRIPT_PARAMS = "defaults 70"