git, gitweb: Fix git-instaweb #53494
Merged
+26
−26
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation for this change
Git’s build system does two things with the
gitwebdir
variable:git-instaweb
Before this change
git-instaweb
wouldn’t work as it was looking for gitweb in git’sshare
directory, but it was moved away into a separate output by the nix expression.This PR sets the
gitwebdir
variable in the Makefile and points it to thegitweb
output. As a result, a path to this output is now embedded intogit-instaweb
, which will affect the closure size, but, AFAIU, only ifperlSupport
is enabled, so this is probably not a problem? I also had to move the fixups from thegitweb
expression togit
itself to make sure thatgitweb.cgi
that is referenced fromgit-instaweb
is functional.Fixes #53491.
@gnidorah @peti @the-kenny @wmertens
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)git
as its tests take too long, but I am relatively confident that it works as its tests were running successfully for quite a while.git instaweb
now worksgitweb
(asgit
never finished building), but I don’t think this change could break something in it.