From c17f9f2facb2d8b7f00c932f5e96168c505771f8 Mon Sep 17 00:00:00 2001
From: Petr Chernikov
Date: Thu, 24 Aug 2023 16:08:27 +0300
Subject: Fix empty 0.0.0-0-g0 jemalloc version by adding --with-version
Empty "0.0.0-0-g0" jemalloc version may affect build and usage
of some applications. For example, it affects folly build and
usage and leads segmentation fault in some cases.
Signed-off-by: Petr Chernikov
Signed-off-by: Khem Raj
---
meta-oe/recipes-devtools/jemalloc/jemalloc_5.3.0.bb | 3 +++
1 file changed, 3 insertions(+)
diff --git a/meta-oe/recipes-devtools/jemalloc/jemalloc_5.3.0.bb b/meta-oe/recipes-devtools/jemalloc/jemalloc_5.3.0.bb
index 3d48bc012d..df499fbe50 100644
--- a/meta-oe/recipes-devtools/jemalloc/jemalloc_5.3.0.bb
+++ b/meta-oe/recipes-devtools/jemalloc/jemalloc_5.3.0.bb
@@ -25,6 +25,9 @@ inherit autotools ptest
EXTRA_AUTORECONF += "--exclude=autoheader"
EXTRA_OECONF:append:libc-musl = " --with-jemalloc-prefix=je_"
+# For some reason VERSION file populated only in tarball distribution.
+# Adding jemalloc version since this recipe is using source code from git tag
+EXTRA_OECONF:append = " --with-version=${PV}-0-g${SRCREV}"
do_install:append() {
sed -i -e 's@${STAGING_DIR_HOST}@@g' \
--
cgit v1.2.3-54-g00ecf