Package Details: hlint-bin 3.8-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: 2
Popularity: 0.000000
First Submitted: 2020-03-17 13:53 (UTC)
Last Updated: 2024-08-16 21:12 (UTC)

Latest Comments

jforberg commented on 2023-04-29 08:24 (UTC)

Needs update to 3.5 in order to fix shared library issue. Here is a patch which fixes the issue: https://gist.github.com/jforberg/dbdc96008ca2c9a3ef285c44019126e7

dno commented on 2022-05-23 14:40 (UTC)

Oops, rookie mistake to neglect to double-check .SRCINFO. Uploaded a new version just now. Thank you gesh for looking into this.

gesh commented on 2022-05-23 06:49 (UTC)

Have you updated .SRCINFO? Pinged upstream re this. I note this is the only haskell package remaining that has this dep, am guessing the CI build was upgraded across the board.

dno commented on 2022-05-20 21:36 (UTC) (edited on 2022-05-20 21:36 (UTC) by dno)

Just updated this to 3.4-1 and was informed by namcap it no longer requires ncurses5-compat-libs, so I removed that from depends in the PKGBUILD. It seems to function properly with quick testing but.. does it work for anyone else without the curses lib? I can put it back.

Not sure why the detail above is stale and still shows ncurses5-compat-libs in Dependencies, it's gone from the PKGBUILD.

dno commented on 2021-02-03 00:55 (UTC)

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 (UTC)

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 (UTC)

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"
}