summaryrefslogtreecommitdiff
path: root/system/csh/csh.SlackBuild
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2017-06-21 00:10:42 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-06-24 08:32:48 +0700
commit064014d18ee7dbb63a822f2758df32d08f21fd0a (patch)
treeb400e3da128c1626c0c50d5855659c04b8c2c04b /system/csh/csh.SlackBuild
parentba72e39924b18e60748837b08a99ce0c1ba1a57a (diff)
downloadslackbuilds-064014d18ee7dbb63a822f2758df32d08f21fd0a.tar.gz
system/csh: Fix build for -current.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'system/csh/csh.SlackBuild')
-rw-r--r--system/csh/csh.SlackBuild15
1 files changed, 11 insertions, 4 deletions
diff --git a/system/csh/csh.SlackBuild b/system/csh/csh.SlackBuild
index 31835c2beb..2adb56deea 100644
--- a/system/csh/csh.SlackBuild
+++ b/system/csh/csh.SlackBuild
@@ -6,9 +6,14 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20170621 bkw:
+# - update to latest debian patch (-2.2, needed for -current).
+# - quit compiling with -Werror (also needed for -current).
+# - BUILD=2.
+
PRGNAM=csh
VERSION=${VERSION:-20110502}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -40,6 +45,8 @@ fi
set -e
+DEBVER=2.2
+
# Grr.
TARNAM="${PRGNAM}_${VERSION}.orig"
DIRNAM="${PRGNAM}-${VERSION}.orig"
@@ -50,7 +57,7 @@ cd $TMP
rm -rf $DIRNAM
tar xvf $CWD/$TARNAM.tar.gz
cd $DIRNAM
-tar xvf $CWD/${PRGNAM}_${VERSION}-2.debian.tar.gz
+tar xvf $CWD/${PRGNAM}_${VERSION}-$DEBVER.debian.tar.[xg]z
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -75,8 +82,8 @@ sed -i "1iCFLAGS=$SLKCFLAGS" Makefile
# /usr/lib/libc.a hard-coded, and pmake wants to build that (and can't),
# even though the csh binary is dynamic and doesn't even need libc.a!
# Also don't know why I have to make const.h separately, but it works.
-pmake const.h
-pmake LIBC=/usr/lib$LIBDIRSUFFIX/libc.a
+pmake const.h NOGCCERROR=1
+pmake LIBC=/usr/lib$LIBDIRSUFFIX/libc.a NOGCCERROR=1
cd USD.doc
pmake paper.ps paper.txt
cd -