aboutsummaryrefslogtreecommitdiffstats
path: root/megasync-bin/megasync-bin.SlackBuild
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-07-06 17:02:41 +0200
committerDanilo M. <danix@danix.xyz>2026-07-06 17:02:41 +0200
commit8e76b3af3eeb93319a3cdee273715484ca8e8b28 (patch)
tree76ed1fe3997d0615dd77708ecaa417450e991573 /megasync-bin/megasync-bin.SlackBuild
parent78bf2ebccc3c2d87e6e425d99e80b33065888da5 (diff)
downloadmy-slackbuilds-8e76b3af3eeb93319a3cdee273715484ca8e8b28.tar.gz
my-slackbuilds-8e76b3af3eeb93319a3cdee273715484ca8e8b28.zip
megasync-bin: make bundled ELF libs executable
sbopkglint 20-arch flags the bundled ffmpeg libs and integration plugins: the upstream .deb ships them mode 0644 (Debian convention) but Slackware wants ELF objects executable. chmod 755 in the strip pass. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Diffstat (limited to 'megasync-bin/megasync-bin.SlackBuild')
-rw-r--r--megasync-bin/megasync-bin.SlackBuild9
1 files changed, 7 insertions, 2 deletions
diff --git a/megasync-bin/megasync-bin.SlackBuild b/megasync-bin/megasync-bin.SlackBuild
index dfb75af..b33da40 100644
--- a/megasync-bin/megasync-bin.SlackBuild
+++ b/megasync-bin/megasync-bin.SlackBuild
@@ -87,9 +87,14 @@ for conf in \
[ -f "$PKG/$conf" ] && mv "$PKG/$conf" "$PKG/$conf.new"
done
-# Strip binaries and bundled libraries (RUNPATH is preserved by strip).
+# Strip ELF binaries and libraries (RUNPATH is preserved by strip) and make
+# them executable: the upstream .deb ships libraries mode 0644 (Debian
+# convention), but Slackware wants ELF objects executable.
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" \
- | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+ | grep ELF | cut -f 1 -d : | while read elf; do
+ strip --strip-unneeded "$elf" 2> /dev/null || true
+ chmod 755 "$elf"
+done
# Docs: drop the Debian packaging cruft, keep upstream copyright.
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION