Skip to contentSkip to conversation

mdns: remove unneeded headers

PATCH In review Beniamin Sandu 3 participants 18 messages Jun 19, 2023 – Jun 20, 2023 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mdns: remove unneeded headers

---
 .../mdns/0009-remove-unneeded-headers.patch   | 33 +++++++++++++++++++
 .../recipes-protocols/mdns/mdns_1790.80.10.bb |  1 +
 2 files changed, 34 insertions(+)
 create mode 100644 meta-networking/recipes-protocols/mdns/mdns/0009-remove-unneeded-headers.patch
meta-networking/recipes-protocols/mdns/mdns/0009-remove-unneeded-headers.patch new file +33 -0
new file mode 100644
index 000000000..74d387368
@@ -0,0 +1,33 @@
+From 1d7e71e72c597ffcc19c04373a477d1fbd3ad955 Mon Sep 17 00:00:00 2001
+From: Beniamin Sandu <[email protected]>
+Date: Thu, 15 Jun 2023 17:02:58 +0000
+Subject: [PATCH] remove unneeded headers
+
+From a quick look, these seem to not be needed and having them
+breaks the build with mbedtls 3.x. Without them it builds fine
+on both 2.x and 3.x versions.
+
+Upstream-Status: Pending
+
+Signed-off-by: Beniamin Sandu <[email protected]>
+---
+ mDNSPosix/mbedtls.c | 2 --
+ 1 file changed, 2 deletions(-)
+
+diff --git a/mDNSPosix/mbedtls.c b/mDNSPosix/mbedtls.c
+index a73681b..ab8f8c7 100644
+--- a/mDNSPosix/mbedtls.c
++++ b/mDNSPosix/mbedtls.c
+@@ -38,10 +38,8 @@
+ #include <mbedtls/sha256.h>
+ #include <mbedtls/base64.h>
+
+-#include <mbedtls/certs.h>
+ #include <mbedtls/x509.h>
+ #include <mbedtls/ssl.h>
+-#include <mbedtls/config.h>
+
+ // Posix TLS server context
+ struct TLSContext_struct {
+--
+2.34.1
meta-networking/recipes-protocols/mdns/mdns_1790.80.10.bb +1 -0
index 612d343c8..46f1b70cb 100644
@@ -21,6 +21,7 @@ SRC_URI = "git://github.com/apple-oss-distributions/mDNSResponder;protocol=https
            file://0006-Handle-noisy-netlink-sockets.patch \
            file://0007-Mark-deleted-interfaces-as-being-changed.patch \
            file://0008-Handle-errors-from-socket-calls.patch \
+           file://0009-remove-unneeded-headers.patch \
            file://mdns.service \
            "
 SRCREV = "8769ab51605e465425d33d757f602ce5905ca639"
Signature · 1 line
2.25.1
#1 lore raw

Keeping up with Apple given they take nothing is frankly a right pain, adding things which are nice to have rather than just broken seems like we're just adding to the problem. Last time I resynchronized this it took me days, unless there's a really good reason to do this, or there's a way to get it upstreamed I'd rather we didn't.

Quoted 79 lines · On Mon, 19 Jun 2023, 19:20 Beniamin Sandu, <[email protected]> wrote:
---
 .../mdns/0009-remove-unneeded-headers.patch   | 33 +++++++++++++++++++
 .../recipes-protocols/mdns/mdns_1790.80.10.bb |  1 +
 2 files changed, 34 insertions(+)
 create mode 100644

meta-networking/recipes-protocols/mdns/mdns/0009-remove-unneeded-headers.patch

diff --git a/meta-networking/recipes-protocols/mdns/mdns/0009-remove-unneeded-headers.patch b/meta-networking/recipes-protocols/mdns/mdns/0009-remove-unneeded-headers.patch new file mode 100644
index 000000000..74d387368
--- /dev/null
+++
b/meta-networking/recipes-protocols/mdns/mdns/0009-remove-unneeded-headers.patch

meta-networking/recipes-protocols/mdns/mdns/0009-remove-unneeded-headers.patch new file +33 -0
@@ -0,0 +1,33 @@
+From 1d7e71e72c597ffcc19c04373a477d1fbd3ad955 Mon Sep 17 00:00:00 2001
+From: Beniamin Sandu <[email protected]>
+Date: Thu, 15 Jun 2023 17:02:58 +0000
+Subject: [PATCH] remove unneeded headers
+
+From a quick look, these seem to not be needed and having them
+breaks the build with mbedtls 3.x. Without them it builds fine
+on both 2.x and 3.x versions.
+
+Upstream-Status: Pending
+
+Signed-off-by: Beniamin Sandu <[email protected]>
+---
+ mDNSPosix/mbedtls.c | 2 --
+ 1 file changed, 2 deletions(-)
+
+diff --git a/mDNSPosix/mbedtls.c b/mDNSPosix/mbedtls.c
+index a73681b..ab8f8c7 100644
+--- a/mDNSPosix/mbedtls.c
++++ b/mDNSPosix/mbedtls.c
+@@ -38,10 +38,8 @@
+ #include <mbedtls/sha256.h>
+ #include <mbedtls/base64.h>
+
+-#include <mbedtls/certs.h>
+ #include <mbedtls/x509.h>
+ #include <mbedtls/ssl.h>
+-#include <mbedtls/config.h>
+
+ // Posix TLS server context
+ struct TLSContext_struct {
+--
+2.34.1
meta-networking/recipes-protocols/mdns/mdns_1790.80.10.bb +0 -0
index 612d343c8..46f1b70cb 100644
@@ -21,6 +21,7 @@ SRC_URI = "git://

github.com/apple-oss-distributions/mDNSResponder;protocol=https

            file://0006-Handle-noisy-netlink-sockets.patch \
            file://0007-Mark-deleted-interfaces-as-being-changed.patch \
            file://0008-Handle-errors-from-socket-calls.patch \
+           file://0009-remove-unneeded-headers.patch \
            file://mdns.service \
            "

SRCREV = "8769ab51605e465425d33d757f602ce5905ca639"
--
2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#103440):
https://lists.openembedded.org/g/openembedded-devel/message/103440
Mute This Topic: https://lists.openembedded.org/mt/99629056/3618097
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#2 lore raw

I am trying to add a v3.x mbedtls recipe to master branch, and without this patch, mdns does not build. I could not find an obvious way to submit upstream patches to mdns from a quick search, otherwise I would gladly do it.

While I am with you on trying to reduce technical debt within yocto layers, this one is very small and rather harmless, so I hope we can make a sacrifice for the greater good. :)

Cheers,
Beni

Quoted 76 lines · Alex Kiernan

Keeping up with Apple given they take nothing is frankly a right pain, adding things which are nice to have rather than just broken seems like we're just adding to the problem. Last time I resynchronized this it took me days, unless there's a really good reason to do this, or there's a way to get it upstreamed I'd rather we didn't.

Quoted 71 lines · On Mon, 19 Jun 2023, 19:20 Beniamin Sandu, <[email protected]> wrote:
---
 .../mdns/0009-remove-unneeded-headers.patch   | 33 +++++++++++++++++++
 .../recipes-protocols/mdns/mdns_1790.80.10.bb |  1 +
 2 files changed, 34 insertions(+)
 create mode 100644 meta-networking/recipes-protocols/mdns/mdns/0009-remove-unneeded-headers.patch
meta-networking/recipes-protocols/mdns/mdns/0009-remove-unneeded-headers.patch new file +33 -0
new file mode 100644
index 000000000..74d387368
@@ -0,0 +1,33 @@
+From 1d7e71e72c597ffcc19c04373a477d1fbd3ad955 Mon Sep 17 00:00:00 2001
+From: Beniamin Sandu <[email protected]>
+Date: Thu, 15 Jun 2023 17:02:58 +0000
+Subject: [PATCH] remove unneeded headers
+
+From a quick look, these seem to not be needed and having them
+breaks the build with mbedtls 3.x. Without them it builds fine
+on both 2.x and 3.x versions.
+
+Upstream-Status: Pending
+
+Signed-off-by: Beniamin Sandu <[email protected]>
+---
+ mDNSPosix/mbedtls.c | 2 --
+ 1 file changed, 2 deletions(-)
+
+diff --git a/mDNSPosix/mbedtls.c b/mDNSPosix/mbedtls.c
+index a73681b..ab8f8c7 100644
+--- a/mDNSPosix/mbedtls.c
++++ b/mDNSPosix/mbedtls.c
+@@ -38,10 +38,8 @@
+ #include <mbedtls/sha256.h>
+ #include <mbedtls/base64.h>
+
+-#include <mbedtls/certs.h>
+ #include <mbedtls/x509.h>
+ #include <mbedtls/ssl.h>
+-#include <mbedtls/config.h>
+
+ // Posix TLS server context
+ struct TLSContext_struct {
+--
+2.34.1
meta-networking/recipes-protocols/mdns/mdns_1790.80.10.bb +1 -1
index 612d343c8..46f1b70cb 100644
@@ -21,6 +21,7 @@ SRC_URI = "git://github.com/apple-oss-distributions/mDNSResponder;protocol=https
            file://0006-Handle-noisy-netlink-sockets.patch \
            file://0007-Mark-deleted-interfaces-as-being-changed.patch \
            file://0008-Handle-errors-from-socket-calls.patch \
+           file://0009-remove-unneeded-headers.patch \
            file://mdns.service \
            "
 SRCREV = "8769ab51605e465425d33d757f602ce5905ca639"
--

2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#103440): https://lists.openembedded.org/g/openembedded-devel/message/103440
Mute This Topic: https://lists.openembedded.org/mt/99629056/3618097
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#3 lore raw
Quoted 2 lines · Beniamin Sandu

I am trying to add a v3.x mbedtls recipe to master branch, and without

Sorry, was reading the thread out of order and missed that you were trying to add an Mbed TLS 3 recipe!

Quoted 4 lines

this patch, mdns does not build. I could not find an obvious way to submit upstream patches to mdns from a quick search, otherwise I would gladly do it.

Several folk have tried sending them to [email protected] (seemingly without success), there's also a couple of attempted PRs on github (again seemingly going nowhere). Winding back about 20 years, I tried to get a bunch of portability fixes into the Quicktime Streaming Server without success - the model appears to very much be open source, not open contribution.

Quoted 4 lines

While I am with you on trying to reduce technical debt within yocto layers, this one is very small and rather harmless, so I hope we can make a sacrifice for the greater good. :)

I'm guessing we'll need to scope an Mbed TLS 3 recipe as being explicitly mbedtls3_...? So sticking with 2.x doesn't feel like a terrible option, but I agree its not ideal.

My concern isn't really with the one liner now, its the how hard does it become to do the upgrades down the road - if we suddenly can't upgrade because upstream's stuck on 2.x and there's something incompatible with 3.x what do we do?

Quoted 81 lines

Cheers,
Beni

Quoted 76 lines · Alex Kiernan

Keeping up with Apple given they take nothing is frankly a right pain, adding things which are nice to have rather than just broken seems like we're just adding to the problem. Last time I resynchronized this it took me days, unless there's a really good reason to do this, or there's a way to get it upstreamed I'd rather we didn't.

Quoted 71 lines · On Mon, 19 Jun 2023, 19:20 Beniamin Sandu, <[email protected]> wrote:
---
 .../mdns/0009-remove-unneeded-headers.patch   | 33 +++++++++++++++++++
 .../recipes-protocols/mdns/mdns_1790.80.10.bb |  1 +
 2 files changed, 34 insertions(+)
 create mode 100644 meta-networking/recipes-protocols/mdns/mdns/0009-remove-unneeded-headers.patch
meta-networking/recipes-protocols/mdns/mdns/0009-remove-unneeded-headers.patch new file +33 -0
new file mode 100644
index 000000000..74d387368
@@ -0,0 +1,33 @@
+From 1d7e71e72c597ffcc19c04373a477d1fbd3ad955 Mon Sep 17 00:00:00 2001
+From: Beniamin Sandu <[email protected]>
+Date: Thu, 15 Jun 2023 17:02:58 +0000
+Subject: [PATCH] remove unneeded headers
+
+From a quick look, these seem to not be needed and having them
+breaks the build with mbedtls 3.x. Without them it builds fine
+on both 2.x and 3.x versions.
+
+Upstream-Status: Pending
+
+Signed-off-by: Beniamin Sandu <[email protected]>
+---
+ mDNSPosix/mbedtls.c | 2 --
+ 1 file changed, 2 deletions(-)
+
+diff --git a/mDNSPosix/mbedtls.c b/mDNSPosix/mbedtls.c
+index a73681b..ab8f8c7 100644
+--- a/mDNSPosix/mbedtls.c
++++ b/mDNSPosix/mbedtls.c
+@@ -38,10 +38,8 @@
+ #include <mbedtls/sha256.h>
+ #include <mbedtls/base64.h>
+
+-#include <mbedtls/certs.h>
+ #include <mbedtls/x509.h>
+ #include <mbedtls/ssl.h>
+-#include <mbedtls/config.h>
+
+ // Posix TLS server context
+ struct TLSContext_struct {
+--
+2.34.1
meta-networking/recipes-protocols/mdns/mdns_1790.80.10.bb +1 -1
index 612d343c8..46f1b70cb 100644
@@ -21,6 +21,7 @@ SRC_URI = "git://github.com/apple-oss-distributions/mDNSResponder;protocol=https
            file://0006-Handle-noisy-netlink-sockets.patch \
            file://0007-Mark-deleted-interfaces-as-being-changed.patch \
            file://0008-Handle-errors-from-socket-calls.patch \
+           file://0009-remove-unneeded-headers.patch \
            file://mdns.service \
            "
 SRCREV = "8769ab51605e465425d33d757f602ce5905ca639"
--

2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#103440): https://lists.openembedded.org/g/openembedded-devel/message/103440
Mute This Topic: https://lists.openembedded.org/mt/99629056/3618097
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Signature · 1 line
Alex Kiernan
#4 lore raw
Quoted 20 lines · Alex Kiernan
Quoted 2 lines · Beniamin Sandu

I am trying to add a v3.x mbedtls recipe to master branch, and without

Sorry, was reading the thread out of order and missed that you were trying to add an Mbed TLS 3 recipe!

Quoted 4 lines

this patch, mdns does not build. I could not find an obvious way to submit upstream patches to mdns from a quick search, otherwise I would gladly do it.

Several folk have tried sending them to [email protected] (seemingly without success), there's also a couple of attempted PRs on github (again seemingly going nowhere). Winding back about 20 years, I tried to get a bunch of portability fixes into the Quicktime Streaming Server without success - the model appears to very much be open source, not open contribution.

Quoted 8 lines
Quoted 4 lines

While I am with you on trying to reduce technical debt within yocto layers, this one is very small and rather harmless, so I hope we can make a sacrifice for the greater good. :)

I'm guessing we'll need to scope an Mbed TLS 3 recipe as being explicitly mbedtls3_...? So sticking with 2.x doesn't feel like a terrible option, but I agree its not ideal.

This also sounds like a fairly decent option, having a separate mbedtls3 package might make it easier in general, although I am not aware of how used the current v2 version actually is.

Quoted 92 lines

My concern isn't really with the one liner now, its the how hard does it become to do the upgrades down the road - if we suddenly can't upgrade because upstream's stuck on 2.x and there's something incompatible with 3.x what do we do?

Quoted 73 lines

Cheers,
Beni

Quoted 68 lines · Alex Kiernan

Keeping up with Apple given they take nothing is frankly a right pain, adding things which are nice to have rather than just broken seems like we're just adding to the problem. Last time I resynchronized this it took me days, unless there's a really good reason to do this, or there's a way to get it upstreamed I'd rather we didn't.

Quoted 63 lines · On Mon, 19 Jun 2023, 19:20 Beniamin Sandu, <[email protected]> wrote:
---
 .../mdns/0009-remove-unneeded-headers.patch   | 33 +++++++++++++++++++
 .../recipes-protocols/mdns/mdns_1790.80.10.bb |  1 +
 2 files changed, 34 insertions(+)
 create mode 100644 meta-networking/recipes-protocols/mdns/mdns/0009-remove-unneeded-headers.patch
meta-networking/recipes-protocols/mdns/mdns/0009-remove-unneeded-headers.patch new file +33 -0
new file mode 100644
index 000000000..74d387368
@@ -0,0 +1,33 @@
+From 1d7e71e72c597ffcc19c04373a477d1fbd3ad955 Mon Sep 17 00:00:00 2001
+From: Beniamin Sandu <[email protected]>
+Date: Thu, 15 Jun 2023 17:02:58 +0000
+Subject: [PATCH] remove unneeded headers
+
+From a quick look, these seem to not be needed and having them
+breaks the build with mbedtls 3.x. Without them it builds fine
+on both 2.x and 3.x versions.
+
+Upstream-Status: Pending
+
+Signed-off-by: Beniamin Sandu <[email protected]>
+---
+ mDNSPosix/mbedtls.c | 2 --
+ 1 file changed, 2 deletions(-)
+
+diff --git a/mDNSPosix/mbedtls.c b/mDNSPosix/mbedtls.c
+index a73681b..ab8f8c7 100644
+--- a/mDNSPosix/mbedtls.c
++++ b/mDNSPosix/mbedtls.c
+@@ -38,10 +38,8 @@
+ #include <mbedtls/sha256.h>
+ #include <mbedtls/base64.h>
+
+-#include <mbedtls/certs.h>
+ #include <mbedtls/x509.h>
+ #include <mbedtls/ssl.h>
+-#include <mbedtls/config.h>
+
+ // Posix TLS server context
+ struct TLSContext_struct {
+--
+2.34.1
meta-networking/recipes-protocols/mdns/mdns_1790.80.10.bb +1 -1
index 612d343c8..46f1b70cb 100644
@@ -21,6 +21,7 @@ SRC_URI = "git://github.com/apple-oss-distributions/mDNSResponder;protocol=https
            file://0006-Handle-noisy-netlink-sockets.patch \
            file://0007-Mark-deleted-interfaces-as-being-changed.patch \
            file://0008-Handle-errors-from-socket-calls.patch \
+           file://0009-remove-unneeded-headers.patch \
            file://mdns.service \
            "
 SRCREV = "8769ab51605e465425d33d757f602ce5905ca639"
--

2.25.1

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#103440): https://lists.openembedded.org/g/openembedded-devel/message/103440
Mute This Topic: https://lists.openembedded.org/mt/99629056/3618097
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

--
Alex Kiernan

#5 lore raw
Quoted 27 lines · Beniamin Sandu
Quoted 25 lines · Alex Kiernan
Quoted 2 lines · Beniamin Sandu

I am trying to add a v3.x mbedtls recipe to master branch, and without

Sorry, was reading the thread out of order and missed that you were trying to add an Mbed TLS 3 recipe!

Quoted 4 lines

this patch, mdns does not build. I could not find an obvious way to submit upstream patches to mdns from a quick search, otherwise I would gladly do it.

Several folk have tried sending them to [email protected] (seemingly without success), there's also a couple of attempted PRs on github (again seemingly going nowhere). Winding back about 20 years, I tried to get a bunch of portability fixes into the Quicktime Streaming Server without success - the model appears to very much be open source, not open contribution.

Quoted 4 lines

While I am with you on trying to reduce technical debt within yocto layers, this one is very small and rather harmless, so I hope we can make a sacrifice for the greater good. :)

Quoted 8 lines
Quoted 3 lines

I'm guessing we'll need to scope an Mbed TLS 3 recipe as being explicitly mbedtls3_...? So sticking with 2.x doesn't feel like a terrible option, but I agree its not ideal.

This also sounds like a fairly decent option, having a separate mbedtls3 package might make it easier in general, although I am not aware of how used the current v2 version actually is.

Looks like we're out of date (there's a 2.28.3), but it's still supported for now... "Mbed TLS 2.28 is a long-time support branch. It will be supported with bug-fixes and security fixes until end of 2024."

Quoted 92 lines
Quoted 92 lines

My concern isn't really with the one liner now, its the how hard does it become to do the upgrades down the road - if we suddenly can't upgrade because upstream's stuck on 2.x and there's something incompatible with 3.x what do we do?

Quoted 73 lines

Cheers,
Beni

Quoted 68 lines · Alex Kiernan

Keeping up with Apple given they take nothing is frankly a right pain, adding things which are nice to have rather than just broken seems like we're just adding to the problem. Last time I resynchronized this it took me days, unless there's a really good reason to do this, or there's a way to get it upstreamed I'd rather we didn't.

Quoted 63 lines · On Mon, 19 Jun 2023, 19:20 Beniamin Sandu, <[email protected]> wrote:
---
 .../mdns/0009-remove-unneeded-headers.patch   | 33 +++++++++++++++++++
 .../recipes-protocols/mdns/mdns_1790.80.10.bb |  1 +
 2 files changed, 34 insertions(+)
 create mode 100644 meta-networking/recipes-protocols/mdns/mdns/0009-remove-unneeded-headers.patch
meta-networking/recipes-protocols/mdns/mdns/0009-remove-unneeded-headers.patch new file +33 -0
new file mode 100644
index 000000000..74d387368
@@ -0,0 +1,33 @@
+From 1d7e71e72c597ffcc19c04373a477d1fbd3ad955 Mon Sep 17 00:00:00 2001
+From: Beniamin Sandu <[email protected]>
+Date: Thu, 15 Jun 2023 17:02:58 +0000
+Subject: [PATCH] remove unneeded headers
+
+From a quick look, these seem to not be needed and having them
+breaks the build with mbedtls 3.x. Without them it builds fine
+on both 2.x and 3.x versions.
+
+Upstream-Status: Pending
+
+Signed-off-by: Beniamin Sandu <[email protected]>
+---
+ mDNSPosix/mbedtls.c | 2 --
+ 1 file changed, 2 deletions(-)
+
+diff --git a/mDNSPosix/mbedtls.c b/mDNSPosix/mbedtls.c
+index a73681b..ab8f8c7 100644
+--- a/mDNSPosix/mbedtls.c
++++ b/mDNSPosix/mbedtls.c
+@@ -38,10 +38,8 @@
+ #include <mbedtls/sha256.h>
+ #include <mbedtls/base64.h>
+
+-#include <mbedtls/certs.h>
+ #include <mbedtls/x509.h>
+ #include <mbedtls/ssl.h>
+-#include <mbedtls/config.h>
+
+ // Posix TLS server context
+ struct TLSContext_struct {
+--
+2.34.1
meta-networking/recipes-protocols/mdns/mdns_1790.80.10.bb +1 -1
index 612d343c8..46f1b70cb 100644
@@ -21,6 +21,7 @@ SRC_URI = "git://github.com/apple-oss-distributions/mDNSResponder;protocol=https
            file://0006-Handle-noisy-netlink-sockets.patch \
            file://0007-Mark-deleted-interfaces-as-being-changed.patch \
            file://0008-Handle-errors-from-socket-calls.patch \
+           file://0009-remove-unneeded-headers.patch \
            file://mdns.service \
            "
 SRCREV = "8769ab51605e465425d33d757f602ce5905ca639"
--

2.25.1

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#103440): https://lists.openembedded.org/g/openembedded-devel/message/103440
Mute This Topic: https://lists.openembedded.org/mt/99629056/3618097
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

--
Alex Kiernan

Signature · 1 line
Alex Kiernan

A message that is not in the archive (sent off-list or not yet received): [email protected]

#7 lore raw
Quoted 38 lines · Alex Kiernan via lists.openembedded.org
Quoted 27 lines · Beniamin Sandu
Quoted 25 lines · Alex Kiernan
Quoted 2 lines · Beniamin Sandu

I am trying to add a v3.x mbedtls recipe to master branch, and without

Sorry, was reading the thread out of order and missed that you were trying to add an Mbed TLS 3 recipe!

Quoted 4 lines

this patch, mdns does not build. I could not find an obvious way to submit upstream patches to mdns from a quick search, otherwise I would gladly do it.

Several folk have tried sending them to [email protected] (seemingly without success), there's also a couple of attempted PRs on github (again seemingly going nowhere). Winding back about 20 years, I tried to get a bunch of portability fixes into the Quicktime Streaming Server without success - the model appears to very much be open source, not open contribution.

Quoted 4 lines

While I am with you on trying to reduce technical debt within yocto layers, this one is very small and rather harmless, so I hope we can make a sacrifice for the greater good. :)

