Skip to content

Commit

Permalink
pinentry-mac: fix building for apple silicon
Browse files Browse the repository at this point in the history
  • Loading branch information
sirn authored and kencu committed Jan 13, 2021
1 parent 4e31b44 commit d9631c7
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 5 deletions.
13 changes: 8 additions & 5 deletions aqua/pinentry-mac/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ PortGroup xcode 1.0
PortGroup xcodeversion 1.0

github.setup GPGTools pinentry-mac 0.9.4 v
revision 0
revision 1

This comment has been minimized.

Copy link
@jmroot

jmroot Jan 14, 2021

Member

The revision should only be increased if there's a reason someone who already had the port installed would need to reinstall it.

categories aqua security
license GPL-3+
maintainers {ionic @Ionic}
Expand All @@ -19,14 +19,17 @@ long_description ${description} \
homepage https://github.com/GPGTools/pinentry-mac

checksums rmd160 b4023708d1320bd1b0ad5ce0dc35ec71fc68b33c \
sha256 73e649213e17dd46340f202453ed835166245b63f0cf2a78203d51d620b2742c
sha256 73e649213e17dd46340f202453ed835166245b63f0cf2a78203d51d620b2742c \
size 284942

# Utilizes ARC which is x86_64-only. #45949
supported_archs x86_64
# Utilizes ARC which is x86_64/arm64-only. #45949
supported_archs x86_64 arm64
installs_libs no

patchfiles patch-includes-quotes.diff \
patch-includes-quotes-2.diff
patch-includes-quotes-2.diff \
patch-apple-silicon.diff

patch.pre_args -p1

# This is a temporary kludge. The new Xcode build system fails to
Expand Down
35 changes: 35 additions & 0 deletions aqua/pinentry-mac/files/patch-apple-silicon.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
From cc38341adc179a26ac3ea3754a4013afb9681930 Mon Sep 17 00:00:00 2001
From: Kridsada Thanabulpong <[email protected]>
Date: Wed, 30 Dec 2020 19:10:46 +0900
Subject: [PATCH] Add arm64 to build targets

This allows pinentry-mac to be built on Apple Silicon with macOS 11
---
pinentry-mac.xcodeproj/project.pbxproj | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pinentry-mac.xcodeproj/project.pbxproj b/pinentry-mac.xcodeproj/project.pbxproj
index f8f55b3..861fe43 100755
--- a/pinentry-mac.xcodeproj/project.pbxproj
+++ b/pinentry-mac.xcodeproj/project.pbxproj
@@ -421,7 +421,7 @@
);
PREBINDING = NO;
SDKROOT = macosx;
- VALID_ARCHS = "i386 x86_64 ppc";
+ VALID_ARCHS = "i386 x86_64 ppc arm64";
};
name = Debug;
};
@@ -444,7 +444,7 @@
);
PREBINDING = NO;
SDKROOT = macosx;
- VALID_ARCHS = "i386 x86_64 ppc";
+ VALID_ARCHS = "i386 x86_64 ppc arm64";
};
name = Release;
};
--
2.29.2

0 comments on commit d9631c7

Please sign in to comment.