From 10d240d417961ab700b99adc5a87e2d3d43ddbb1 Mon Sep 17 00:00:00 2001 From: Michael Daniels Date: Sat, 25 Apr 2026 11:19:51 -0400 Subject: [PATCH 1/2] aprutil: unbreak Darwin/LLVM compilation --- pkgs/by-name/ap/aprutil/package.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/by-name/ap/aprutil/package.nix b/pkgs/by-name/ap/aprutil/package.nix index f140e7a61493..58af8e3fba42 100644 --- a/pkgs/by-name/ap/aprutil/package.nix +++ b/pkgs/by-name/ap/aprutil/package.nix @@ -2,6 +2,7 @@ lib, stdenv, fetchurl, + fetchpatch, makeWrapper, apr, expat, @@ -35,6 +36,11 @@ stdenv.mkDerivation (finalAttrs: { ./fix-libxcrypt-build.patch # Fix incorrect Berkeley DB detection with newer versions of clang due to implicit `int` on main errors. ./clang-bdb.patch + # Fix error with missing function prototype + (fetchpatch { + url = "https://github.com/apache/apr-util/commit/e67caa006c75181b45b761cd50294cb3c8e18f1a.patch?full_index=1"; + hash = "sha256-fwKT7mGPHIgJ5uG/KAOOE/38FSNfow+GJgHCxcp9mgI="; + }) ] ++ lib.optional stdenv.hostPlatform.isFreeBSD ./include-static-dependencies.patch; From c4ab7684495355d7b721157e70482021a2f05c51 Mon Sep 17 00:00:00 2001 From: Michael Daniels Date: Sat, 25 Apr 2026 11:19:51 -0400 Subject: [PATCH 2/2] aprutil: unvendor patch --- pkgs/by-name/ap/aprutil/clang-bdb.patch | 12 ------------ pkgs/by-name/ap/aprutil/package.nix | 6 +++++- 2 files changed, 5 insertions(+), 13 deletions(-) delete mode 100644 pkgs/by-name/ap/aprutil/clang-bdb.patch diff --git a/pkgs/by-name/ap/aprutil/clang-bdb.patch b/pkgs/by-name/ap/aprutil/clang-bdb.patch deleted file mode 100644 index 02e9c8378c63..000000000000 --- a/pkgs/by-name/ap/aprutil/clang-bdb.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -ur a/build/dbm.m4 b/build/dbm.m4 ---- a/build/dbm.m4 2013-11-23 13:00:53.000000000 -0500 -+++ b/build/dbm.m4 2023-10-22 20:16:37.764571446 -0400 -@@ -235,7 +235,7 @@ - #include - #include - #include <$apu_try_berkeley_db_header> --main () -+int main () - { - int major, minor, patch; - diff --git a/pkgs/by-name/ap/aprutil/package.nix b/pkgs/by-name/ap/aprutil/package.nix index 58af8e3fba42..1426ed26556f 100644 --- a/pkgs/by-name/ap/aprutil/package.nix +++ b/pkgs/by-name/ap/aprutil/package.nix @@ -35,7 +35,11 @@ stdenv.mkDerivation (finalAttrs: { patches = [ ./fix-libxcrypt-build.patch # Fix incorrect Berkeley DB detection with newer versions of clang due to implicit `int` on main errors. - ./clang-bdb.patch + (fetchpatch { + url = "https://github.com/apache/apr-util/commit/2d838ff7319bd384a0b177f40ac19c4b6c81436d.patch?full_index=1"; + hash = "sha256-/N6V5D1d9R6AVjHUwy3Ne839D3ZSsF3Hpn8W9sx1sXM="; + excludes = [ "CHANGES" ]; + }) # Fix error with missing function prototype (fetchpatch { url = "https://github.com/apache/apr-util/commit/e67caa006c75181b45b761cd50294cb3c8e18f1a.patch?full_index=1";