mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2026-01-28 05:32:35 +00:00
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
This commit is contained in:
@@ -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::<u8>();
|
||||
- let offset = ptr.as_ptr() as usize % BLOCK_ALIGN;
|
||||
+ let offset = (ptr.as_ptr() as u64 % BLOCK_ALIGN) as usize;
|
||||
ptr.sub(offset)
|
||||
};
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user