Package Details: hadolint 2.12.0-1

Git Clone URL: (read-only, click to copy)
Package Base: hadolint
Description: Dockerfile linter, validate inline bash, written in Haskell
Upstream URL:
Licenses: GPL
Conflicts: hadolint-bin, hadolint-git
Submitter: m-pilia
Maintainer: m-pilia
Last Packager: m-pilia
Votes: 4
Popularity: 0.99
First Submitted: 2019-01-18 19:17 (UTC)
Last Updated: 2022-11-12 14:54 (UTC)

Latest Comments

1 2 Next › Last »

ModYokosuka commented on 2024-06-05 19:05 (UTC) (edited on 2024-06-05 19:07 (UTC) by ModYokosuka)

I am getting an error when trying to run this makepkg.

==> Starting build()...
Preparing to install GHC (tinfo6) to an isolated location.
This will not interfere with any system-level installation.
Already downloaded.
gcc: error: unrecognized command-line option '--target=x86_64-unknown-linux'
configure: error: Failed to determine machine word size. Does your toolchain actually work?
Received ExitFailure 1 when running
Raw command: /home/dedrone/.stack/programs/x86_64-linux/ghc-tinfo6-9.0.2.temp/ghc-9.0.2/configure --prefix=/home/dedrone/.stack/programs/x86_64-linux/ghc-tinfo6-9.0.2/
Run from: /home/dedrone/.stack/programs/x86_64-linux/ghc-tinfo6-9.0.2.temp/ghc-9.0.2/

Error: Error encountered while configuring GHC with
         /home/dedrone/.stack/programs/x86_64-linux/ghc-tinfo6-9.0.2.temp/ghc-9.0.2/configure --prefix=/home/dedrone/.stack/programs/x86_64-linux/ghc-tinfo6-9.0.2/
         run in /home/dedrone/.stack/programs/x86_64-linux/ghc-tinfo6-9.0.2.temp/ghc-9.0.2/

       The following directories may now contain files, but won't be used by stack:
         - /home/dedrone/.stack/programs/x86_64-linux/ghc-tinfo6-9.0.2.temp/
         - /home/dedrone/.stack/programs/x86_64-linux/ghc-tinfo6-9.0.2/

       For more information consider rerunning with --verbose flag

Configuring GHC ...
==> ERROR: A failure occurred in build().

carlosal1015 commented on 2022-09-16 17:51 (UTC)

I think that while the package is been built should not touch any directory from ~/.stack/ (user home). Maybe I am wrong.

m-pilia commented on 2022-03-20 17:28 (UTC)

Please stop flagging the package out of date before a new release is officially created.

m-pilia commented on 2021-05-03 10:50 (UTC)

@aminvakil: Your build of hadolint is going to crash if gmp is not installed, therefore you need to list it as a dependency. It's not optional, if you don't your PKGBUILD is malformed.

Your test is not running in a clean environment, as part of your pipeline you are installing a lot of unrelated packages in the container. Try to run the executable in a system where gmp is not installed and you will see the dynamic linker error.

aminvakil commented on 2021-05-03 10:24 (UTC)

@m-pilia: I've just checked on a simple Dockerfile in a clean environment, and it's ok.

hadolint --version
curl -OL
hadolint Dockerfile

You can see full log here:

m-pilia commented on 2021-05-03 07:18 (UTC)

@gamezelda: Thanks for the suggestion, I was already considering building this package with dynamic linking, but I would need to double-check if and what kind of runtime dependencies that would introduce, since hadolint depends on a bunch of other Haskell libraries.

@aminvakil: If you don't use static linking you need to fix the dependencies of your package, or the application will crash when installed on a clean system.

aminvakil commented on 2021-05-02 20:52 (UTC)

@gamezelda thanks to your comment, I've tested and updated hadolint-git aur package as well.

gamezelda commented on 2021-05-02 14:10 (UTC)

The libgmp-static build dependency can be replaced with a runtime gmp dependency if the package is built with:

stack build hadolint --flag hadolint:-static

aminvakil commented on 2021-03-02 16:37 (UTC)

@m-pilia Thanks for fixing the package!

FWIW passed as well.

m-pilia commented on 2021-03-02 15:34 (UTC)

@aminvakil: No worries! :-) Found the issue thanks to the maintainer on GitHub, now hadolint needs gmp, so for a static build like this we need to add libgmp-static as a build dependency.