Quoted 8 lines
Quoted 3 lines

I'm guessing we'll need to scope an Mbed TLS 3 recipe as being explicitly mbedtls3_...? So sticking with 2.x doesn't feel like a terrible option, but I agree its not ideal.

This also sounds like a fairly decent option, having a separate mbedtls3 package might make it easier in general, although I am not aware of how used the current v2 version actually is.

Quoted 5 lines

Looks like we're out of date (there's a 2.28.3), but it's still supported for now... "Mbed TLS 2.28 is a long-time support branch. It will be supported with bug-fixes and security fixes until end of 2024."

Will send an update for 2.28.3, but constrain devtool upgrade to things on the 2.x branch

One thought on 3.x - if mdns is the only failure maybe rename the current recipe to mbedtls2_% and add 3.x as mbedtls_% and then fix up the mdns recipe to consume mbedtls2?

Quoted 100 lines
Quoted 78 lines
Quoted 78 lines

My concern isn't really with the one liner now, its the how hard does it become to do the upgrades down the road - if we suddenly can't upgrade because upstream's stuck on 2.x and there's something incompatible with 3.x what do we do?

Quoted 72 lines

Cheers,
Beni

Quoted 67 lines · Alex Kiernan

Keeping up with Apple given they take nothing is frankly a right pain, adding things which are nice to have rather than just broken seems like we're just adding to the problem. Last time I resynchronized this it took me days, unless there's a really good reason to do this, or there's a way to get it upstreamed I'd rather we didn't.

Quoted 62 lines · On Mon, 19 Jun 2023, 19:20 Beniamin Sandu, <[email protected]> wrote:
---
 .../mdns/0009-remove-unneeded-headers.patch   | 33 +++++++++++++++++++
 .../recipes-protocols/mdns/mdns_1790.80.10.bb |  1 +
 2 files changed, 34 insertions(+)
 create mode 100644 meta-networking/recipes-protocols/mdns/mdns/0009-remove-unneeded-headers.patch
meta-networking/recipes-protocols/mdns/mdns/0009-remove-unneeded-headers.patch new file +33 -0
new file mode 100644
index 000000000..74d387368
@@ -0,0 +1,33 @@
+From 1d7e71e72c597ffcc19c04373a477d1fbd3ad955 Mon Sep 17 00:00:00 2001
+From: Beniamin Sandu <[email protected]>
+Date: Thu, 15 Jun 2023 17:02:58 +0000
+Subject: [PATCH] remove unneeded headers
+
+From a quick look, these seem to not be needed and having them
+breaks the build with mbedtls 3.x. Without them it builds fine
+on both 2.x and 3.x versions.
+
+Upstream-Status: Pending
+
+Signed-off-by: Beniamin Sandu <[email protected]>
+---
+ mDNSPosix/mbedtls.c | 2 --
+ 1 file changed, 2 deletions(-)
+
+diff --git a/mDNSPosix/mbedtls.c b/mDNSPosix/mbedtls.c
+index a73681b..ab8f8c7 100644
+--- a/mDNSPosix/mbedtls.c
++++ b/mDNSPosix/mbedtls.c
+@@ -38,10 +38,8 @@
+ #include <mbedtls/sha256.h>
+ #include <mbedtls/base64.h>
+
+-#include <mbedtls/certs.h>
+ #include <mbedtls/x509.h>
+ #include <mbedtls/ssl.h>
+-#include <mbedtls/config.h>
+
+ // Posix TLS server context
+ struct TLSContext_struct {
+--
+2.34.1
meta-networking/recipes-protocols/mdns/mdns_1790.80.10.bb +1 -1
index 612d343c8..46f1b70cb 100644
@@ -21,6 +21,7 @@ SRC_URI = "git://github.com/apple-oss-distributions/mDNSResponder;protocol=https
            file://0006-Handle-noisy-netlink-sockets.patch \
            file://0007-Mark-deleted-interfaces-as-being-changed.patch \
            file://0008-Handle-errors-from-socket-calls.patch \
+           file://0009-remove-unneeded-headers.patch \
            file://mdns.service \
            "
 SRCREV = "8769ab51605e465425d33d757f602ce5905ca639"
--

2.25.1

Quoted 8 lines
Quoted 8 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

--
Alex Kiernan

--
Alex Kiernan

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#103455): https://lists.openembedded.org/g/openembedded-devel/message/103455
Mute This Topic: https://lists.openembedded.org/mt/99629056/3618097
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Signature · 1 line
Alex Kiernan
#8 lore raw
Quoted 48 lines · Alex Kiernan
Quoted 38 lines · Alex Kiernan via lists.openembedded.org
Quoted 27 lines · Beniamin Sandu
Quoted 25 lines · Alex Kiernan
Quoted 2 lines · Beniamin Sandu

I am trying to add a v3.x mbedtls recipe to master branch, and without

Sorry, was reading the thread out of order and missed that you were trying to add an Mbed TLS 3 recipe!

Quoted 4 lines

this patch, mdns does not build. I could not find an obvious way to submit upstream patches to mdns from a quick search, otherwise I would gladly do it.

Several folk have tried sending them to [email protected] (seemingly without success), there's also a couple of attempted PRs on github (again seemingly going nowhere). Winding back about 20 years, I tried to get a bunch of portability fixes into the Quicktime Streaming Server without success - the model appears to very much be open source, not open contribution.

Quoted 4 lines

While I am with you on trying to reduce technical debt within yocto layers, this one is very small and rather harmless, so I hope we can make a sacrifice for the greater good. :)

Quoted 8 lines
Quoted 3 lines

I'm guessing we'll need to scope an Mbed TLS 3 recipe as being explicitly mbedtls3_...? So sticking with 2.x doesn't feel like a terrible option, but I agree its not ideal.

This also sounds like a fairly decent option, having a separate mbedtls3 package might make it easier in general, although I am not aware of how used the current v2 version actually is.

Quoted 5 lines

Looks like we're out of date (there's a 2.28.3), but it's still supported for now... "Mbed TLS 2.28 is a long-time support branch. It will be supported with bug-fixes and security fixes until end of 2024."

Quoted 7 lines

Will send an update for 2.28.3, but constrain devtool upgrade to things on the 2.x branch

One thought on 3.x - if mdns is the only failure maybe rename the current recipe to mbedtls2_% and add 3.x as mbedtls_% and then fix up the mdns recipe to consume mbedtls2?

Personally I would say it is not worth to do it, just because of this one package. Plus, it's building fine with both versions by including this small patch, but maybe Khem Raj can chime in with an opinion here.

Quoted 104 lines
Quoted 92 lines
Quoted 78 lines
Quoted 78 lines

My concern isn't really with the one liner now, its the how hard does it become to do the upgrades down the road - if we suddenly can't upgrade because upstream's stuck on 2.x and there's something incompatible with 3.x what do we do?

Quoted 72 lines

Cheers,
Beni

Quoted 67 lines · Alex Kiernan

Keeping up with Apple given they take nothing is frankly a right pain, adding things which are nice to have rather than just broken seems like we're just adding to the problem. Last time I resynchronized this it took me days, unless there's a really good reason to do this, or there's a way to get it upstreamed I'd rather we didn't.

Quoted 62 lines · On Mon, 19 Jun 2023, 19:20 Beniamin Sandu, <[email protected]> wrote:
---
 .../mdns/0009-remove-unneeded-headers.patch   | 33 +++++++++++++++++++
 .../recipes-protocols/mdns/mdns_1790.80.10.bb |  1 +
 2 files changed, 34 insertions(+)
 create mode 100644 meta-networking/recipes-protocols/mdns/mdns/0009-remove-unneeded-headers.patch
