Package Details: hlint-bin 3.3-1

Git Clone URL: https://aur.archlinux.org/hlint-bin.git (read-only, click to copy)
Package Base: hlint-bin
Description: Haskell source code suggestions. Packaged from upstream binary release.
Upstream URL: https://github.com/ndmitchell/hlint
Licenses: BSD
Conflicts: hlint
Submitter: dno
Maintainer: dno
Last Packager: dno
Votes: 1
Popularity: 0.000004
First Submitted: 2020-03-17 13:53
Last Updated: 2021-04-02 13:49

Latest Comments

dno commented on 2021-02-03 00:55

Ok, I went ahead and added ncurses5-compat-libs as a dep to this. It's not ideal though unless one is using an AUR helper that chases down AUR deps. At least it's clearer now that something that provides ncurses5 stuff is needed.

gesh: Also, your PKGBUILD below could be made into a new AUR package as an alternative to hlint-bin for people who prefer one built locally. Thanks for writing that and bringing the issue up.

dno commented on 2021-02-02 22:54

I see. I've got this on my system

lrwxrwxrwx 1 root root     24 Jul 15  2020 /usr/lib/libtinfo.so.5 -> /usr/lib/libncurses.so.5
lrwxrwxrwx 1 root root     25 Jul 15  2020 /usr/lib/libncurses.so.5 -> /usr/lib/libncursesw.so.5
lrwxrwxrwx 1 root root     18 Jul 15  2020 /usr/lib/libncursesw.so.5 -> libncursesw.so.5.9
-rwxr-xr-x 1 root root 404536 Jul 15  2020 /usr/lib/libncursesw.so.5.9

Which are coming from another AUR package I installed, possibly for hlint-bin, but I don't remember: ncurses5-compat-libs This package provides and conflicts with libtinfo5

Do you think another possible solution would be for me to add ncurses5-compat-libs to this PKGBUILD?

PS It's quite possible the upstream maintainer won't care about this Arch issue, they do appear to be on libtinfo5 still on Ubuntu 20

gesh commented on 2021-02-02 22:14

Package broken, requires libtinfo.so.5 (which is at least two years out of date). Issue raised upstream: https://github.com/ndmitchell/hlint/issues/1208 Current solution is to build locally, PKGBUILD for that purpose below

# Maintainer: Gesh <gesh@gesh.uni.cx>
# Maintainer: Dino Morelli <dino@ui3.info>

pkgname=hlint-static-git
pkgver=3.2.7.r12.gbdd96e75
pkgrel=1
pkgdesc='Haskell source code suggestions'
arch=('x86_64')
url="https://github.com/ndmitchell/hlint"
license=('BSD')
depends=('gmp')
provides=('hlint')
conflicts=('hlint' 'hlint-bin')
source=("${pkgname}::git+${url}")
sha256sums=('SKIP')

pkgver() {
    cd "$pkgname"
    git describe --tags --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

check() {
    cd "$pkgname"

    stack test
}

build() {
    cd "$pkgname"

    stack setup
    stack build \
        --install-ghc \
        --ghc-options='-fdiagnostics-color=always' \
        --fast
}

package() {
    cd "$srcdir/$pkgname"
    stack install --local-bin-path "$pkgdir/usr/bin"
}