diff mbox series

[meta-oe] libsimplelog: Add C89-C++20 logger for cross-OS.

Message ID 20250417075342.7405-1-nguyenthaithuanalg@gmail.com
State Accepted
Headers show
Series [meta-oe] libsimplelog: Add C89-C++20 logger for cross-OS. | expand

Commit Message

Thuận Nguyễn-Thái April 17, 2025, 7:53 a.m. UTC
- Edit CMake
- Re-test Windows, Linux, MAC OSX.

Signed-off-by: Thuan Nguyen Thai <nguyenthaithuanalg@gmail.com>
---
 .../libsimplelog/libsimplelog_git.bb          | 20 +++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 meta-oe/recipes-libsimplelog/libsimplelog/libsimplelog_git.bb

Comments

Martin Jansa April 22, 2025, 6:59 a.m. UTC | #1
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".

On Thu, Apr 17, 2025 at 12:06 PM Thuận Nguyễn-Thái via
lists.openembedded.org
<nguyenthaithuanalg=gmail.com@lists.openembedded.org> wrote:
>
> - Edit CMake
> - Re-test Windows, Linux, MAC OSX.
>
> Signed-off-by: Thuan Nguyen Thai <nguyenthaithuanalg@gmail.com>
> ---
>  .../libsimplelog/libsimplelog_git.bb          | 20 +++++++++++++++++++
>  1 file changed, 20 insertions(+)
>  create mode 100644 meta-oe/recipes-libsimplelog/libsimplelog/libsimplelog_git.bb
>
> diff --git a/meta-oe/recipes-libsimplelog/libsimplelog/libsimplelog_git.bb b/meta-oe/recipes-libsimplelog/libsimplelog/libsimplelog_git.bb
> new file mode 100644
> index 000000000..461b96035
> --- /dev/null
> +++ b/meta-oe/recipes-libsimplelog/libsimplelog/libsimplelog_git.bb
> @@ -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: openembedded-devel+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [martin.jansa@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
diff mbox series

Patch

diff --git a/meta-oe/recipes-libsimplelog/libsimplelog/libsimplelog_git.bb b/meta-oe/recipes-libsimplelog/libsimplelog/libsimplelog_git.bb
new file mode 100644
index 000000000..461b96035
--- /dev/null
+++ b/meta-oe/recipes-libsimplelog/libsimplelog/libsimplelog_git.bb
@@ -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"
+
+