Lukas Fleischer pushed to branch main at Arch Linux / Packaging / Packages / bun
Commits:
b4be6914 by Ben Schneider at 2026-08-24T20:38:58-07:00
baseline=on is only supported on x86_64
Unfortunately, bun will not work around an irrelevant flag so the
baseline=on configuration has to be added only when building for
x86_64.
Also, naming the bootstrap .zip file the same name causes updpkgsums
to set the wrong hash so let's include the architecture in file name.
- - - - -
2 changed files:
- .SRCINFO
- PKGBUILD
Changes:
=====================================
.SRCINFO
=====================================
@@ -28,9 +28,9 @@ pkgbase = bun
b2sums =
6c77d0f09c03a950a72906558f22bdf737a54e2cfe1f7a8d1ab434a48cc3a14aad25d19f4b20c3dea841ea2e105097eac03a1fc23863463cd0bd7813d6eeb1e0
b2sums =
3a6fe03d65694dc47d76936d17e8abdbc67dea90eec28eb762a7e55fec4731a1eed6ec2bda69430362762898cffb8db691f022c1fdec4e9a58fbf241d09a5936
b2sums =
f7b41bee31d26968154501ad62d8fdc157cac9e0f895035ba9a1ddd30caa2beb83b5cf80f6a0e52dcc1acac874fb07ef7974761764929e6e782866f1aacf35c2
- source_x86_64 =
bun-bootstrap-1.4.0.zip::https://github.com/oven-sh/bun/releases/download/bun-v1.4.0/bun-linux-x64.zip
+ source_x86_64 =
bun-bootstrap-x64-1.4.0.zip::https://github.com/oven-sh/bun/releases/download/bun-v1.4.0/bun-linux-x64.zip
b2sums_x86_64 =
e0135c11f2b74040465985a5b5ce15e14867d75b8f6e803ec1aaa3d9381d3b018df109392b04c2b0e75244d6251b63b9caae9a30052ce3cfbeafaf1df1c4d328
- source_aarch64 =
bun-bootstrap-1.4.0.zip::https://github.com/oven-sh/bun/releases/download/bun-v1.4.0/bun-linux-aarch64.zip
- b2sums_aarch64 =
e0135c11f2b74040465985a5b5ce15e14867d75b8f6e803ec1aaa3d9381d3b018df109392b04c2b0e75244d6251b63b9caae9a30052ce3cfbeafaf1df1c4d328
+ source_aarch64 =
bun-bootstrap-aarch64-1.4.0.zip::https://github.com/oven-sh/bun/releases/download/bun-v1.4.0/bun-linux-aarch64.zip
+ b2sums_aarch64 =
26846890a1373e276e540901678168bdd26e56f6ff462ee23c45e583cdba5e06c5a7004bee51938f96ea6d0518a40a94b381c68761abc41c958937ccf1819316
pkgname = bun
=====================================
PKGBUILD
=====================================
@@ -39,16 +39,16 @@ source=(
"$pkgname-webkit-typed-array-int32-conversion.patch"
)
source_x86_64=(
-
"$pkgname-bootstrap-$pkgver.zip::https://github.com/oven-sh/bun/releases/download/bun-v$pkgver/bun-linux-x64.zip"
+
"$pkgname-bootstrap-x64-$pkgver.zip::https://github.com/oven-sh/bun/releases/download/bun-v$pkgver/bun-linux-x64.zip"
)
source_aarch64=(
-
"$pkgname-bootstrap-$pkgver.zip::https://github.com/oven-sh/bun/releases/download/bun-v$pkgver/bun-linux-aarch64.zip"
+
"$pkgname-bootstrap-aarch64-$pkgver.zip::https://github.com/oven-sh/bun/releases/download/bun-v$pkgver/bun-linux-aarch64.zip"
)
b2sums=('6c77d0f09c03a950a72906558f22bdf737a54e2cfe1f7a8d1ab434a48cc3a14aad25d19f4b20c3dea841ea2e105097eac03a1fc23863463cd0bd7813d6eeb1e0'
'3a6fe03d65694dc47d76936d17e8abdbc67dea90eec28eb762a7e55fec4731a1eed6ec2bda69430362762898cffb8db691f022c1fdec4e9a58fbf241d09a5936'
'f7b41bee31d26968154501ad62d8fdc157cac9e0f895035ba9a1ddd30caa2beb83b5cf80f6a0e52dcc1acac874fb07ef7974761764929e6e782866f1aacf35c2')
b2sums_x86_64=('e0135c11f2b74040465985a5b5ce15e14867d75b8f6e803ec1aaa3d9381d3b018df109392b04c2b0e75244d6251b63b9caae9a30052ce3cfbeafaf1df1c4d328')
-b2sums_aarch64=('e0135c11f2b74040465985a5b5ce15e14867d75b8f6e803ec1aaa3d9381d3b018df109392b04c2b0e75244d6251b63b9caae9a30052ce3cfbeafaf1df1c4d328')
+b2sums_aarch64=('26846890a1373e276e540901678168bdd26e56f6ff462ee23c45e583cdba5e06c5a7004bee51938f96ea6d0518a40a94b381c68761abc41c958937ccf1819316')
prepare() {
# Fix UB in JSC typed array int32 conversion that causes wrong values
@@ -80,12 +80,18 @@ build() {
esac
export PATH="$srcdir/$_bundir:$PATH"
- bun scripts/build.ts \
- --profile=release-local \
- --canary=0 \
- --baseline=on \
- --build-dir=build/release \
+ local bun_options=(
+ --profile=release-local
+ --canary=0
+ --build-dir=build/release
--cache-dir="$srcdir/build-cache"
+ )
+
+ if [[ ${CARCH} == x86_64* ]]; then
+ bun_options+=(--baseline=on)
+ fi
+
+ bun scripts/build.ts "${bun_options[@]}"
}
check() {
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/bun/-/commit/b4be6914cc4ea7942a4dd33702a068672bc75f5a
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/bun/-/commit/b4be6914cc4ea7942a4dd33702a068672bc75f5a
You're receiving this email because of your account on gitlab.archlinux.org.
Manage all notifications: https://gitlab.archlinux.org/-/profile/notifications
| Help: https://gitlab.archlinux.org/help