-
-
Notifications
You must be signed in to change notification settings - Fork 158
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
xmonad: allow man page installation without "enableSeparateDocOutput" #290
Conversation
e9e9669 required enableSeparateDataOutput and enableSeparateDocOutput to both be true to work. Furthermore, it relied on the strange fact that xmonad puts the man page in data-dir (https://hackage.haskell.org/package/xmonad-0.13/xmonad.cabal). Given that this is not used from the source code, this is likely a bug in XMonad and I will follow up on this. We can instead pick the man page directly from the source directory (.). Using $out will still work with split outputs. https://github.com/NixOS/nixpkgs/blob/master/pkgs/build-support/setup-hooks/multiple-outputs.sh#L145 will move the man page from $out to ${outputMan}
If we merge this patch now as-is, won't the man page end up being installed twice? |
The man page will indeed be installed twice. However, one of the installations is through As a side note, the automatic moving of outputs performed by |
Why not? We have done that for the last couple of years and there was no problem. My guess is that xmonad installs this via |
I think this discussion about double install of the man page is taking us away from the main point of this patch. Let me postpone my thoughts on the matter for the second part of my reply. The main problem is that the I agree that in this case, taking from If we absolutely want to avoid duplication, we need to find a way that works whether or not By the way, the current |
I don't perceive that as a problem at all. The generated expression is valid. No issue there. Now, if someone overrides
Absolutely. I completely agree, and it would be great if someone would do that.
Yes, that would be preferable. |
I have reported the issue upstream: xmonad/xmonad#127 I have also opened an issue in the nixpkgs repo which shows that the issue is not purely theoretical; I was hit by it while trying to fix a breakage in xmonad-with-packages. If we add the following two lines at the end of the patched post-install script, we will get the same output as the pre-patch version:
What do you think? |
I think that |
But my patch (with the 2 lines mentioned in my previous reply) does not disable anything. |
Your patch aims to make the package work in the presence of disabled doc outputs. I don't think the separate output should be disabled, and I haven't heard a good reason yet why anyone might want to. Therefore, I don't think this patch is very desirable to have. |
I see the confusion. See the last line in my initial comment. I am changing the postInstall script, but not the actual default behavior. There is already code in |
Actually, the confusion comes from the fact that you see the name "enableSeparateDocOutput" and think, "aha, this looks like something I can pass |
OK. FYI, the xmonad package build will break when a user disables haddock
since `enableSeparateDocOutput` has a default value of `doHaddock`.
…On Aug 7, 2017 3:31 AM, "Peter Simons" ***@***.***> wrote:
Actually, the confusion comes from the fact that you see the name
"enableSeparateDocOutput" and think, "aha, this looks like something I can
pass false to to disable it". But this is wrong. You can generally not
disable separate outputs for data or documentation without breaking the
build. We don't want people to disable separate outputs and we've made no
effort whatsoever to support that. Therefore, I don't want to merge your
patch, because it tries to create support for something we don't want to
support.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#290 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAXVmu-bz_mlexqJCpRt8ieTCQ-IXwt8ks5sVr1ZgaJpZM4Otxrg>
.
|
Is there any documentation or discussion about the intent of |
Some record of the discussion that took place is in NixOS/nixpkgs#27196. Other conversations happened in the IRC channel and are probably not easy to find. |
Thank you |
e9e9669 required
enableSeparateDataOutput
andenableSeparateDocOutput
to both be true to work. Furthermore, it relied on the strange fact that xmonad puts the man page in data-dir (https://hackage.haskell.org/package/xmonad-0.13/xmonad.cabal). Given that this is not used from the source code, this is likely a bug in XMonad and I will follow up on this.We can instead pick the man page directly from the source directory
.
.Using
$out
will still work with split outputs. multiple-outputs.sh:145 will move the man page from$out
to${outputMan}