pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
rust199: apply upstream LLVM patch to restore buildability for i386.
Module Name: pkgsrc-wip
Committed By: Havard Eidnes <he%NetBSD.org@localhost>
Pushed By: he
Date: Sun Oct 25 12:58:29 2026 +0000
Changeset: a68aa750a8a55c69841fafea5cb968132ab78166
Modified Files:
rust199/distinfo
Added Files:
rust199/patches/patch-src_llvm_project_llvm_include_llvm_Support_Allocator.h
Log Message:
rust199: apply upstream LLVM patch to restore buildability for i386.
This is the fix to
https://github.com/llvm/llvm-project/issues/230782
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=a68aa750a8a55c69841fafea5cb968132ab78166
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
rust199/distinfo | 1 +
...vm_project_llvm_include_llvm_Support_Allocator.h | 21 +++++++++++++++++++++
2 files changed, 22 insertions(+)
diffs:
diff --git a/rust199/distinfo b/rust199/distinfo
index 9eb8b3b152..ee01fb232c 100644
--- a/rust199/distinfo
+++ b/rust199/distinfo
@@ -134,6 +134,7 @@ SHA1 (patch-src_llvm-project_llvm_cmake_modules_AddLLVM.cmake) = 3b83978e65b1227
SHA1 (patch-src_llvm-project_llvm_include_llvm-c_DataTypes.h) = cb011fc19957883c01725797f7c85ed1b20f96f1
SHA1 (patch-src_llvm-project_llvm_include_llvm_Analysis_ConstantFolding.h) = 75019dcb3dbca6cda33ba329dbe483101dcf48e7
SHA1 (patch-src_llvm-project_llvm_lib_TargetParser_TargetDataLayout.cpp) = 0e256d06d29e236a9918a951e8d4f4221d47236e
+SHA1 (patch-src_llvm_project_llvm_include_llvm_Support_Allocator.h) = c49cb61313a73ee65aa836cd41a4303ebf56f060
SHA1 (patch-src_tools_cargo_src_workspace_profiles.rs) = c86513da589f2dd861279fd119cf5588487f2ca1
SHA1 (patch-src_tools_cargo_tests_testsuite_build.rs) = 333ec513b9b94750b2424a7c1b21c809e6ea25b8
SHA1 (patch-src_tools_rust-installer_install-template.sh) = b31e2d8f9fa23beb5559c56de4b576f9b5e37d97
diff --git a/rust199/patches/patch-src_llvm_project_llvm_include_llvm_Support_Allocator.h b/rust199/patches/patch-src_llvm_project_llvm_include_llvm_Support_Allocator.h
new file mode 100644
index 0000000000..b662fa0368
--- /dev/null
+++ b/rust199/patches/patch-src_llvm_project_llvm_include_llvm_Support_Allocator.h
@@ -0,0 +1,21 @@
+$NetBSD$
+
+Apply fix from
+
+https://github.com/llvm/llvm-project/commit/0b6b6ed806536c1b170101061ff3eeed91c8f061
+
+in order to fix https://github.com/llvm/llvm-project/issues/230782
+which ought to restore our ability to build this rust version for
+and on i586 / i686.
+
+--- src/llvm-project/llvm/include/llvm/Support/Allocator.h.orig 2026-10-25 09:13:51.459958720 +0000
++++ src/llvm-project/llvm/include/llvm/Support/Allocator.h
+@@ -64,7 +64,7 @@ LLVM_ABI void printBumpPtrAllocatorStats
+ /// CurPtr when the requested alignment is no greater than MinAlign.
+ template <typename AllocatorT = MallocAllocator, size_t SlabSize = 4096,
+ size_t SizeThreshold = SlabSize, size_t GrowthDelay = 128,
+- size_t MinAlign = 8>
++ size_t MinAlign = std::min<size_t>(8, alignof(std::max_align_t))>
+ class BumpPtrAllocatorImpl
+ : public AllocatorBase<BumpPtrAllocatorImpl<
+ AllocatorT, SlabSize, SizeThreshold, GrowthDelay, MinAlign>>,
Home |
Main Index |
Thread Index |
Old Index