Skip to content

Comments

Docs build: depend on locally built nix executable and not installed one#5145

Merged
Ericson2314 merged 1 commit intoNixOS:masterfrom
fedepell:local_doc_build_5140
Nov 30, 2023
Merged

Docs build: depend on locally built nix executable and not installed one#5145
Ericson2314 merged 1 commit intoNixOS:masterfrom
fedepell:local_doc_build_5140

Conversation

@fedepell
Copy link
Contributor

Previously many of the documentation targets were depending on
$(bindir)/nix which is the installed version. This meant that its
install rules would be triggered (which in chain would also trigger
the install of libraries, as reported in #5140). Therefore a build
of the documentation without an installation would not be possible
(which apart from doing unwanted operations it may also generate
permission problems for example).
The fix makes the rules depend on $(nix_DIR)/nix instead, which is
the executable in the build tree.

Fixes #5140.

@stale
Copy link

stale bot commented Apr 16, 2022

I marked this as stale due to inactivity. → More info

@stale stale bot added the stale label Apr 16, 2022
@fedepell
Copy link
Contributor Author

This still seems to be present in current master. Would it make sense to merge this? (I didn't re-check if it still applies cleanly right now, but can do it if the MR would be considered worth still)

Thanks!
F.

@stale stale bot removed the stale label Apr 19, 2022
@fricklerhandwerk fricklerhandwerk added documentation contributor-experience Developer experience for Nix contributors labels Sep 9, 2022
@stale stale bot added the stale label May 21, 2023
@Ericson2314 Ericson2314 self-assigned this Jun 14, 2023
@stale stale bot removed the stale label Jun 14, 2023
Previously many of the documentation targets were depending on
`$(bindir)/nix` which is the installed version. This meant that its
install rules would be triggered (which in chain would also trigger the
install of libraries, as reported in NixOS#5140). Therefore a build of the
documentation without an installation would not be possible (which apart
from doing unwanted operations it may also generate permission problems
for example).

The fix makes the rules depend on `$(nix_PATH)` instead, which is the
executable in the build tree.
@Ericson2314 Ericson2314 merged commit ca72e3e into NixOS:master Nov 30, 2023
@alois31 alois31 mentioned this pull request Feb 9, 2024
tebowy pushed a commit to tebowy/nix that referenced this pull request Jul 11, 2024
Docs build: depend on locally built nix executable and not installed one

(cherry picked from commit ca72e3e)

===

includes changes from (because not doing so removes manpages):

Merge pull request NixOS#9976 from alois31/restore-manual-pages

Restore manual pages

(cherry picked from commit d3c1997)

Change-Id: I685ff16163ac552a1754570c03c992c63a461d50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contributor-experience Developer experience for Nix contributors documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Some of the targets are installed into $(prefix) during the build phase

3 participants