Package Details: pandoc-crossref-static-git 0.3.18.1.r2.g357b101c-3

Git Clone URL: https://aur.archlinux.org/pandoc-crossref-static-git.git (read-only, click to copy)
Package Base: pandoc-crossref-static-git
Description: Pandoc filter for cross-references (static build)
Upstream URL: https://github.com/lierdakil/pandoc-crossref
Licenses: GPL-2.0-or-later
Conflicts: pandoc-crossref
Provides: pandoc-crossref
Submitter: gesh
Maintainer: gesh
Last Packager: gesh
Votes: 0
Popularity: 0.000000
First Submitted: 2021-10-27 22:11 (UTC)
Last Updated: 2025-01-20 16:02 (UTC)

Required by (3)

Sources (1)

Pinned Comments

gesh commented on 2025-01-15 13:18 (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.

Latest Comments

gesh commented on 2025-01-15 13:18 (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 2021-10-27 22:22 (UTC)

Build broken right now since happy won't compile, will try fixing tomorrow