Merge pull request #120731 from helsinki-systems/upd/subversion

subversion: 1.12.2 -> 1.14.1
This commit is contained in:
Robert Schütz 2021-04-29 19:36:33 +02:00 committed by GitHub
commit e1ff5c3d8c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 39 additions and 22 deletions

View file

@ -1,15 +0,0 @@
Patch included in advisory @ https://subversion.apache.org/security/CVE-2020-17525-advisory.txt
--- a/subversion/libsvn_repos/config_file.c
+++ b/subversion/libsvn_repos/config_file.c
@@ -237,6 +237,10 @@ get_repos_config(svn_stream_t **stream,
{
/* Search for a repository in the full path. */
repos_root_dirent = svn_repos_find_root_path(dirent, scratch_pool);
+ if (repos_root_dirent == NULL)
+ return svn_error_trace(handle_missing_file(stream, checksum, access,
+ url, must_exist,
+ svn_node_none));
/* Attempt to open a repository at repos_root_dirent. */
SVN_ERR(svn_repos_open3(&access->repos, repos_root_dirent, NULL,

View file

@ -6,13 +6,13 @@
, javahlBindings ? false
, saslSupport ? false
, lib, stdenv, fetchurl, apr, aprutil, zlib, sqlite, openssl, lz4, utf8proc
, apacheHttpd ? null, expat, swig ? null, jdk ? null, python ? null, perl ? null
, apacheHttpd ? null, expat, swig ? null, jdk ? null, python3 ? null, py3c ? null, perl ? null
, sasl ? null, serf ? null
}:
assert bdbSupport -> aprutil.bdbSupport;
assert httpServer -> apacheHttpd != null;
assert pythonBindings -> swig != null && python != null;
assert pythonBindings -> swig != null && python3 != null && py3c != null;
assert javahlBindings -> jdk != null && perl != null;
let
@ -31,7 +31,7 @@ let
buildInputs = [ zlib apr aprutil sqlite openssl lz4 utf8proc ]
++ lib.optional httpSupport serf
++ lib.optional pythonBindings python
++ lib.optionals pythonBindings [ python3 py3c ]
++ lib.optional perlBindings perl
++ lib.optional saslSupport sasl;
@ -91,7 +91,7 @@ let
enableParallelBuilding = true;
checkInputs = [ python ];
checkInputs = [ python3 ];
doCheck = false; # fails 10 out of ~2300 tests
meta = with lib; {
@ -116,8 +116,7 @@ in {
};
subversion = common {
version = "1.12.2";
sha256 = "0wgpw3kzsiawzqk4y0xgh1z93kllxydgv4lsviim45y5wk4bbl1v";
extraPatches = [ ./CVE-2020-17525.patch ];
version = "1.14.1";
sha256 = "1ag1hvcm9q92kgalzbbgcsq9clxnzmbj9nciz9lmabjx4lyajp9c";
};
}

View file

@ -0,0 +1,31 @@
{ lib, stdenv, fetchFromGitHub, python2, python3 }:
stdenv.mkDerivation rec {
pname = "py3c";
version = "1.3.1";
src = fetchFromGitHub {
owner = "encukou";
repo = pname;
rev = "v${version}";
sha256 = "04i2z7hrig78clc59q3i1z2hh24g7z1bfvxznlzxv00d4s57nhpi";
};
makeFlags = [
"prefix=${placeholder "out"}"
];
doCheck = true;
checkInputs = [
python2
python3
];
meta = with lib; {
homepage = "https://github.com/encukou/py3c";
description = "Python 2/3 compatibility layer for C extensions";
license = licenses.mit;
maintainers = with maintainers; [ ajs124 ];
};
}

View file

@ -12028,6 +12028,8 @@ in
pypy27Packages = pypy27.pkgs;
pypy3Packages = pypy3.pkgs;
py3c = callPackage ../development/libraries/py3c { };
pythonManylinuxPackages = callPackage ./../development/interpreters/python/manylinux { };
update-python-libraries = callPackage ../development/interpreters/python/update-python-libraries { };