Change:
<ins> diff -Naur gpgme.old/configure.ac gpgme.new/configure.ac --- gpgme.old/configure.ac	2020-11-12 04:19:50.000000000 -0500 +++ gpgme.new/configure.ac	2021-01-08 03:04:38.000000000 -0500 @@ -166,6 +166,16 @@ mym4_minor mym4_micro) AC_SUBST(VERSION_NUMBER) +# Try to find a thread-safe version of ttyname(). +gnupg_REPLACE_TTYNAME_R +if test "$ac_cv_func_ttyname_r" != yes; then +  AC_MSG_WARN([ +*** +*** ttyname() is not thread-safe and ttyname_r() does not exist +***]) +fi + + # We need to compile and run a program on the build machine.  A # comment in libgpg-error says that the AC_PROG_CC_FOR_BUILD macro in # the AC archive is broken for autoconf 2.57.  Given that there is no @@ -658,15 +668,6 @@ AC_FUNC_FSEEKO -# Try to find a thread-safe version of ttyname(). -gnupg_REPLACE_TTYNAME_R -if test "$ac_cv_func_ttyname_r" != yes; then -  AC_MSG_WARN([ -*** -*** ttyname() is not thread-safe and ttyname_r() does not exist -***]) -fi - # Try to find a thread-safe version of getenv(). have_thread_safe_getenv=no jm_GLIBC21 </ins>

Discussion:
Describe the bug gpgme fails to build on macOS To Reproduce <details<summary<codenix-build . -A gpgme</code(<iexpand to see the output</i)</summary<prewarning: Nix search path entry '/nix/var/nix/profiles/per-user/root/channels' does not exist, ignoring this derivation will be built: /nix/store/zwf2jgy24qs7b69n1rb5pg9ywwmi82f0-gpgme- building '/nix/store/zwf2jgy24qs7b69n1rb5pg9ywwmi82f0-gpgme-'... unpacking sources unpacking source archive /nix/store/sq6ypkha64hcskq8qqw8rv40d9k4y94f-gpgme- source root is gpgme-1.15.0 setting SOURCEDATEEPOCH to timestamp of file gpgme- patching sources applying patch /nix/store/d5svj9vzmvfvlfh67chy0yliwjk50wb5- patching file src/engine-gpg.c Hunk succeeded at 2989 (offset 28 lines). applying patch /nix/store/v28z94l2z3669df0vzwgsi4y53rvv5rc-0001-Fix-python-tests-on-non- patching file patching file applying patch /nix/store/k3dx8r5bp3pqd4dzrydj4yywg6c9p6ja-disable-python- patching file autoreconfPhase autoreconf: export WARNINGS= autoreconf: Entering directory '.' autoreconf: not using Gettext autoreconf: running: aclocal --force -I m4 autoreconf: tracing autoreconf: running: libtoolize --copy --force libtoolize: putting auxiliary files in ACCONFIGAUXDIR, 'build-aux'. libtoolize: copying file 'build-' libtoolize: putting macros in ACCONFIGMACRODIRS, 'm4'.

libtoolize: copying file 'm4/libtool.m4' libtoolize: copying file 'm4/ltoptions.m4' libtoolize: copying file 'm4/ltsugar.m4' libtoolize: copying file 'm4/ltversion.m4' libtoolize: copying file 'm4/lt~obsolete.m4' autoreconf: not using Intltool autoreconf: not using Gtkdoc autoreconf: running: aclocal --force -I m4 autoreconf: running: /nix/store/ymq2bmizcmzffq8qwi11lpm2sfl0d9r2-autoconf-2.70/bin/autoconf --force warning: The macro ACCONFIGHEADER' is obsolete. You should run autoupdate. ./lib/autoconf/status.m4:719: ACCONFIGHEADER is expanded from... the top level warning: The macroACGNUSOURCE' is obsolete. You should run autoupdate. ./lib/autoconf/specific.m4:312: ACGNUSOURCE is expanded from... the top level warning: The macro ACTRYRUN' is obsolete. You should run autoupdate. ./lib/autoconf/general.m4:2996: ACTRYRUN is expanded from... m4/glib-2.0.m4:8: AMPATHGLIB20 is expanded from... the top level warning: The macroACTRYLINK' is obsolete. You should run autoupdate. ./lib/autoconf/general.m4:2919: ACTRYLINK is expanded from... m4/glib-2.0.m4:8: AMPATHGLIB20 is expanded from... the top level warning: The macro ACHELPSTRING' is obsolete. You should run autoupdate. ./lib/autoconf/general.m4:203: ACHELPSTRING is expanded from... the top level warning: The macroACHELPSTRING' is obsolete. You should run autoupdate. ./lib/autoconf/general.m4:203: ACHELPSTRING is expanded from... the top level warning: The macro ACHELPSTRING' is obsolete. You should run autoupdate. ./lib/autoconf/general.m4:203: ACHELPSTRING is expanded from... the top level warning: The macroACHELPSTRING' is obsolete.

