termux-packages/packages/gnupg/configure.patch
Henrik Grimler 3619926bc1 gnupg: mv scdaemon to subpackage and add dependency on libusb
And fix so that configure script can find libusb headers. This makes
it possible to access smartcards with gpg/scdaemon when running as
root. It is not without flaws though, the gpg-agent daemon has to be
manually stopped sometimes to make the card appear. Also seems quite
hard to get some things to work when running gpg-agent and scdaemon as
root: I haven't been able to do remote forwarding or sig git commits.
2021-12-28 00:23:25 +01:00

28 lines
1.0 KiB
Diff

--- ../gnupg-2.3.3/configure 2021-10-12 17:15:17.000000000 +0200
+++ ./configure 2021-12-27 23:19:18.022214970 +0100
@@ -9281,8 +9281,8 @@
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking libusb include dir" >&5
$as_echo_n "checking libusb include dir... " >&6; }
usb_incdir_found="no"
- for _incdir in "" "/usr/include/libusb-1.0" \
- "/usr/local/include/libusb-1.0" "/usr/pkg/include/libusb-1.0"; do
+ for _incdir in "" "@TERMUX_PREFIX@/include/libusb-1.0" \
+ "@TERMUX_PREFIX@/local/include/libusb-1.0" "@TERMUX_PREFIX@/pkg/include/libusb-1.0"; do
_libusb_save_cppflags=$CPPFLAGS
if test -n "${_incdir}"; then
CPPFLAGS="-I${_incdir} ${CPPFLAGS}"
@@ -15048,13 +15048,6 @@
esac
-if test "$have_android_system" = yes; then
- # On Android ttyname is a stub but prints an error message.
-
-$as_echo "#define HAVE_BROKEN_TTYNAME 1" >>confdefs.h
-
-fi
-
ac_fn_c_check_type "$LINENO" "struct sigaction" "ac_cv_type_struct_sigaction" "#include <signal.h>
"
if test "x$ac_cv_type_struct_sigaction" = xyes; then :