Date: Fri, 10 Apr 2026 09:41:25 +0000 From: Yuri Victorovich <yuri@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 4653059b0b32 - main - misc/py-polars-runtime: Move to revision that doesn't break at compile time Message-ID: <69d8c5c5.47d16.25e3b2b6@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=4653059b0b32a0e67b950246d6ab3351c1489783 commit 4653059b0b32a0e67b950246d6ab3351c1489783 Author: Yuri Victorovich <yuri@FreeBSD.org> AuthorDate: 2026-04-10 08:38:22 +0000 Commit: Yuri Victorovich <yuri@FreeBSD.org> CommitDate: 2026-04-10 09:40:54 +0000 misc/py-polars-runtime: Move to revision that doesn't break at compile time --- misc/py-polars-runtime/Makefile | 24 ++++------ misc/py-polars-runtime/distinfo | 42 +++++++--------- misc/py-polars-runtime/files/patch-Cargo.lock | 56 ++++++++++++---------- misc/py-polars-runtime/files/patch-Cargo.toml | 14 ------ .../files/patch-crates_polars-ooc_Cargo.toml | 20 ++++++++ .../patch-crates_polars-ooc_src_global__alloc.rs | 19 ++++++++ .../files/patch-crates_polars-python_Cargo.toml | 18 ------- ...ch-crates_polars-python_src_c__api_allocator.rs | 10 ---- 8 files changed, 96 insertions(+), 107 deletions(-) diff --git a/misc/py-polars-runtime/Makefile b/misc/py-polars-runtime/Makefile index 1e215c68390b..3ef79b25f76f 100644 --- a/misc/py-polars-runtime/Makefile +++ b/misc/py-polars-runtime/Makefile @@ -1,6 +1,7 @@ PORTNAME= polars-runtime DISTVERSIONPREFIX= py- DISTVERSION= 1.39.3 +PORTREVISION= 1 CATEGORIES= misc #MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -12,8 +13,6 @@ WWW= https://github.com/pola-rs/polars LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE -BROKEN= compilation alias: https://github.com/pola-rs/polars/issues/27130 - FLAVORS= compat 32 64 # runtime values; it might look hackish to define different types of flavors in this Python port, but Polars needs all of them to be installed and there should be no problems as long as files are installed into proper locations FLAVOR?= ${FLAVORS:[1]} ${FLAVOR}_PKGNAMESUFFIX= -${FLAVOR} # there's no default runtime for Polars, all of them are needed @@ -30,6 +29,7 @@ USE_PYTHON= pep517 noflavors # autoplist is broken USE_GITHUB= yes GH_ACCOUNT= pola-rs GH_PROJECT= polars +GH_TAGNAME= 880651f782 # avoid breakage https://github.com/pola-rs/polars/issues/27130 # the below RUSTFLAGS builds the polars package that fails in the run-time with the TLS error about insufficient TLS memory # this RUSTFLAGS is replaced with ugly patches in files/ that allow to build a working package @@ -232,7 +232,6 @@ CARGO_CRATES= adler2-2.0.1 \ idna-1.1.0 \ idna_adapter-1.2.1 \ indexmap-2.13.0 \ - indoc-2.0.7 \ inventory-0.3.21 \ ipnet-2.11.0 \ iri-string-0.7.10 \ @@ -261,12 +260,11 @@ CARGO_CRATES= adler2-2.0.1 \ lru-slab-0.1.2 \ lz4-1.28.1 \ lz4-sys-1.11.1+lz4-1.10.0 \ - lz4_flex-0.12.0 \ + lz4_flex-0.12.1 \ matrixmultiply-0.3.10 \ md-5-0.10.6 \ memchr-2.8.0 \ memmap2-0.9.10 \ - memoffset-0.9.1 \ mimalloc-0.1.48 \ miniz_oxide-0.8.9 \ mio-1.1.1 \ @@ -283,7 +281,7 @@ CARGO_CRATES= adler2-2.0.1 \ num-iter-0.1.45 \ num-rational-0.4.2 \ num-traits-0.2.19 \ - numpy-0.27.1 \ + numpy-0.28.0 \ objc2-0.6.3 \ objc2-app-kit-0.3.2 \ objc2-core-foundation-0.3.2 \ @@ -324,11 +322,11 @@ CARGO_CRATES= adler2-2.0.1 \ prost-0.11.9 \ prost-derive-0.11.9 \ psm-0.1.30 \ - pyo3-0.27.2 \ - pyo3-build-config-0.27.2 \ - pyo3-ffi-0.27.2 \ - pyo3-macros-0.27.2 \ - pyo3-macros-backend-0.27.2 \ + pyo3-0.28.2 \ + pyo3-build-config-0.28.2 \ + pyo3-ffi-0.28.2 \ + pyo3-macros-0.28.2 \ + pyo3-macros-backend-0.28.2 \ quad-rand-0.2.3 \ quick-xml-0.39.1 \ quinn-0.11.9 \ @@ -475,7 +473,6 @@ CARGO_CRATES= adler2-2.0.1 \ unicode-segmentation-1.12.0 \ unicode-width-0.2.2 \ unicode-xid-0.2.6 \ - unindent-0.2.4 \ untrusted-0.9.0 \ unty-0.0.4 \ url-2.5.8 \ @@ -572,8 +569,7 @@ CARGO_CRATES= adler2-2.0.1 \ zstd-safe-7.2.4 \ zstd-sys-2.0.16+zstd.1.5.7 \ object_store@git+https://github.com/kdn36/arrow-rs-object-store?branch=feat_checksum_crc64\#12323e21b6e420f1e9d630fa8c4a40de41b11f2f \ - color-backtrace@git+https://github.com/orlp/color-backtrace?rev=bb62ccf1e9eb1f6b7af5f16acff1fd7151a876dd\#bb62ccf1e9eb1f6b7af5f16acff1fd7151a876dd \ - tikv-jemalloc-sys,tikv-jemallocator@git+https://github.com/pola-rs/jemallocator?rev=c7991e5bb6b3e9f79db6b0f48dcda67c5c3d2936\#c7991e5bb6b3e9f79db6b0f48dcda67c5c3d2936 + color-backtrace@git+https://github.com/orlp/color-backtrace?rev=bb62ccf1e9eb1f6b7af5f16acff1fd7151a876dd\#bb62ccf1e9eb1f6b7af5f16acff1fd7151a876dd CARGO_TARGET_DIR= ${WRKSRC}/target CARGO_BUILD= no CARGO_INSTALL= no diff --git a/misc/py-polars-runtime/distinfo b/misc/py-polars-runtime/distinfo index ced4db953737..bb0b82797fc3 100644 --- a/misc/py-polars-runtime/distinfo +++ b/misc/py-polars-runtime/distinfo @@ -1,4 +1,4 @@ -TIMESTAMP = 1774198584 +TIMESTAMP = 1775805159 SHA256 (rust/crates/adler2-2.0.1.crate) = 320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa SIZE (rust/crates/adler2-2.0.1.crate) = 13366 SHA256 (rust/crates/adler32-1.2.0.crate) = aae1277d39aeec15cb388266ecc24b11c80469deae6067e17a1a7aa9e5c1f234 @@ -383,8 +383,6 @@ SHA256 (rust/crates/idna_adapter-1.2.1.crate) = 3acae9609540aa318d1bc588455225fb SIZE (rust/crates/idna_adapter-1.2.1.crate) = 10389 SHA256 (rust/crates/indexmap-2.13.0.crate) = 7714e70437a7dc3ac8eb7e6f8df75fd8eb422675fc7678aff7364301092b1017 SIZE (rust/crates/indexmap-2.13.0.crate) = 102206 -SHA256 (rust/crates/indoc-2.0.7.crate) = 79cf5c93f93228cf8efb3ba362535fb11199ac548a09ce117c9b1adc3030d706 -SIZE (rust/crates/indoc-2.0.7.crate) = 17184 SHA256 (rust/crates/inventory-0.3.21.crate) = bc61209c082fbeb19919bee74b176221b27223e27b65d781eb91af24eb1fb46e SIZE (rust/crates/inventory-0.3.21.crate) = 16600 SHA256 (rust/crates/ipnet-2.11.0.crate) = 469fb0b9cefa57e3ef31275ee7cacb78f2fdca44e4765491884a2b119d4eb130 @@ -441,8 +439,8 @@ SHA256 (rust/crates/lz4-1.28.1.crate) = a20b523e860d03443e98350ceaac5e71c6ba89ae SIZE (rust/crates/lz4-1.28.1.crate) = 13585 SHA256 (rust/crates/lz4-sys-1.11.1+lz4-1.10.0.crate) = 6bd8c0d6c6ed0cd30b3652886bb8711dc4bb01d637a68105a3d5158039b418e6 SIZE (rust/crates/lz4-sys-1.11.1+lz4-1.10.0.crate) = 391317 -SHA256 (rust/crates/lz4_flex-0.12.0.crate) = ab6473172471198271ff72e9379150e9dfd70d8e533e0752a27e515b48dd375e -SIZE (rust/crates/lz4_flex-0.12.0.crate) = 41983 +SHA256 (rust/crates/lz4_flex-0.12.1.crate) = 98c23545df7ecf1b16c303910a69b079e8e251d60f7dd2cc9b4177f2afaf1746 +SIZE (rust/crates/lz4_flex-0.12.1.crate) = 43802 SHA256 (rust/crates/matrixmultiply-0.3.10.crate) = a06de3016e9fae57a36fd14dba131fccf49f74b40b7fbdb472f96e361ec71a08 SIZE (rust/crates/matrixmultiply-0.3.10.crate) = 58170 SHA256 (rust/crates/md-5-0.10.6.crate) = d89e7ee0cfbedfc4da3340218492196241d89eefb6dab27de5df917a6d2e78cf @@ -451,8 +449,6 @@ SHA256 (rust/crates/memchr-2.8.0.crate) = f8ca58f447f06ed17d5fc4043ce1b10dd205e0 SIZE (rust/crates/memchr-2.8.0.crate) = 97780 SHA256 (rust/crates/memmap2-0.9.10.crate) = 714098028fe011992e1c3962653c96b2d578c4b4bce9036e15ff220319b1e0e3 SIZE (rust/crates/memmap2-0.9.10.crate) = 34846 -SHA256 (rust/crates/memoffset-0.9.1.crate) = 488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a -SIZE (rust/crates/memoffset-0.9.1.crate) = 9032 SHA256 (rust/crates/mimalloc-0.1.48.crate) = e1ee66a4b64c74f4ef288bcbb9192ad9c3feaad75193129ac8509af543894fd8 SIZE (rust/crates/mimalloc-0.1.48.crate) = 4742 SHA256 (rust/crates/miniz_oxide-0.8.9.crate) = 1fa76a2c86f704bdb222d66965fb3d63269ce38518b83cb0575fca855ebb6316 @@ -485,8 +481,8 @@ SHA256 (rust/crates/num-rational-0.4.2.crate) = f83d14da390562dca69fc84082e73e54 SIZE (rust/crates/num-rational-0.4.2.crate) = 28159 SHA256 (rust/crates/num-traits-0.2.19.crate) = 071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841 SIZE (rust/crates/num-traits-0.2.19.crate) = 51631 -SHA256 (rust/crates/numpy-0.27.1.crate) = 7aac2e6a6e4468ffa092ad43c39b81c79196c2bb773b8db4085f695efe3bba17 -SIZE (rust/crates/numpy-0.27.1.crate) = 79488 +SHA256 (rust/crates/numpy-0.28.0.crate) = 778da78c64ddc928ebf5ad9df5edf0789410ff3bdbf3619aed51cd789a6af1e2 +SIZE (rust/crates/numpy-0.28.0.crate) = 80455 SHA256 (rust/crates/objc2-0.6.3.crate) = b7c2599ce0ec54857b29ce62166b0ed9b4f6f1a70ccc9a71165b6154caca8c05 SIZE (rust/crates/objc2-0.6.3.crate) = 272490 SHA256 (rust/crates/objc2-app-kit-0.3.2.crate) = d49e936b501e5c5bf01fda3a9452ff86dc3ea98ad5f283e1455153142d97518c @@ -567,16 +563,16 @@ SHA256 (rust/crates/prost-derive-0.11.9.crate) = e5d2d8d10f3c6ded6da8b05b5fb3b8a SIZE (rust/crates/prost-derive-0.11.9.crate) = 19513 SHA256 (rust/crates/psm-0.1.30.crate) = 3852766467df634d74f0b2d7819bf8dc483a0eb2e3b0f50f756f9cfe8b0d18d8 SIZE (rust/crates/psm-0.1.30.crate) = 25061 -SHA256 (rust/crates/pyo3-0.27.2.crate) = ab53c047fcd1a1d2a8820fe84f05d6be69e9526be40cb03b73f86b6b03e6d87d -SIZE (rust/crates/pyo3-0.27.2.crate) = 1171342 -SHA256 (rust/crates/pyo3-build-config-0.27.2.crate) = b455933107de8642b4487ed26d912c2d899dec6114884214a0b3bb3be9261ea6 -SIZE (rust/crates/pyo3-build-config-0.27.2.crate) = 35564 -SHA256 (rust/crates/pyo3-ffi-0.27.2.crate) = 1c85c9cbfaddf651b1221594209aed57e9e5cff63c4d11d1feead529b872a089 -SIZE (rust/crates/pyo3-ffi-0.27.2.crate) = 78552 -SHA256 (rust/crates/pyo3-macros-0.27.2.crate) = 0a5b10c9bf9888125d917fb4d2ca2d25c8df94c7ab5a52e13313a07e050a3b02 -SIZE (rust/crates/pyo3-macros-0.27.2.crate) = 8913 -SHA256 (rust/crates/pyo3-macros-backend-0.27.2.crate) = 03b51720d314836e53327f5871d4c0cfb4fb37cc2c4a11cc71907a86342c40f9 -SIZE (rust/crates/pyo3-macros-backend-0.27.2.crate) = 82513 +SHA256 (rust/crates/pyo3-0.28.2.crate) = cf85e27e86080aafd5a22eae58a162e133a589551542b3e5cee4beb27e54f8e1 +SIZE (rust/crates/pyo3-0.28.2.crate) = 1202843 +SHA256 (rust/crates/pyo3-build-config-0.28.2.crate) = 8bf94ee265674bf76c09fa430b0e99c26e319c945d96ca0d5a8215f31bf81cf7 +SIZE (rust/crates/pyo3-build-config-0.28.2.crate) = 35958 +SHA256 (rust/crates/pyo3-ffi-0.28.2.crate) = 491aa5fc66d8059dd44a75f4580a2962c1862a1c2945359db36f6c2818b748dc +SIZE (rust/crates/pyo3-ffi-0.28.2.crate) = 80837 +SHA256 (rust/crates/pyo3-macros-0.28.2.crate) = f5d671734e9d7a43449f8480f8b38115df67bef8d21f76837fa75ee7aaa5e52e +SIZE (rust/crates/pyo3-macros-0.28.2.crate) = 8960 +SHA256 (rust/crates/pyo3-macros-backend-0.28.2.crate) = 22faaa1ce6c430a1f71658760497291065e6450d7b5dc2bcf254d49f66ee700a +SIZE (rust/crates/pyo3-macros-backend-0.28.2.crate) = 87939 SHA256 (rust/crates/quad-rand-0.2.3.crate) = 5a651516ddc9168ebd67b24afd085a718be02f8858fe406591b013d101ce2f40 SIZE (rust/crates/quad-rand-0.2.3.crate) = 4949 SHA256 (rust/crates/quick-xml-0.39.1.crate) = bd58c6a1fc307e1092aa0bb23d204ca4d1f021764142cd0424dccc84d2d5d106 @@ -869,8 +865,6 @@ SHA256 (rust/crates/unicode-width-0.2.2.crate) = b4ac048d71ede7ee76d585517add45d SIZE (rust/crates/unicode-width-0.2.2.crate) = 282768 SHA256 (rust/crates/unicode-xid-0.2.6.crate) = ebc1c04c71510c7f702b52b7c350734c9ff1295c464a03335b00bb84fc54f853 SIZE (rust/crates/unicode-xid-0.2.6.crate) = 15744 -SHA256 (rust/crates/unindent-0.2.4.crate) = 7264e107f553ccae879d21fbea1d6724ac785e8c3bfc762137959b5802826ef3 -SIZE (rust/crates/unindent-0.2.4.crate) = 7422 SHA256 (rust/crates/untrusted-0.9.0.crate) = 8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1 SIZE (rust/crates/untrusted-0.9.0.crate) = 14447 SHA256 (rust/crates/unty-0.0.4.crate) = 6d49784317cd0d1ee7ec5c716dd598ec5b4483ea832a2dced265471cc0f690ae @@ -1065,7 +1059,5 @@ SHA256 (kdn36-arrow-rs-object-store-12323e21b6e420f1e9d630fa8c4a40de41b11f2f_GH0 SIZE (kdn36-arrow-rs-object-store-12323e21b6e420f1e9d630fa8c4a40de41b11f2f_GH0.tar.gz) = 276058 SHA256 (orlp-color-backtrace-bb62ccf1e9eb1f6b7af5f16acff1fd7151a876dd_GH0.tar.gz) = 5e3716156f0c6c152fdaf55f4eca287347e7d78ce7c7ab204cac8ad350eabe07 SIZE (orlp-color-backtrace-bb62ccf1e9eb1f6b7af5f16acff1fd7151a876dd_GH0.tar.gz) = 18409 -SHA256 (pola-rs-jemallocator-c7991e5bb6b3e9f79db6b0f48dcda67c5c3d2936_GH0.tar.gz) = d34f3a2a518f38f84e79f7e6af028811541273ad7f75428adf3591317a1d4867 -SIZE (pola-rs-jemallocator-c7991e5bb6b3e9f79db6b0f48dcda67c5c3d2936_GH0.tar.gz) = 929118 -SHA256 (pola-rs-polars-py-1.39.3_GH0.tar.gz) = 02e29fd1d514721a6ed563244e2beedf0855c7ff4efcc503f772f83e9ffa71c9 -SIZE (pola-rs-polars-py-1.39.3_GH0.tar.gz) = 5012891 +SHA256 (pola-rs-polars-py-1.39.3-880651f782_GH0.tar.gz) = 7bc775bb26ff7f6169f2cc2d01c3610e1a5b11d3d3b231bca706a4126ef83ffa +SIZE (pola-rs-polars-py-1.39.3-880651f782_GH0.tar.gz) = 5071321 diff --git a/misc/py-polars-runtime/files/patch-Cargo.lock b/misc/py-polars-runtime/files/patch-Cargo.lock index fe60cd069ccf..abc8371bcec9 100644 --- a/misc/py-polars-runtime/files/patch-Cargo.lock +++ b/misc/py-polars-runtime/files/patch-Cargo.lock @@ -1,19 +1,38 @@ -- remove jemalloc dependencies from Cargo.lock ---- Cargo.lock.orig 2026-03-12 10:40:39 UTC +--- Cargo.lock.orig 2026-04-09 13:00:26 UTC +++ Cargo.lock -@@ -3529,7 +3529,6 @@ dependencies = [ - "rayon", - "recursive", - "serde_json", +@@ -999,7 +999,6 @@ version = "0.7.2" + [[package]] + name = "color-backtrace" + version = "0.7.2" +-source = "git+https://github.com/orlp/color-backtrace?rev=bb62ccf1e9eb1f6b7af5f16acff1fd7151a876dd#bb62ccf1e9eb1f6b7af5f16acff1fd7151a876dd" + dependencies = [ + "btparse", + "termcolor", +@@ -2742,7 +2741,6 @@ version = "0.13.1" + [[package]] + name = "object_store" + version = "0.13.1" +-source = "git+https://github.com/kdn36/arrow-rs-object-store?branch=feat_checksum_crc64#12323e21b6e420f1e9d630fa8c4a40de41b11f2f" + dependencies = [ + "async-trait", + "base64", +@@ -3336,7 +3334,6 @@ dependencies = [ + "polars-core", + "polars-utils", + "slotmap", - "tikv-jemallocator", - "version_check", - ] - -@@ -5051,24 +5050,6 @@ dependencies = [ ] [[package]] +@@ -5030,24 +5027,6 @@ dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.116", +-] +- +-[[package]] -name = "tikv-jemalloc-sys" -version = "0.6.0+5.3.0-1-ge13ca993e8ccb9ba9847cc330696e02839f328f7" -source = "git+https://github.com/pola-rs/jemallocator?rev=c7991e5bb6b3e9f79db6b0f48dcda67c5c3d2936#c7991e5bb6b3e9f79db6b0f48dcda67c5c3d2936" @@ -29,21 +48,6 @@ -dependencies = [ - "libc", - "tikv-jemalloc-sys", --] -- --[[package]] - name = "time" - version = "0.3.47" - source = "registry+https://github.com/rust-lang/crates.io-index" -@@ -6284,3 +6265,11 @@ dependencies = [ - "cc", - "pkg-config", ] -+ -+[[patch.unused]] -+name = "tikv-jemalloc-sys" -+version = "0.6.0+5.3.0-1-ge13ca993e8ccb9ba9847cc330696e02839f328f7" -+ -+[[patch.unused]] -+name = "tikv-jemallocator" -+version = "0.6.0" + + [[package]] diff --git a/misc/py-polars-runtime/files/patch-Cargo.toml b/misc/py-polars-runtime/files/patch-Cargo.toml deleted file mode 100644 index 2a4586c7477d..000000000000 --- a/misc/py-polars-runtime/files/patch-Cargo.toml +++ /dev/null @@ -1,14 +0,0 @@ --- remove jemalloc dependencies from Cargo.lock - ---- Cargo.toml.orig 2026-03-12 10:40:39 UTC -+++ Cargo.toml -@@ -160,9 +160,6 @@ collapsible_if = "allow" - collapsible_if = "allow" - - [patch.crates-io] --# packed_simd_2 = { git = "https://github.com/rust-lang/packed_simd", rev = "e57c7ba11386147e6d2cbad7c88f376aab4bdc86" } --# simd-json = { git = "https://github.com/ritchie46/simd-json", branch = "alignment" } --tikv-jemallocator = { git = "https://github.com/pola-rs/jemallocator", rev = "c7991e5bb6b3e9f79db6b0f48dcda67c5c3d2936" } - object_store = { git = "https://github.com/kdn36/arrow-rs-object-store", branch = "feat_checksum_crc64" } - color-backtrace = { git = "https://github.com/orlp/color-backtrace", rev = "bb62ccf1e9eb1f6b7af5f16acff1fd7151a876dd" } - diff --git a/misc/py-polars-runtime/files/patch-crates_polars-ooc_Cargo.toml b/misc/py-polars-runtime/files/patch-crates_polars-ooc_Cargo.toml new file mode 100644 index 000000000000..b4e2c2981889 --- /dev/null +++ b/misc/py-polars-runtime/files/patch-crates_polars-ooc_Cargo.toml @@ -0,0 +1,20 @@ +--- crates/polars-ooc/Cargo.toml.orig 2026-04-10 06:31:40 UTC ++++ crates/polars-ooc/Cargo.toml +@@ -19,16 +19,9 @@ mimalloc = { version = "0.1", default-features = false + [target.'cfg(any(not(target_family = "unix"), target_os = "emscripten"))'.dependencies] + mimalloc = { version = "0.1", default-features = false, optional = true } + +-# Feature background_threads is unsupported on MacOS (https://github.com/jemalloc/jemalloc/issues/843). +-[target.'cfg(all(target_family = "unix", not(target_os = "macos"), not(target_os = "emscripten")))'.dependencies] +-tikv-jemallocator = { version = "0.6.0", features = ["disable_initial_exec_tls", "background_threads"], optional = true } +- +-[target.'cfg(all(target_family = "unix", target_os = "macos"))'.dependencies] +-tikv-jemallocator = { version = "0.6.0", features = ["disable_initial_exec_tls"], optional = true } +- + [lints] + workspace = true + + [features] + default = ["fast_alloc"] +-fast_alloc = ["dep:mimalloc", "dep:tikv-jemallocator"] ++fast_alloc = ["dep:mimalloc"] diff --git a/misc/py-polars-runtime/files/patch-crates_polars-ooc_src_global__alloc.rs b/misc/py-polars-runtime/files/patch-crates_polars-ooc_src_global__alloc.rs new file mode 100644 index 000000000000..7ad70332338d --- /dev/null +++ b/misc/py-polars-runtime/files/patch-crates_polars-ooc_src_global__alloc.rs @@ -0,0 +1,19 @@ +--- crates/polars-ooc/src/global_alloc.rs.orig 2026-04-09 13:00:26 UTC ++++ crates/polars-ooc/src/global_alloc.rs +@@ -42,6 +42,7 @@ fn update_alloc_size(bytes: i64) { + feature = "fast_alloc", + target_family = "unix", + not(target_os = "emscripten"), ++ not(target_os = "freebsd"), + ))] + static UNDERLYING_ALLOC: tikv_jemallocator::Jemalloc = tikv_jemallocator::Jemalloc; + +@@ -51,7 +52,7 @@ static UNDERLYING_ALLOC: mimalloc::MiMalloc = mimalloc + ))] + static UNDERLYING_ALLOC: mimalloc::MiMalloc = mimalloc::MiMalloc; + +-#[cfg(not(feature = "fast_alloc"))] ++#[cfg(any(not(feature = "fast_alloc"), target_os = "freebsd"))] + static UNDERLYING_ALLOC: std::alloc::System = std::alloc::System; + + pub struct Allocator; diff --git a/misc/py-polars-runtime/files/patch-crates_polars-python_Cargo.toml b/misc/py-polars-runtime/files/patch-crates_polars-python_Cargo.toml deleted file mode 100644 index f838ba90410d..000000000000 --- a/misc/py-polars-runtime/files/patch-crates_polars-python_Cargo.toml +++ /dev/null @@ -1,18 +0,0 @@ ---- crates/polars-python/Cargo.toml.orig 2026-03-12 10:40:39 UTC -+++ crates/polars-python/Cargo.toml -@@ -54,11 +54,11 @@ mimalloc = { version = "0.1", default-features = false - mimalloc = { version = "0.1", default-features = false } - - # Feature background_threads is unsupported on MacOS (https://github.com/jemalloc/jemalloc/issues/843). --[target.'cfg(all(target_family = "unix", not(target_os = "macos"), not(target_os = "emscripten")))'.dependencies] --tikv-jemallocator = { version = "0.6.0", features = ["disable_initial_exec_tls", "background_threads"] } -+#[target.'cfg(all(target_family = "unix", not(target_os = "macos"), not(target_os = "emscripten"), not(target_os = "freebsd")))'.dependencies] -+#tikv-jemallocator = { version = "0.6.0", features = ["disable_initial_exec_tls", "background_threads"] } - --[target.'cfg(all(target_family = "unix", target_os = "macos"))'.dependencies] --tikv-jemallocator = { version = "0.6.0", features = ["disable_initial_exec_tls"] } -+#[target.'cfg(all(target_family = "unix", target_os = "macos"))'.dependencies] -+#tikv-jemallocator = { version = "0.6.0", features = ["disable_initial_exec_tls"] } - - [dependencies.polars] - workspace = true diff --git a/misc/py-polars-runtime/files/patch-crates_polars-python_src_c__api_allocator.rs b/misc/py-polars-runtime/files/patch-crates_polars-python_src_c__api_allocator.rs deleted file mode 100644 index 991f8604883f..000000000000 --- a/misc/py-polars-runtime/files/patch-crates_polars-python_src_c__api_allocator.rs +++ /dev/null @@ -1,10 +0,0 @@ ---- crates/polars-python/src/c_api/allocator.rs.orig 2025-09-18 08:58:22 UTC -+++ crates/polars-python/src/c_api/allocator.rs -@@ -2,6 +2,7 @@ - not(feature = "default_alloc"), - target_family = "unix", - not(target_os = "emscripten"), -+ not(target_os = "freebsd"), - ))] - #[global_allocator] - static ALLOC: tikv_jemallocator::Jemalloc = tikv_jemallocator::Jemalloc;home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69d8c5c5.47d16.25e3b2b6>
