diff options
| author | Danilo M. <danix@danix.xyz> | 2026-07-10 12:32:45 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-07-10 12:32:45 +0200 |
| commit | 2b98ab86854c3e65ea4003607e770d0e46a4ffa0 (patch) | |
| tree | d340dad8e6a6d385aed1c44e4fb0609f1bb15f00 /claude-desktop-bin | |
| parent | fe409a4d8add128c7f22c3728aa5e7403be269c9 (diff) | |
| download | my-slackbuilds-2b98ab86854c3e65ea4003607e770d0e46a4ffa0.tar.gz my-slackbuilds-2b98ab86854c3e65ea4003607e770d0e46a4ffa0.zip | |
claude-desktop-bin: create OVMF symlinks after find -L pass
The dangling OVMF compat symlinks (targets live in the edk2-ovmf
package, not this one) tripped the "find -L" perm-normalize block, whose
symlink deref hit them with chmod and aborted the build under set -e.
Move symlink creation after that block, just before makepkg.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Diffstat (limited to 'claude-desktop-bin')
| -rw-r--r-- | claude-desktop-bin/claude-desktop-bin.SlackBuild | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/claude-desktop-bin/claude-desktop-bin.SlackBuild b/claude-desktop-bin/claude-desktop-bin.SlackBuild index 88066a7..dca15cd 100644 --- a/claude-desktop-bin/claude-desktop-bin.SlackBuild +++ b/claude-desktop-bin/claude-desktop-bin.SlackBuild @@ -68,16 +68,6 @@ mkdir -p $TMP $PKG $OUTPUT # Drop Debian-only cruft. rm -rf $PKG/usr/share/lintian -# Cowork (the sandboxed-agent feature) launches a QEMU VM and probes for OVMF -# UEFI firmware at the Debian paths /usr/share/OVMF/OVMF_CODE{,_4M}.fd. On -# Slackware the edk2-ovmf package (a REQUIRES) installs those under -# /usr/share/edk2-ovmf-x64/. Bridge the two with relative symlinks; makepkg -# folds these into doinst.sh so no dead links ship in the tree. -mkdir -p $PKG/usr/share/OVMF -ln -s ../edk2-ovmf-x64/OVMF_CODE.fd $PKG/usr/share/OVMF/OVMF_CODE.fd -ln -s ../edk2-ovmf-x64/OVMF_CODE.fd $PKG/usr/share/OVMF/OVMF_CODE_4M.fd -ln -s ../edk2-ovmf-x64/OVMF_VARS.fd $PKG/usr/share/OVMF/OVMF_VARS.fd - # Make every bundled ELF executable. The deb ships most chromium libs 0755, # but some prebuilt native modules are 0644 (e.g. node-pty's pty.node, buried # under resources/app.asar.unpacked/), which trips sbopkglint's 20-arch test. @@ -113,5 +103,18 @@ find -L $PKG \ # LAST, after the find -L perm-normalize above would otherwise strip it. chmod 4755 $PKG/usr/lib/$SRCNAM/chrome-sandbox +# Cowork (the sandboxed-agent feature) launches a QEMU VM and probes for OVMF +# UEFI firmware at the Debian paths /usr/share/OVMF/OVMF_CODE{,_4M}.fd. On +# Slackware the edk2-ovmf package (a REQUIRES) installs those under +# /usr/share/edk2-ovmf-x64/. Bridge the two with relative symlinks; makepkg +# folds these into doinst.sh so no dead links ship in the tree. Create these +# LAST: the symlinks are dangling inside $PKG (their targets live in the +# edk2-ovmf package), so the "find -L" perm-normalize above would choke on +# them. +mkdir -p $PKG/usr/share/OVMF +ln -s ../edk2-ovmf-x64/OVMF_CODE.fd $PKG/usr/share/OVMF/OVMF_CODE.fd +ln -s ../edk2-ovmf-x64/OVMF_CODE.fd $PKG/usr/share/OVMF/OVMF_CODE_4M.fd +ln -s ../edk2-ovmf-x64/OVMF_VARS.fd $PKG/usr/share/OVMF/OVMF_VARS.fd + cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |
