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