git.iko.soy/typeable/nixpkgs
on master help sign in
Revert "Merge pull request #42376 from dtzWill/update/git-2.18.0"

This reverts commit 2624f9079617df6b1fffda8c10f6a7a35068ecdc, reversing changes made to 37aab4cbb5552bf021b20cf05d64e8ded6f3538a. See: https://github.com/NixOS/nixpkgs/pull/42376#issuecomment-399789096 Basically this breaks at least some users of fetchgit, so let's revert this until this is sorted out.

commit6d1955e0c49720074505e090dac8b576a77efdd0 authorWill Dietz <w@wdtz.org> dateSun 24 Jun 2018, 22:36 (8 years ago) parent779d64f
2 files changed+16−13
pkgs/applications/version-management/git-and-tools/git/default.nix+3−13 pkgs/applications/version-management/git-and-tools/git/symlinks-in-bin.patch+13
pkgs/applications/version-management/git-and-tools/git/default.nix+3−13
@@ -18,7 +18,7 @@ assert sendEmailSupport -> perlSupport;
1818assert svnSupport -> perlSupport;
1919
2020let
21− version = "2.18.0";
21+ version = "2.17.1";
2222 svn = subversionClient.override { perlBindings = perlSupport; };
2323in
2424
@@ -27,7 +27,7 @@ stdenv.mkDerivation {
2727
2828 src = fetchurl {
2929 url = "https://www.kernel.org/pub/software/scm/git/git-${version}.tar.xz";
30− sha256 = "14hfwfkrci829a9316hnvkglnqqw1p03cw9k56p4fcb078wbwh4b";
30+ sha256 = "0pm6bdnrrm165k3krnazxcxadifk2gqi30awlbcf9fism1x6w4vr";
3131 };
3232
3333 outputs = [ "out" ] ++ stdenv.lib.optional perlSupport "gitweb";
@@ -40,6 +40,7 @@ stdenv.mkDerivation {
4040
4141 patches = [
4242 ./docbook2texi.patch
43+ ./symlinks-in-bin.patch
4344 ./git-sh-i18n.patch
4445 ./ssh-path.patch
4546 ./git-send-email-honor-PATH.patch
@@ -276,21 +277,10 @@ EOF
276277
277278 # XXX: I failed to understand why this one fails.
278279 # Could someone try to re-enable it on the next release ?
279− # Tested to fail: 2.18.0
280280 disable_test t1700-split-index "null sha1"
281−
282− # Tested to fail: 2.18.0
283− disable_test t7005-editor "editor with a space"
284− disable_test t7005-editor "core.editor with a space"
285−
286− # Tested to fail: 2.18.0
287− disable_test t9902-completion "sourcing the completion script clears cached --options"
288281 '' + stdenv.lib.optionalString stdenv.hostPlatform.isMusl ''
289282 # Test fails (as of 2.17.0, musl 1.1.19)
290283 disable_test t3900-i18n-commit
291− # Fails largely due to assumptions about BOM
292− # Tested to fail: 2.18.0
293− disable_test t0028-working-tree-encoding
294284 '';
295285
296286
pkgs/applications/version-management/git-and-tools/git/symlinks-in-bin.patchnew file+13
@@ -0,0 +1,13 @@
1+diff --git a/Makefile b/Makefile
2+--- a/Makefile
3++++ b/Makefile
4+@@ -2609,8 +2609,7 @@
5+ { test "$$bindir/" = "$$execdir/" || \
6+ for p in git$X $(filter $(install_bindir_programs),$(ALL_PROGRAMS)); do \
7+ $(RM) "$$execdir/$$p" && \
8+- test -z "$(NO_INSTALL_HARDLINKS)$(NO_CROSS_DIRECTORY_HARDLINKS)" && \
9+- ln "$$bindir/$$p" "$$execdir/$$p" 2>/dev/null || \
10++ ln -s "$$bindir/$$p" "$$execdir/$$p" 2>/dev/null || \
11+ cp "$$bindir/$$p" "$$execdir/$$p" || exit; \
12+ done; \
13+ } && \