Skip to content

Package depending on X11 failing to build haddocks #925

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
thomasjm opened this issue Apr 24, 2021 · 6 comments
Closed

Package depending on X11 failing to build haddocks #925

thomasjm opened this issue Apr 24, 2021 · 6 comments

Comments

@thomasjm
Copy link

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
@sjakobi
Copy link
Member

sjakobi commented Apr 24, 2021

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

@thomasjm
Copy link
Author

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

@liskin
Copy link

liskin commented Jun 1, 2021

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.

@thomasjm
Copy link
Author

thomasjm commented Jun 1, 2021

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

@liskin
Copy link

liskin commented Jun 1, 2021

I should note that we'd also welcome adding xrandr and xscreensaver headers to the Hackage build environment, as we're hitting #70 and this makes our CI unnecessary complicated.

liskin added a commit to xmonad/X11 that referenced this issue Jun 7, 2021
Publishing a candidate on Hackage discards the uploaded docs:
haskell/hackage-server#70 (comment),
so as a workaround I'm extending the workflow with the ability to do the
final release with docs upload. To do that, one needs to trigger the
workflow manually and enter the correct version number. Hopefully that's
enough to prevent making a release by mistake.

Note that this complexity may also become unnecessary if the Hackage
admins install a couple extra deps to make X11 build:
haskell/hackage-server#925
@gbaz
Copy link
Contributor

gbaz commented Sep 27, 2022

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

@gbaz gbaz closed this as completed Sep 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants