diff mbox series

[meta-networking,3/4] mjansson-mdns: add new recipe

Message ID 20260409220610.1216303-3-peter.marko@siemens.com
State Under Review
Headers show
Series [meta-oe,1/4] crow: add new recipe | expand

Commit Message

Peter Marko April 9, 2026, 10:06 p.m. UTC
From: Peter Marko <peter.marko@siemens.com>

Public domain mDNS/DNS-SD library in C

Add github namespace to recipe name and handle it in CVE_PRODUCT because
there already is a different mdns recipe in meta-openembedded.

Example application is built but not installed.
This is good to verify that current toolchain is copatible with headers.

Signed-off-by: Peter Marko <peter.marko@siemens.com>
---
 ...e_minimum_required-version-to-3.5-94.patch | 21 +++++++++++++++++++
 .../mjansson-mdns/mjansson-mdns_1.4.3.bb      | 14 +++++++++++++
 2 files changed, 35 insertions(+)
 create mode 100644 meta-networking/recipes-protocols/mjansson-mdns/files/0001-Bump-cmake_minimum_required-version-to-3.5-94.patch
 create mode 100644 meta-networking/recipes-protocols/mjansson-mdns/mjansson-mdns_1.4.3.bb
diff mbox series

Patch

diff --git a/meta-networking/recipes-protocols/mjansson-mdns/files/0001-Bump-cmake_minimum_required-version-to-3.5-94.patch b/meta-networking/recipes-protocols/mjansson-mdns/files/0001-Bump-cmake_minimum_required-version-to-3.5-94.patch
new file mode 100644
index 0000000000..2afccbe463
--- /dev/null
+++ b/meta-networking/recipes-protocols/mjansson-mdns/files/0001-Bump-cmake_minimum_required-version-to-3.5-94.patch
@@ -0,0 +1,21 @@ 
+From ab8f4118469d7a0bb83b9fcb88fe53482c35f0cb Mon Sep 17 00:00:00 2001
+From: skrede <code@skrede.me>
+Date: Sun, 26 Oct 2025 14:35:05 +0100
+Subject: [PATCH] Bump cmake_minimum_required version to 3.5 (#94)
+
+Upstream-Status: Backport [https://github.com/mjansson/mdns/commit/ab8f4118469d7a0bb83b9fcb88fe53482c35f0cb]
+Signed-off-by: Peter Marko <peter.marko@siemens.com>
+---
+ CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 1bce26d..50f1f05 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -1,4 +1,4 @@
+-cmake_minimum_required(VERSION 3.0)
++cmake_minimum_required(VERSION 3.5)
+ project(mdns VERSION 1.4.2 LANGUAGES C)
+ 
+ option(MDNS_BUILD_EXAMPLE "build example" ON)
diff --git a/meta-networking/recipes-protocols/mjansson-mdns/mjansson-mdns_1.4.3.bb b/meta-networking/recipes-protocols/mjansson-mdns/mjansson-mdns_1.4.3.bb
new file mode 100644
index 0000000000..5c404cbb9d
--- /dev/null
+++ b/meta-networking/recipes-protocols/mjansson-mdns/mjansson-mdns_1.4.3.bb
@@ -0,0 +1,14 @@ 
+SUMMARY = "Public domain mDNS/DNS-SD library in C"
+DESCRIPTION = "This library provides a header only cross-platform mDNS and DNS-DS library in C"
+SECTION = "net"
+LICENSE = "Unlicense"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=911690f51af322440237a253d695d19f"
+
+SRC_URI = "git://github.com/mjansson/mdns.git;protocol=https;branch=main;tag=${PV} \
+    file://0001-Bump-cmake_minimum_required-version-to-3.5-94.patch \
+"
+SRCREV = "1727be0602941a714cb6048a737f0584b1cebf3c"
+
+inherit cmake
+
+CVE_PRODUCT = "mjansson:mdns"