DOMjudge / domjudge

DOMjudge programming contest jury system
https://www.domjudge.org
GNU General Public License v2.0
701 stars 249 forks source link

Haskell install fails from ubuntu package in chroot #2551

Open vmcj opened 1 month ago

vmcj commented 1 month ago

When you install ghc and try to run a submission we get a COMPILER-ERROR with this error: ghc-9.4.7: can't find a package database at /usr/lib/ghc/lib/package.conf.d.

The ghc package requires the /var to be available as the package database is stored there, by altering the run script to follow the path we get this:

+ ls -atrl /usr/lib/ghc/lib
total 60
-rw-r--r--  1 root root  6579 Feb 19 16:12 template-hsc.h
-rw-r--r--  1 root root  1909 Feb 19 16:12 settings
lrwxrwxrwx  1 root root    27 Feb 19 16:12 package.conf.d -> /var/lib/ghc/package.conf.d

Possible solutions would be to either also mount /var or copy the files into the /etc and document that. I don't like either of those options.