wiz
March 4, 2026, 10:10pm
67
I hate to bring this up again, but ram depends on base64 which will make downstream packages crash on 32bit systems (yes, I know. there are some out there to this day)
opened 02:26PM - 06 Dec 23 UTC
Debian packaging ran into a problem with pandoc on i386, described at jgm/pandoc… #9233. I think I've traced it to base64. Here is a Dockerfile that reproduces the segfault:
``` Docker
FROM i386/debian:sid
RUN echo 'deb-src http://deb.debian.org/debian/ unstable main' >> /etc/apt/sources.list
RUN apt update
RUN apt install -y cabal-install libghc-base64-dev libghc-bytestring-dev
RUN printf 'import "base64" Data.ByteString.Base64 (encodeBase64)\n\
import qualified Data.ByteString as B\n\
main = B.readFile "/usr/bin/whoami" >>= print . encodeBase64\n'\
> test.hs
RUN runghc -XPackageImports test.hs
```