Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package bun-pty for openSUSE:Factory checked 
in at 2026-11-24 17:03:40
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/bun-pty (Old)
 and      /work/SRC/openSUSE:Factory/.bun-pty.new.1340718 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "bun-pty"

Tue Nov 24 17:03:40 2026 rev:8 rq:1400297 version:0.6.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/bun-pty/bun-pty.changes  2026-11-17 
17:20:27.945782941 +0100
+++ /work/SRC/openSUSE:Factory/.bun-pty.new.1340718/bun-pty.changes     
2026-11-24 17:04:15.487128560 +0100
@@ -1,0 +2,12 @@
+Tue Nov 24 13:16:00 UTC 2026 - Martin Pluskal <[email protected]>
+
+- Update to version 0.6.2:
+  * Added FreeBSD x64 support (#55): the npm package ships
+    a prebuilt librust_pty_freebsd.so, built on FreeBSD 15.0;
+    bun build --compile --target=bun-freebsd-x64 embeds it
+  * FreeBSD ARM64 has no prebuilt library yet; build from
+    source with bun run build, or point BUN_PTY_LIB at it
+  * No Rust changes: same vendored crates and same eight
+    dlsym entry points, so no consumer rebuild is needed
+
+-------------------------------------------------------------------

Old:
----
  bun-pty-0.6.1.tar.gz

New:
----
  bun-pty-0.6.2.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ bun-pty.spec ++++++
--- /var/tmp/diff_new_pack.vSa4d6/_old  2026-11-24 17:04:16.419168046 +0100
+++ /var/tmp/diff_new_pack.vSa4d6/_new  2026-11-24 17:04:16.421168131 +0100
@@ -17,7 +17,7 @@
 
 
 Name:           bun-pty
-Version:        0.6.1
+Version:        0.6.2
 Release:        0
 Summary:        Pseudo-terminal library for Bun FFI consumers
 License:        MIT

++++++ _service ++++++
--- /var/tmp/diff_new_pack.vSa4d6/_old  2026-11-24 17:04:16.452169444 +0100
+++ /var/tmp/diff_new_pack.vSa4d6/_new  2026-11-24 17:04:16.456169614 +0100
@@ -1,6 +1,6 @@
 <services>
   <service name="cargo_vendor" mode="manual">
-    <param name="srctar">bun-pty-0.6.1.tar.gz</param>
+    <param name="srctar">bun-pty-0.6.2.tar.gz</param>
     <param name="cargotoml">rust-pty/Cargo.toml</param>
     <param name="compression">zst</param>
   </service>

++++++ bun-pty-0.6.1.tar.gz -> bun-pty-0.6.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/bun-pty-0.6.1/.github/workflows/publish.yml 
new/bun-pty-0.6.2/.github/workflows/publish.yml
--- old/bun-pty-0.6.1/.github/workflows/publish.yml     2026-11-16 
10:23:42.000000000 +0100
+++ new/bun-pty-0.6.2/.github/workflows/publish.yml     2026-11-24 
08:28:10.000000000 +0100
@@ -4,9 +4,9 @@
   release: { types: [created, edited] }
   workflow_dispatch:
 
-permissions:
-  contents: write
-  id-token: write
+# Each job asks for only what it needs: the build jobs run third-party actions
+# and must not be able to mint the npm publishing token.
+permissions: {}
 
 env:
   RELEASE_DIR: rust-pty/target/release
@@ -14,6 +14,11 @@
 jobs:
   build-libs:
     runs-on: ${{ matrix.runner }}
+    permissions:
+      contents: write # upload the libraries to the GitHub Release
+    # The FreeBSD leg builds inside a third-party VM and has no hosted runner.
+    # A VM/pkg failure must not block npm releases for every other platform.
+    continue-on-error: ${{ matrix.freebsd == true }}
     strategy:
       fail-fast: false
       matrix:
@@ -51,6 +56,11 @@
             target: aarch64-pc-windows-msvc
             out:    rust_pty_arm64.dll
             rustflags: -C target-feature=+crt-static
+          # FreeBSD has no GitHub-hosted runner, so build it in a FreeBSD VM.
+          - runner: ubuntu-22.04
+            target: x86_64-unknown-freebsd
+            freebsd: true
+            out:    librust_pty_freebsd.so
 
     steps:
       - uses: actions/checkout@v7
@@ -58,11 +68,13 @@
           persist-credentials: false
 
       - name: Install Rust
+        if: "!matrix.freebsd"
         uses: dtolnay/rust-toolchain@stable
         with:
           targets: ${{ matrix.target }}
 
       - uses: Swatinem/rust-cache@v2
+        if: "!matrix.freebsd"
 
       - name: Install zigbuild
         if: matrix.zigbuild_target
@@ -79,14 +91,34 @@
           cargo zigbuild --release --target ${{ matrix.zigbuild_target }}
 
       - name: Build rust-pty
-        if: "!matrix.zigbuild_target"
+        if: "!matrix.zigbuild_target && !matrix.freebsd"
         env:
           RUSTFLAGS: ${{ matrix.rustflags }}
         run: |
           cd rust-pty
           cargo build --release --target ${{ matrix.target }}
 
+      - name: Build rust-pty (FreeBSD)
+        if: matrix.freebsd
+        uses: vmactions/freebsd-vm@811efaaac0668df8bfb8308c3ec997b5ab50037b # 
v1
+        with:
+          release: "15.0"
+          usesh: true
+          # pkg's rust needs FBSD_1.9 libc, which the 15.0 image lacks.
+          # Install the official toolchain via rustup instead.
+          prepare: |
+            fetch -o /tmp/rustup-init 
https://static.rust-lang.org/rustup/dist/x86_64-unknown-freebsd/rustup-init
+            chmod +x /tmp/rustup-init
+            /tmp/rustup-init -y --default-toolchain stable --profile minimal
+          run: |
+            . "$HOME/.cargo/env"
+            cd rust-pty
+            cargo build --release
+            mkdir -p ../out
+            cp target/release/librust_pty.so "../out/${{ matrix.out }}"
+
       - name: Collect artefact
+        if: "!matrix.freebsd"
         shell: bash
         run: |
           mkdir -p out
@@ -110,6 +142,9 @@
   publish:
     needs: build-libs
     runs-on: ubuntu-latest
+    permissions:
+      contents: read
+      id-token: write # npm trusted publishing (OIDC)
 
     steps:
       - uses: actions/checkout@v7
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/bun-pty-0.6.1/CHANGELOG.md 
new/bun-pty-0.6.2/CHANGELOG.md
--- old/bun-pty-0.6.1/CHANGELOG.md      2026-11-16 10:23:42.000000000 +0100
+++ new/bun-pty-0.6.2/CHANGELOG.md      2026-11-24 08:28:10.000000000 +0100
@@ -5,6 +5,17 @@
 The format is based on [Keep a 
Changelog](https://keepachangelog.com/en/1.0.0/),
 and this project adheres to [Semantic 
Versioning](https://semver.org/spec/v2.0.0.html).
 
+## [0.6.2] - 2026-11-24
+
+### Added
+- FreeBSD x64 support: the npm package now ships a prebuilt 
`librust_pty_freebsd.so` (#55)
+  - `bun build --compile --target=bun-freebsd-x64` embeds it
+  - FreeBSD ARM64 has no prebuilt library yet; build from source with `bun run 
build`, or point `BUN_PTY_LIB` at your build
+  - The library is built on FreeBSD 15.0
+
+### Changed
+- The release workflow gives each job only the permissions it needs, and the 
FreeBSD VM action is pinned to a commit
+
 ## [0.6.1] - 2026-11-16
 
 ### Changed
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/bun-pty-0.6.1/README.md new/bun-pty-0.6.2/README.md
--- old/bun-pty-0.6.1/README.md 2026-11-16 10:23:42.000000000 +0100
+++ new/bun-pty-0.6.2/README.md 2026-11-24 08:28:10.000000000 +0100
@@ -8,7 +8,7 @@
 
 ## 🚀 Features
 
-- **Cross-platform** - Works on macOS, Linux, and Windows
+- **Cross-platform** - Works on macOS, Linux, FreeBSD, and Windows
 - **Simple API** - Clean Promise-based API similar to node-pty
 - **Type-safe** - Complete TypeScript definitions included
 - **Efficient** - Rust backend with proper error handling and multithreading
@@ -33,6 +33,7 @@
 | macOS    | ✅     | Fully supported |
 | Linux    | ✅     | Fully supported |
 | Windows  | ✅     | Fully supported |
+| FreeBSD  | ✅     | x64 prebuilt; ARM64 requires a local build |
 
 ## 🆚 bun-pty or `Bun.Terminal`?
 
@@ -42,7 +43,7 @@
 
 - **The core of the node-pty API** - `spawn()`, `write()`, `onData`, `onExit`, 
`resize()` and `kill()`, with node-pty's option and event shapes, so code that 
sticks to these ports with little or no change. Not supported: the `uid`, 
`gid`, `encoding`, `handleFlowControl` and `useConpty` options, and `pause()`, 
`resume()` and `clear()`
 - **node-pty's environment rules** - `env` is the child's whole environment, 
`TERM` comes from `name`, and `PWD` follows `cwd`
-- **The same backend on every platform** - one Rust 
([portable-pty](https://crates.io/crates/portable-pty)) implementation on 
macOS, Linux (glibc and musl) and Windows (x64 and ARM64)
+- **The same backend on every platform** - one Rust 
([portable-pty](https://crates.io/crates/portable-pty)) implementation on 
macOS, Linux (glibc and musl), FreeBSD (x64) and Windows (x64 and ARM64)
 
 ## 🚦 Usage
 
@@ -242,7 +243,7 @@
 
 ### Prebuilt Binaries
 
-The npm package includes prebuilt binaries for macOS, Linux, and Windows. If 
you encounter issues with the prebuilt binaries, you can build from source:
+The npm package includes prebuilt binaries for macOS, Linux, FreeBSD (x64), 
and Windows. If you encounter issues with the prebuilt binaries, you can build 
from source:
 
 ```bash
 # In your project directory
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/bun-pty-0.6.1/package.json 
new/bun-pty-0.6.2/package.json
--- old/bun-pty-0.6.1/package.json      2026-11-16 10:23:42.000000000 +0100
+++ new/bun-pty-0.6.2/package.json      2026-11-24 08:28:10.000000000 +0100
@@ -1,6 +1,6 @@
 {
        "name": "bun-pty",
-       "version": "0.6.1",
+       "version": "0.6.2",
        "description": "Cross-platform pseudoterminal (PTY) implementation for 
Bun with native performance",
        "main": "./src/index.ts",
        "types": "./dist/index.d.ts",
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/bun-pty-0.6.1/src/library.ts 
new/bun-pty-0.6.2/src/library.ts
--- old/bun-pty-0.6.1/src/library.ts    2026-11-16 10:23:42.000000000 +0100
+++ new/bun-pty-0.6.2/src/library.ts    2026-11-24 08:28:10.000000000 +0100
@@ -9,6 +9,11 @@
                        ? ["rust_pty_arm64.dll", "rust_pty.dll"]
                        : ["rust_pty.dll"];
        }
+       if (platform === "freebsd") {
+               return arch === "arm64"
+                       ? ["librust_pty_arm64_freebsd.so", 
"librust_pty_freebsd.so", "librust_pty.so"]
+                       : ["librust_pty_freebsd.so", "librust_pty.so"];
+       }
        if (musl) {
                return arch === "arm64"
                        ? ["librust_pty_arm64_musl.so", "librust_pty_musl.so", 
"librust_pty_arm64.so", "librust_pty.so"]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/bun-pty-0.6.1/src/terminal.test.ts 
new/bun-pty-0.6.2/src/terminal.test.ts
--- old/bun-pty-0.6.1/src/terminal.test.ts      2026-11-16 10:23:42.000000000 
+0100
+++ new/bun-pty-0.6.2/src/terminal.test.ts      2026-11-24 08:28:10.000000000 
+0100
@@ -18,6 +18,21 @@
        test("keeps the generic DLL name on Windows x64", () => {
                expect(libraryFilenames("win32", "x64", 
false)).toEqual(["rust_pty.dll"]);
        });
+
+       test("prefers the FreeBSD lib on FreeBSD x64", () => {
+               expect(libraryFilenames("freebsd", "x64", false)).toEqual([
+                       "librust_pty_freebsd.so",
+                       "librust_pty.so",
+               ]);
+       });
+
+       test("prefers the ARM64 FreeBSD lib on FreeBSD ARM64", () => {
+               expect(libraryFilenames("freebsd", "arm64", false)).toEqual([
+                       "librust_pty_arm64_freebsd.so",
+                       "librust_pty_freebsd.so",
+                       "librust_pty.so",
+               ]);
+       });
 });
 
 describe("Bun version check", () => {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/bun-pty-0.6.1/src/terminal.ts 
new/bun-pty-0.6.2/src/terminal.ts
--- old/bun-pty-0.6.1/src/terminal.ts   2026-11-16 10:23:42.000000000 +0100
+++ new/bun-pty-0.6.2/src/terminal.ts   2026-11-24 08:28:10.000000000 +0100
@@ -53,7 +53,7 @@
        // See: https://github.com/sursatech/bun-pty/issues/19
        try {
                // @ts-ignore - require returns path for binary files in Bun
-               const embeddedPath = 
require(`../rust-pty/target/release/${process.platform === "win32" ? 
(process.arch === "arm64" ? "rust_pty_arm64.dll" : "rust_pty.dll") : 
process.platform === "darwin" ? (process.arch === "arm64" ? 
"librust_pty_arm64.dylib" : "librust_pty.dylib") : process.arch === "arm64" ? 
"librust_pty_arm64.so" : "librust_pty.so"}`);
+               const embeddedPath = 
require(`../rust-pty/target/release/${process.platform === "win32" ? 
(process.arch === "arm64" ? "rust_pty_arm64.dll" : "rust_pty.dll") : 
process.platform === "darwin" ? (process.arch === "arm64" ? 
"librust_pty_arm64.dylib" : "librust_pty.dylib") : process.platform === 
"freebsd" ? (process.arch === "arm64" ? "librust_pty_arm64_freebsd.so" : 
"librust_pty_freebsd.so") : process.arch === "arm64" ? "librust_pty_arm64.so" : 
"librust_pty.so"}`);
                if (embeddedPath && !musl) return embeddedPath;
        } catch {
                // Not running as compiled binary, fall through to dynamic 
resolution

Reply via email to