News for hackers. Stuff that matters.
Re:“Shared libraries are not a good thing in general” by lobocinza on Saturday May 01, 2021 @08:42PM (#27011315)
If I am to install Pandoc (on Arch Linux) I have to install 95 Haskell dependencies besides the ones I already have installed.
Re:“Shared libraries are not a good thing in general” by bscphil on Saturday May 01, 2021 @09:01PM (#27011425)
That's the result of a perverse maintainer, there used to be a version that didn't depend on the development libraries.
Re:“Shared libraries are not a good thing in general” by lobocinza on Saturday May 01, 2021 @10:17PM (#27011821)
Fortunately there is pandoc-bin at the AUR.
Re:“Shared libraries are not a good thing in general” by ttsiodras on Sunday May 02, 2021 @06:17AM (#27013876)
Thank you! I had noticed the same problem, but was not aware of this excellent solution. I just applied it, and it works perfectly... and I removed the dozens of Haskell libraries that were there just for Pandoc.

For anyone else interested, the same solution applies to shellcheck - just install shellcheck-bin from AUR.

Re:“Shared libraries are not a good thing in general” by bhrgunatha on Saturday May 01, 2021 @10:45PM (#27011954)
I discovered that quite quickly after they switched.

More importantly (for any haskell developers using Arch), there are also static builds for stack, cabal and ghcup too although you then need to maintain your own set of GHC and libraries.

I can't imagine what it must be like to use the official packages since the haskell library ecosystem is quite fast moving.

Re:“Shared libraries are not a good thing in general” by colonwqbang on Sunday May 02, 2021 @04:59AM (#27013519)
The Haskell maintainers in Arch have an almost fantatic fascination with dynamic linking. Dynamic linking is otherwise not the norm in Haskell.

Haskell has poor support for dynamic linking. The Haskell (GHC) ABI is known to break on every compiler release. This means that every dynamically linked executable in the system needs to be recompiled. Any programs you compiled locally against dynamic system libs will break, of course.

This stance makes it much harder than necessarily for Arch users to get started with Haskell.

Re:“Shared libraries are not a good thing in general” by encryptluks2 on Saturday May 01, 2021 @09:43PM (#27011659)
This is due to the maintainers on Arch and I've complained about it before too. They also update them almost daily so they just add noise to system updates. I just end up running the official Pandoc Docker container.
Re:“Shared libraries are not a good thing in general” by drran on Sunday May 02, 2021 @03:45AM (#27013136)
> If I am to install Pandoc (on Arch Linux) I have to install 95 Haskell dependencies

OMG, you really spent 95x more time, by installing of dependencies one by one? Why not just use a package manager?

Re:“Shared libraries are not a good thing in general” by encryptluks2 on Sunday May 02, 2021 @04:25AM (#27013334)
I'm assuming they already are using the package manager. The issue is that there are so many dependencies for a single package, and almost every system update consist of updating a bunch of Haskell packages which just clutters maintenance.
Re:“Shared libraries are not a good thing in general” by drran on Sunday May 02, 2021 @09:40AM (#27015201)
Distribution does it job: it distributes upstream changes. It's like blaming a zip file, because it contains many small files instead of a few big, so it clutters maintenance. If you see this as a problem, then fix upstream. For me, it's important to receive all upstream changes in one update.
Re:“Shared libraries are not a good thing in general” by encryptluks2 on Sunday May 02, 2021 @09:54AM (#27015309)
You still could. With proper build systems they could be pushing a new package whenever a dependency gets updated, or daily.
Re:“Shared libraries are not a good thing in general” by lobocinza on Sunday May 02, 2021 @09:59AM (#27015355)
Daily would be a huge improvement but preferably less if it is non critical and I am not using testing repos.
Re:“Shared libraries are not a good thing in general” by lobocinza on Sunday May 02, 2021 @09:55AM (#27015317)
No, I didn't. But, before uninstalling Pandoc, I was wasting time with frequent useless updates of minor Haskell dependencies that should be statically linked in the first place as no other package, at least in general, make use of them.
Re:“Shared libraries are not a good thing in general” by gspr on Sunday May 02, 2021 @06:55AM (#27014026)
Why is this a problem?