hackage-server icon indicating copy to clipboard operation
hackage-server copied to clipboard

Package depending on X11 failing to build haddocks

Open thomasjm opened this issue 4 years ago • 5 comments

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

thomasjm avatar Apr 24 '21 00:04 thomasjm

X11 itself and other packages that depend on it seem to have built successfully

Actually the docs for X11 were uploaded by a user:

image

sjakobi avatar Apr 24 '21 00:04 sjakobi

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

thomasjm avatar Apr 24 '21 00:04 thomasjm

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.

liskin avatar Jun 01 '21 14:06 liskin

Well, I figured out how to upload the documentation manually. But would it be possible to add Xrandr to the Hackage build environment?

thomasjm avatar Jun 01 '21 18:06 thomasjm

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.

liskin avatar Jun 01 '21 18:06 liskin

ran apt-get install x11-xserver-utils on the docbuilder, which should suffice?

gbaz avatar Sep 27 '22 16:09 gbaz