[meta-oe][PATCH] libsimplelog: upgrade 1.0.8 -> 1.1.0

Thuận Nguyễn-Thái <[email protected]>
Newsgroups org.openembedded.lists.openembedded-devel
Message-ID <[email protected]>
Add note to answer from meta-openembedded maintainer: Khem Raj

And explain -D__LINUX__=1, -D_GNU_SOURCE=1 and musl (strictly POSIX)

Signed-off-by: Thuận Nguyễn-Thái <[email protected]>
---
 .../libsimplelog/libsimplelog_1.1.0.bb           | 16 +++++++++++++---
 1 file changed, 13 insertions(+), 3 deletions(-)

diff --git a/meta-oe/recipes-support/libsimplelog/libsimplelog_1.1.0.bb b/meta-oe/recipes-support/libsimplelog/libsimplelog_1.1.0.bb
index 53c13d726b..7a385d537b 100644
--- a/meta-oe/recipes-support/libsimplelog/libsimplelog_1.1.0.bb
+++ b/meta-oe/recipes-support/libsimplelog/libsimplelog_1.1.0.bb
@@ -3,17 +3,27 @@ SUMMARY = "simplelog-topc - Simple, STABLE, powerful of logging library in ANSI
 DESCRIPTION = "Async and Fast C/C++ multi-thread logger with topics. No external dependencies."
 HOMEPAGE = "https://github.com/thuanalg/simplelog-topic"
 LICENSE = "MIT"
+#The checksum of "LIC_FILES_CHKSUM" changed b/c I did change from "2024" to "2024-2026"
+#libsimplelog  is allways full "MIT license".
 LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=594fdc3cb85f0b684cf5d7b332a741be"
 
 SRC_URI = "git://github.com/thuanalg/simplelog-topic.git;branch=main;protocol=https;tag=v${PV}"
 
 SRCREV = "151e83902ca9755bcd285791d2f49de6fc30bfe6"
 
-S = "${WORKDIR}/git"
-
 inherit cmake
 
-# Specify any options you want to pass to cmake using EXTRA_OECMAKE:
 EXTRA_OECMAKE += "-DUNIX_LINUX=1 -D__LINUX__=1 -D_GNU_SOURCE=1"
 
+# From v.1.0.8 -> v1.1.0
+# Note for -D__LINUX__=1 -D_GNU_SOURCE=1
+# If don't use these flags, v.1.1.0 works like v1.0.8, and well adapt with musl (strictly POSIX)
+# If use 2 flags, they helps the source is more effective. Please test for 2 cases, you will see.
+# Please check "p->r = sched_getcpu();" in "simplelog.c"
+# You can use as below without any problem
+# EXTRA_OECMAKE += "-DUNIX_LINUX=1"
+
+# Drop 0001-allow-build-with-cmake-4.patch as it is now integrated upstream. 
+# Please see branch "main", commit "4827c4325063266f6d2a7e133a9d3a9050ff6a3c" by 
+# Author: Alper Ak <[email protected]>
 
-- 
2.43.0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.