meta-networking/recipes-protocols/mdns/mdns/0009-remove-unneeded-headers.patch new file +33 -0
new file mode 100644
index 000000000..74d387368
@@ -0,0 +1,33 @@
+From 1d7e71e72c597ffcc19c04373a477d1fbd3ad955 Mon Sep 17 00:00:00 2001
+From: Beniamin Sandu <[email protected]>
+Date: Thu, 15 Jun 2023 17:02:58 +0000
+Subject: [PATCH] remove unneeded headers
+
+From a quick look, these seem to not be needed and having them
+breaks the build with mbedtls 3.x. Without them it builds fine
+on both 2.x and 3.x versions.
+
+Upstream-Status: Pending
+
+Signed-off-by: Beniamin Sandu <[email protected]>
+---
+ mDNSPosix/mbedtls.c | 2 --
+ 1 file changed, 2 deletions(-)
+
+diff --git a/mDNSPosix/mbedtls.c b/mDNSPosix/mbedtls.c
+index a73681b..ab8f8c7 100644
+--- a/mDNSPosix/mbedtls.c
++++ b/mDNSPosix/mbedtls.c
+@@ -38,10 +38,8 @@
+ #include <mbedtls/sha256.h>
+ #include <mbedtls/base64.h>
+
+-#include <mbedtls/certs.h>
+ #include <mbedtls/x509.h>
+ #include <mbedtls/ssl.h>
+-#include <mbedtls/config.h>
+
+ // Posix TLS server context
+ struct TLSContext_struct {
+--
+2.34.1
meta-networking/recipes-protocols/mdns/mdns_1790.80.10.bb +1 -1
index 612d343c8..46f1b70cb 100644
@@ -21,6 +21,7 @@ SRC_URI = "git://github.com/apple-oss-distributions/mDNSResponder;protocol=https
            file://0006-Handle-noisy-netlink-sockets.patch \
            file://0007-Mark-deleted-interfaces-as-being-changed.patch \
            file://0008-Handle-errors-from-socket-calls.patch \
+           file://0009-remove-unneeded-headers.patch \
            file://mdns.service \
            "
 SRCREV = "8769ab51605e465425d33d757f602ce5905ca639"
--

2.25.1

Quoted 8 lines
Quoted 8 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

--
Alex Kiernan

--
Alex Kiernan

Quoted 8 lines

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#103455): https://lists.openembedded.org/g/openembedded-devel/message/103455
Mute This Topic: https://lists.openembedded.org/mt/99629056/3618097
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

--
Alex Kiernan

#9 lore raw
Quoted 58 lines · Beniamin Sandu
Quoted 48 lines · Alex Kiernan
Quoted 38 lines · Alex Kiernan via lists.openembedded.org
Quoted 27 lines · Beniamin Sandu
Quoted 25 lines · Alex Kiernan
Quoted 2 lines · Beniamin Sandu

I am trying to add a v3.x mbedtls recipe to master branch, and without

Sorry, was reading the thread out of order and missed that you were trying to add an Mbed TLS 3 recipe!

Quoted 4 lines

this patch, mdns does not build. I could not find an obvious way to submit upstream patches to mdns from a quick search, otherwise I would gladly do it.

Several folk have tried sending them to [email protected] (seemingly without success), there's also a couple of attempted PRs on github (again seemingly going nowhere). Winding back about 20 years, I tried to get a bunch of portability fixes into the Quicktime Streaming Server without success - the model appears to very much be open source, not open contribution.

Quoted 4 lines

While I am with you on trying to reduce technical debt within yocto layers, this one is very small and rather harmless, so I hope we can make a sacrifice for the greater good. :)

Quoted 8 lines
Quoted 3 lines

I'm guessing we'll need to scope an Mbed TLS 3 recipe as being explicitly mbedtls3_...? So sticking with 2.x doesn't feel like a terrible option, but I agree its not ideal.

This also sounds like a fairly decent option, having a separate mbedtls3 package might make it easier in general, although I am not aware of how used the current v2 version actually is.

Quoted 5 lines

Looks like we're out of date (there's a 2.28.3), but it's still supported for now... "Mbed TLS 2.28 is a long-time support branch. It will be supported with bug-fixes and security fixes until end of 2024."

Quoted 7 lines

Will send an update for 2.28.3, but constrain devtool upgrade to things on the 2.x branch

One thought on 3.x - if mdns is the only failure maybe rename the current recipe to mbedtls2_% and add 3.x as mbedtls_% and then fix up the mdns recipe to consume mbedtls2?

Quoted 5 lines

Personally I would say it is not worth to do it, just because of this one package. Plus, it's building fine with both versions by including this small patch, but maybe Khem Raj can chime in with an opinion here.

While looking through some stuff, I discovered some variable I had no idea exists, called DEFAULT_PREFERENCE:
https://docs.yoctoproject.org/ref-manual/variables.html#term-DEFAULT_PREFERENCE

Seems it could be a very simple way to make mbedtls v2 be the "default" version unless specified by user through PREFERRED_PROVIDER?

Quoted 104 lines
Quoted 104 lines
Quoted 92 lines
Quoted 78 lines
Quoted 78 lines

My concern isn't really with the one liner now, its the how hard does it become to do the upgrades down the road - if we suddenly can't upgrade because upstream's stuck on 2.x and there's something incompatible with 3.x what do we do?

Quoted 72 lines

Cheers,
Beni

Quoted 67 lines · Alex Kiernan

Keeping up with Apple given they take nothing is frankly a right pain, adding things which are nice to have rather than just broken seems like we're just adding to the problem. Last time I resynchronized this it took me days, unless there's a really good reason to do this, or there's a way to get it upstreamed I'd rather we didn't.

Quoted 62 lines · On Mon, 19 Jun 2023, 19:20 Beniamin Sandu, <[email protected]> wrote:
---
 .../mdns/0009-remove-unneeded-headers.patch   | 33 +++++++++++++++++++
 .../recipes-protocols/mdns/mdns_1790.80.10.bb |  1 +
 2 files changed, 34 insertions(+)
 create mode 100644 meta-networking/recipes-protocols/mdns/mdns/0009-remove-unneeded-headers.patch
meta-networking/recipes-protocols/mdns/mdns/0009-remove-unneeded-headers.patch new file +33 -0
new file mode 100644
index 000000000..74d387368
@@ -0,0 +1,33 @@
+From 1d7e71e72c597ffcc19c04373a477d1fbd3ad955 Mon Sep 17 00:00:00 2001
+From: Beniamin Sandu <[email protected]>
+Date: Thu, 15 Jun 2023 17:02:58 +0000
+Subject: [PATCH] remove unneeded headers
+
+From a quick look, these seem to not be needed and having them
+breaks the build with mbedtls 3.x. Without them it builds fine
+on both 2.x and 3.x versions.
+
+Upstream-Status: Pending
+
+Signed-off-by: Beniamin Sandu <[email protected]>
+---
+ mDNSPosix/mbedtls.c | 2 --
+ 1 file changed, 2 deletions(-)
+
+diff --git a/mDNSPosix/mbedtls.c b/mDNSPosix/mbedtls.c
+index a73681b..ab8f8c7 100644
+--- a/mDNSPosix/mbedtls.c
++++ b/mDNSPosix/mbedtls.c
+@@ -38,10 +38,8 @@
+ #include <mbedtls/sha256.h>
+ #include <mbedtls/base64.h>
+
+-#include <mbedtls/certs.h>
+ #include <mbedtls/x509.h>
+ #include <mbedtls/ssl.h>
+-#include <mbedtls/config.h>
+
+ // Posix TLS server context
+ struct TLSContext_struct {
+--
+2.34.1
meta-networking/recipes-protocols/mdns/mdns_1790.80.10.bb +1 -1
index 612d343c8..46f1b70cb 100644
@@ -21,6 +21,7 @@ SRC_URI = "git://github.com/apple-oss-distributions/mDNSResponder;protocol=https
            file://0006-Handle-noisy-netlink-sockets.patch \
            file://0007-Mark-deleted-interfaces-as-being-changed.patch \
            file://0008-Handle-errors-from-socket-calls.patch \
+           file://0009-remove-unneeded-headers.patch \
            file://mdns.service \
            "
 SRCREV = "8769ab51605e465425d33d757f602ce5905ca639"
--

2.25.1

Quoted 8 lines
Quoted 8 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

--
Alex Kiernan

--
Alex Kiernan

Quoted 8 lines

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#103455): https://lists.openembedded.org/g/openembedded-devel/message/103455
Mute This Topic: https://lists.openembedded.org/mt/99629056/3618097
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

--
Alex Kiernan

#10 lore raw
Quoted 66 lines · Beniamin Sandu
Quoted 58 lines · Beniamin Sandu
Quoted 48 lines · Alex Kiernan
Quoted 38 lines · Alex Kiernan via lists.openembedded.org
Quoted 27 lines · Beniamin Sandu
Quoted 25 lines · Alex Kiernan
Quoted 2 lines · Beniamin Sandu

I am trying to add a v3.x mbedtls recipe to master branch, and without

Sorry, was reading the thread out of order and missed that you were trying to add an Mbed TLS 3 recipe!

Quoted 4 lines

this patch, mdns does not build. I could not find an obvious way to submit upstream patches to mdns from a quick search, otherwise I would gladly do it.

Several folk have tried sending them to [email protected] (seemingly without success), there's also a couple of attempted PRs on github (again seemingly going nowhere). Winding back about 20 years, I tried to get a bunch of portability fixes into the Quicktime Streaming Server without success - the model appears to very much be open source, not open contribution.

Quoted 4 lines

While I am with you on trying to reduce technical debt within yocto layers, this one is very small and rather harmless, so I hope we can make a sacrifice for the greater good. :)

Quoted 8 lines
Quoted 3 lines

I'm guessing we'll need to scope an Mbed TLS 3 recipe as being explicitly mbedtls3_...? So sticking with 2.x doesn't feel like a terrible option, but I agree its not ideal.

This also sounds like a fairly decent option, having a separate mbedtls3 package might make it easier in general, although I am not aware of how used the current v2 version actually is.

Quoted 5 lines

Looks like we're out of date (there's a 2.28.3), but it's still supported for now... "Mbed TLS 2.28 is a long-time support branch. It will be supported with bug-fixes and security fixes until end of 2024."

Quoted 7 lines

Will send an update for 2.28.3, but constrain devtool upgrade to things on the 2.x branch

One thought on 3.x - if mdns is the only failure maybe rename the current recipe to mbedtls2_% and add 3.x as mbedtls_% and then fix up the mdns recipe to consume mbedtls2?

Quoted 5 lines

Personally I would say it is not worth to do it, just because of this one package. Plus, it's building fine with both versions by including this small patch, but maybe Khem Raj can chime in with an opinion here.

Quoted 6 lines

While looking through some stuff, I discovered some variable I had no idea exists, called DEFAULT_PREFERENCE:
https://docs.yoctoproject.org/ref-manual/variables.html#term-DEFAULT_PREFERENCE

Seems it could be a very simple way to make mbedtls v2 be the "default" version unless specified by user through PREFERRED_PROVIDER?

I meant PREFERRED_VERSION, so we could add this DEFAULT_PREFERENCE to mbedtls v3 recipe and anyone who wants to use it will need to select it on their side, otherwise v2 will get built.

Quoted 105 lines
Quoted 105 lines
Quoted 105 lines
Quoted 93 lines
Quoted 79 lines
Quoted 79 lines

My concern isn't really with the one liner now, its the how hard does it become to do the upgrades down the road - if we suddenly can't upgrade because upstream's stuck on 2.x and there's something incompatible with 3.x what do we do?

