aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2023-06-30 20:10:55 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2023-07-08 16:42:02 +0700
commit14166e988b0c420da61f0620a4c2adcfd64c9210 (patch)
treec03b017ac0b8ef7af36e9be345aba21946acd747
parent1dadcc001ce3c41cfb01eef41b43d92fa1cafd2f (diff)
libraries/libtar: Fix shared lib permission.
Signed-off-by: B. Watson <urchlay@slackware.uk> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--libraries/libtar/libtar.SlackBuild10
1 files changed, 7 insertions, 3 deletions
diff --git a/libraries/libtar/libtar.SlackBuild b/libraries/libtar/libtar.SlackBuild
index 818e7a46b3a86..14f40134f7611 100644
--- a/libraries/libtar/libtar.SlackBuild
+++ b/libraries/libtar/libtar.SlackBuild
@@ -28,13 +28,15 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. FURTHERMORE I AM NOT LIABLE IF
# YOUR DATA IS DESTROYED, YOUR HOUSE BURNS DOWN OR YOUR DOG RUNS OFF.
+# 20230630 bkw: Modified by SlackBuilds.org, BUILD=3:
+# - install shared lib with +x permission.
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=libtar
VERSION=${VERSION:-1.2.20}
SRCVERSION=${SRCVERSION:-0907a90}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -83,9 +85,9 @@ cd $PRGNAM-$SRCVERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
- -o -perm 511 \) -exec chmod 755 {} \; -o \
+ -o -perm 511 \) -exec chmod 755 {} + -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} +
autoreconf -vif
CFLAGS="$SLKCFLAGS" \
@@ -102,6 +104,8 @@ CXXFLAGS="$SLKCFLAGS" \
make
make install DESTDIR=$PKG
+chmod +x $PKG/usr/lib*/lib*.so.*
+
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