On macOS Sierra, when USE=python is enabled, there seems to be a problem in configuration that leads to the following error: In file included from helpers.c:30: In file included from /Library/Gentoo/usr/include/python2.7/Python.h:156: In file included from /Library/Gentoo/usr/include/python2.7/pyfpe.h:129: /usr/include/signal.h:69:42: error: use of undeclared identifier 'NSIG' extern __const char *__const sys_signame[NSIG]; ^ /usr/include/signal.h:70:42: error: use of undeclared identifier 'NSIG' extern __const char *__const sys_siglist[NSIG]; ^ As a workaround, it's possible to use $ CFLAGS='-D_DARWIN_C_SOURCE' emerge gpgme to avoid the problem of 'NSIG' not being defined when including signal.h. Reproducible: Always
macports does a similar trick
I've applied the workaround to the tree: commit 797a6d141df1134691a85d13ec1e6db091eaf57b Author: Guilherme Amadio <amadio@gentoo.org> Date: Thu Mar 16 00:34:43 2017 -0300 app-crypt/gpgme: Fix bug 601834 on macOS Package-Manager: Portage-2.3.4, Repoman-2.3.2 https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=797a6d141df1134691a85d13ec1e6db091eaf57b