Quoted 72 lines

Cheers,
Beni

Quoted 67 lines · Alex Kiernan

Keeping up with Apple given they take nothing is frankly a right pain, adding things which are nice to have rather than just broken seems like we're just adding to the problem. Last time I resynchronized this it took me days, unless there's a really good reason to do this, or there's a way to get it upstreamed I'd rather we didn't.

Quoted 62 lines · On Mon, 19 Jun 2023, 19:20 Beniamin Sandu, <[email protected]> wrote:
---
 .../mdns/0009-remove-unneeded-headers.patch   | 33 +++++++++++++++++++
 .../recipes-protocols/mdns/mdns_1790.80.10.bb |  1 +
 2 files changed, 34 insertions(+)
 create mode 100644 meta-networking/recipes-protocols/mdns/mdns/0009-remove-unneeded-headers.patch
meta-networking/recipes-protocols/mdns/mdns/0009-remove-unneeded-headers.patch new file +33 -0
new file mode 100644
index 000000000..74d387368
@@ -0,0 +1,33 @@
+From 1d7e71e72c597ffcc19c04373a477d1fbd3ad955 Mon Sep 17 00:00:00 2001
+From: Beniamin Sandu <[email protected]>
+Date: Thu, 15 Jun 2023 17:02:58 +0000
+Subject: [PATCH] remove unneeded headers
+
+From a quick look, these seem to not be needed and having them
+breaks the build with mbedtls 3.x. Without them it builds fine
+on both 2.x and 3.x versions.
+
+Upstream-Status: Pending
+
+Signed-off-by: Beniamin Sandu <[email protected]>
+---
+ mDNSPosix/mbedtls.c | 2 --
+ 1 file changed, 2 deletions(-)
+
+diff --git a/mDNSPosix/mbedtls.c b/mDNSPosix/mbedtls.c
+index a73681b..ab8f8c7 100644
+--- a/mDNSPosix/mbedtls.c
++++ b/mDNSPosix/mbedtls.c
+@@ -38,10 +38,8 @@
+ #include <mbedtls/sha256.h>
+ #include <mbedtls/base64.h>
+
+-#include <mbedtls/certs.h>
+ #include <mbedtls/x509.h>
+ #include <mbedtls/ssl.h>
+-#include <mbedtls/config.h>
+
+ // Posix TLS server context
+ struct TLSContext_struct {
+--
+2.34.1
meta-networking/recipes-protocols/mdns/mdns_1790.80.10.bb +1 -1
index 612d343c8..46f1b70cb 100644
@@ -21,6 +21,7 @@ SRC_URI = "git://github.com/apple-oss-distributions/mDNSResponder;protocol=https
            file://0006-Handle-noisy-netlink-sockets.patch \
            file://0007-Mark-deleted-interfaces-as-being-changed.patch \
            file://0008-Handle-errors-from-socket-calls.patch \
+           file://0009-remove-unneeded-headers.patch \
            file://mdns.service \
            "
 SRCREV = "8769ab51605e465425d33d757f602ce5905ca639"
--

2.25.1

Quoted 8 lines
Quoted 8 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

--
Alex Kiernan

--
Alex Kiernan

Quoted 8 lines

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#103455): https://lists.openembedded.org/g/openembedded-devel/message/103455
Mute This Topic: https://lists.openembedded.org/mt/99629056/3618097
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

--
Alex Kiernan

#11 lore raw
In reply to Beniamin Sandu
Quoted 66 lines · Beniamin Sandu
Quoted 58 lines · Beniamin Sandu
Quoted 48 lines · Alex Kiernan
Quoted 38 lines · Alex Kiernan via lists.openembedded.org
Quoted 27 lines · Beniamin Sandu
Quoted 25 lines · Alex Kiernan
Quoted 2 lines · Beniamin Sandu

I am trying to add a v3.x mbedtls recipe to master branch, and without

Sorry, was reading the thread out of order and missed that you were trying to add an Mbed TLS 3 recipe!

Quoted 4 lines

this patch, mdns does not build. I could not find an obvious way to submit upstream patches to mdns from a quick search, otherwise I would gladly do it.

Several folk have tried sending them to [email protected] (seemingly without success), there's also a couple of attempted PRs on github (again seemingly going nowhere). Winding back about 20 years, I tried to get a bunch of portability fixes into the Quicktime Streaming Server without success - the model appears to very much be open source, not open contribution.

Quoted 4 lines

While I am with you on trying to reduce technical debt within yocto layers, this one is very small and rather harmless, so I hope we can make a sacrifice for the greater good. :)

Quoted 8 lines
Quoted 3 lines

I'm guessing we'll need to scope an Mbed TLS 3 recipe as being explicitly mbedtls3_...? So sticking with 2.x doesn't feel like a terrible option, but I agree its not ideal.

This also sounds like a fairly decent option, having a separate mbedtls3 package might make it easier in general, although I am not aware of how used the current v2 version actually is.

Quoted 5 lines

Looks like we're out of date (there's a 2.28.3), but it's still supported for now... "Mbed TLS 2.28 is a long-time support branch. It will be supported with bug-fixes and security fixes until end of 2024."

Quoted 7 lines

Will send an update for 2.28.3, but constrain devtool upgrade to things on the 2.x branch

One thought on 3.x - if mdns is the only failure maybe rename the current recipe to mbedtls2_% and add 3.x as mbedtls_% and then fix up the mdns recipe to consume mbedtls2?

Quoted 5 lines

Personally I would say it is not worth to do it, just because of this one package. Plus, it's building fine with both versions by including this small patch, but maybe Khem Raj can chime in with an opinion here.

Quoted 7 lines

While looking through some stuff, I discovered some variable I had no idea exists, called DEFAULT_PREFERENCE:
https://docs.yoctoproject.org/ref-manual/variables.html#term-DEFAULT_PREFERENCE

Seems it could be a very simple way to make mbedtls v2 be the "default" version unless specified by user through PREFERRED_PROVIDER?

It works, but if you have two recipes with conflicting requirements (which I do for some other things), it doesn't really help...

Probably I'm leaning towards just upgrading to 3.x and taking the mDNSResponder patch, I just worry about where Apple go...

Quoted 104 lines
Quoted 104 lines
Quoted 104 lines
Quoted 92 lines
Quoted 78 lines
Quoted 78 lines

My concern isn't really with the one liner now, its the how hard does it become to do the upgrades down the road - if we suddenly can't upgrade because upstream's stuck on 2.x and there's something incompatible with 3.x what do we do?

Quoted 72 lines

Cheers,
Beni

Quoted 67 lines · Alex Kiernan

Keeping up with Apple given they take nothing is frankly a right pain, adding things which are nice to have rather than just broken seems like we're just adding to the problem. Last time I resynchronized this it took me days, unless there's a really good reason to do this, or there's a way to get it upstreamed I'd rather we didn't.

Quoted 62 lines · On Mon, 19 Jun 2023, 19:20 Beniamin Sandu, <[email protected]> wrote:
---
 .../mdns/0009-remove-unneeded-headers.patch   | 33 +++++++++++++++++++
 .../recipes-protocols/mdns/mdns_1790.80.10.bb |  1 +
 2 files changed, 34 insertions(+)
 create mode 100644 meta-networking/recipes-protocols/mdns/mdns/0009-remove-unneeded-headers.patch
meta-networking/recipes-protocols/mdns/mdns/0009-remove-unneeded-headers.patch new file +33 -0
new file mode 100644
index 000000000..74d387368
@@ -0,0 +1,33 @@
+From 1d7e71e72c597ffcc19c04373a477d1fbd3ad955 Mon Sep 17 00:00:00 2001
+From: Beniamin Sandu <[email protected]>
+Date: Thu, 15 Jun 2023 17:02:58 +0000
+Subject: [PATCH] remove unneeded headers
+
+From a quick look, these seem to not be needed and having them
+breaks the build with mbedtls 3.x. Without them it builds fine
+on both 2.x and 3.x versions.
+
+Upstream-Status: Pending
+
+Signed-off-by: Beniamin Sandu <[email protected]>
+---
+ mDNSPosix/mbedtls.c | 2 --
+ 1 file changed, 2 deletions(-)
+
+diff --git a/mDNSPosix/mbedtls.c b/mDNSPosix/mbedtls.c
+index a73681b..ab8f8c7 100644
+--- a/mDNSPosix/mbedtls.c
++++ b/mDNSPosix/mbedtls.c
+@@ -38,10 +38,8 @@
+ #include <mbedtls/sha256.h>
+ #include <mbedtls/base64.h>
+
+-#include <mbedtls/certs.h>
+ #include <mbedtls/x509.h>
+ #include <mbedtls/ssl.h>
+-#include <mbedtls/config.h>
+
+ // Posix TLS server context
+ struct TLSContext_struct {
+--
+2.34.1
meta-networking/recipes-protocols/mdns/mdns_1790.80.10.bb +1 -1
index 612d343c8..46f1b70cb 100644
@@ -21,6 +21,7 @@ SRC_URI = "git://github.com/apple-oss-distributions/mDNSResponder;protocol=https
            file://0006-Handle-noisy-netlink-sockets.patch \
            file://0007-Mark-deleted-interfaces-as-being-changed.patch \
            file://0008-Handle-errors-from-socket-calls.patch \
+           file://0009-remove-unneeded-headers.patch \
            file://mdns.service \
            "
 SRCREV = "8769ab51605e465425d33d757f602ce5905ca639"
--

2.25.1

Quoted 8 lines
Quoted 8 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

--
Alex Kiernan

--
Alex Kiernan

Quoted 8 lines

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#103455): https://lists.openembedded.org/g/openembedded-devel/message/103455
Mute This Topic: https://lists.openembedded.org/mt/99629056/3618097
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

--
Alex Kiernan

Signature · 1 line
Alex Kiernan
#12 lore raw
Quoted 76 lines · Alex Kiernan
Quoted 66 lines · Beniamin Sandu
Quoted 58 lines · Beniamin Sandu
Quoted 48 lines · Alex Kiernan
Quoted 38 lines · Alex Kiernan via lists.openembedded.org
Quoted 27 lines · Beniamin Sandu
Quoted 25 lines · Alex Kiernan
Quoted 2 lines · Beniamin Sandu

I am trying to add a v3.x mbedtls recipe to master branch, and without

Sorry, was reading the thread out of order and missed that you were trying to add an Mbed TLS 3 recipe!

Quoted 4 lines

this patch, mdns does not build. I could not find an obvious way to submit upstream patches to mdns from a quick search, otherwise I would gladly do it.

Several folk have tried sending them to [email protected] (seemingly without success), there's also a couple of attempted PRs on github (again seemingly going nowhere). Winding back about 20 years, I tried to get a bunch of portability fixes into the Quicktime Streaming Server without success - the model appears to very much be open source, not open contribution.

Quoted 4 lines

While I am with you on trying to reduce technical debt within yocto layers, this one is very small and rather harmless, so I hope we can make a sacrifice for the greater good. :)

