Skip to contentSkip to conversation

libsimplelog: Add C89-C++20 logger for cross-OS.

PATCH In review Thuận Nguyễn-Thái 2 participants 2 messages Apr 17, 2025 – Apr 22, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libsimplelog: Add C89-C++20 logger for cross-OS.

- Edit CMake
- Re-test Windows, Linux, MAC OSX.

---
 .../libsimplelog/libsimplelog_git.bb          | 20 +++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 meta-oe/recipes-libsimplelog/libsimplelog/libsimplelog_git.bb
meta-oe/recipes-libsimplelog/libsimplelog/libsimplelog_git.bb new file +20 -0
new file mode 100644
index 000000000..461b96035
@@ -0,0 +1,20 @@
+
+SUMMARY = "simplelog-topc - Simple, STABLE, powerful of logging library in ANSI C/C++. Ready for billion records."
+DESCRIPTION = "Async and Fast C/C++ multi-thread logger with topics. No external dependencies."
+HOMEPAGE = "https://github.com/thuanalg/simplelog-topic"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=22cdd382a6275cb4c2e75c517952ac7c"
+
+SRC_URI = "git://github.com/thuanalg/simplelog-topic.git;branch=main;protocol=https"
+
+PV = "1.0.4+git"
+SRCREV = "781f5eaa1713e7f60e9ee79ab5143c0bacfcccef"
+
+S = "${WORKDIR}/git"
+
+inherit cmake
+
+# Specify any options you want to pass to cmake using EXTRA_OECMAKE:
+EXTRA_OECMAKE += "-DUNIX_LINUX=1"
+
+
Signature · 1 line
2.47.1
#1 lore raw

This fails to build with mulitlib, because it doesn't respect libdir value.

e.g. for lib32-libsimplelog with libdir /usr/lib32 it installs into /usr/lib and fails with:

ERROR: QA Issue: lib32-libsimplelog: Files/directories were installed but not shipped in any package:
/usr/lib/libsimplelog.so.1
/usr/lib/libsimplelog.so.1.0.4
/usr/lib/libsimplelog.so
Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.
lib32-libsimplelog: 3 installed and not shipped files. [installed-vs-shipped]

Please change https://github.com/thuanalg/simplelog-topic/blob/main/CMakeLists.txt#L81
to allow configuring libdir (e.g. with CMAKE_INSTALL_LIBDIR) instead
of hardcoding "lib".

Quoted 48 lines · Thuận Nguyễn-Thái via lists.openembedded.org

- Edit CMake
- Re-test Windows, Linux, MAC OSX.

---
 .../libsimplelog/libsimplelog_git.bb          | 20 +++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 meta-oe/recipes-libsimplelog/libsimplelog/libsimplelog_git.bb
meta-oe/recipes-libsimplelog/libsimplelog/libsimplelog_git.bb new file +20 -1
new file mode 100644
index 000000000..461b96035
@@ -0,0 +1,20 @@
+
+SUMMARY = "simplelog-topc - Simple, STABLE, powerful of logging library in ANSI C/C++. Ready for billion records."
+DESCRIPTION = "Async and Fast C/C++ multi-thread logger with topics. No external dependencies."
+HOMEPAGE = "https://github.com/thuanalg/simplelog-topic"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=22cdd382a6275cb4c2e75c517952ac7c"
+
+SRC_URI = "git://github.com/thuanalg/simplelog-topic.git;branch=main;protocol=https"
+
+PV = "1.0.4+git"
+SRCREV = "781f5eaa1713e7f60e9ee79ab5143c0bacfcccef"
+
+S = "${WORKDIR}/git"
+
+inherit cmake
+
+# Specify any options you want to pass to cmake using EXTRA_OECMAKE:
+EXTRA_OECMAKE += "-DUNIX_LINUX=1"
+
+
--

2.47.1

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