Page MenuHome GnuPG
Feed Advanced Search

May 12 2021

werner edited projects for T5436: gpg-agent 2.3.1: PIN caching not working for decrypt operations, added: gnupg (gpg23), MacOS; removed gpgagent.

The pincache is actually not what you think it is. It is only used to allow switching between different application on a Yubikey which reqieres a new VERIFY command after switching back to the first application the card. What you feel as caching is the state of the card, which usually keeps its verification state until the card is powered down.

May 12 2021, 5:52 PM · gnupg24, yubikey, Bug Report

May 10 2021

werner reopened T5415: YubiKey no longer recognized in GnuPG 2.3.1 on macOS 10.15.7 as "Open".

(I disabled this boor and restored the state)

May 10 2021, 6:41 PM · MacOS, yubikey, Bug Report
gillcovid19 closed T5415: YubiKey no longer recognized in GnuPG 2.3.1 on macOS 10.15.7 as Resolved.
May 10 2021, 12:41 PM · MacOS, yubikey, Bug Report

May 6 2021

brianacton added a comment to T5409: scdaemon: 'Operation not supported by device' error under macOS after upgrading to 2.3.1.

I am also a MacOS Big Sur user who recently upgraded to 2.3.1 and had problems after upgrading. In my use case, I use the yubikey as the authentication for pass password manager which uses gpg under the hood.

May 6 2021, 10:15 PM · MacOS, Support, scd
werner added a comment to T5415: YubiKey no longer recognized in GnuPG 2.3.1 on macOS 10.15.7.

That would required that we also add an option --enable-ccid-driver - better tell the macOS folks to put diable-ccid-driver into /etc/gnupg/scdaemon.conf

May 6 2021, 9:06 AM · MacOS, yubikey, Bug Report
gniibe added a comment to T5415: YubiKey no longer recognized in GnuPG 2.3.1 on macOS 10.15.7.

Or... we could add --disable-ccid-driver as default for macOS.

May 6 2021, 3:56 AM · MacOS, yubikey, Bug Report
gniibe claimed T5415: YubiKey no longer recognized in GnuPG 2.3.1 on macOS 10.15.7.
May 6 2021, 3:55 AM · MacOS, yubikey, Bug Report
gniibe added a comment to T5415: YubiKey no longer recognized in GnuPG 2.3.1 on macOS 10.15.7.

If it is built with LIBUSB enabled, please try adding the following to your scdaemon.conf:

disable-ccid
May 6 2021, 3:54 AM · MacOS, yubikey, Bug Report

May 3 2021

colemickens added a comment to T5409: scdaemon: 'Operation not supported by device' error under macOS after upgrading to 2.3.1.

I'm referring to this: https://www.gnupg.org/howtos/card-howto/en/ch02s03.html

May 3 2021, 6:56 AM · MacOS, Support, scd
gniibe added a comment to T5409: scdaemon: 'Operation not supported by device' error under macOS after upgrading to 2.3.1.

@colemickens We don't maintain any ccid udev rules in GnuPG. What do you refer?

May 3 2021, 6:29 AM · MacOS, Support, scd

Apr 30 2021

KasparEtter added a comment to T5415: YubiKey no longer recognized in GnuPG 2.3.1 on macOS 10.15.7.

Also let me know if there are any daemons I have to kill/restart when switching between GnuPG versions by changing the $PATH. Whenever I have problems with my YubiKey, I run gpgconf --kill gpg-agent, which I also executed when I switched from version 2.2.27 back to 2.3.1 but I have no idea whether this is required or sufficient.

Apr 30 2021, 11:03 AM · MacOS, yubikey, Bug Report
KasparEtter added a comment to T5415: YubiKey no longer recognized in GnuPG 2.3.1 on macOS 10.15.7.
$ gpg --version
gpg (GnuPG) 2.3.1
libgcrypt 1.9.3
$ gpg --debug ipc --card-status
gpg: reading options from '/Users/user/.gnupg/gpg.conf'
gpg: reading options from '[cmdline]'
gpg: enabled debug flags: ipc
gpg: DBG: chan_3 <- OK Pleased to meet you, process 15218
gpg: DBG: connection to the gpg-agent established
gpg: DBG: chan_3 -> RESET
gpg: DBG: chan_3 <- OK
gpg: DBG: chan_3 -> OPTION ttyname=/dev/ttys007
gpg: DBG: chan_3 <- OK
gpg: DBG: chan_3 -> OPTION ttytype=xterm-256color
gpg: DBG: chan_3 <- OK
gpg: DBG: chan_3 -> OPTION lc-ctype=en_US.UTF-8
gpg: DBG: chan_3 <- OK
gpg: DBG: chan_3 -> OPTION lc-messages=en_US.UTF-8
gpg: DBG: chan_3 <- OK
gpg: DBG: chan_3 -> GETINFO version
gpg: DBG: chan_3 <- D 2.3.1
gpg: DBG: chan_3 <- OK
gpg: DBG: chan_3 -> OPTION allow-pinentry-notify
gpg: DBG: chan_3 <- OK
gpg: DBG: chan_3 -> OPTION agent-awareness=2.1.0
gpg: DBG: chan_3 <- OK
gpg: DBG: chan_3 -> SCD GETINFO version
gpg: DBG: chan_3 <- D 2.3.1
gpg: DBG: chan_3 <- OK
gpg: DBG: chan_3 -> SCD SERIALNO
gpg: DBG: chan_3 <- ERR 100696144 Operation not supported by device <SCD>
gpg: selecting card failed: Operation not supported by device
gpg: OpenPGP card not available: Operation not supported by device
gpg: secmem usage: 0/32768 bytes in 0 blocks
Apr 30 2021, 10:58 AM · MacOS, yubikey, Bug Report
werner added a project to T5415: YubiKey no longer recognized in GnuPG 2.3.1 on macOS 10.15.7: MacOS.

Run gpg --debug ipc --card-status to quickly see the communication with the scdaemon.

Apr 30 2021, 10:47 AM · MacOS, yubikey, Bug Report

Apr 28 2021

colemickens added a comment to T5409: scdaemon: 'Operation not supported by device' error under macOS after upgrading to 2.3.1.

@gniibe can you provide any commentary on why the gnupg ccid udev rule is so much smaller than the one debian maintains? Is the debian one considered authoritative these days?

Apr 28 2021, 11:23 PM · MacOS, Support, scd
colemickens added a comment to T5409: scdaemon: 'Operation not supported by device' error under macOS after upgrading to 2.3.1.

Thanks @gniibe, that's very helpful advice and pointers. Very appreciated, cheers.

Apr 28 2021, 5:03 AM · MacOS, Support, scd
gniibe added a comment to T5409: scdaemon: 'Operation not supported by device' error under macOS after upgrading to 2.3.1.

Perhaps, if a distro haven't offered setting of USB, it would be better to configure GnuPG build with --disable-ccid-driver and only support scdaemon with PC/SC. GPG for Windows does so.

Apr 28 2021, 4:05 AM · MacOS, Support, scd
gniibe added a comment to T5409: scdaemon: 'Operation not supported by device' error under macOS after upgrading to 2.3.1.
  1. It's a breaking change for system with both of PC/SC and CCID. T4673 due to T3300
    • If you configure with no libusb, users don't need 'disable-ccid' option.
  2. I don't know how "wide".
  3. In Debian, it is maintained here: https://salsa.debian.org/debian/gnupg2/-/blob/debian/main/debian/scdaemon.udev
  4. Yes.
Apr 28 2021, 3:59 AM · MacOS, Support, scd

Apr 26 2021

colemickens added a comment to T5409: scdaemon: 'Operation not supported by device' error under macOS after upgrading to 2.3.1.

Hi, as a contributor to NixOS I'd also like some guidance. I'm testing the 2.3 upgrade ahead of 2.4, and it "breaks" Yubikey UX that I know many of us use. This might be because we appear to not yet install gnupg's CCID udev rules installed. A few questions:

Apr 26 2021, 11:12 PM · MacOS, Support, scd

Apr 25 2021

cristianrivera added a comment to T5409: scdaemon: 'Operation not supported by device' error under macOS after upgrading to 2.3.1.

Thank you for the suggestion of disable-ccid that seems to have solved the problem.

Apr 25 2021, 9:08 PM · MacOS, Support, scd

Apr 23 2021

FrederickZh added a comment to T5409: scdaemon: 'Operation not supported by device' error under macOS after upgrading to 2.3.1.

I can confirm disable-ccid works, thank you!

Apr 23 2021, 9:25 AM · MacOS, Support, scd
werner closed T5409: scdaemon: 'Operation not supported by device' error under macOS after upgrading to 2.3.1 as Resolved.

Please have a look at the log:

Apr 23 2021, 9:08 AM · MacOS, Support, scd

Apr 20 2021

gniibe added a comment to T4900: OS X 10.12 and dyld: Library not loaded: /usr/local/lib/libgcrypt.20.dylib.

IIUC, with libgcrypt in LIBGCRYPT-1.8-BRANCH (not yet released) and libgcrypt 1.9.3, the build process works well (the problem with SIP has been handled).

Apr 20 2021, 2:27 AM · MacOS, libgcrypt, Bug Report
gniibe closed T5375: getentropy usage is forbidden by Apple, but is now being forced by libgcrypt as Resolved.
Apr 20 2021, 2:12 AM · MacOS, libgcrypt

Apr 19 2021

werner moved T5268: macOS getentropy from For 1.9 to Backlog on the libgcrypt board.
Apr 19 2021, 6:12 PM · libgcrypt, MacOS

Apr 15 2021

xandox added a comment to T5380: Tools needed during a build lack of CFLAGS was passed durring configure time.

Ok, thank you. I think task can be closed.

Apr 15 2021, 5:14 PM · MacOS, Bug Report
gniibe closed T5380: Tools needed during a build lack of CFLAGS was passed durring configure time as Resolved.

mkheader has CFLAGS_FOR_BUILD since libassuan 2.5.4.
gost-s-box has so since libgcrypt 1.9.0.

Apr 15 2021, 8:41 AM · MacOS, Bug Report

Apr 13 2021

xandox added a comment to T5380: Tools needed during a build lack of CFLAGS was passed durring configure time.

Ok.
But`CFLAGS_FOR_BUILD` not mentioned in build rule for mkheader

Apr 13 2021, 1:15 PM · MacOS, Bug Report
saurik added a comment to T5375: getentropy usage is forbidden by Apple, but is now being forced by libgcrypt.

I'm sorry I disappeared on this issue for two weeks; I just got reminded of it by seeing the e-mail with the status change. I've updated to the latest gcrypt (which is the commit with the patch, now pushed to the repository) and was able to upload this to Apple without it being flagged; thanks!

Apr 13 2021, 4:49 AM · MacOS, libgcrypt
gniibe changed the status of T5375: getentropy usage is forbidden by Apple, but is now being forced by libgcrypt from Open to Testing.
Apr 13 2021, 3:16 AM · MacOS, libgcrypt

Apr 12 2021

gniibe claimed T5380: Tools needed during a build lack of CFLAGS was passed durring configure time.
Apr 12 2021, 7:51 AM · MacOS, Bug Report
gniibe changed the status of T5365: --with-libgpg-error-prefix doesn't affect gpgrt-config path detection from Open to Testing.
Apr 12 2021, 6:13 AM · MacOS, gpgrt, Cross-Compiler, libgcrypt

Apr 8 2021

gniibe added a comment to T5380: Tools needed during a build lack of CFLAGS was passed durring configure time.

CC_FOR_BUILD is used for building executables for the build machine.
CC_FOR_BUILD may be different to CC (for target).

Apr 8 2021, 6:09 AM · MacOS, Bug Report

Apr 7 2021

xandox added a comment to T5380: Tools needed during a build lack of CFLAGS was passed durring configure time.

Referencing external patches is not sufficient

Apr 7 2021, 1:06 PM · MacOS, Bug Report
xandox added a comment to T5380: Tools needed during a build lack of CFLAGS was passed durring configure time.

What is vcpkg?

Apr 7 2021, 1:03 PM · MacOS, Bug Report
werner added a project to T5380: Tools needed during a build lack of CFLAGS was passed durring configure time: MacOS.

Sorry, I can't parse your message. Please describe the problem or feature requests. Referencing external patches is not sufficient. What is vcpkg?

Apr 7 2021, 12:23 PM · MacOS, Bug Report

Apr 6 2021

jukivili added a comment to T5369: GnuPG build on Apple with Clang.

Note that rndjent.c is already build with -O0 as can be seen in example above. That warning could be silenced by surrounding pragma with #ifdef __OPTIMIZE__ (with should be supported by GCC and Clang).

Apr 6 2021, 10:20 PM · libgcrypt, MacOS, Bug Report
werner triaged T5369: GnuPG build on Apple with Clang as Low priority.
Apr 6 2021, 12:10 PM · libgcrypt, MacOS, Bug Report

Apr 1 2021

werner added a project to T5370: Apple M1 and Symbol not found: __gcry_mpih_mul_1: arm.
Apr 1 2021, 11:07 AM · arm, MacOS, gnupg, Bug Report
werner triaged T5370: Apple M1 and Symbol not found: __gcry_mpih_mul_1 as Normal priority.
Apr 1 2021, 11:02 AM · arm, MacOS, gnupg, Bug Report
gniibe triaged T5375: getentropy usage is forbidden by Apple, but is now being forced by libgcrypt as Normal priority.
Apr 1 2021, 6:39 AM · MacOS, libgcrypt
gniibe added a comment to T5375: getentropy usage is forbidden by Apple, but is now being forced by libgcrypt.

IIUC... Could you please try this patch?

diff --git a/random/rndlinux.c b/random/rndlinux.c
index a7a78906..c20c5d4c 100644
--- a/random/rndlinux.c
+++ b/random/rndlinux.c
@@ -35,10 +35,13 @@
 #if defined(__APPLE__) && defined(__MACH__)
 #include <Availability.h>
 #ifdef __MAC_10_11
+#include <TargetConditionals.h>
+#if !defined(TARGET_OS_IPHONE) || TARGET_OS_IPHONE == 0
 extern int getentropy (void *buf, size_t buflen) __attribute__ ((weak_import));
 #define HAVE_GETENTROPY
 #endif
 #endif
+#endif
 #if defined(__linux__) || !defined(HAVE_GETENTROPY)
 #ifdef HAVE_SYSCALL
 # include <sys/syscall.h>
Apr 1 2021, 6:36 AM · MacOS, libgcrypt
gniibe claimed T5375: getentropy usage is forbidden by Apple, but is now being forced by libgcrypt.
Apr 1 2021, 5:58 AM · MacOS, libgcrypt
gniibe closed T5289: gen-lock-obj.sh uses echo -n from /bin/sh, which echos "-n" as Resolved.

Fixed in 1.42.

Apr 1 2021, 5:58 AM · MacOS, gpgrt, Bug Report

Mar 31 2021

gniibe added a comment to T5365: --with-libgpg-error-prefix doesn't affect gpgrt-config path detection.

I was wrong in my last comment. Escaping by another \ is needed.

Mar 31 2021, 4:09 AM · MacOS, gpgrt, Cross-Compiler, libgcrypt

Mar 30 2021

werner added a project to T5375: getentropy usage is forbidden by Apple, but is now being forced by libgcrypt: MacOS.
Mar 30 2021, 5:44 PM · MacOS, libgcrypt
werner added a comment to T5365: --with-libgpg-error-prefix doesn't affect gpgrt-config path detection.

A PATH with spaces is too Windowish (or macOS). IIRC, we had once checks that the used directories have proper names; we can expect this for build environment. Spaces in file names are horrible from a security POV it is just to easy to get things wrong (hello ssh).

Mar 30 2021, 5:15 PM · MacOS, gpgrt, Cross-Compiler, libgcrypt
saurik added a comment to T5268: macOS getentropy.

So, I actually just filed an issue about this work: T5375, and then found this opposing task while following through on the various commits ;P... Apple actually forbids usage of getentropy in applications they publish to their App Store (citing ITMS-90338: Non-public API usage), and so there needs to be a way to disable this weak_import. FWIW, I'm not sure if this is only on iOS or on macOS as well (I haven't gotten around to trying to publish a macOS build with the new libgcrypt yet).

Mar 30 2021, 12:34 PM · libgcrypt, MacOS
saurik added a comment to T5365: --with-libgpg-error-prefix doesn't affect gpgrt-config path detection.

@gniibe Note that you also need to at least add the semicolons, as BSD sed is trying to parse "gp}" as substitution flags (which, honestly, makes more forward-compatible sense than GNU sed's behavior...).

Mar 30 2021, 10:35 AM · MacOS, gpgrt, Cross-Compiler, libgcrypt
gniibe added a comment to T5365: --with-libgpg-error-prefix doesn't affect gpgrt-config path detection.

Or, if we keep the code of newline (so that it will eventually support path with a space in future):

Mar 30 2021, 9:55 AM · MacOS, gpgrt, Cross-Compiler, libgcrypt
gniibe added a comment to T5365: --with-libgpg-error-prefix doesn't affect gpgrt-config path detection.

Thank you. Sorry for the use of GNU sed extension. It could be just a whitespace, if it's OK not to support path having a space.
sed -n -e "/^libraries/{s/libraries: =//;s/:/ /gp}") should work.

Mar 30 2021, 9:42 AM · MacOS, gpgrt, Cross-Compiler, libgcrypt
saurik added a comment to T5365: --with-libgpg-error-prefix doesn't affect gpgrt-config path detection.

@gniibe OK, so... "worst case": I guess this worked? ;P

Mar 30 2021, 8:23 AM · MacOS, gpgrt, Cross-Compiler, libgcrypt
saurik added a comment to T5365: --with-libgpg-error-prefix doesn't affect gpgrt-config path detection.

@gniibe Actually, I just realized that neither of the commands I provided work, as I failed to notice you were trying to also replace :'s with newlines (as I guess libraries from clang can return multiple paths). I'd momentarily edited my comment to just try to add back your colon replacement, before remembering you can't do that either: \n is a GNU sed extension. Hilariously, I'm always in contexts where I can assume I'm using bash (which isn't ok for configure), so I've never bothered to learn a technique that doesn't involve $'\n'... do you have a strategy for doing this replacement? :(

Mar 30 2021, 8:19 AM · MacOS, gpgrt, Cross-Compiler, libgcrypt
saurik updated the task description for T5365: --with-libgpg-error-prefix doesn't affect gpgrt-config path detection.
Mar 30 2021, 8:14 AM · MacOS, gpgrt, Cross-Compiler, libgcrypt
saurik added a comment to T5365: --with-libgpg-error-prefix doesn't affect gpgrt-config path detection.

@gniibe Ah yeah, that was the commit I meant to reference when I said "--maybe caused by --", but then forgot to go back and fill in the commit hash ;P.

Mar 30 2021, 8:10 AM · MacOS, gpgrt, Cross-Compiler, libgcrypt
gniibe added a comment to T5365: --with-libgpg-error-prefix doesn't affect gpgrt-config path detection.

I wonder if this works in your use case:

diff --git a/m4/gpg-error.m4 b/m4/gpg-error.m4
index d910754e..aeedaf10 100644
--- a/m4/gpg-error.m4
+++ b/m4/gpg-error.m4
@@ -65,7 +65,7 @@ AC_DEFUN([AM_PATH_GPG_ERROR],
   min_gpg_error_version=ifelse([$1], ,1.33,$1)
   ok=no
Mar 30 2021, 7:36 AM · MacOS, gpgrt, Cross-Compiler, libgcrypt
gniibe added a comment to T5365: --with-libgpg-error-prefix doesn't affect gpgrt-config path detection.

If it is new, it may be the change of this commit rC8e3cd4c4677c: build: Update gpg-error.m4.

Mar 30 2021, 7:22 AM · MacOS, gpgrt, Cross-Compiler, libgcrypt
saurik added a comment to T5365: --with-libgpg-error-prefix doesn't affect gpgrt-config path detection.

(To be clear, I also know enough about autoconf to not have been like, blocked from upgrading by this: overriding ac_cv_path_GPGRT_CONFIG worked, but I can't believe that's the intended way for someone to ensure they get the correct path for gpgrt-config ;P.)

Mar 30 2021, 6:53 AM · MacOS, gpgrt, Cross-Compiler, libgcrypt
saurik added a comment to T5365: --with-libgpg-error-prefix doesn't affect gpgrt-config path detection.

@gniibe The problem is that the check seems to just find gpgrt-config from the path; like, I'm already passing --prefix and --host, but it is deciding to just arbitrarily pick up my system-wide copy of /usr/local/bin/gpgrt-config. Here's my entire configure invocation from that earlier failed build: note that the --prefix is the same as --with-gpg-error-prefix.

Mar 30 2021, 6:43 AM · MacOS, gpgrt, Cross-Compiler, libgcrypt
gniibe triaged T5365: --with-libgpg-error-prefix doesn't affect gpgrt-config path detection as Normal priority.

We are in transition from old gpg-error-config to new gpgrt-config. <-- This is the cause, while I tried to cover most use cases.

Mar 30 2021, 4:19 AM · MacOS, gpgrt, Cross-Compiler, libgcrypt

Mar 29 2021

JW added a comment to T5159: make check fails for libgcrypt on Apple Silicon / ARM Mac.

Sorry to dig up an old report...

Mar 29 2021, 2:23 AM · Restricted Project, MacOS, libgcrypt, Bug Report
JW added a comment to T5157: libgcrypt: ARM64 Builds on macOS fail.

Sorry to dig up an old thread...

Mar 29 2021, 2:11 AM · toolchain, MacOS, libgcrypt, Bug Report

Mar 26 2021

werner assigned T5365: --with-libgpg-error-prefix doesn't affect gpgrt-config path detection to gniibe.
Mar 26 2021, 10:47 AM · MacOS, gpgrt, Cross-Compiler, libgcrypt

Mar 11 2021

ballapete added a comment to T5268: macOS getentropy.

Tiger's /usr/include/AvailabilityMacros.h seems to provide what rndlinux.c was looking for: libgcrypt 1.9.2 just built!

Mar 11 2021, 6:59 PM · libgcrypt, MacOS
ballapete added a comment to T5268: macOS getentropy.

Alright! Here is the error report from GCC:

Mar 11 2021, 6:40 PM · libgcrypt, MacOS
werner merged T5345: libgcrypt 1.9.2 does not build on Mac OS X 10.4.11, Tiger, because rndlinux.c wants to include Availability.h which does not exist in Tiger into T5268: macOS getentropy.
Mar 11 2021, 4:19 PM · libgcrypt, MacOS

Mar 1 2021

patrick added a comment to T5250: macOS: gpgconf SIGSEGV when run via gpgme from the GUI application.
In T5250#143872, @kaie wrote:

It seems gpgme-json is intended to execute in the Web JavaScript sandbox of a browser.

Mar 1 2021, 5:33 PM · gpgme, MacOS, Bug Report
kaie added a comment to T5250: macOS: gpgconf SIGSEGV when run via gpgme from the GUI application.

I said "we're offering the optional use of GPGME

Mar 1 2021, 4:58 PM · gpgme, MacOS, Bug Report
kaie added a comment to T5250: macOS: gpgconf SIGSEGV when run via gpgme from the GUI application.

At the time I started to add an optional binding from Thunderbird to GPGME, I wasn't aware of gpgme-json.

Mar 1 2021, 4:51 PM · gpgme, MacOS, Bug Report
kaie added a comment to T5250: macOS: gpgconf SIGSEGV when run via gpgme from the GUI application.

Sure that TB uses GPGME - they claimed they won't use it due to license incompatibility (LGPL). I assumed they use gpgme-json via naticve messaging.

Mar 1 2021, 4:29 PM · gpgme, MacOS, Bug Report

Feb 23 2021

bevan closed T5277: libgcrypt 1.9.1 fails to build with --disable-asm as Resolved.

Fixed in libgcrypt 1.9.2. Thanks!

Feb 23 2021, 9:53 AM · MacOS, libgcrypt, Bug Report

Feb 17 2021

werner closed T5276: Release Libgcrypt 1.9.2, a subtask of T5277: libgcrypt 1.9.1 fails to build with --disable-asm, as Resolved.
Feb 17 2021, 9:47 AM · MacOS, libgcrypt, Bug Report

Feb 14 2021

Marius_Schamschula added a comment to T5268: macOS getentropy.

Backward compatibility fixed using the MacPorts legacysupport PortGroup:
https://github.com/macports/macports-ports/commit/74b50424649a7c657521140fcd7f92ba79a3cec5

Feb 14 2021, 2:09 AM · libgcrypt, MacOS

Feb 13 2021

Marius_Schamschula added a comment to T5268: macOS getentropy.

This approach is too simplistic. See Ryan Schmidt's and Joshua Root's comments in https://trac.macports.org/ticket/62278

Feb 13 2021, 12:35 PM · libgcrypt, MacOS

Feb 12 2021

werner changed the status of T5277: libgcrypt 1.9.1 fails to build with --disable-asm from Open to Testing.

A beta release is available as https://gnupg.org/ftp/gcrypt/alpha/libgcrypt/libgcrypt-1.9.2-beta16.tar.bz2 (https://gnupg.org/ftp/gcrypt/alpha/libgcrypt/libgcrypt-1.9.2-beta16.tar.bz2.sig).

Feb 12 2021, 12:37 PM · MacOS, libgcrypt, Bug Report
werner closed T5259: Release Libgcrypt 1.9.1, a subtask of T5157: libgcrypt: ARM64 Builds on macOS fail, as Resolved.
Feb 12 2021, 12:34 PM · toolchain, MacOS, libgcrypt, Bug Report
werner closed T5259: Release Libgcrypt 1.9.1, a subtask of T5159: make check fails for libgcrypt on Apple Silicon / ARM Mac, as Resolved.
Feb 12 2021, 12:34 PM · Restricted Project, MacOS, libgcrypt, Bug Report
werner closed T5259: Release Libgcrypt 1.9.1, a subtask of T5268: macOS getentropy, as Resolved.
Feb 12 2021, 12:34 PM · libgcrypt, MacOS

Feb 9 2021

gniibe added a comment to T5289: gen-lock-obj.sh uses echo -n from /bin/sh, which echos "-n".

POSIX says so (use printf instead).
https://pubs.opengroup.org/onlinepubs/9699919799/utilities/echo.html

Feb 9 2021, 7:58 AM · MacOS, gpgrt, Bug Report
werner added a comment to T5289: gen-lock-obj.sh uses echo -n from /bin/sh, which echos "-n".

iirc the advise from the GNU coding standards is to use printf(1) instead of trying to figure out how echo(1) works.

Feb 9 2021, 7:53 AM · MacOS, gpgrt, Bug Report
gniibe added a comment to T5289: gen-lock-obj.sh uses echo -n from /bin/sh, which echos "-n".

Thank you. I'll fix. Perhaps, I'll ignore old UNIXen like AIX 6.1, which has no way to echo with no newlines.

Feb 9 2021, 3:48 AM · MacOS, gpgrt, Bug Report
gniibe claimed T5289: gen-lock-obj.sh uses echo -n from /bin/sh, which echos "-n".
Feb 9 2021, 3:17 AM · MacOS, gpgrt, Bug Report
gniibe triaged T5289: gen-lock-obj.sh uses echo -n from /bin/sh, which echos "-n" as Normal priority.
Feb 9 2021, 3:17 AM · MacOS, gpgrt, Bug Report

Feb 5 2021

bevan added a comment to T5277: libgcrypt 1.9.1 fails to build with --disable-asm.

Looks like this has been addressed in af23ab5c5482d625ff52e60606cf044e2b0106c8. A quick test building the current version in master with --disable-asm worked for me.

Feb 5 2021, 1:29 PM · MacOS, libgcrypt, Bug Report

Feb 2 2021

gniibe added a comment to T5268: macOS getentropy.

So, the change against libgcrypt 1.9.1 will be:

Feb 2 2021, 7:27 AM · libgcrypt, MacOS
gniibe added a comment to T5268: macOS getentropy.

I got hit of search by "$ld$weak$os10.11$_getentropy".
So, I guess that it's 10.11 which has _getentropy as weak symbol, and 10.12 or later has implementation.

Feb 2 2021, 7:09 AM · libgcrypt, MacOS
ballapete added a comment to T5268: macOS getentropy.

There is some (partly) good news: The function getentropy() is available in the packet manager MacPorts. It has a legacy support:

Feb 2 2021, 12:52 AM · libgcrypt, MacOS

Feb 1 2021

Marius_Schamschula added a comment to T5277: libgcrypt 1.9.1 fails to build with --disable-asm.

Unfortunately, building without "--disable-asm" does not work if building a universal package under MacPorts (e.g. 32bit and 64bit x86 or 64bit x86 and arm64).

Feb 1 2021, 10:34 PM · MacOS, libgcrypt, Bug Report
ballapete added a comment to T5268: macOS getentropy.

To do that, I'd like to know, when the symbol getentropy was added.

Feb 1 2021, 9:40 PM · libgcrypt, MacOS
patrick added a comment to T5157: libgcrypt: ARM64 Builds on macOS fail.

no, that doesn't change anything.

Feb 1 2021, 8:00 AM · toolchain, MacOS, libgcrypt, Bug Report
gniibe added a subtask for T5277: libgcrypt 1.9.1 fails to build with --disable-asm: T5276: Release Libgcrypt 1.9.2.
Feb 1 2021, 2:14 AM · MacOS, libgcrypt, Bug Report
gniibe added a comment to T5268: macOS getentropy.

Wouldn't it be better to move these failures as a single one into the configure script that it definitely can tell "This Mac has getentropy()"?

Feb 1 2021, 1:53 AM · libgcrypt, MacOS

Jan 31 2021

jukivili added a comment to T5157: libgcrypt: ARM64 Builds on macOS fail.

Does it build if configure with parameter 'ac_cv_sys_symbol_underscore=yes'? <path-to-libgcrypt-source>/configure ac_cv_sys_symbol_underscore=yes --host=aarch64-apple-darwin ...

Jan 31 2021, 7:32 PM · toolchain, MacOS, libgcrypt, Bug Report

Jan 30 2021

patrick added a comment to T5157: libgcrypt: ARM64 Builds on macOS fail.

Compiling now works, but I get the following linker errors:

Jan 30 2021, 5:15 PM · toolchain, MacOS, libgcrypt, Bug Report
thesamesam added a comment to T5277: libgcrypt 1.9.1 fails to build with --disable-asm.

@jukivili Thanks for the reply! We've reverted that commit downstream in Gentoo as a temporary workaround, as due to some complications, our release systems needed to build without asm (for now) to ensure portability. Rest assured, this is not the default, and is discouraged for regular users.

Jan 30 2021, 12:17 PM · MacOS, libgcrypt, Bug Report

Jan 29 2021

bevan added a comment to T5277: libgcrypt 1.9.1 fails to build with --disable-asm.

Building without "--disable-asm" works without any issues.

Jan 29 2021, 5:25 PM · MacOS, libgcrypt, Bug Report
jukivili added a comment to T5277: libgcrypt 1.9.1 fails to build with --disable-asm.

Thanks for your report.

Jan 29 2021, 5:22 PM · MacOS, libgcrypt, Bug Report
whissi added a comment to T5277: libgcrypt 1.9.1 fails to build with --disable-asm.

FYI, this is not just an MacOS issue. We see that also on Gentoo Linux:

Jan 29 2021, 5:09 PM · MacOS, libgcrypt, Bug Report
werner triaged T5277: libgcrypt 1.9.1 fails to build with --disable-asm as Normal priority.
Jan 29 2021, 4:43 PM · MacOS, libgcrypt, Bug Report
ballapete added a comment to T5268: macOS getentropy.

Wouldn't it be better to move these failures as a single one into the configure script that it definitely can tell "This Mac has getentropy()"?

Jan 29 2021, 11:37 AM · libgcrypt, MacOS
ballapete added a comment to T5268: macOS getentropy.

I applied the two patches on Mac OS X 10.5.8, Leopard, to random/rndlinux.c, resulting in this unified diff:

Jan 29 2021, 11:25 AM · libgcrypt, MacOS