Quoted 8 lines
Quoted 3 lines

I'm guessing we'll need to scope an Mbed TLS 3 recipe as being explicitly mbedtls3_...? So sticking with 2.x doesn't feel like a terrible option, but I agree its not ideal.

This also sounds like a fairly decent option, having a separate mbedtls3 package might make it easier in general, although I am not aware of how used the current v2 version actually is.

Quoted 5 lines

Looks like we're out of date (there's a 2.28.3), but it's still supported for now... "Mbed TLS 2.28 is a long-time support branch. It will be supported with bug-fixes and security fixes until end of 2024."

Quoted 7 lines

Will send an update for 2.28.3, but constrain devtool upgrade to things on the 2.x branch

One thought on 3.x - if mdns is the only failure maybe rename the current recipe to mbedtls2_% and add 3.x as mbedtls_% and then fix up the mdns recipe to consume mbedtls2?

Quoted 5 lines

Personally I would say it is not worth to do it, just because of this one package. Plus, it's building fine with both versions by including this small patch, but maybe Khem Raj can chime in with an opinion here.

Quoted 7 lines

While looking through some stuff, I discovered some variable I had no idea exists, called DEFAULT_PREFERENCE:
https://docs.yoctoproject.org/ref-manual/variables.html#term-DEFAULT_PREFERENCE

Seems it could be a very simple way to make mbedtls v2 be the "default" version unless specified by user through PREFERRED_PROVIDER?

Quoted 5 lines

It works, but if you have two recipes with conflicting requirements (which I do for some other things), it doesn't really help...

Probably I'm leaning towards just upgrading to 3.x and taking the mDNSResponder patch, I just worry about where Apple go...

Right, then I think we just take in the patch and move on. I would be surprised if this one specifically will generate problems in the future, but we can deal with it at the time.

Quoted 110 lines
Quoted 103 lines
Quoted 103 lines
Quoted 103 lines
Quoted 101 lines
Quoted 79 lines
Quoted 79 lines

My concern isn't really with the one liner now, its the how hard does it become to do the upgrades down the road - if we suddenly can't upgrade because upstream's stuck on 2.x and there's something incompatible with 3.x what do we do?

Quoted 72 lines

Cheers,
Beni

Quoted 67 lines · Alex Kiernan

Keeping up with Apple given they take nothing is frankly a right pain, adding things which are nice to have rather than just broken seems like we're just adding to the problem. Last time I resynchronized this it took me days, unless there's a really good reason to do this, or there's a way to get it upstreamed I'd rather we didn't.

Quoted 62 lines · On Mon, 19 Jun 2023, 19:20 Beniamin Sandu, <[email protected]> wrote:
---
 .../mdns/0009-remove-unneeded-headers.patch   | 33 +++++++++++++++++++
 .../recipes-protocols/mdns/mdns_1790.80.10.bb |  1 +
 2 files changed, 34 insertions(+)
 create mode 100644 meta-networking/recipes-protocols/mdns/mdns/0009-remove-unneeded-headers.patch
meta-networking/recipes-protocols/mdns/mdns/0009-remove-unneeded-headers.patch new file +33 -0
new file mode 100644
index 000000000..74d387368
@@ -0,0 +1,33 @@
+From 1d7e71e72c597ffcc19c04373a477d1fbd3ad955 Mon Sep 17 00:00:00 2001
+From: Beniamin Sandu <[email protected]>
+Date: Thu, 15 Jun 2023 17:02:58 +0000
+Subject: [PATCH] remove unneeded headers
+
+From a quick look, these seem to not be needed and having them
+breaks the build with mbedtls 3.x. Without them it builds fine
+on both 2.x and 3.x versions.
+
+Upstream-Status: Pending
+
+Signed-off-by: Beniamin Sandu <[email protected]>
+---
+ mDNSPosix/mbedtls.c | 2 --
+ 1 file changed, 2 deletions(-)
+
+diff --git a/mDNSPosix/mbedtls.c b/mDNSPosix/mbedtls.c
+index a73681b..ab8f8c7 100644
+--- a/mDNSPosix/mbedtls.c
++++ b/mDNSPosix/mbedtls.c
+@@ -38,10 +38,8 @@
+ #include <mbedtls/sha256.h>
+ #include <mbedtls/base64.h>
+
+-#include <mbedtls/certs.h>
+ #include <mbedtls/x509.h>
+ #include <mbedtls/ssl.h>
+-#include <mbedtls/config.h>
+
+ // Posix TLS server context
+ struct TLSContext_struct {
+--
+2.34.1
meta-networking/recipes-protocols/mdns/mdns_1790.80.10.bb +1 -1
index 612d343c8..46f1b70cb 100644
@@ -21,6 +21,7 @@ SRC_URI = "git://github.com/apple-oss-distributions/mDNSResponder;protocol=https
            file://0006-Handle-noisy-netlink-sockets.patch \
            file://0007-Mark-deleted-interfaces-as-being-changed.patch \
            file://0008-Handle-errors-from-socket-calls.patch \
+           file://0009-remove-unneeded-headers.patch \
            file://mdns.service \
            "
 SRCREV = "8769ab51605e465425d33d757f602ce5905ca639"
--

2.25.1

Quoted 8 lines
Quoted 8 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

--
Alex Kiernan

--
Alex Kiernan

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#103455): https://lists.openembedded.org/g/openembedded-devel/message/103455
Mute This Topic: https://lists.openembedded.org/mt/99629056/3618097
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

--
Alex Kiernan

--
Alex Kiernan

#13 lore raw
In reply to Alex Kiernan
Quoted 62 lines · Alex Kiernan
Quoted 60 lines · Beniamin Sandu
Quoted 58 lines · Beniamin Sandu
Quoted 55 lines · Alex Kiernan
Quoted 38 lines · Alex Kiernan via lists.openembedded.org
Quoted 27 lines · Beniamin Sandu
Quoted 25 lines · Alex Kiernan
Quoted 2 lines · Beniamin Sandu

I am trying to add a v3.x mbedtls recipe to master branch, and without

Sorry, was reading the thread out of order and missed that you were trying to add an Mbed TLS 3 recipe!

Quoted 4 lines

this patch, mdns does not build. I could not find an obvious way to submit upstream patches to mdns from a quick search, otherwise I would gladly do it.

Several folk have tried sending them to [email protected] (seemingly without success), there's also a couple of attempted PRs on github (again seemingly going nowhere). Winding back about 20 years, I tried to get a bunch of portability fixes into the Quicktime Streaming Server without success - the model appears to very much be open source, not open contribution.

Quoted 4 lines

While I am with you on trying to reduce technical debt within yocto layers, this one is very small and rather harmless, so I hope we can make a sacrifice for the greater good. :)

Quoted 8 lines
Quoted 3 lines

I'm guessing we'll need to scope an Mbed TLS 3 recipe as being explicitly mbedtls3_...? So sticking with 2.x doesn't feel like a terrible option, but I agree its not ideal.

This also sounds like a fairly decent option, having a separate mbedtls3 package might make it easier in general, although I am not aware of how used the current v2 version actually is.

Quoted 5 lines

Looks like we're out of date (there's a 2.28.3), but it's still supported for now... "Mbed TLS 2.28 is a long-time support branch. It will be supported with bug-fixes and security fixes until end of 2024."

Will send an update for 2.28.3, but constrain devtool upgrade to things on the 2.x branch

One thought on 3.x - if mdns is the only failure maybe rename the current recipe to mbedtls2_% and add 3.x as mbedtls_% and then fix up the mdns recipe to consume mbedtls2?

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

Personally I would say it is not worth to do it, just because of this one package. Plus, it's building fine with both versions by including this small patch, but maybe Khem Raj can chime in with an opinion here.

yeah, I agree. Its better to maintain one version if we can.

Quoted 128 lines
Quoted 9 lines
Quoted 1 line

While looking through some stuff, I discovered some variable I had no idea exists, called DEFAULT_PREFERENCE:
https://docs.yoctoproject.org/ref-manual/variables.html#term-DEFAULT_PREFERENCE

Seems it could be a very simple way to make mbedtls v2 be the "default" version unless specified by user through PREFERRED_PROVIDER?

It works, but if you have two recipes with conflicting requirements (which I do for some other things), it doesn't really help...

Probably I'm leaning towards just upgrading to 3.x and taking the mDNSResponder patch, I just worry about where Apple go...

Quoted 96 lines
Quoted 96 lines
Quoted 96 lines
Quoted 94 lines
Quoted 78 lines
Quoted 78 lines

My concern isn't really with the one liner now, its the how hard does it become to do the upgrades down the road - if we suddenly can't upgrade because upstream's stuck on 2.x and there's something incompatible with 3.x what do we do?

Quoted 72 lines

Cheers,
Beni

Quoted 67 lines · Alex Kiernan

Keeping up with Apple given they take nothing is frankly a right pain, adding things which are nice to have rather than just broken seems like we're just adding to the problem. Last time I resynchronized this it took me days, unless there's a really good reason to do this, or there's a way to get it upstreamed I'd rather we didn't.

Quoted 62 lines · On Mon, 19 Jun 2023, 19:20 Beniamin Sandu, <[email protected]> wrote:
---
 .../mdns/0009-remove-unneeded-headers.patch   | 33 +++++++++++++++++++
 .../recipes-protocols/mdns/mdns_1790.80.10.bb |  1 +
 2 files changed, 34 insertions(+)
 create mode 100644 meta-networking/recipes-protocols/mdns/mdns/0009-remove-unneeded-headers.patch
meta-networking/recipes-protocols/mdns/mdns/0009-remove-unneeded-headers.patch new file +33 -0
new file mode 100644
index 000000000..74d387368
@@ -0,0 +1,33 @@
+From 1d7e71e72c597ffcc19c04373a477d1fbd3ad955 Mon Sep 17 00:00:00 2001
+From: Beniamin Sandu <[email protected]>
+Date: Thu, 15 Jun 2023 17:02:58 +0000
+Subject: [PATCH] remove unneeded headers
+
+From a quick look, these seem to not be needed and having them
+breaks the build with mbedtls 3.x. Without them it builds fine
+on both 2.x and 3.x versions.
+
+Upstream-Status: Pending
+
+Signed-off-by: Beniamin Sandu <[email protected]>
+---
+ mDNSPosix/mbedtls.c | 2 --
+ 1 file changed, 2 deletions(-)
+
+diff --git a/mDNSPosix/mbedtls.c b/mDNSPosix/mbedtls.c
+index a73681b..ab8f8c7 100644
+--- a/mDNSPosix/mbedtls.c
++++ b/mDNSPosix/mbedtls.c
+@@ -38,10 +38,8 @@
+ #include <mbedtls/sha256.h>
+ #include <mbedtls/base64.h>
+
+-#include <mbedtls/certs.h>
+ #include <mbedtls/x509.h>
+ #include <mbedtls/ssl.h>
+-#include <mbedtls/config.h>
+
+ // Posix TLS server context
+ struct TLSContext_struct {
+--
+2.34.1
meta-networking/recipes-protocols/mdns/mdns_1790.80.10.bb +1 -1
index 612d343c8..46f1b70cb 100644
@@ -21,6 +21,7 @@ SRC_URI = "git://github.com/apple-oss-distributions/mDNSResponder;protocol=https
            file://0006-Handle-noisy-netlink-sockets.patch \
            file://0007-Mark-deleted-interfaces-as-being-changed.patch \
            file://0008-Handle-errors-from-socket-calls.patch \
+           file://0009-remove-unneeded-headers.patch \
            file://mdns.service \
            "
 SRCREV = "8769ab51605e465425d33d757f602ce5905ca639"
--

2.25.1

Quoted 8 lines
Quoted 8 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

--
Alex Kiernan

--
Alex Kiernan

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

--
Alex Kiernan

--
Alex Kiernan

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#103462): https://lists.openembedded.org/g/openembedded-devel/message/103462
Mute This Topic: https://lists.openembedded.org/mt/99629056/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#14 lore raw
In reply to Alex Kiernan
Quoted 3 lines · Alex Kiernan

Keeping up with Apple given they take nothing is frankly a right pain, adding things which are nice to have rather than just broken seems like we're just adding to the problem. Last time I resynchronized this it took me days, unless there's a really good reason to do this, or there's a way to get it upstreamed I'd rather we didn't.

a different question would be, does upstream mdns stick to mbedTLS 2.x or is there support for mbedTLS 3.x expected/supported.

Quoted 76 lines · On Mon, 19 Jun 2023, 19:20 Beniamin Sandu, <[email protected]> wrote:
Quoted 60 lines
---
 .../mdns/0009-remove-unneeded-headers.patch   | 33 +++++++++++++++++++
 .../recipes-protocols/mdns/mdns_1790.80.10.bb |  1 +
 2 files changed, 34 insertions(+)
 create mode 100644 meta-networking/recipes-protocols/mdns/mdns/0009-remove-unneeded-headers.patch
meta-networking/recipes-protocols/mdns/mdns/0009-remove-unneeded-headers.patch new file +33 -0
new file mode 100644
index 000000000..74d387368
@@ -0,0 +1,33 @@
+From 1d7e71e72c597ffcc19c04373a477d1fbd3ad955 Mon Sep 17 00:00:00 2001
+From: Beniamin Sandu <[email protected]>
+Date: Thu, 15 Jun 2023 17:02:58 +0000
+Subject: [PATCH] remove unneeded headers
+
+From a quick look, these seem to not be needed and having them
+breaks the build with mbedtls 3.x. Without them it builds fine
+on both 2.x and 3.x versions.
+
+Upstream-Status: Pending
+
+Signed-off-by: Beniamin Sandu <[email protected]>
+---
+ mDNSPosix/mbedtls.c | 2 --
+ 1 file changed, 2 deletions(-)
+
+diff --git a/mDNSPosix/mbedtls.c b/mDNSPosix/mbedtls.c
+index a73681b..ab8f8c7 100644
+--- a/mDNSPosix/mbedtls.c
++++ b/mDNSPosix/mbedtls.c
+@@ -38,10 +38,8 @@
+ #include <mbedtls/sha256.h>
+ #include <mbedtls/base64.h>
+
+-#include <mbedtls/certs.h>
+ #include <mbedtls/x509.h>
+ #include <mbedtls/ssl.h>
+-#include <mbedtls/config.h>
+
+ // Posix TLS server context
+ struct TLSContext_struct {
+--
+2.34.1
meta-networking/recipes-protocols/mdns/mdns_1790.80.10.bb +1 -1
index 612d343c8..46f1b70cb 100644
@@ -21,6 +21,7 @@ SRC_URI = "git://github.com/apple-oss-distributions/mDNSResponder;protocol=https
            file://0006-Handle-noisy-netlink-sockets.patch \
            file://0007-Mark-deleted-interfaces-as-being-changed.patch \
            file://0008-Handle-errors-from-socket-calls.patch \
+           file://0009-remove-unneeded-headers.patch \
            file://mdns.service \
            "
 SRCREV = "8769ab51605e465425d33d757f602ce5905ca639"
--
Quoted 5 lines

2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#103444): https://lists.openembedded.org/g/openembedded-devel/message/103444
Mute This Topic: https://lists.openembedded.org/mt/99629056/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#15 lore raw
Quoted 9 lines · Khem Raj
Quoted 3 lines · Alex Kiernan

Keeping up with Apple given they take nothing is frankly a right pain, adding things which are nice to have rather than just broken seems like we're just adding to the problem. Last time I resynchronized this it took me days, unless there's a really good reason to do this, or there's a way to get it upstreamed I'd rather we didn't.

a different question would be, does upstream mdns stick to mbedTLS 2.x or is there support for mbedTLS 3.x expected/supported.

It's completely closed development, so (personally) I've no idea. The release of code drops generally seems to follow a MacOS release, which would suggest there's likely to be one fairly soon once 13.5 ships, so we might have more of an idea in the next few weeks.

On mbedTLS 3, I don't obviously see that we have a recipe anywhere?

Quoted 76 lines
Quoted 76 lines · On Mon, 19 Jun 2023, 19:20 Beniamin Sandu, <[email protected]> wrote:
Quoted 60 lines
---
 .../mdns/0009-remove-unneeded-headers.patch   | 33 +++++++++++++++++++
 .../recipes-protocols/mdns/mdns_1790.80.10.bb |  1 +
 2 files changed, 34 insertions(+)
 create mode 100644 meta-networking/recipes-protocols/mdns/mdns/0009-remove-unneeded-headers.patch
meta-networking/recipes-protocols/mdns/mdns/0009-remove-unneeded-headers.patch new file +33 -0
new file mode 100644
index 000000000..74d387368
@@ -0,0 +1,33 @@
+From 1d7e71e72c597ffcc19c04373a477d1fbd3ad955 Mon Sep 17 00:00:00 2001
+From: Beniamin Sandu <[email protected]>
+Date: Thu, 15 Jun 2023 17:02:58 +0000
+Subject: [PATCH] remove unneeded headers
+
+From a quick look, these seem to not be needed and having them
+breaks the build with mbedtls 3.x. Without them it builds fine
+on both 2.x and 3.x versions.
+
+Upstream-Status: Pending
+
+Signed-off-by: Beniamin Sandu <[email protected]>
+---
+ mDNSPosix/mbedtls.c | 2 --
+ 1 file changed, 2 deletions(-)
+
+diff --git a/mDNSPosix/mbedtls.c b/mDNSPosix/mbedtls.c
+index a73681b..ab8f8c7 100644
+--- a/mDNSPosix/mbedtls.c
++++ b/mDNSPosix/mbedtls.c
+@@ -38,10 +38,8 @@
+ #include <mbedtls/sha256.h>
+ #include <mbedtls/base64.h>
+
+-#include <mbedtls/certs.h>
+ #include <mbedtls/x509.h>
+ #include <mbedtls/ssl.h>
+-#include <mbedtls/config.h>
+
+ // Posix TLS server context
+ struct TLSContext_struct {
+--
+2.34.1
meta-networking/recipes-protocols/mdns/mdns_1790.80.10.bb +1 -1
index 612d343c8..46f1b70cb 100644
@@ -21,6 +21,7 @@ SRC_URI = "git://github.com/apple-oss-distributions/mDNSResponder;protocol=https
            file://0006-Handle-noisy-netlink-sockets.patch \
            file://0007-Mark-deleted-interfaces-as-being-changed.patch \
            file://0008-Handle-errors-from-socket-calls.patch \
+           file://0009-remove-unneeded-headers.patch \
            file://mdns.service \
            "
 SRCREV = "8769ab51605e465425d33d757f602ce5905ca639"
--
Quoted 5 lines

2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#103444): https://lists.openembedded.org/g/openembedded-devel/message/103444
Mute This Topic: https://lists.openembedded.org/mt/99629056/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Signature · 1 line
Alex Kiernan
#16 lore raw

There is one on master-next, it is currently going through the CI runs
(I think): https://git.openembedded.org/meta-openembedded/commit/?h=master-next&id=9cb5f5c6e91612674eb02f79437abbd51ad7b38f.
I have tested this one on my side with a couple of different machines
on both poky with glibc and yoe with musl, seems fine so far. Mbedtls
v2 will still be available, so the end user can build with that if
preferred.

On a different note, seems the oe patches got added to a PR on github for mdns: https://github.com/apple-oss-distributions/mDNSResponder/pull/2,
and someone accepted this last week. Not sure if it's going to do anything, but maybe there is some hope of having them in a future release, even if it's very opaque by nature.

Quoted 100 lines · Alex Kiernan
Quoted 9 lines · Khem Raj
Quoted 3 lines · Alex Kiernan

Keeping up with Apple given they take nothing is frankly a right pain, adding things which are nice to have rather than just broken seems like we're just adding to the problem. Last time I resynchronized this it took me days, unless there's a really good reason to do this, or there's a way to get it upstreamed I'd rather we didn't.

a different question would be, does upstream mdns stick to mbedTLS 2.x or is there support for mbedTLS 3.x expected/supported.

It's completely closed development, so (personally) I've no idea. The release of code drops generally seems to follow a MacOS release, which would suggest there's likely to be one fairly soon once 13.5 ships, so we might have more of an idea in the next few weeks.

On mbedTLS 3, I don't obviously see that we have a recipe anywhere?

Quoted 68 lines
Quoted 68 lines · On Mon, 19 Jun 2023, 19:20 Beniamin Sandu, <[email protected]> wrote:
Quoted 65 lines
---
 .../mdns/0009-remove-unneeded-headers.patch   | 33 +++++++++++++++++++
 .../recipes-protocols/mdns/mdns_1790.80.10.bb |  1 +
 2 files changed, 34 insertions(+)
 create mode 100644 meta-networking/recipes-protocols/mdns/mdns/0009-remove-unneeded-headers.patch
meta-networking/recipes-protocols/mdns/mdns/0009-remove-unneeded-headers.patch new file +33 -0
new file mode 100644
index 000000000..74d387368
@@ -0,0 +1,33 @@
+From 1d7e71e72c597ffcc19c04373a477d1fbd3ad955 Mon Sep 17 00:00:00 2001
+From: Beniamin Sandu <[email protected]>
+Date: Thu, 15 Jun 2023 17:02:58 +0000
+Subject: [PATCH] remove unneeded headers
+
+From a quick look, these seem to not be needed and having them
+breaks the build with mbedtls 3.x. Without them it builds fine
+on both 2.x and 3.x versions.
+
+Upstream-Status: Pending
+
+Signed-off-by: Beniamin Sandu <[email protected]>
+---
+ mDNSPosix/mbedtls.c | 2 --
+ 1 file changed, 2 deletions(-)
+
+diff --git a/mDNSPosix/mbedtls.c b/mDNSPosix/mbedtls.c
+index a73681b..ab8f8c7 100644
+--- a/mDNSPosix/mbedtls.c
++++ b/mDNSPosix/mbedtls.c
+@@ -38,10 +38,8 @@
+ #include <mbedtls/sha256.h>
+ #include <mbedtls/base64.h>
+
+-#include <mbedtls/certs.h>
+ #include <mbedtls/x509.h>
+ #include <mbedtls/ssl.h>
+-#include <mbedtls/config.h>
+
+ // Posix TLS server context
+ struct TLSContext_struct {
+--
+2.34.1
meta-networking/recipes-protocols/mdns/mdns_1790.80.10.bb +1 -1
index 612d343c8..46f1b70cb 100644
@@ -21,6 +21,7 @@ SRC_URI = "git://github.com/apple-oss-distributions/mDNSResponder;protocol=https
            file://0006-Handle-noisy-netlink-sockets.patch \
            file://0007-Mark-deleted-interfaces-as-being-changed.patch \
            file://0008-Handle-errors-from-socket-calls.patch \
+           file://0009-remove-unneeded-headers.patch \
            file://mdns.service \
            "
 SRCREV = "8769ab51605e465425d33d757f602ce5905ca639"
--

2.25.1

Quoted 8 lines
Quoted 8 lines

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#103444): https://lists.openembedded.org/g/openembedded-devel/message/103444
Mute This Topic: https://lists.openembedded.org/mt/99629056/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

--
Alex Kiernan

#17 lore raw
Quoted 8 lines · Beniamin Sandu

There is one on master-next, it is currently going through the CI runs
(I think): https://git.openembedded.org/meta-openembedded/commit/?h=master-next&id=9cb5f5c6e91612674eb02f79437abbd51ad7b38f.
I have tested this one on my side with a couple of different machines
on both poky with glibc and yoe with musl, seems fine so far. Mbedtls
v2 will still be available, so the end user can build with that if
preferred.

Quoted 6 lines

On a different note, seems the oe patches got added to a PR on github for mdns: https://github.com/apple-oss-distributions/mDNSResponder/pull/2,
and someone accepted this last week. Not sure if it's going to do anything, but maybe there is some hope of having them in a future release, even if it's very opaque by nature.

I suspect that's just a lack of process embedded in the repo, so anyone can review/approve...

Quoted 101 lines · Alex Kiernan
Quoted 100 lines · Khem Raj
Quoted 9 lines · Alex Kiernan
Quoted 3 lines

Keeping up with Apple given they take nothing is frankly a right pain, adding things which are nice to have rather than just broken seems like we're just adding to the problem. Last time I resynchronized this it took me days, unless there's a really good reason to do this, or there's a way to get it upstreamed I'd rather we didn't.

a different question would be, does upstream mdns stick to mbedTLS 2.x or is there support for mbedTLS 3.x expected/supported.

It's completely closed development, so (personally) I've no idea. The release of code drops generally seems to follow a MacOS release, which would suggest there's likely to be one fairly soon once 13.5 ships, so we might have more of an idea in the next few weeks.

On mbedTLS 3, I don't obviously see that we have a recipe anywhere?

Quoted 68 lines
Quoted 68 lines · On Mon, 19 Jun 2023, 19:20 Beniamin Sandu, <[email protected]> wrote:
Quoted 65 lines
---
 .../mdns/0009-remove-unneeded-headers.patch   | 33 +++++++++++++++++++
 .../recipes-protocols/mdns/mdns_1790.80.10.bb |  1 +
 2 files changed, 34 insertions(+)
 create mode 100644 meta-networking/recipes-protocols/mdns/mdns/0009-remove-unneeded-headers.patch
meta-networking/recipes-protocols/mdns/mdns/0009-remove-unneeded-headers.patch new file +33 -0
new file mode 100644
index 000000000..74d387368
@@ -0,0 +1,33 @@
+From 1d7e71e72c597ffcc19c04373a477d1fbd3ad955 Mon Sep 17 00:00:00 2001
+From: Beniamin Sandu <[email protected]>
+Date: Thu, 15 Jun 2023 17:02:58 +0000
+Subject: [PATCH] remove unneeded headers
+
+From a quick look, these seem to not be needed and having them
+breaks the build with mbedtls 3.x. Without them it builds fine
+on both 2.x and 3.x versions.
+
+Upstream-Status: Pending
+
+Signed-off-by: Beniamin Sandu <[email protected]>
+---
+ mDNSPosix/mbedtls.c | 2 --
+ 1 file changed, 2 deletions(-)
+
+diff --git a/mDNSPosix/mbedtls.c b/mDNSPosix/mbedtls.c
+index a73681b..ab8f8c7 100644
+--- a/mDNSPosix/mbedtls.c
++++ b/mDNSPosix/mbedtls.c
+@@ -38,10 +38,8 @@
+ #include <mbedtls/sha256.h>
+ #include <mbedtls/base64.h>
+
+-#include <mbedtls/certs.h>
+ #include <mbedtls/x509.h>
+ #include <mbedtls/ssl.h>
+-#include <mbedtls/config.h>
+
+ // Posix TLS server context
+ struct TLSContext_struct {
+--
+2.34.1
meta-networking/recipes-protocols/mdns/mdns_1790.80.10.bb +1 -1
index 612d343c8..46f1b70cb 100644
@@ -21,6 +21,7 @@ SRC_URI = "git://github.com/apple-oss-distributions/mDNSResponder;protocol=https
            file://0006-Handle-noisy-netlink-sockets.patch \
            file://0007-Mark-deleted-interfaces-as-being-changed.patch \
            file://0008-Handle-errors-from-socket-calls.patch \
+           file://0009-remove-unneeded-headers.patch \
            file://mdns.service \
            "
 SRCREV = "8769ab51605e465425d33d757f602ce5905ca639"
--

2.25.1

Quoted 8 lines
Quoted 8 lines

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#103444): https://lists.openembedded.org/g/openembedded-devel/message/103444
Mute This Topic: https://lists.openembedded.org/mt/99629056/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

--
Alex Kiernan

Signature · 1 line
Alex Kiernan
#18 lore raw
Quoted 17 lines · Alex Kiernan
Quoted 8 lines · Beniamin Sandu

There is one on master-next, it is currently going through the CI runs
(I think): https://git.openembedded.org/meta-openembedded/commit/?h=master-next&id=9cb5f5c6e91612674eb02f79437abbd51ad7b38f.
I have tested this one on my side with a couple of different machines
on both poky with glibc and yoe with musl, seems fine so far. Mbedtls
v2 will still be available, so the end user can build with that if
preferred.

Quoted 6 lines

On a different note, seems the oe patches got added to a PR on github for mdns: https://github.com/apple-oss-distributions/mDNSResponder/pull/2,
and someone accepted this last week. Not sure if it's going to do anything, but maybe there is some hope of having them in a future release, even if it's very opaque by nature.

Quoted 3 lines

I suspect that's just a lack of process embedded in the repo, so anyone can review/approve...

I tend to agree, seems there is no real process on GH at the moment.

I think we are fine right now, both versions are still available and one can choose between them when building, if the version turns out to be a requirement.
Some issues might arise with other packages in the future if we drop v2 completely, but I guess we deal with them as they come, as it's hard to predict every impact that this could have.

Quoted 106 lines
Quoted 99 lines · Alex Kiernan
Quoted 98 lines · Khem Raj
Quoted 9 lines · Alex Kiernan
Quoted 3 lines

Keeping up with Apple given they take nothing is frankly a right pain, adding things which are nice to have rather than just broken seems like we're just adding to the problem. Last time I resynchronized this it took me days, unless there's a really good reason to do this, or there's a way to get it upstreamed I'd rather we didn't.

a different question would be, does upstream mdns stick to mbedTLS 2.x or is there support for mbedTLS 3.x expected/supported.

It's completely closed development, so (personally) I've no idea. The release of code drops generally seems to follow a MacOS release, which would suggest there's likely to be one fairly soon once 13.5 ships, so we might have more of an idea in the next few weeks.

On mbedTLS 3, I don't obviously see that we have a recipe anywhere?

Quoted 76 lines
Quoted 76 lines · On Mon, 19 Jun 2023, 19:20 Beniamin Sandu, <[email protected]> wrote:
Quoted 60 lines
---
 .../mdns/0009-remove-unneeded-headers.patch   | 33 +++++++++++++++++++
 .../recipes-protocols/mdns/mdns_1790.80.10.bb |  1 +
 2 files changed, 34 insertions(+)
 create mode 100644 meta-networking/recipes-protocols/mdns/mdns/0009-remove-unneeded-headers.patch
meta-networking/recipes-protocols/mdns/mdns/0009-remove-unneeded-headers.patch new file +33 -0
new file mode 100644
index 000000000..74d387368
@@ -0,0 +1,33 @@
+From 1d7e71e72c597ffcc19c04373a477d1fbd3ad955 Mon Sep 17 00:00:00 2001
+From: Beniamin Sandu <[email protected]>
+Date: Thu, 15 Jun 2023 17:02:58 +0000
+Subject: [PATCH] remove unneeded headers
+
+From a quick look, these seem to not be needed and having them
+breaks the build with mbedtls 3.x. Without them it builds fine
+on both 2.x and 3.x versions.
+
+Upstream-Status: Pending
+
+Signed-off-by: Beniamin Sandu <[email protected]>
+---
+ mDNSPosix/mbedtls.c | 2 --
+ 1 file changed, 2 deletions(-)
+
+diff --git a/mDNSPosix/mbedtls.c b/mDNSPosix/mbedtls.c
+index a73681b..ab8f8c7 100644
+--- a/mDNSPosix/mbedtls.c
++++ b/mDNSPosix/mbedtls.c
+@@ -38,10 +38,8 @@
+ #include <mbedtls/sha256.h>
+ #include <mbedtls/base64.h>
+
+-#include <mbedtls/certs.h>
+ #include <mbedtls/x509.h>
+ #include <mbedtls/ssl.h>
+-#include <mbedtls/config.h>
+
+ // Posix TLS server context
+ struct TLSContext_struct {
+--
+2.34.1
meta-networking/recipes-protocols/mdns/mdns_1790.80.10.bb +1 -1
index 612d343c8..46f1b70cb 100644
@@ -21,6 +21,7 @@ SRC_URI = "git://github.com/apple-oss-distributions/mDNSResponder;protocol=https
            file://0006-Handle-noisy-netlink-sockets.patch \
            file://0007-Mark-deleted-interfaces-as-being-changed.patch \
            file://0008-Handle-errors-from-socket-calls.patch \
+           file://0009-remove-unneeded-headers.patch \
            file://mdns.service \
            "
 SRCREV = "8769ab51605e465425d33d757f602ce5905ca639"
--
Quoted 5 lines

2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#103444): https://lists.openembedded.org/g/openembedded-devel/message/103444
Mute This Topic: https://lists.openembedded.org/mt/99629056/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Quoted 2 lines
Quoted 2 lines

--
Alex Kiernan

--
Alex Kiernan