From ac6310118897153b1e00d5ed162f223741bb9f84 Mon Sep 17 00:00:00 2001 From: Renaud Date: Thu, 9 May 2019 15:59:18 +0200 Subject: [PATCH] subversion: fix configure missing APR_INT64_T_FMT configurePhase fails when building Python bindings or subversionClient > configure: error: failed to recognize APR_INT64_T_FMT on this platform Adding "-P" CPPFLAG solves the issue. See also: https://issues.apache.org/jira/browse/SVN-4813 --- pkgs/applications/version-management/subversion/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/applications/version-management/subversion/default.nix b/pkgs/applications/version-management/subversion/default.nix index 928e9f7d0a7..81949f95106 100644 --- a/pkgs/applications/version-management/subversion/default.nix +++ b/pkgs/applications/version-management/subversion/default.nix @@ -38,6 +38,11 @@ let patches = [ ./apr-1.patch ]; + # We are hitting the following issue even with APR 1.6.x + # -> https://issues.apache.org/jira/browse/SVN-4813 + # "-P" CPPFLAG is needed to build Python bindings and subversionClient + CPPFLAGS = [ "-P" ]; + configureFlags = [ (stdenv.lib.withFeature bdbSupport "berkeley-db") (stdenv.lib.withFeatureAs httpServer "apxs" "${apacheHttpd.dev}/bin/apxs")