-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
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
darktable: move documentation to it's own directory #72160
darktable: move documentation to it's own directory #72160
Conversation
Signed-off-by: Roosembert Palacios <roosembert.palacios@epfl.ch>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No functional tests needed, because documentation is just moved around. And it builds, so all good I would say.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No functional tests needed, because documentation is just moved around. And it builds, so all good I would say.
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like a bug in CMake setup hook. It should be fixed there instead.
The issue is that $shareDocName
cmakeFlags="-DCMAKE_INSTALL_DOCDIR=${!outputDoc}/share/doc/${shareDocName} $cmakeFlags" |
is only defined when using multiple outputs:
nixpkgs/pkgs/build-support/setup-hooks/multiple-outputs.sh
Lines 55 to 67 in 6bba942
if [ -z "$shareDocName" ]; then | |
local confScript="$configureScript" | |
if [ -z "$confScript" ] && [ -x ./configure ]; then | |
confScript=./configure | |
fi | |
if [ -f "$confScript" ]; then | |
local shareDocName="$(sed -n "s/^PACKAGE_TARNAME='\(.*\)'$/\1/p" < "$confScript")" | |
fi | |
# PACKAGE_TARNAME sometimes contains garbage. | |
if [ -n "$shareDocName" ] || echo "$shareDocName" | grep -q '[^a-zA-Z0-9_-]'; then | |
shareDocName="$(echo "$name" | sed 's/-[^a-zA-Z].*//')" | |
fi | |
fi |
To fix that here, I suggest adding outputs = [ "out" "doc" ];
between pname
and src
.
Edit: Opened an issue about the underlying problem: #82304
It is more complicated than that, see #82304. For now you can set |
This reverts commit 730133e. multiple-outputs.sh has been fixed, so documentation is now corrrrectly installed under $out/share/doc/darktable. Fixes: NixOS#72160 Fixes: NixOS#83248
The change was actually reverted, #93166 is a proper fix. |
Motivation for this change
Package documentation in the wrong directory. Creates collisions when merging system paths.
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)Notify maintainers
cc @