-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Some of the targets are installed into $(prefix)
during the build phase
#5140
Comments
My feeling is that in They should instead point to the one in the build directory (so |
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_DIR)/nix instead, which is the executable in the build tree.
I marked this as stale due to inactivity. → More info |
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_PATH)` instead, which is the executable in the build tree.
Describe the bug
Some targets are installed into
$(prefix)
during the build phaseWhile building Nix from the master branch, some targets like
libnixutil.so
are installed into$(prefix)
during the build phase. If the build user doesn't have permission to write into$(prefix)
the build fails.It doesn't happen on the 2.3-maintenance branch, or if the build is configured with the
--disable-doc-gen
option on the master branch.Steps To Reproduce
./bootstrap.sh
./configure --prefix=/usr
make
Expected behavior
Targets aren't installed
$(prefix)
during the buildThe text was updated successfully, but these errors were encountered: