Skip to content
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

home-manager-manual error #261

Closed
mightybyte opened this issue May 8, 2018 · 12 comments
Closed

home-manager-manual error #261

mightybyte opened this issue May 8, 2018 · 12 comments

Comments

@mightybyte
Copy link

I just started getting the following error when I run home-manager switch:

./manual.xml:38: element include: XInclude error : could not load generated/options-db.xml, and no fallback was found
builder for '/nix/store/n0yg6anycws9play1anx12m6j9xyh77f-home-manager-manual-combined.drv' failed with exit code 1
@rycee
Copy link
Member

rycee commented May 8, 2018

Hmm, I did fundamentally change how the manual is generated the other day but haven't noticed any issues building them on NixOS 18.03 or master. Which environment are you using home manager in? NixOS or some other distro? Version?

@mightybyte
Copy link
Author

I'm using macOS High Sierra 10.13.3 with Nix 2.

@rycee
Copy link
Member

rycee commented May 8, 2018

I guess there must be some difference between the macOS 10.12 that travis-ci seem to use and 10.13 because it seems to build ok there.

Would you mind pasting all the log lines from building '/nix/store/XYZ-home-manager-manual-combined.drv'... to the error place? Any difference from the travis-ci output?

@rycee
Copy link
Member

rycee commented May 8, 2018

Oh, btw. In case you've missed it, if you disable the manual.manpages.enable option I guess you should be able to complete the home-manager switch so that you aren't blocked completely by this bug.

@mightybyte
Copy link
Author

The above is all the lines in that range. Here's some more though:

building '/nix/store/n0yg6anycws9play1anx12m6j9xyh77f-home-manager-manual-combined.drv'...
./manual.xml:38: element include: XInclude error : could not load generated/options-db.xml, and no fallback was found
builder for '/nix/store/n0yg6anycws9play1anx12m6j9xyh77f-home-manager-manual-combined.drv' failed with exit code 1
cannot build derivation '/nix/store/15ayvjnaq91822j963yyyamr1bfal01k-home-manager-manpages.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/x5ijnzpjhsnllmxjk79wbkjx1k089ss4-home-manager-path.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/3jfyvjqlc4jbmd40x4f6hr50vdkdg3v5-home-manager-generation.drv': 1 dependencies couldn't be built
error: build of '/nix/store/3jfyvjqlc4jbmd40x4f6hr50vdkdg3v5-home-manager-generation.drv' failed

That workaround got me unblocked, thanks!

@PhDyellow
Copy link

I had the same error under NixOS 18.03, using home-manager as a nixos module.

I tried commenting out manual.manpages.enable, but it didn't work.

I had success after commenting out all refernces to homemanager in my configuration.nix, rebuilding nixos, running a full sudo nix-collect-garbage -d, then enabling homemanager again and rebuilding nixos.

@j0xaf
Copy link

j0xaf commented May 11, 2018

Same issue here under Ubuntu 18.04. Disabling manual.manpages.enable as workaround helped.

@jbgi
Copy link

jbgi commented May 11, 2018

I tried commenting out manual.manpages.enable, but it didn't work.

I had to set it to false, commenting was not enough.

@rycee
Copy link
Member

rycee commented May 11, 2018

I'm pretty certain I've managed to fix this in #264. Unfortunately travis-ci is not doing macos builds at the moment so I'll wait a bit with the merge. It would be great if somebody here could test that branch and see if it actually fixes the problem.

As a bonus I managed to produce the beginnings of an HTML manual including the options: https://rycee.github.io/home-manager/

@rycee
Copy link
Member

rycee commented May 12, 2018

Merged to master now. Please give manual.manpages.enable = true a try, hopefully it should build the manual OK now.

@dermetfan
Copy link
Collaborator

Fixed it for me, I had the same problem on NixOS 18.09.

@rycee
Copy link
Member

rycee commented May 24, 2018

Cool, I'll close this then. If anybody still experiences this issue then please reopen.

@rycee rycee closed this as completed May 24, 2018
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

6 participants