summaryrefslogtreecommitdiffstats
path: root/haskell/ghc/ghc.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'haskell/ghc/ghc.SlackBuild')
-rw-r--r--haskell/ghc/ghc.SlackBuild17
1 files changed, 6 insertions, 11 deletions
diff --git a/haskell/ghc/ghc.SlackBuild b/haskell/ghc/ghc.SlackBuild
index 2d5985a6e8..f1a3f2ddac 100644
--- a/haskell/ghc/ghc.SlackBuild
+++ b/haskell/ghc/ghc.SlackBuild
@@ -24,8 +24,8 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=ghc
-VERSION=${VERSION:-8.4.3}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-8.10.3}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -69,7 +69,7 @@ if [ "${BOOTSTRAP:-yes}" = "yes" ] ; then
cd $TMP
rm -rf $PRGNAM-$VERSION
- tar xvf $CWD/$PRGNAM-$VERSION-$TARARCH-deb8-linux.tar.xz
+ tar xvf $CWD/$PRGNAM-$VERSION-$TARARCH-deb9-linux.tar.xz
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
@@ -115,11 +115,7 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-# Fix build with Sphinx
-# https://phabricator.haskell.org/D5161
-# https://github.com/ghc/ghc/commit/4eebc8016f68719e1ccdf460754a97d1f4d6ef05.patch
-patch -p1 < $CWD/4eebc8016f68719e1ccdf460754a97d1f4d6ef05.patch
-
+GHC=$BOOTSTRAPGHC \
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
@@ -128,8 +124,7 @@ CXXFLAGS="$SLKCFLAGS" \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/man \
- --docdir=/usr/doc/$PRGNAM-$VERSION \
- --with-ghc=$BOOTSTRAPGHC
+ --docdir=/usr/doc/$PRGNAM-$VERSION
make
make install DESTDIR=$PKG
@@ -138,7 +133,7 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
# If docs were not built and installed, let's install the prebuilt manpage
-# (taken from ghc-8.4.3-x86_64-deb8-linux.tar.xz)
+# (taken from the prebuilt tarball)
if [ ! -d $PKG/usr/man ]; then
install -D -m0644 $CWD/ghc.1 $PKG/usr/man/man1
fi