Merge older staging (finished on Hydra)

https://hydra.nixos.org/eval/1427837?filter=&compare=1427817
Fixes #34087.

+87 -66
+2 -2
pkgs/applications/version-management/git-and-tools/git/default.nix
··· 13 }: 14 15 let 16 - version = "2.15.1"; 17 svn = subversionClient.override { perlBindings = true; }; 18 in 19 ··· 22 23 src = fetchurl { 24 url = "https://www.kernel.org/pub/software/scm/git/git-${version}.tar.xz"; 25 - sha256 = "0p04linqdywdf7m1hqa904fzqvgzplsxlzdqrn96j1j5gpyr174r"; 26 }; 27 28 hardeningDisable = [ "format" ];
··· 13 }: 14 15 let 16 + version = "2.16.0"; 17 svn = subversionClient.override { perlBindings = true; }; 18 in 19 ··· 22 23 src = fetchurl { 24 url = "https://www.kernel.org/pub/software/scm/git/git-${version}.tar.xz"; 25 + sha256 = "1y1hdr8ydff5q7y762cwfdgaxam4mxvir6nrw3g51mmkcr77c40d"; 26 }; 27 28 hardeningDisable = [ "format" ];
+13 -32
pkgs/applications/version-management/git-and-tools/git/git-send-email-honor-PATH.patch
··· 1 - From 9a4396ddaedaf59ebee16d69900884e990b79cdd Mon Sep 17 00:00:00 2001 2 - From: Florian Klink <flokli@flokli.de> 3 - Date: Fri, 17 Nov 2017 13:21:37 +0100 4 - Subject: [PATCH] git-send-email: honor $PATH 5 - 6 - This will search $PATH for a sendmail binary, instead of the (previously 7 - fixed) list of paths. 8 - 9 - Signed-off-by: Florian Klink <flokli@flokli.de> 10 - --- 11 - Documentation/git-send-email.txt | 5 ++--- 12 - git-send-email.perl | 3 ++- 13 - 2 files changed, 4 insertions(+), 4 deletions(-) 14 - 15 diff --git a/Documentation/git-send-email.txt b/Documentation/git-send-email.txt 16 - index bac9014ac..b9b1f2c41 100644 17 --- a/Documentation/git-send-email.txt 18 +++ b/Documentation/git-send-email.txt 19 - @@ -203,9 +203,8 @@ a password is obtained using 'git-credential'. 20 specify a full pathname of a sendmail-like program instead; 21 the program must support the `-i` option. Default value can 22 be specified by the `sendemail.smtpServer` configuration 23 - - option; the built-in default is `/usr/sbin/sendmail` or 24 - - `/usr/lib/sendmail` if such program is available, or 25 - - `localhost` otherwise. 26 - + option; the built-in default is to search in $PATH if such program is 27 - + available, or `localhost` otherwise. 28 - 29 --smtp-server-port=<port>:: 30 - Specifies a port different from the default port (SMTP 31 diff --git a/git-send-email.perl b/git-send-email.perl 32 - index 2208dcc21..8e357aeab 100755 33 --- a/git-send-email.perl 34 +++ b/git-send-email.perl 35 - @@ -885,7 +885,8 @@ if (defined $initial_reply_to) { 36 } 37 - 38 if (!defined $smtp_server) { 39 - - foreach (qw( /usr/sbin/sendmail /usr/lib/sendmail )) { 40 + my @sendmail_paths = map {"$_/sendmail"} split /:/, $ENV{PATH}; 41 - + foreach (@sendmail_paths) { 42 if (-x $_) { 43 $smtp_server = $_; 44 - last; 45 - -- 46 - 2.15.0 47 -
··· 1 diff --git a/Documentation/git-send-email.txt b/Documentation/git-send-email.txt 2 + index 8060ea35c..c81067a19 100644 3 --- a/Documentation/git-send-email.txt 4 +++ b/Documentation/git-send-email.txt 5 + @@ -203,8 +203,7 @@ a password is obtained using 'git-credential'. 6 specify a full pathname of a sendmail-like program instead; 7 the program must support the `-i` option. Default value can 8 be specified by the `sendemail.smtpServer` configuration 9 + - option; the built-in default is to search for `sendmail` in 10 + - `/usr/sbin`, `/usr/lib` and $PATH if such program is 11 + + option; the built-in default is to search in $PATH if such program is 12 + available, falling back to `localhost` otherwise. 13 + 14 --smtp-server-port=<port>:: 15 diff --git a/git-send-email.perl b/git-send-email.perl 16 + index edcc6d346..8e357aeab 100755 17 --- a/git-send-email.perl 18 +++ b/git-send-email.perl 19 + @@ -885,8 +885,7 @@ if (defined $initial_reply_to) { 20 } 21 + 22 if (!defined $smtp_server) { 23 + - my @sendmail_paths = qw( /usr/sbin/sendmail /usr/lib/sendmail ); 24 + - push @sendmail_paths, map {"$_/sendmail"} split /:/, $ENV{PATH}; 25 + my @sendmail_paths = map {"$_/sendmail"} split /:/, $ENV{PATH}; 26 + foreach (@sendmail_paths) { 27 if (-x $_) { 28 $smtp_server = $_;
+11 -11
pkgs/applications/version-management/git-and-tools/git/ssh-path.patch
··· 1 diff --git a/connect.c b/connect.c 2 - index fd7ffe1..20cd992 100644 3 --- a/connect.c 4 +++ b/connect.c 5 - @@ -768,7 +768,7 @@ 6 7 - ssh = getenv("GIT_SSH"); 8 - if (!ssh) 9 - - ssh = "ssh"; 10 - + ssh = "@ssh@"; 11 - else 12 - handle_ssh_variant(ssh, 0, 13 - &port_option, 14 diff --git a/git-gui/lib/remote_add.tcl b/git-gui/lib/remote_add.tcl 15 - index 50029d0..17b9594 100644 16 --- a/git-gui/lib/remote_add.tcl 17 +++ b/git-gui/lib/remote_add.tcl 18 - @@ -139,7 +139,7 @@ 19 # Parse the location 20 if { [regexp {(?:git\+)?ssh://([^/]+)(/.+)} $location xx host path] 21 || [regexp {([^:][^:]+):(.+)} $location xx host path]} {
··· 1 diff --git a/connect.c b/connect.c 2 + index c3a014c5b..fbca3262b 100644 3 --- a/connect.c 4 +++ b/connect.c 5 + @@ -1010,7 +1010,7 @@ static void fill_ssh_args(struct child_process *conn, const char *ssh_host, 6 7 + ssh = getenv("GIT_SSH"); 8 + if (!ssh) 9 + - ssh = "ssh"; 10 + + ssh = "@ssh@"; 11 + variant = determine_ssh_variant(ssh, 0); 12 + } 13 + 14 diff --git a/git-gui/lib/remote_add.tcl b/git-gui/lib/remote_add.tcl 15 + index 480a6b30d..781720424 100644 16 --- a/git-gui/lib/remote_add.tcl 17 +++ b/git-gui/lib/remote_add.tcl 18 + @@ -139,7 +139,7 @@ method _add {} { 19 # Parse the location 20 if { [regexp {(?:git\+)?ssh://([^/]+)(/.+)} $location xx host path] 21 || [regexp {([^:][^:]+):(.+)} $location xx host path]} {
+2
pkgs/development/compilers/llvm/3.8/clang/default.nix
··· 40 41 # Move libclang to 'lib' output 42 moveToOutput "lib/libclang.*" "$lib" 43 44 mkdir -p $python/bin $python/share/clang/ 45 mv $out/bin/{git-clang-format,scan-view} $python/bin
··· 40 41 # Move libclang to 'lib' output 42 moveToOutput "lib/libclang.*" "$lib" 43 + substituteInPlace $out/share/clang/cmake/ClangTargets-release.cmake \ 44 + --replace "\''${_IMPORT_PREFIX}/lib/libclang." "$lib/lib/libclang." 45 46 mkdir -p $python/bin $python/share/clang/ 47 mv $out/bin/{git-clang-format,scan-view} $python/bin
+2
pkgs/development/compilers/llvm/3.9/clang/default.nix
··· 42 43 # Move libclang to 'lib' output 44 moveToOutput "lib/libclang.*" "$lib" 45 46 mkdir -p $python/bin $python/share/clang/ 47 mv $out/bin/{git-clang-format,scan-view} $python/bin
··· 42 43 # Move libclang to 'lib' output 44 moveToOutput "lib/libclang.*" "$lib" 45 + substituteInPlace $out/lib/cmake/clang/ClangTargets-release.cmake \ 46 + --replace "\''${_IMPORT_PREFIX}/lib/libclang." "$lib/lib/libclang." 47 48 mkdir -p $python/bin $python/share/clang/ 49 mv $out/bin/{git-clang-format,scan-view} $python/bin
+2
pkgs/development/compilers/llvm/4/clang/default.nix
··· 59 60 # Move libclang to 'lib' output 61 moveToOutput "lib/libclang.*" "$lib" 62 63 mkdir -p $python/bin $python/share/clang/ 64 mv $out/bin/{git-clang-format,scan-view} $python/bin
··· 59 60 # Move libclang to 'lib' output 61 moveToOutput "lib/libclang.*" "$lib" 62 + substituteInPlace $out/lib/cmake/clang/ClangTargets-release.cmake \ 63 + --replace "\''${_IMPORT_PREFIX}/lib/libclang." "$lib/lib/libclang." 64 65 mkdir -p $python/bin $python/share/clang/ 66 mv $out/bin/{git-clang-format,scan-view} $python/bin
+2
pkgs/development/compilers/llvm/5/clang/default.nix
··· 60 61 # Move libclang to 'lib' output 62 moveToOutput "lib/libclang.*" "$lib" 63 64 mkdir -p $python/bin $python/share/clang/ 65 mv $out/bin/{git-clang-format,scan-view} $python/bin
··· 60 61 # Move libclang to 'lib' output 62 moveToOutput "lib/libclang.*" "$lib" 63 + substituteInPlace $out/lib/cmake/clang/ClangTargets-release.cmake \ 64 + --replace "\''${_IMPORT_PREFIX}/lib/libclang." "$lib/lib/libclang." 65 66 mkdir -p $python/bin $python/share/clang/ 67 mv $out/bin/{git-clang-format,scan-view} $python/bin
+2 -2
pkgs/development/interpreters/guile/default.nix
··· 10 11 (rec { 12 name = "guile-${version}"; 13 - version = "2.2.0"; 14 15 src = fetchurl { 16 url = "mirror://gnu/guile/${name}.tar.xz"; 17 - sha256 = "05dmvhd1y135x7w5qfw4my42cfp6l8bbhjfxvchcc1cbdvzri0f1"; 18 }; 19 20 outputs = [ "out" "dev" "info" ];
··· 10 11 (rec { 12 name = "guile-${version}"; 13 + version = "2.2.3"; 14 15 src = fetchurl { 16 url = "mirror://gnu/guile/${name}.tar.xz"; 17 + sha256 = "11j01agvnci2cx32wwpqs9078856yxmvs15gcsz7ganpkj2ahlw3"; 18 }; 19 20 outputs = [ "out" "dev" "info" ];
+4 -3
pkgs/development/libraries/libnftnl/default.nix
··· 1 { stdenv, fetchurl, pkgconfig, libmnl }: 2 3 stdenv.mkDerivation rec { 4 - name = "libnftnl-1.0.8"; 5 6 src = fetchurl { 7 - url = "http://netfilter.org/projects/libnftnl/files/${name}.tar.bz2"; 8 - sha256 = "0f10cfiyl4c0f8k3brxfrw28x7a6qvrakaslg4jgqncwxycxggg6"; 9 }; 10 11 nativeBuildInputs = [ pkgconfig ];
··· 1 { stdenv, fetchurl, pkgconfig, libmnl }: 2 3 stdenv.mkDerivation rec { 4 + version = "1.0.9"; 5 + name = "libnftnl-${version}"; 6 7 src = fetchurl { 8 + url = "https://netfilter.org/projects/libnftnl/files/${name}.tar.bz2"; 9 + sha256 = "0d9nkdbdck8sg6msysqyv3m9kjr9sjif5amf26dfa0g3mqjdihgy"; 10 }; 11 12 nativeBuildInputs = [ pkgconfig ];
+38 -8
pkgs/os-specific/linux/apparmor/default.nix
··· 2 , pkgconfig, which 3 , flex, bison 4 , linuxHeaders ? stdenv.cc.libc.linuxHeaders 5 - , pythonPackages 6 , perl 7 , swig 8 , pam 9 }: 10 11 let 12 - 13 apparmor-series = "2.12"; 14 apparmor-patchver = "0"; 15 apparmor-version = apparmor-series + "." + apparmor-patchver; ··· 46 flex 47 pkgconfig 48 swig 49 which 50 ]; 51 52 buildInputs = [ 53 perl 54 - pythonPackages.python 55 ]; 56 57 # required to build apparmor-parser ··· 61 substituteInPlace ./libraries/libapparmor/src/Makefile.am --replace "/usr/include/netinet/in.h" "${stdenv.cc.libc.dev}/include/netinet/in.h" 62 substituteInPlace ./libraries/libapparmor/src/Makefile.in --replace "/usr/include/netinet/in.h" "${stdenv.cc.libc.dev}/include/netinet/in.h" 63 ''; 64 - 65 postPatch = "cd ./libraries/libapparmor"; 66 configureFlags = "--with-python --with-perl"; 67 ··· 83 84 buildInputs = [ 85 perl 86 - pythonPackages.python 87 libapparmor 88 libapparmor.python 89 ]; ··· 95 96 postInstall = '' 97 for prog in aa-audit aa-autodep aa-cleanprof aa-complain aa-disable aa-enforce aa-genprof aa-logprof aa-mergeprof aa-status aa-unconfined ; do 98 - wrapProgram $out/bin/$prog --prefix PYTHONPATH : "$out/lib/${pythonPackages.python.libPrefix}/site-packages:$PYTHONPATH" 99 done 100 101 for prog in aa-notify ; do ··· 106 meta = apparmor-meta "user-land utilities"; 107 }; 108 109 apparmor-parser = stdenv.mkDerivation { 110 name = "apparmor-parser-${apparmor-version}"; 111 src = apparmor-sources; ··· 172 in 173 174 { 175 - inherit libapparmor apparmor-utils apparmor-parser apparmor-pam 176 - apparmor-profiles apparmor-kernel-patches; 177 }
··· 2 , pkgconfig, which 3 , flex, bison 4 , linuxHeaders ? stdenv.cc.libc.linuxHeaders 5 + , python 6 + , gawk 7 , perl 8 , swig 9 + , ncurses 10 , pam 11 }: 12 13 let 14 apparmor-series = "2.12"; 15 apparmor-patchver = "0"; 16 apparmor-version = apparmor-series + "." + apparmor-patchver; ··· 47 flex 48 pkgconfig 49 swig 50 + ncurses 51 which 52 ]; 53 54 buildInputs = [ 55 perl 56 + python 57 ]; 58 59 # required to build apparmor-parser ··· 63 substituteInPlace ./libraries/libapparmor/src/Makefile.am --replace "/usr/include/netinet/in.h" "${stdenv.cc.libc.dev}/include/netinet/in.h" 64 substituteInPlace ./libraries/libapparmor/src/Makefile.in --replace "/usr/include/netinet/in.h" "${stdenv.cc.libc.dev}/include/netinet/in.h" 65 ''; 66 postPatch = "cd ./libraries/libapparmor"; 67 configureFlags = "--with-python --with-perl"; 68 ··· 84 85 buildInputs = [ 86 perl 87 + python 88 libapparmor 89 libapparmor.python 90 ]; ··· 96 97 postInstall = '' 98 for prog in aa-audit aa-autodep aa-cleanprof aa-complain aa-disable aa-enforce aa-genprof aa-logprof aa-mergeprof aa-status aa-unconfined ; do 99 + wrapProgram $out/bin/$prog --prefix PYTHONPATH : "$out/lib/${python.libPrefix}/site-packages:$PYTHONPATH" 100 done 101 102 for prog in aa-notify ; do ··· 107 meta = apparmor-meta "user-land utilities"; 108 }; 109 110 + apparmor-bin-utils = stdenv.mkDerivation { 111 + name = "apparmor-bin-utils-${apparmor-version}"; 112 + src = apparmor-sources; 113 + 114 + nativeBuildInputs = [ 115 + pkgconfig 116 + libapparmor 117 + gawk 118 + which 119 + ]; 120 + 121 + buildInputs = [ 122 + libapparmor 123 + ]; 124 + 125 + prePatch = prePatchCommon; 126 + postPatch = "cd ./binutils"; 127 + makeFlags = ''LANGS= USE_SYSTEM=1''; 128 + installFlags = ''DESTDIR=$(out) BINDIR=$(out)/bin''; 129 + 130 + meta = apparmor-meta "binary user-land utilities"; 131 + }; 132 + 133 apparmor-parser = stdenv.mkDerivation { 134 name = "apparmor-parser-${apparmor-version}"; 135 src = apparmor-sources; ··· 196 in 197 198 { 199 + inherit 200 + libapparmor 201 + apparmor-utils 202 + apparmor-bin-utils 203 + apparmor-parser 204 + apparmor-pam 205 + apparmor-profiles 206 + apparmor-kernel-patches; 207 }
+2 -2
pkgs/os-specific/linux/audit/default.nix
··· 6 assert enablePython -> python != null; 7 8 stdenv.mkDerivation rec { 9 - name = "audit-2.8.1"; 10 11 src = fetchurl { 12 url = "http://people.redhat.com/sgrubb/audit/${name}.tar.gz"; 13 - sha256 = "0v1vng43fjsh158zb5k5d81ngn4p4jmj1247m27pk0bfzy9dxv0v"; 14 }; 15 16 outputs = [ "bin" "dev" "out" "man" ];
··· 6 assert enablePython -> python != null; 7 8 stdenv.mkDerivation rec { 9 + name = "audit-2.8.2"; 10 11 src = fetchurl { 12 url = "http://people.redhat.com/sgrubb/audit/${name}.tar.gz"; 13 + sha256 = "1fmw8whraz1q3y3z5mgdpgsa3wz6r3zq0kgsgbc9xvmgfwmrpdb7"; 14 }; 15 16 outputs = [ "bin" "dev" "out" "man" ];
+2 -2
pkgs/os-specific/linux/kmod/default.nix
··· 6 7 in stdenv.mkDerivation rec { 8 name = "kmod-${version}"; 9 - version = "24"; 10 11 src = fetchurl { 12 url = "mirror://kernel/linux/utils/kernel/kmod/${name}.tar.xz"; 13 - sha256 = "15xkkkzvca9flvkm48gkh8y8f13vlm3sl7nz9ydc7b3jy4fqs2v1"; 14 }; 15 16 nativeBuildInputs = [ autoreconfHook pkgconfig libxslt ];
··· 6 7 in stdenv.mkDerivation rec { 8 name = "kmod-${version}"; 9 + version = "25"; 10 11 src = fetchurl { 12 url = "mirror://kernel/linux/utils/kernel/kmod/${name}.tar.xz"; 13 + sha256 = "1kgixs4m3jvwk7fb3d18n6j77qhgi9qfv4csj35rs5ancr4ycrbi"; 14 }; 15 16 nativeBuildInputs = [ autoreconfHook pkgconfig libxslt ];
+2 -2
pkgs/os-specific/linux/util-linux/default.nix
··· 5 version = lib.concatStringsSep "." ([ majorVersion ] 6 ++ lib.optional (patchVersion != "") patchVersion); 7 majorVersion = "2.31"; 8 - patchVersion = ""; 9 10 in stdenv.mkDerivation rec { 11 name = "util-linux-${version}"; 12 13 src = fetchurl { 14 url = "mirror://kernel/linux/utils/util-linux/v${majorVersion}/${name}.tar.xz"; 15 - sha256 = "12nw108xjhm63sh2n5a0qs33vpvbvb6rln96l9j50p7wykf7rgpr"; 16 }; 17 18 patches = [
··· 5 version = lib.concatStringsSep "." ([ majorVersion ] 6 ++ lib.optional (patchVersion != "") patchVersion); 7 majorVersion = "2.31"; 8 + patchVersion = "1"; 9 10 in stdenv.mkDerivation rec { 11 name = "util-linux-${version}"; 12 13 src = fetchurl { 14 url = "mirror://kernel/linux/utils/util-linux/v${majorVersion}/${name}.tar.xz"; 15 + sha256 = "04fzrnrr3pvqskvjn9f81y0knh0jvvqx4lmbz5pd4lfdm5pv2l8s"; 16 }; 17 18 patches = [
+3 -2
pkgs/top-level/all-packages.nix
··· 12511 12512 microcodeIntel = callPackage ../os-specific/linux/microcode/intel.nix { }; 12513 12514 - inherit (callPackages ../os-specific/linux/apparmor { pythonPackages = python27Packages; swig = swig2; }) 12515 - libapparmor apparmor-pam apparmor-parser apparmor-profiles apparmor-utils; 12516 12517 atop = callPackage ../os-specific/linux/atop { }; 12518
··· 12511 12512 microcodeIntel = callPackage ../os-specific/linux/microcode/intel.nix { }; 12513 12514 + inherit (callPackages ../os-specific/linux/apparmor { python = python3; }) 12515 + libapparmor apparmor-utils apparmor-bin-utils apparmor-parser apparmor-pam 12516 + apparmor-profiles apparmor-kernel-patches; 12517 12518 atop = callPackage ../os-specific/linux/atop { }; 12519