From 8a8a25b795d80d4ee48efc58906edd3fc57327b1 Mon Sep 17 00:00:00 2001 From: Jacob Heider Date: Fri, 21 Jun 2024 14:27:06 -0400 Subject: [PATCH] fix(libgpg-error) closes #6462 --- projects/gnupg.org/libgpg-error/package.yml | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/projects/gnupg.org/libgpg-error/package.yml b/projects/gnupg.org/libgpg-error/package.yml index 301d9ce6..f07c6835 100644 --- a/projects/gnupg.org/libgpg-error/package.yml +++ b/projects/gnupg.org/libgpg-error/package.yml @@ -17,11 +17,20 @@ provides: - bin/yat2m build: - script: | - ./configure --prefix={{prefix}} --enable-install-gpg-error-config - make - make check - make install + script: + - run: | + sed -i -e '/#include "gpgrt-int.h"/a\ + \ + #if defined (__APPLE__)\ + extern char** environ;\ + #endif' \ + spawn-posix.c + if: '>=1.50' + working-directory: src + - ./configure --prefix={{prefix}} --enable-install-gpg-error-config + - make + - make check + - make install test: script: test "$(gpg-error 56)" = "$OUTPUT"