Skip to content

Commit 64bbbde

Browse files
committed
fix: extract buildroot for FB4+ on linux-arm64
The skip-buildroot condition was written for FB3 arm64 (which ships binaries directly in the outer tar). FB4 arm64 uses the same buildroot structure as x64 / FB5+ arm64, so skipping buildroot left bin/ empty (gstat: No such file or directory). Narrow the exception to only FB3 arm64 (Major < 4).
1 parent b4cec5c commit 64bbbde

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Public/New-FirebirdEnvironment.ps1

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,9 @@ function New-FirebirdEnvironment {
160160
& tar --extract --file=$fullArchiveFile --gunzip --directory=$Path --strip-components=1
161161
} -ErrorMessage "Failed to extract '$fullArchiveFile' archive. Cannot continue."
162162

163-
if (-not ($rid.Contains('linux-arm64') -and ($Version.Major -lt 5))) {
164-
# For Firebird 5.x+ and non-ARM64, extract the nested buildroot archive.
163+
if (-not ($rid.Contains('linux-arm64') -and ($Version.Major -lt 4))) {
164+
# FB3 arm64 archives ship binaries directly (no nested buildroot).
165+
# FB4+ arm64 and all x64 builds use a nested buildroot.tar.gz.
165166
Write-VerboseMark -Message 'Extracting buildroot archive...'
166167
Invoke-ExternalCommand {
167168
& tar --extract --file="$Path/buildroot.tar.gz" --gunzip --directory=$Path --strip-components=3 ./opt

0 commit comments

Comments
 (0)