From: Armin Kuster <akuster808@gmail.com>
To: openembedded-devel@lists.openembedded.org
Cc: Chen Qi <Qi.Chen@windriver.com>, Khem Raj <raj.khem@gmail.com>
Subject: [meta-oe][styhead][PATCH 77/90] jansson: add JSON_INTEGER_IS_LONG_LONG for cmake
Date: Tue, 5 Nov 2024 09:35:42 -0500 [thread overview]
Message-ID: <20241105143638.2301245-78-akuster808@gmail.com> (raw)
In-Reply-To: <20241105143638.2301245-1-akuster808@gmail.com>
From: Chen Qi <Qi.Chen@windriver.com>
This macro is documented, so it should be consistent across
different build systems. It's defined in autotools, but not
cmake. Add it for cmake.
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit a3854f6893afb53d896394ddcc26568b25d04d91)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
---
...-JSON_INTEGER_IS_LONG_LONG-for-cmake.patch | 51 +++++++++++++++++++
.../recipes-extended/jansson/jansson_2.14.bb | 1 +
2 files changed, 52 insertions(+)
create mode 100644 meta-oe/recipes-extended/jansson/jansson/0001-add-back-JSON_INTEGER_IS_LONG_LONG-for-cmake.patch
diff --git a/meta-oe/recipes-extended/jansson/jansson/0001-add-back-JSON_INTEGER_IS_LONG_LONG-for-cmake.patch b/meta-oe/recipes-extended/jansson/jansson/0001-add-back-JSON_INTEGER_IS_LONG_LONG-for-cmake.patch
new file mode 100644
index 0000000000..5298cfbefc
--- /dev/null
+++ b/meta-oe/recipes-extended/jansson/jansson/0001-add-back-JSON_INTEGER_IS_LONG_LONG-for-cmake.patch
@@ -0,0 +1,51 @@
+From 521d37abc0ed1178a39298d06d80d8d0e2a43e28 Mon Sep 17 00:00:00 2001
+From: Chen Qi <Qi.Chen@windriver.com>
+Date: Tue, 10 Sep 2024 00:48:00 -0700
+Subject: [PATCH] add back JSON_INTEGER_IS_LONG_LONG for cmake
+
+For autotools, JSON_INTEGER_IS_LONG_LONG is defined, but for
+cmake, it's not. This means such macro, which is also documented,
+is not consistent across different build systems. This is not
+good, so add it for cmake.
+
+This patch refers 8b975abca1055d40637c90b1dc4585af1d7df76c and is
+part of it. So the upstream-status is marked as 'oe specific'.
+
+Upstream-Status: Inappropriate [OE Specific]
+
+Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
+---
+ CMakeLists.txt | 1 +
+ cmake/jansson_config.h.cmake | 4 +---
+ 2 files changed, 2 insertions(+), 3 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 39b9ad3..0e95a94 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -193,6 +193,7 @@ endif ()
+ # detect what to use for the 64 bit type.
+ # Note: I will prefer long long if I can get it, as that is what the automake system aimed for.
+ if (NOT DEFINED JSON_INT_T)
++ set (JSON_INTEGER_IS_LONG_LONG 1)
+ if (HAVE_LONG_LONG_INT AND (LONG_LONG_INT EQUAL 8))
+ set (JSON_INT_T "long long")
+ elseif (HAVE_INT64_T)
+diff --git a/cmake/jansson_config.h.cmake b/cmake/jansson_config.h.cmake
+index 2f248cb..bec64da 100644
+--- a/cmake/jansson_config.h.cmake
++++ b/cmake/jansson_config.h.cmake
+@@ -21,9 +21,7 @@
+ #define JANSSON_USING_CMAKE
+ #endif
+
+-/* Note: when using cmake, JSON_INTEGER_IS_LONG_LONG is not defined nor used,
+- * as we will also check for __int64 etc types.
+- * (the definition was used in the automake system) */
++#cmakedefine JSON_INTEGER_IS_LONG_LONG 1
+
+ /* Bring in the cmake-detected defines */
+ #cmakedefine HAVE_STDINT_H 1
+--
+2.42.0
+
diff --git a/meta-oe/recipes-extended/jansson/jansson_2.14.bb b/meta-oe/recipes-extended/jansson/jansson_2.14.bb
index fb42509f36..9f5cdcf4c0 100644
--- a/meta-oe/recipes-extended/jansson/jansson_2.14.bb
+++ b/meta-oe/recipes-extended/jansson/jansson_2.14.bb
@@ -7,6 +7,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=afd92c4cfc08f4896003251b878cc0bf"
SRC_URI = "https://github.com/akheron/${BPN}/releases/download/v${PV}/${BP}.tar.bz2 \
file://0001-Fix-overwriting-linker-flags.patch \
file://0001-Honour-multilib-paths.patch \
+ file://0001-add-back-JSON_INTEGER_IS_LONG_LONG-for-cmake.patch \
"
SRC_URI[sha256sum] = "fba956f27c6ae56ce6dfd52fbf9d20254aad42821f74fa52f83957625294afb9"
--
2.43.0
next prev parent reply other threads:[~2024-11-05 14:37 UTC|newest]
Thread overview: 92+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-05 14:34 [meta-oe][styhead][PATCH 00/90] Patch review Armin Kuster
2024-11-05 14:34 ` [meta-oe][styhead][PATCH 01/90] bdwgc: upgrade 8.2.6 -> 8.2.8 Armin Kuster
2024-11-05 14:34 ` [meta-oe][styhead][PATCH 02/90] ctags: upgrade 6.1.20240908.0 -> 6.1.20240915.0 Armin Kuster
2024-11-05 14:34 ` [meta-oe][styhead][PATCH 03/90] gnome-backgrounds: upgrade 46.0 -> 47.0 Armin Kuster
2024-11-05 14:34 ` [meta-oe][styhead][PATCH 04/90] gnome-chess: " Armin Kuster
2024-11-05 14:34 ` [meta-oe][styhead][PATCH 05/90] gnome-font-viewer: " Armin Kuster
2024-11-05 14:34 ` [meta-oe][styhead][PATCH 06/90] libmanette: upgrade 0.2.7 -> 0.2.9 Armin Kuster
2024-11-05 14:34 ` [meta-oe][styhead][PATCH 07/90] pegtl: upgrade 3.2.7 -> 3.2.8 Armin Kuster
2024-11-05 14:34 ` [meta-oe][styhead][PATCH 08/90] python3-elementpath: upgrade 4.4.0 -> 4.5.0 Armin Kuster
2024-11-05 14:34 ` [meta-oe][styhead][PATCH 09/90] python3-eventlet: upgrade 0.36.1 -> 0.37.0 Armin Kuster
2024-11-05 14:34 ` [meta-oe][styhead][PATCH 10/90] python3-filelock: upgrade 3.16.0 -> 3.16.1 Armin Kuster
2024-11-05 14:34 ` [meta-oe][styhead][PATCH 11/90] python3-greenlet: upgrade 3.0.3 -> 3.1.0 Armin Kuster
2024-11-05 14:34 ` [meta-oe][styhead][PATCH 12/90] python3-nmap: upgrade 1.6.0 -> 1.9.1 Armin Kuster
2024-11-05 14:34 ` [meta-oe][styhead][PATCH 13/90] python3-paramiko: upgrade 3.4.1 -> 3.5.0 Armin Kuster
2024-11-05 14:34 ` [meta-oe][styhead][PATCH 14/90] python3-platformdirs: upgrade 4.3.1 -> 4.3.6 Armin Kuster
2024-11-05 14:34 ` [meta-oe][styhead][PATCH 15/90] python3-psycopg: upgrade 3.2.1 -> 3.2.2 Armin Kuster
2024-11-05 14:34 ` [meta-oe][styhead][PATCH 16/90] python3-pyasn1-modules: upgrade 0.4.0 -> 0.4.1 Armin Kuster
2024-11-05 14:34 ` [meta-oe][styhead][PATCH 17/90] python3-pymisp: upgrade 2.4.197 -> 2.4.198 Armin Kuster
2024-11-05 14:34 ` [meta-oe][styhead][PATCH 18/90] python3-pyproject-api: upgrade 1.7.1 -> 1.7.2 Armin Kuster
2024-11-05 14:34 ` [meta-oe][styhead][PATCH 19/90] python3-pyunormalize: upgrade 15.1.0 -> 16.0.0 Armin Kuster
2024-11-05 14:34 ` [meta-oe][styhead][PATCH 20/90] python3-regex: upgrade 2024.7.24 -> 2024.9.11 Armin Kuster
2024-11-05 14:34 ` [meta-oe][styhead][PATCH 21/90] python3-rich: upgrade 13.8.0 -> 13.8.1 Armin Kuster
2024-11-05 14:34 ` [meta-oe][styhead][PATCH 22/90] python3-robotframework: upgrade 7.0.1 -> 7.1 Armin Kuster
2024-11-05 14:34 ` [meta-oe][styhead][PATCH 23/90] python3-virtualenv: upgrade 20.26.4 -> 20.26.5 Armin Kuster
2024-11-05 14:34 ` [meta-oe][styhead][PATCH 24/90] python3-xmlschema: upgrade 3.3.2 -> 3.4.1 Armin Kuster
2024-11-05 14:34 ` [meta-oe][styhead][PATCH 25/90] python3-yarl: upgrade 1.10.0 -> 1.11.1 Armin Kuster
2024-11-05 14:34 ` [meta-oe][styhead][PATCH 26/90] stunnel: upgrade 5.72 -> 5.73 Armin Kuster
2024-11-05 14:34 ` [meta-oe][styhead][PATCH 27/90] tecla: upgrade 46.0 -> 47.0 Armin Kuster
2024-11-05 14:34 ` [meta-oe][styhead][PATCH 28/90] traceroute: upgrade 2.1.5 -> 2.1.6 Armin Kuster
2024-11-05 14:34 ` [meta-oe][styhead][PATCH 29/90] opencv: upgrade 4.9.0 -> 4.10.0 Armin Kuster
2024-11-05 14:34 ` [meta-oe][styhead][PATCH 30/90] abseil-cpp: upgrade 20240116.2 -> 20240722.0 Armin Kuster
2024-11-05 14:34 ` [meta-oe][styhead][PATCH 31/90] protobuf: add abseil-cpp to RDEPENDS Armin Kuster
2024-11-05 14:34 ` [meta-oe][styhead][PATCH 32/90] protobuf: upgrade 4.25.4 -> 4.25.5 Armin Kuster
2024-11-05 14:34 ` [meta-oe][styhead][PATCH 33/90] non-repro-meta-networking: update known non-reproducible list Armin Kuster
2024-11-05 14:34 ` [meta-oe][styhead][PATCH 34/90] lksctp-tools: upgrade 1.0.19 -> 1.0.20 Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 35/90] gnome-shell: add gnome-control-center dependency Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 36/90] gnome-desktop: update 44.0 -> 44.1 Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 37/90] gpsd: make the meta-python dependency conditionally Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 38/90] tcpslice: upgrade 1.7 -> 1.8 Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 39/90] audit: Fix CVE_PRODUCT Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 40/90] python3-typer: Disable test_rich_markup_mode tests Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 41/90] perfetto: upgrade 31.0 -> 47.0 Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 42/90] python3-pydbus: Add missing rdep on xml module for ptests Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 43/90] python3-ujson: Add python misc modules to ptest rdeps Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 44/90] python3-gunicorn: Add missing rdeps for ptests Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 45/90] python3-eth-hash: Add packageconfigs and switch to pep517-backend Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 46/90] python3-validators: Add missing rdeps for ptests Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 47/90] syslog-ng: upgrade 4.6.0 -> 4.7.0 Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 48/90] polkit: Update Upstream-Status of a merged patch Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 49/90] capnproto: Add "capnp" to CVE_PRODUCT Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 50/90] fuse: Add "fuse:fuse" " Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 51/90] python3-pint: Upgrade to 0.24.3 Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 52/90] python3-pytest-mock: Fix ptests Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 53/90] python3-sqlparse: Add missing rdep on mypy module for ptests Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 54/90] Revert "gpsd: make the meta-python dependency conditionally" Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 55/90] gpsd: condition the runtime dependence of pyserial on the pygps Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 56/90] xfce4-panel: upgrade 4.18.3 -> 4.18.4 Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 57/90] softhsm: add destroyed global access prevention patch Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 58/90] audit: fix build when systemd is enabled Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 59/90] python3-sqlalchemy: Upgrade 2.0.32 -> 2.0.35 and switch to PEP-517 build backend Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 60/90] python3-alembic: " Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 61/90] python3-inflate64: " Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 62/90] python3-spidev: " Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 63/90] python3-pastedeploy: " Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 64/90] python3-reedsolo: " Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 65/90] libtar: patch CVEs Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 66/90] curlpp: Fix build issue Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 67/90] libhugetlbfs: upgrade 2.23 -> 2.24 Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 68/90] libhugetlbfs: Use linker wrapper during build Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 69/90] libhugetlbfs: Fix contains reference to TMPDIR [buildpaths] error Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 70/90] wireshark: fix typo in PACKAGECONFIG[zstd] Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 71/90] webkitgtk3: Always use -g1 for debug flags Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 72/90] webkitgtk3: Fix build break with latest gir Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 73/90] nodejs: upgrade 20.17.0 -> 20.18.0 Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 74/90] xfce4-panel: upgrade 4.18.4 -> 4.18.5 Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 75/90] apache2: do not depend on zlib header and libs from host Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 76/90] wtmpdb: fix installed-vs-shipped build error Armin Kuster
2024-11-05 14:35 ` Armin Kuster [this message]
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 78/90] ndisc6: Fix reproducible build Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 79/90] cryptsetup: fix udev PACKAGECONFIG Armin Kuster
2024-11-22 18:57 ` [oe] " Peter Kjellerstedt
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 80/90] sound-theme-freedesktop: Update SRC_URI Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 81/90] rsyslog: Enable 64bit atomics check Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 82/90] minidlna: fix reproducibility Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 83/90] kernel-selftest: Update to allow for turning on all tests Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 84/90] xmlrpc-c: update SRCREV Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 85/90] nodejs: cleanup Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 86/90] nmap: Fix off-by-one overflow in the IP protocol table Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 87/90] wireguard-tools: fix do_fetch error Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 88/90] vlock: " Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 89/90] xmlsec1: Switch SRC_URI to use github release Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 90/90] nng: Rename default branch of github.com:nanomsg/nng.git Armin Kuster
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20241105143638.2301245-78-akuster808@gmail.com \
--to=akuster808@gmail.com \
--cc=Qi.Chen@windriver.com \
--cc=openembedded-devel@lists.openembedded.org \
--cc=raj.khem@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox