aboutsummaryrefslogtreecommitdiffstats
path: root/claude-desktop-bin/claude-desktop-bin.SlackBuild
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-07-09 11:51:08 +0200
committerDanilo M. <danix@danix.xyz>2026-07-09 11:51:08 +0200
commit5aa14771f794c896843dec2108735b4e38345d67 (patch)
treebe6e0f2685d3c665d0a604c9f1a4268a04234c7c /claude-desktop-bin/claude-desktop-bin.SlackBuild
parent9fe7acec8fdeca19d493e0add544298d5f031e12 (diff)
downloadmy-slackbuilds-5aa14771f794c896843dec2108735b4e38345d67.tar.gz
my-slackbuilds-5aa14771f794c896843dec2108735b4e38345d67.zip
claude-desktop-bin: chmod all bundled ELFs, not just top-level libs
The deb buries a 0644 native module (node-pty pty.node) under resources/app.asar.unpacked/ with a .node suffix; the previous *.so* maxdepth-1 chmod missed it and sbopkglint 20-arch failed. Sweep every ELF in $PKG by content instead. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Diffstat (limited to 'claude-desktop-bin/claude-desktop-bin.SlackBuild')
-rw-r--r--claude-desktop-bin/claude-desktop-bin.SlackBuild15
1 files changed, 9 insertions, 6 deletions
diff --git a/claude-desktop-bin/claude-desktop-bin.SlackBuild b/claude-desktop-bin/claude-desktop-bin.SlackBuild
index f5d8880..d25bdd0 100644
--- a/claude-desktop-bin/claude-desktop-bin.SlackBuild
+++ b/claude-desktop-bin/claude-desktop-bin.SlackBuild
@@ -68,12 +68,15 @@ mkdir -p $TMP $PKG $OUTPUT
# Drop Debian-only cruft.
rm -rf $PKG/usr/share/lintian
-# Defensive: the deb ships its bundled chromium libs mode 0755 already, but
-# guard against a future deb regressing to 0644 (the "ELF libs 0644" Debian
-# convention that trips sbopkglint's 20-arch test). Do NOT strip: these are
-# prebuilt Electron/Chromium binaries and upstream ships them unstripped.
-find $PKG/usr/lib/$SRCNAM -maxdepth 1 -name '*.so*' -type f -print0 \
- | xargs -0 -r chmod 755
+# 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.
+# Match by content, not name/depth, since these use .node/.so/no suffix. Do
+# NOT strip: these are prebuilt Electron/Chromium binaries shipped unstripped.
+find $PKG -type f -print0 | xargs -0 file | grep -e "executable" -e "shared object" \
+ | grep ELF | cut -f 1 -d : | while read elf; do
+ chmod 755 "$elf"
+done
# Docs: keep the upstream copyright, add the SlackBuild and nvchecker stanza.
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION