From 8e76b3af3eeb93319a3cdee273715484ca8e8b28 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Mon, 6 Jul 2026 17:02:41 +0200 Subject: 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 --- megasync-bin/megasync-bin.SlackBuild | 9 +++++++-- 1 file 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 -- cgit v1.2.3