From 5aa14771f794c896843dec2108735b4e38345d67 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Thu, 9 Jul 2026 11:51:08 +0200 Subject: 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 --- claude-desktop-bin/claude-desktop-bin.SlackBuild | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'claude-desktop-bin/claude-desktop-bin.SlackBuild') 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 -- cgit v1.2.3