You should run autoupdate. ./lib/autoconf/general.m4:203: ACHELPSTRING is expanded from... the top level warning: The macro ACHELPSTRING' is obsolete. You should run autoupdate. ./lib/autoconf/general.m4:203: ACHELPSTRING is expanded from... the top level warning: The macroACHELPSTRING' is obsolete. You should run autoupdate. ./lib/autoconf/general.m4:203: ACHELPSTRING is expanded from... the top level warning: The macro ACHELPSTRING' is obsolete. You should run autoupdate. ./lib/autoconf/general.m4:203: ACHELPSTRING is expanded from... the top level warning: The macroACHELPSTRING' is obsolete. You should run autoupdate. ./lib/autoconf/general.m4:203: ACHELPSTRING is expanded from... the top level warning: The macro ACHELPSTRING' is obsolete. You should run autoupdate. ./lib/autoconf/general.m4:203: ACHELPSTRING is expanded from... m4/gpg-error.m4:27: AMPATHGPGERROR is expanded from... the top level warning: The macroACHELPSTRING' is obsolete. You should run autoupdate. ./lib/autoconf/general.m4:203: ACHELPSTRING is expanded from... m4/libassuan.m4:17: AMPATHLIBASSUANCOMMON is expanded from... m4/libassuan.m4:158: AMPATHLIBASSUAN is expanded from... the top level warning: The macro ACHELPSTRING' is obsolete. You should run autoupdate. ./lib/autoconf/general.m4:203: ACHELPSTRING is expanded from... the top level warning: The macroACHELPSTRING' is obsolete. You should run autoupdate.

./lib/autoconf/general.m4:203: ACHELPSTRING is expanded from... the top level autoreconf: running: /nix/store/ymq2bmizcmzffq8qwi11lpm2sfl0d9r2-autoconf-2.70/bin/autoheader --force autoreconf: running: automake --add-missing --copy --force-missing installing 'build-aux/compile' installing 'build-aux/missing' installing 'build-aux/depcomp' autoreconf: 'build-' is updated autoreconf: 'build-' is updated autoreconf: Leaving directory '.' configuring fixing libtool script ./build- configure flags: --disable-static --disable-dependency-tracking --prefix=/nix/store/9357hqrwqm6wnvl6qnp1hw2h045nw2rf-gpgme-1.15.0 --bindir=/nix/store/r9355cgd5y62qh03h68b4a6lj3w3kcap-gpgme-1.15.0-dev/bin --sbindir=/nix/store/r9355cgd5y62qh03h68b4a6lj3w3kcap-gpgme-1.15.0-dev/sbin --includedir=/nix/store/r9355cgd5y62qh03h68b4a6lj3w3kcap-gpgme-1.15.0-dev/include --oldincludedir=/nix/store/r9355cgd5y62qh03h68b4a6lj3w3kcap-gpgme-1.15.0-dev/include --mandir=/nix/store/r9355cgd5y62qh03h68b4a6lj3w3kcap-gpgme-1.15.0-dev/share/man --infodir=/nix/store/a7im3pbpc9aa0v37wlclqnas2j5cx5kv-gpgme-1.15.0-info/share/info --docdir=/nix/store/9357hqrwqm6wnvl6qnp1hw2h045nw2rf-gpgme-1.15.

0/share/doc/gpgme --libdir=/nix/store/9357hqrwqm6wnvl6qnp1hw2h045nw2rf-gpgme-1.15.0/lib --libexecdir=/nix/store/9357hqrwqm6wnvl6qnp1hw2h045nw2rf-gpgme-1.15.0/libexec --localedir=/nix/store/9357hqrwqm6wnvl6qnp1hw2h045nw2rf-gpgme-1.15.0/share/locale --enable-fixed-path=/nix/store/x5v8m4xf9sf07675db7cfi19g9qjp4y1-gnupg-2.2.24/bin --with-libgpg-error-prefix=/nix/store/4sdr1n9fvhpry7410jfyd87sdsvh5422-libgpg-error-1.38-dev --with-libassuan-prefix=/nix/store/c0pfl1d4dw61i3mwzc52akb9vbx223vf-libassuan-2.5.4-dev --disable-gpg-test checking for a BSD-compatible install. /nix/store/5m4875pw1zcd588n7a6j88vwsilvnm7j-coreutils-8.32/bin/install -c checking whether build environment is sane. yes checking for a race-free mkdir -p. /nix/store/5m4875pw1zcd588n7a6j88vwsilvnm7j-coreutils-8.32/bin/mkdir -p checking for gawk. gawk checking whether make sets $(MAKE). yes checking whether make supports nested variables. yes checking whether to enable maintainer-specific portions of Makefiles. no checking build system type. x8664-apple-darwin20.2.0 checking host system type. x8664-apple-darwin20.2.0 checking whether make supports nested variables. (cached) yes checking whether make supports the include directive. yes (GNU style) checking for gcc. clang checking whether the C compiler works. yes checking for C compiler default output file name. a.out checking for suffix of executables. checking whether we are cross compiling. no checking for suffix of object files.

o checking whether the compiler supports GNU C. yes checking whether clang accepts -g. yes checking for clang option to enable C11 features. none needed checking whether clang understands -c and -o together. yes checking dependency style of clang. none checking for stdio.h. yes checking for stdlib.h. yes checking for string.h. yes checking for inttypes.h. yes checking for stdint.h. yes checking for strings.h. yes checking for sys/stat.h. yes checking for sys/types.h. yes checking for unistd.h. yes checking for wchar.h. yes checking for minix/config.h. no checking for locale.h. yes checking for sys/select.h. yes checking for sys/uio.h. yes checking for argp.h. no checking for sys/time.h. yes checking whether it is safe to define EXTENSIONS. yes checking whether XOPENSOURCE should be defined. no checking for gcc. (cached) clang checking whether the compiler supports GNU C. (cached) yes checking whether clang accepts -g. (cached) yes checking for clang option to enable C11 features. (cached) none needed checking whether clang understands -c and -o together. (cached) yes checking dependency style of clang. (cached) none checking how to run the C preprocessor. clang -E checking whether the compiler supports GNU C++. yes checking whether clang++ accepts -g. yes checking for clang++ option to enable C++11 features. none needed checking dependency style of clang++. none checking for gitlog-to-changelog. no checking for cc for build. clang checking how to print strings. printf checking for a sed that does not truncate output. /nix/store/n0zyx5b5s1grq0jrcy2xvf7apvh25wry-gnused-4.8/bin/sed checking for grep that handles long lines and -e. /nix/store/pmbv3czhsa816msq51ngb2db61crjqw0-gnugrep-3.6/bin/grep checking for egrep. /nix/store/pmbv3czhsa816msq51ngb2db61crjqw0-gnugrep-3.6/bin/grep -E checking for fgrep.

/nix/store/pmbv3czhsa816msq51ngb2db61crjqw0-gnugrep-3.6/bin/grep -F checking for ld used by clang. ld checking if the linker (ld) is GNU ld. no checking for BSD- or MS-compatible name lister (nm). nm checking the name lister (nm) interface. BSD nm checking whether ln -s works. yes checking the maximum length of command line arguments. checking how to convert x8664-apple-darwin20.2.0 file names to x8664-apple-darwin20.2.0 format. funcconvertfilenoop checking how to convert x8664-apple-darwin20.2.0 file names to toolchain format. funcconvertfilenoop checking for ld option to reload object files. -r checking for objdump. no checking how to recognize dependent libraries. passall checking for dlltool. no checking how to associate runtime and link libraries. printf %sn checking for archiver support. no checking for strip. strip checking for ranlib. ranlib checking command to parse nm output from clang object. ok checking for sysroot. no checking for a working dd. /nix/store/5m4875pw1zcd588n7a6j88vwsilvnm7j-coreutils-8.32/bin/dd checking how to truncate binary pipes. /nix/store/5m4875pw1zcd588n7a6j88vwsilvnm7j-coreutils-8.32/bin/dd bs=4096 count=1 checking for mt. no checking if : is a manifest tool. no checking for dsymutil. dsymutil checking for nmedit. no checking for lipo. lipo checking for otool. otool checking for otool64. no checking for -singlemodule linker flag. yes checking for -exportedsymbolslist linker flag. yes checking for -forceload linker flag. yes checking for dlfcn.h. yes checking for objdir. .libs checking if clang supports -fno-rtti -fno-exceptions. yes checking for clang option to produce PIC. -fno-common -DPIC checking if clang PIC flag -fno-common -DPIC works. yes checking if clang static flag -static works.

no checking if clang supports -c -o file.o. yes checking if clang supports -c -o file.o. (cached) yes checking whether the clang linker (ld) supports shared libraries. yes checking dynamic linker characteristics. darwin20.2.0 dyld checking how to hardcode library paths into programs. immediate checking whether stripping libraries is possible. yes checking if libtool supports shared libraries. yes checking whether to build shared libraries. yes checking whether to build static libraries. no checking how to run the C++ preprocessor. clang++ -E checking for ld used by clang++. ld checking if the linker (ld) is GNU ld. no checking whether the clang++ linker (ld) supports shared libraries. yes checking for clang++ option to produce PIC. -fno-common -DPIC checking if clang++ PIC flag -fno-common -DPIC works. yes checking if clang++ static flag -static works. no checking if clang++ supports -c -o file.o. yes checking if clang++ supports -c -o file.o. (cached) yes checking whether the clang++ linker (ld) supports shared libraries. yes checking dynamic linker characteristics. darwin20.2.0 dyld checking how to hardcode library paths into programs. immediate checking for windres. no checking whether clang++ supports C++11 features by default. yes checking pkg-config is at least version 0.9.0. yes checking for GPGMEQT. no checking for GPGMEQTTEST. no Package Qt5Core was not found in the pkg-config search path. Perhaps you should add the directory containing ' to the PKGCONFIGPATH environment variable No package 'Qt5Core' found configure: WARNING: Qt5 (Qt5Core) not found Qt Binding will be disabled.

checking for swig... no checking for swig2.0... no checking for inline... inline checking size of unsigned int... 4 checking for special C compiler options needed for large files... no checking for FILEOFFSETBITS value needed for large files... no checking for offt... yes checking for uintptrt... yes checking if gcc supports -Wno-missing-field-initializers... yes checking for _thread... yes configure: checking for libraries checking for LARGEFILE_SOURCE value needed for large files... no checking how clang reports undeclared, standard C functions... configure: error: in/private/tmp/nix-build-gpgme-': configure: error: cannot detect from compiler exit status or warnings See `' for more details error: --- Error --- nix-build builder for '/nix/store/zwf2jgy24qs7b69n1rb5pg9ywwmi82f0-gpgme-' failed with exit code 1 </pre</detailsExpected behavior To build successfully. Additional context I'm working on my flake based config with nix, home-manager & nix-darwin. I updated my inputs today & after that, I couldn't build anymore. I cloned this repo & ran which failed with the same error from I also tried this workaround but it didn't help. Notify maintainers <!-- Please @ people who are in the list of the offending package or module. If in doubt, check for whoever last touched something. -- Metadata*