Package Details: pandoc-static-git 3.6.4.r8.g68bb4ae58-2

Git Clone URL: https://aur.archlinux.org/pandoc-static-git.git (read-only, click to copy)
Package Base: pandoc-static-git
Description: Conversion between markup formats (static build, dynamic Lua support)
Upstream URL: https://pandoc.org
Licenses: GPL-2.0-or-later
Conflicts: pandoc, pandoc-cli
Provides: pandoc, pandoc-cli
Submitter: gesh
Maintainer: gesh
Last Packager: gesh
Votes: 2
Popularity: 0.000071
First Submitted: 2021-10-27 21:34 (UTC)
Last Updated: 2025-06-22 13:20 (UTC)

Dependencies (6)

Required by (359)

Sources (1)

Pinned Comments

gesh commented on 2025-01-15 13:17 (UTC)

To clarify -- the goal of this package is to statically link against the Haskell dependencies. The non-Haskell libraries (glibc, gmp) could be worked around in theory, but need a musl-based toolchain to do so. I both haven't managed to make such a toolchain work, and doubt it is useful in Arch in practice, given the binaries aren't meant for redistribution to other distros.

If someone wants to try their hand at removing these deps (and so making of them makedepends), the build invocation must be passed --ghc-options=-optl-static, and (though I haven't managed to track down how to do this) GHC must be told to compile with musl-gcc instead of gcc (this might require installing a musl-based GHC).

This might not even be easily supported with current cabal, though, see https://github.com/haskell/cabal/issues/1325

See also https://hasufell.github.io/posts/2024-04-21-static-linking.html

(This investigation was sparked by the realization that hledger-bin is fully statically linked)

gesh commented on 2024-12-04 16:35 (UTC)

Note: when I wrote the commit message pushing for using ghc-9.6.5 I was under the mistaken impression that --disable-ld-override had been made the default for ghc's bindists. This is not the case -- ghc now only provides this as a build configuration option, see https://gitlab.haskell.org/ghc/ghc/-/issues/24565#note_570439 So to build this, the easiest way is to use a ghc provided by ghcup -- see https://www.haskell.org/ghcup/guide/#strategy-1-stack-hooks-new-recommended for how to get stack to use ghcup to fetch its compiler.

gesh commented on 2024-05-02 14:37 (UTC) (edited on 2024-05-02 17:07 (UTC) by gesh)

Warning: namcap complains the binary lacks FULL RELRO, PIE, and GNU_PROPERTY_X86_FEATURE_1_SHSTK

Have given up on trying to silence it, but am open to suggestions for improvement. The first appears to be generally problematic for Haskell1, and the last doesn't seem to be relevant to non-GCC applications (though this may be my ignorance speaking).

Latest Comments

« First ‹ Previous 1 2

gesh commented on 2024-04-15 20:02 (UTC)

Thanks for pointing it out, updated my other packages as well.

alerque commented on 2024-04-13 19:56 (UTC)

You can't have a VCS package using Git sources without specifying makedepends=(git). Can you please add that?