From e80155cfb9a2c35fcd5f29e00ca0bb541c2df5be Mon Sep 17 00:00:00 2001 From: termux-pacman-bot Date: Sun, 21 Sep 2025 16:05:26 +0000 Subject: [PATCH] bump(main/oxlint): 1.16.0 - Fixes https://github.com/termux/termux-packages/issues/26506 - The code that `32-bit-block-align-type.patch` was previously patching was not supposed to be enabled for 32-bit targets, and no longer is - More information: https://github.com/oxc-project/oxc/issues/13694 --- packages/oxlint/32-bit-block-align-type.patch | 41 ------------------- packages/oxlint/build.sh | 4 +- 2 files changed, 2 insertions(+), 43 deletions(-) delete mode 100644 packages/oxlint/32-bit-block-align-type.patch diff --git a/packages/oxlint/32-bit-block-align-type.patch b/packages/oxlint/32-bit-block-align-type.patch deleted file mode 100644 index ecf718586b..0000000000 --- a/packages/oxlint/32-bit-block-align-type.patch +++ /dev/null @@ -1,41 +0,0 @@ -Fixes: -error: literal out of range for `usize` - --> napi/oxlint2/src/generated/raw_transfer_constants.rs:8:32 - | -8 | pub const BLOCK_ALIGN: usize = 4294967296; -when targeting 32-bit - ---- a/tasks/ast_tools/src/generators/raw_transfer.rs -+++ b/tasks/ast_tools/src/generators/raw_transfer.rs -@@ -1066,7 +1066,7 @@ fn generate_constants(consts: Constants) -> (String, TokenStream) { - - ///@@line_break - pub const BLOCK_SIZE: usize = #block_size; -- pub const BLOCK_ALIGN: usize = #block_align; -+ pub const BLOCK_ALIGN: u64 = #block_align; - pub const BUFFER_SIZE: usize = #buffer_size; - pub const RAW_METADATA_SIZE: usize = #raw_metadata_size; - }; ---- a/napi/oxlint2/src/generated/raw_transfer_constants.rs -+++ b/napi/oxlint2/src/generated/raw_transfer_constants.rs -@@ -5,6 +5,6 @@ - #![allow(dead_code)] - - pub const BLOCK_SIZE: usize = 2147483632; --pub const BLOCK_ALIGN: usize = 4294967296; -+pub const BLOCK_ALIGN: u64 = 4294967296; - pub const BUFFER_SIZE: usize = 2147483616; - pub const RAW_METADATA_SIZE: usize = 16; -diff --git a/napi/oxlint2/src/lib.rs b/napi/oxlint2/src/lib.rs -index 4ce833a..83b228b 100644 ---- a/napi/oxlint2/src/lib.rs -+++ b/napi/oxlint2/src/lib.rs -@@ -158,7 +158,7 @@ unsafe fn get_buffer( - // the backing allocation. - let chunk_ptr = unsafe { - let ptr = metadata_ptr.cast::(); -- let offset = ptr.as_ptr() as usize % BLOCK_ALIGN; -+ let offset = (ptr.as_ptr() as u64 % BLOCK_ALIGN) as usize; - ptr.sub(offset) - }; - diff --git a/packages/oxlint/build.sh b/packages/oxlint/build.sh index f410403713..b7f5085e69 100644 --- a/packages/oxlint/build.sh +++ b/packages/oxlint/build.sh @@ -2,9 +2,9 @@ TERMUX_PKG_HOMEPAGE=https://oxc.rs/ TERMUX_PKG_DESCRIPTION="Oxc JavaScript linter" TERMUX_PKG_LICENSE="MIT" TERMUX_PKG_MAINTAINER="@termux" -TERMUX_PKG_VERSION="1.15.0" +TERMUX_PKG_VERSION="1.16.0" TERMUX_PKG_SRCURL="https://github.com/oxc-project/oxc/archive/refs/tags/oxlint_v$TERMUX_PKG_VERSION.tar.gz" -TERMUX_PKG_SHA256=9822b1b1a2f3f70250d9a897d5fd63881d3abc54fdfb515999a349e63325665b +TERMUX_PKG_SHA256=53fda71250a6fd37e7928510f6ec97de894e3dfdb0c959e3320eb9bd445b7654 TERMUX_PKG_AUTO_UPDATE=true TERMUX_PKG_BUILD_IN_SRC=true