3
0
Fork 0
forked from mirrors/nixpkgs

cadaver: Fix building with current openssl

...by using the already-packaged (newer) version of neon as it is also done for
openSUSE[1].

[1] https://build.opensuse.org/package/show/openSUSE:Factory/cadaver
This commit is contained in:
Christian Lütke-Stetzkamp 2021-03-06 21:47:30 +01:00
parent 560ee846ac
commit 060efbe394
3 changed files with 27 additions and 5 deletions

View file

@ -0,0 +1,20 @@
--- a/configure.orig
+++ b/configure
@@ -9595,7 +9595,7 @@ fi
$as_echo "$ne_cv_lib_neon" >&6; }
if test "$ne_cv_lib_neon" = "yes"; then
ne_cv_lib_neonver=no
- for v in 27 28 29; do
+ for v in 27 28 29 30 31; do
case $ne_libver in
0.$v.*) ne_cv_lib_neonver=yes ;;
esac
@@ -10328,7 +10328,7 @@ fi
$as_echo "$ne_cv_lib_neon" >&6; }
if test "$ne_cv_lib_neon" = "yes"; then
ne_cv_lib_neonver=no
- for v in 27 28 29; do
+ for v in 27 28 29 30 31; do
case $ne_libver in
0.$v.*) ne_cv_lib_neonver=yes ;;
esac

View file

@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl, fetchpatch, openssl, readline }:
{ lib, stdenv, fetchurl, fetchpatch, neon, pkg-config, readline, zlib}:
stdenv.mkDerivation rec {
name = "cadaver-0.23.3";
@ -14,11 +14,15 @@ stdenv.mkDerivation rec {
name = "disable-sslv2.patch";
sha256 = "1qx65hv584wdarks51yhd3y38g54affkphm5wz27xiz4nhmbssrr";
})
# Cadaver also works with newer versions of neon than stated
# in the configure script
./configure.patch
];
configureFlags = [ "--with-ssl" "--with-readline" ];
buildInputs = [ openssl readline ];
nativeBuildInputs = [ pkg-config ];
buildInputs = [ neon readline zlib ];
meta = with lib; {
description = "A command-line WebDAV client";

View file

@ -3116,9 +3116,7 @@ in
cabextract = callPackage ../tools/archivers/cabextract { };
cadaver = callPackage ../tools/networking/cadaver {
openssl = openssl_1_0_2;
};
cadaver = callPackage ../tools/networking/cadaver { };
davix = callPackage ../tools/networking/davix { };