From e0b493ef387a8ac6923571860ff03b399c61fd83 Mon Sep 17 00:00:00 2001 From: Piotr Kwiecinski <2151333+piotrkwiecinski@users.noreply.github.com> Date: Wed, 27 Aug 2025 08:49:17 +0200 Subject: [PATCH] phpExtensions.gnupg fix build --- .../php-packages/gnupg/default.nix | 5 ++++ .../gnupg/missing-new-line-test.patch | 28 +++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 pkgs/development/php-packages/gnupg/missing-new-line-test.patch diff --git a/pkgs/development/php-packages/gnupg/default.nix b/pkgs/development/php-packages/gnupg/default.nix index 07e62f03d76a..9cfa7e0eaafb 100644 --- a/pkgs/development/php-packages/gnupg/default.nix +++ b/pkgs/development/php-packages/gnupg/default.nix @@ -43,6 +43,11 @@ buildPecl { --replace-fail 'string(12)' 'string(${toString (lib.stringLength "${gnupg}/bin/gpg")})' ''; + patches = [ + # https://github.com/php-gnupg/php-gnupg/issues/62 + ./missing-new-line-test.patch + ]; + doCheck = true; meta = { diff --git a/pkgs/development/php-packages/gnupg/missing-new-line-test.patch b/pkgs/development/php-packages/gnupg/missing-new-line-test.patch new file mode 100644 index 000000000000..5a31f7c931d5 --- /dev/null +++ b/pkgs/development/php-packages/gnupg/missing-new-line-test.patch @@ -0,0 +1,28 @@ +diff --git a/tests/gnupg_oo_sign_clear.phpt b/tests/gnupg_oo_sign_clear.phpt +index 4f9b79c..05fda25 100644 +--- a/tests/gnupg_oo_sign_clear.phpt ++++ b/tests/gnupg_oo_sign_clear.phpt +@@ -38,8 +38,7 @@ array(1) { + int(0) + } + } +-string(8) "foo bar +-" ++string(7) "foo bar" + --CLEAN-- +