diff options
author | khronosschoty <khronosschoty@utmail.net> | 2017-01-14 19:08:52 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-01-14 19:08:52 +0700 |
commit | 87890603ee65c91bd7358ae6e2d292038f7337e0 (patch) | |
tree | b91a9940c2556a29755c06dcd8a1b96c91b31510 /network/PaleMoon/PaleMoon.SlackBuild | |
parent | c8aa17bc8867abba871a3d0a757bd95d2bbe5b8d (diff) |
network/PaleMoon: Add patch to support newer sed.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/PaleMoon/PaleMoon.SlackBuild')
-rw-r--r-- | network/PaleMoon/PaleMoon.SlackBuild | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/network/PaleMoon/PaleMoon.SlackBuild b/network/PaleMoon/PaleMoon.SlackBuild index 614a156911a0b..d561b8bfc725d 100644 --- a/network/PaleMoon/PaleMoon.SlackBuild +++ b/network/PaleMoon/PaleMoon.SlackBuild @@ -89,11 +89,11 @@ tar xvf $CWD/autoconf-2.13.tar.xz cd autoconf-2.13 zcat $CWD/autoconf-2.13-consolidated_fixes-1.patch.gz | patch -p1 --verbose chown -R root:root . -find . \ - \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ - -exec chmod 755 {} \; -o \ - \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ - -exec chmod 644 {} \; +find -L . \ + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -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 {} \; # Build a temporary copy of autoconf-2.13 only to be used to compile # Pale Moon, since it somewhat inexplicably requires this ancient version: @@ -135,6 +135,11 @@ if [ "$LIBDIRSUFFIX" = "64" ]; then xpcom/io/nsAppFileLocationProvider.cpp fi +# Apply this patch so that PaleMoon will, not only compile with versions of sed earler +# than 4.3, but also, compile with versions of sed 4.3 and later. +# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=850972 +patch -p1 < $CWD/icu.m4-adding-extra-bracket-to-not-confuse-grep.patch + export MOZBUILD_STATE_PATH="$TMP/Pale-Moon-${VERSION}_Release/moz.build" export MOZCONFIG="$TMP/Pale-Moon-${VERSION}_Release/.mozconfig" export MOZILLA_OFFICIAL=1 @@ -200,7 +205,11 @@ rm -rf usr/lib${LIBDIRSUFFIX}/palemoon-devel-$VERSION # however, appear to fail on Slackware. rm -f usr/lib${LIBDIRSUFFIX}/palemoon-$VERSION/palemoon-bin -ln -s /usr/lib${LIBDIRSUFFIX}/palemoon-$VERSION/palemoon usr/bin/palemoon-$VERSION +# Append a version suffix to the binary, if we desire to install this version of +# PaleMoon along side any other version of PaleMoon. +if [ "$APPEND_VERSION_SUFFIX" = "yes" ]; then + mv usr/bin/palemoon usr/bin/palemoon-$VERSION +fi # Use system provided Hunspell, if desired. if [ "${USE_SYSTEM_HUNSPELL}" = "yes" ]; then |