From 4ec111b988b251d769562c174e919b984f7edcc9 Mon Sep 17 00:00:00 2001 From: wolfi-bot <121097084+wolfi-bot@users.noreply.github.com> Date: Thu, 28 Nov 2024 14:51:57 +0000 Subject: [PATCH 1/3] snmalloc/0.7.0 package update Signed-off-by: wolfi-bot <121097084+wolfi-bot@users.noreply.github.com> --- snmalloc.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/snmalloc.yaml b/snmalloc.yaml index 17c6826c1ae..f25ec593197 100644 --- a/snmalloc.yaml +++ b/snmalloc.yaml @@ -1,7 +1,7 @@ package: name: snmalloc - version: "0.6.2" - epoch: 1 + version: 0.7.0 + epoch: 0 description: "snmalloc is a high-performance, message passing based allocator." copyright: - license: MIT @@ -34,7 +34,7 @@ pipeline: - uses: fetch with: uri: https://github.com/microsoft/snmalloc/archive/refs/tags/${{package.version}}.tar.gz - expected-sha256: e0486ccf03eac5dd8acbb66ea8ad33bec289572a51614acdf7117397e4f1af8c + expected-sha256: 9e6bd04e58d981218bd5bd3a853d93bbcb1a82dd914f912670f798e011e86746 - uses: cmake/configure with: From 5e22add1a2ca96e319c958323c78951f087e1eff Mon Sep 17 00:00:00 2001 From: debasishbsws Date: Tue, 17 Dec 2024 12:41:12 +0000 Subject: [PATCH 2/3] fix(build): downgrade the clang version to use 17 mentioned in the upstream https://github.com/microsoft/snmalloc/blob/main/docs/BUILDING.md\#building-on-unix-like-platforms Update the fetch pipeline to use git-checkout Add clang dev package for fatal error: 'stddef.h' file not found Signed-off-by: debasishbsws --- snmalloc.yaml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/snmalloc.yaml b/snmalloc.yaml index f25ec593197..fc049607628 100644 --- a/snmalloc.yaml +++ b/snmalloc.yaml @@ -11,7 +11,7 @@ package: vars: # https://github.com/microsoft/snmalloc/issues/669 - llvm-vers: 18 + llvm-vers: 17 environment: contents: @@ -22,6 +22,7 @@ environment: - busybox - ca-certificates-bundle - clang-${{vars.llvm-vers}} + - clang-${{vars.llvm-vers}}-dev - clang-${{vars.llvm-vers}}-extras - cmake - coreutils @@ -31,10 +32,11 @@ environment: - wolfi-base pipeline: - - uses: fetch + - uses: git-checkout with: - uri: https://github.com/microsoft/snmalloc/archive/refs/tags/${{package.version}}.tar.gz - expected-sha256: 9e6bd04e58d981218bd5bd3a853d93bbcb1a82dd914f912670f798e011e86746 + repository: https://github.com/microsoft/snmalloc.git + tag: ${{package.version}} + expected-commit: 564c88b07c53728ec90a88d7d34d0f74d3b0bfff - uses: cmake/configure with: @@ -45,7 +47,7 @@ pipeline: -DSNMALLOC_BUILD_TESTING=OFF \ -DSNMALLOC_LINK_ICF=ON \ -DSNMALLOC_IPO=ON \ - -DSNMALLOC_STATIC_LIBRARY_PREFIX= + -DSNMALLOC_STATIC_LIBRARY_PREFIX= \ - uses: cmake/build From 2271bbbf12021d750db1d64179007ed906ebf529 Mon Sep 17 00:00:00 2001 From: Debasish Biswas Date: Wed, 18 Dec 2024 19:55:39 +0530 Subject: [PATCH 3/3] Add comment to specify why using version 17 Signed-off-by: Debasish Biswas --- snmalloc.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/snmalloc.yaml b/snmalloc.yaml index fc049607628..f69efe5f641 100644 --- a/snmalloc.yaml +++ b/snmalloc.yaml @@ -10,7 +10,8 @@ package: - glibc vars: - # https://github.com/microsoft/snmalloc/issues/669 + # Using clang and llvm 17 which is compitable according to upstream: https://github.com/microsoft/snmalloc/blob/main/docs/BUILDING.md/#building-on-unix-like-platforms + # Using 18 causes error: https://github.com/wolfi-dev/os/pull/35468#issuecomment-2551419593 llvm-vers: 17 environment: