From 9a9adf144246b20f099bf1f9cb77f85aaee0a58c Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Thu, 30 Mar 2023 14:26:27 +0200 Subject: blacklisted haskell --- build-support/disabled/ghc90-bin/PKGBUILD | 65 ++++++++++++++++++++++++++++ build-support/disabled/ghc90-bin/ghc.install | 10 +++++ build-support/ghc90-bin/PKGBUILD | 65 ---------------------------- build-support/ghc90-bin/ghc.install | 10 ----- 4 files changed, 75 insertions(+), 75 deletions(-) create mode 100644 build-support/disabled/ghc90-bin/PKGBUILD create mode 100644 build-support/disabled/ghc90-bin/ghc.install delete mode 100644 build-support/ghc90-bin/PKGBUILD delete mode 100644 build-support/ghc90-bin/ghc.install (limited to 'build-support') diff --git a/build-support/disabled/ghc90-bin/PKGBUILD b/build-support/disabled/ghc90-bin/PKGBUILD new file mode 100644 index 00000000..beb4c2bf --- /dev/null +++ b/build-support/disabled/ghc90-bin/PKGBUILD @@ -0,0 +1,65 @@ +# Maintainer: Rudy Matela +# +# Contributor: Rudy Matela +# +# This package can coexist with the latest version of GHC. +# If you would like to compile GHC yourself (AUR: ghc9.0), +# you can use this to bootstrap compilation. +pkgname=ghc90-bin +pkgver=9.0.1 +pkgrel=1 +pkgdesc='Legacy binary GHC 9.0 installed on /usr/bin/ghc-9.0 (Feb/2021 - Feb/2021).' +arch=('i486' 'i686' 'pentium4') +url='http://www.haskell.org/ghc/' +license=('custom') +depends=('gcc' 'gmp' 'libffi' 'perl' 'ncurses5-compat-libs') +makedepends=( 'perl' 'libxslt' 'docbook-xsl') +checkdepends=('python2') +install='ghc.install' +options=('staticlibs') +provides=('ghc9.0') +conflicts=('ghc9.0') +source=("https://www.haskell.org/ghc/dist/${pkgver}/ghc-${pkgver}-i386-deb9-linux.tar.xz") +noextract=("ghc-${pkgver}-${CARCH}-deb10-linux.tar.xz") +sha256sums=('880e37cea8328401bcfecfe4bb56eb85195f30135b140140b3f24094264f8ba5') + +prepare() { + # for some reason, bsdtar cannot unpack this file: + tar -xf "ghc-${pkgver}-i386-deb9-linux.tar.xz" + # see https://wiki.archlinux.org/index.php/PKGBUILD#noextract +} + +build() { + cd ghc-${pkgver} + + sed -i 's,"$bindir/ghc","$bindir/ghc-9.0",' utils/runghc/runghc.wrapper + + ./configure \ + --prefix=/usr \ + --docdir=/usr/share/doc/ghc-9.0 +} + +package() { + cd ghc-${pkgver} + + make DESTDIR=${pkgdir} install + + mv ${pkgdir}/usr/bin/ghc ${pkgdir}/usr/bin/ghc-9.0 + mv ${pkgdir}/usr/bin/ghci ${pkgdir}/usr/bin/ghci-9.0 + mv ${pkgdir}/usr/bin/ghc-pkg ${pkgdir}/usr/bin/ghc-pkg-9.0 + mv ${pkgdir}/usr/bin/haddock ${pkgdir}/usr/bin/haddock-ghc-9.0 + mv ${pkgdir}/usr/bin/hp2ps ${pkgdir}/usr/bin/hp2ps-ghc-9.0 + mv ${pkgdir}/usr/bin/hpc ${pkgdir}/usr/bin/hpc-ghc-9.0 + mv ${pkgdir}/usr/bin/hsc2hs ${pkgdir}/usr/bin/hsc2hs-ghc-9.0 + mv ${pkgdir}/usr/bin/runghc ${pkgdir}/usr/bin/runghc-9.0 + rm ${pkgdir}/usr/bin/runhaskell # use runghc-9.0 instead + + mv ${pkgdir}/usr/share/man/man1/ghc.1 ${pkgdir}/usr/share/man/man1/ghc-9.0 + + install -d ${pkgdir}/usr/share/licenses/ghc-9.0 + install -m644 LICENSE ${pkgdir}/usr/share/licenses/ghc-9.0 + + # for some reason I end up with the wrong LLVM target on IA-32, + # patch it + sed -i 's/,("LLVM target", ".*")/,("LLVM target", "i686-unknown-linux")/' ${pkgdir}/usr/lib/ghc-9.0.1/settings +} diff --git a/build-support/disabled/ghc90-bin/ghc.install b/build-support/disabled/ghc90-bin/ghc.install new file mode 100644 index 00000000..68eed631 --- /dev/null +++ b/build-support/disabled/ghc90-bin/ghc.install @@ -0,0 +1,10 @@ +pre_upgrade() { + echo '==> Unregistering cabalized packages...' + [[ -d /usr/share/haskell-ghc-9.0 ]] && find /usr/share/haskell-ghc-9.0 -maxdepth 2 -name 'unregister.sh' -exec {} \; + echo '==> Done.' +} + +post_upgrade() { + echo '==> All cabalized packages need to be reinstalled now.' + echo '==> See /usr/share/haskell-ghc-9.0/ and ghc-pkg-9.0 list --user for a tentative list of affected packages.' +} diff --git a/build-support/ghc90-bin/PKGBUILD b/build-support/ghc90-bin/PKGBUILD deleted file mode 100644 index beb4c2bf..00000000 --- a/build-support/ghc90-bin/PKGBUILD +++ /dev/null @@ -1,65 +0,0 @@ -# Maintainer: Rudy Matela -# -# Contributor: Rudy Matela -# -# This package can coexist with the latest version of GHC. -# If you would like to compile GHC yourself (AUR: ghc9.0), -# you can use this to bootstrap compilation. -pkgname=ghc90-bin -pkgver=9.0.1 -pkgrel=1 -pkgdesc='Legacy binary GHC 9.0 installed on /usr/bin/ghc-9.0 (Feb/2021 - Feb/2021).' -arch=('i486' 'i686' 'pentium4') -url='http://www.haskell.org/ghc/' -license=('custom') -depends=('gcc' 'gmp' 'libffi' 'perl' 'ncurses5-compat-libs') -makedepends=( 'perl' 'libxslt' 'docbook-xsl') -checkdepends=('python2') -install='ghc.install' -options=('staticlibs') -provides=('ghc9.0') -conflicts=('ghc9.0') -source=("https://www.haskell.org/ghc/dist/${pkgver}/ghc-${pkgver}-i386-deb9-linux.tar.xz") -noextract=("ghc-${pkgver}-${CARCH}-deb10-linux.tar.xz") -sha256sums=('880e37cea8328401bcfecfe4bb56eb85195f30135b140140b3f24094264f8ba5') - -prepare() { - # for some reason, bsdtar cannot unpack this file: - tar -xf "ghc-${pkgver}-i386-deb9-linux.tar.xz" - # see https://wiki.archlinux.org/index.php/PKGBUILD#noextract -} - -build() { - cd ghc-${pkgver} - - sed -i 's,"$bindir/ghc","$bindir/ghc-9.0",' utils/runghc/runghc.wrapper - - ./configure \ - --prefix=/usr \ - --docdir=/usr/share/doc/ghc-9.0 -} - -package() { - cd ghc-${pkgver} - - make DESTDIR=${pkgdir} install - - mv ${pkgdir}/usr/bin/ghc ${pkgdir}/usr/bin/ghc-9.0 - mv ${pkgdir}/usr/bin/ghci ${pkgdir}/usr/bin/ghci-9.0 - mv ${pkgdir}/usr/bin/ghc-pkg ${pkgdir}/usr/bin/ghc-pkg-9.0 - mv ${pkgdir}/usr/bin/haddock ${pkgdir}/usr/bin/haddock-ghc-9.0 - mv ${pkgdir}/usr/bin/hp2ps ${pkgdir}/usr/bin/hp2ps-ghc-9.0 - mv ${pkgdir}/usr/bin/hpc ${pkgdir}/usr/bin/hpc-ghc-9.0 - mv ${pkgdir}/usr/bin/hsc2hs ${pkgdir}/usr/bin/hsc2hs-ghc-9.0 - mv ${pkgdir}/usr/bin/runghc ${pkgdir}/usr/bin/runghc-9.0 - rm ${pkgdir}/usr/bin/runhaskell # use runghc-9.0 instead - - mv ${pkgdir}/usr/share/man/man1/ghc.1 ${pkgdir}/usr/share/man/man1/ghc-9.0 - - install -d ${pkgdir}/usr/share/licenses/ghc-9.0 - install -m644 LICENSE ${pkgdir}/usr/share/licenses/ghc-9.0 - - # for some reason I end up with the wrong LLVM target on IA-32, - # patch it - sed -i 's/,("LLVM target", ".*")/,("LLVM target", "i686-unknown-linux")/' ${pkgdir}/usr/lib/ghc-9.0.1/settings -} diff --git a/build-support/ghc90-bin/ghc.install b/build-support/ghc90-bin/ghc.install deleted file mode 100644 index 68eed631..00000000 --- a/build-support/ghc90-bin/ghc.install +++ /dev/null @@ -1,10 +0,0 @@ -pre_upgrade() { - echo '==> Unregistering cabalized packages...' - [[ -d /usr/share/haskell-ghc-9.0 ]] && find /usr/share/haskell-ghc-9.0 -maxdepth 2 -name 'unregister.sh' -exec {} \; - echo '==> Done.' -} - -post_upgrade() { - echo '==> All cabalized packages need to be reinstalled now.' - echo '==> See /usr/share/haskell-ghc-9.0/ and ghc-pkg-9.0 list --user for a tentative list of affected packages.' -} -- cgit v1.2.3-54-g00ecf