[ostree] build: Look for /usr/bin/gpgv2 vs /usr/bin/gpgv
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ostree] build: Look for /usr/bin/gpgv2 vs /usr/bin/gpgv
- Date: Fri, 31 Jan 2014 15:14:07 +0000 (UTC)
commit c7bcfc1c610a9553757830bcd538715f0e06ba97
Author: Colin Walters <walters verbum org>
Date: Thu Jan 30 19:32:59 2014 -0500
build: Look for /usr/bin/gpgv2 vs /usr/bin/gpgv
For some reason, RHEL has gpgv, but Fedora doesn't. We need to detect
which to use, since presumably Debian only has gpgv.
Makefile-libostree.am | 2 +-
configure.ac | 2 ++
src/libostree/ostree-gpg-verifier.c | 2 +-
3 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/Makefile-libostree.am b/Makefile-libostree.am
index becdcfd..060c058 100644
--- a/Makefile-libostree.am
+++ b/Makefile-libostree.am
@@ -77,7 +77,7 @@ libostree_1_la_SOURCES += src/libostree/ostree-libarchive-input-stream.h \
$(NULL)
endif
-libostree_1_la_CFLAGS = $(AM_CFLAGS) -I$(srcdir)/src/libgsystem -I$(srcdir)/src/libotutil
-I$(srcdir)/src/libostree -DLOCALEDIR=\"$(datadir)/locale\" $(OT_INTERNAL_GIO_UNIX_CFLAGS)
+libostree_1_la_CFLAGS = $(AM_CFLAGS) -I$(srcdir)/src/libgsystem -I$(srcdir)/src/libotutil
-I$(srcdir)/src/libostree -DLOCALEDIR=\"$(datadir)/locale\" -DGPGVPATH=\"$(GPGVPATH)\"
$(OT_INTERNAL_GIO_UNIX_CFLAGS)
libostree_1_la_LDFLAGS = -version-number 1:0:0 -Bsymbolic-functions -export-symbols-regex '^ostree_'
libostree_1_la_LIBADD = libotutil.la libostree-kernel-args.la $(OT_INTERNAL_GIO_UNIX_LIBS)
diff --git a/configure.ac b/configure.ac
index 27a560d..7164a40 100644
--- a/configure.ac
+++ b/configure.ac
@@ -101,6 +101,8 @@ AS_IF([ test x$with_gpgme != xno ], [
AS_IF([ test x$have_gpgme = xyes], [
AC_DEFINE(HAVE_GPGME, 1, [Define if we have gpgme])
with_gpgme=yes
+ AC_PATH_PROG(GPGVPATH, [gpgv2 gpgv])
+ AC_SUBST(GPGVPATH)
], [ with_gpgme=no ])
], [ with_gpgme=no ])
if test x$with_gpgme != xno; then OSTREE_FEATURES="$OSTREE_FEATURES +gpgme"; fi
diff --git a/src/libostree/ostree-gpg-verifier.c b/src/libostree/ostree-gpg-verifier.c
index 8d363eb..d89c39c 100644
--- a/src/libostree/ostree-gpg-verifier.c
+++ b/src/libostree/ostree-gpg-verifier.c
@@ -183,7 +183,7 @@ _ostree_gpg_verifier_check_signature (OstreeGpgVerifier *self,
g_main_context_push_thread_default (maincontext);
- context = gs_subprocess_context_newv ("gpgv", NULL);
+ context = gs_subprocess_context_newv (GPGVPATH, NULL);
gs_subprocess_context_set_stdin_disposition (context,
GS_SUBPROCESS_STREAM_DISPOSITION_NULL);
gs_subprocess_context_set_stdout_disposition (context,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]