Package depending on X11 failing to build haddocks
I'm trying to upload a package that depends on the X11, and it is failing to build its haddocks on Hackage. I'm not sure why this is since X11 itself and other packages that depend on it seem to have built successfully. The build is failing to find libraries (see below). You can find the failing build reports here.
Starting X11-1.9.2
Failed to install X11-1.9.2
Build log ( /home/builder/.cabal/logs/ghc-8.10.2/X11-1.9.2-GKGRkz2yFGI3qzBLbXkZXe.log ):
cabal: Entering directory '/tmp/cabal-tmp-10904/X11-1.9.2'
Configuring X11-1.9.2...
...
checking for X11/extensions/Xrandr.h... no
configure: error: X11/extensions/Xrandr.h (from libXrandr) is required
X11itself and other packages that depend on it seem to have built successfully
Actually the docs for X11 were uploaded by a user:

Oh, that explains that.
Although I found one dependent that looks like it built normally (albeit with X11-1.8 instead of 1.9.2): Clipboard
Although I found one dependent that looks like it built normally (albeit with X11-1.8 instead of 1.9.2): Clipboard
Possibly the build environment was different back then? X11 1.8 did have less required dependencies but Xrandr was definitely among them. Since 1.8, XScreenSaver was made non-optional as well, but your build is failing on Xrandr.
Well, I figured out how to upload the documentation manually. But would it be possible to add Xrandr to the Hackage build environment?
I should note that we'd also welcome adding xrandr and xscreensaver headers to the Hackage build environment, as we're hitting https://github.com/haskell/hackage-server/issues/70 and this makes our CI unnecessary complicated.
ran apt-get install x11-xserver-utils on the docbuilder, which should suffice?