linamh/app-admin/reprepro/files/reprepro-3.8.1-gpgme-header-check-1.patch

47 lines
2.1 KiB
Diff
Raw Normal View History

Submitted By: Mario Fetka (mario dot fetka at gmail dot com)
Date: 2009-01-28
Initial Package Version: 3.5.2
Origin: hron@hronszoft.dyndns.biz
Upstream Status: gentoo specific
Description: find gpgme.h
diff -Naur reprepro-3.8.1.orig/configure.ac reprepro-3.8.1/configure.ac
--- reprepro-3.8.1.orig/configure.ac 2009-01-28 10:55:34.423017172 +0000
+++ reprepro-3.8.1/configure.ac 2009-01-28 10:57:08.469016466 +0000
@@ -152,20 +152,20 @@
no)
;;
yes)
- AC_CHECK_HEADER(gpgme.h,,[AC_MSG_ERROR(["no gpgme.h found"])])
+ AC_CHECK_HEADER(gpgme/gpgme.h,,[AC_MSG_ERROR(["no gpgme/gpgme.h found"])])
AC_CHECK_LIB(gpg-error,gpg_strsource,,[AC_MSG_ERROR(["no libgpg-error found"])],)
AC_CHECK_LIB(gpgme,gpgme_get_protocol_name,,[AC_MSG_ERROR(["no libgpgme found (need at least 0.4.1)"])],)
;;
*)
CPPFLAGS="$CPPFLAGS -I$withval/include"
LIBS="$LIBS -L$withval/lib"
- AC_CHECK_HEADER(gpgme.h,,[AC_MSG_ERROR(["no gpgme.h found"])])
+ AC_CHECK_HEADER(gpgme/gpgme.h,,[AC_MSG_ERROR(["no gpgme/gpgme.h found"])])
AC_CHECK_LIB(gpg-error,gpg_strsource,,[AC_MSG_ERROR(["no libgpg-error found"])],)
AC_CHECK_LIB(gpgme,gpgme_get_protocol_name,,[AC_MSG_ERROR(["no libgpgme found (need at least 0.4.1)"])],)
;;
esac
],[dnl default is to behave like yes (for libgpgme only)
- AC_CHECK_HEADER(gpgme.h,,[AC_MSG_ERROR(["no gpgme.h found (to disable run with --without-libgpgme)"])])
+ AC_CHECK_HEADER(gpgme/gpgme.h,,[AC_MSG_ERROR(["no gpgme/gpgme.h found (to disable run with --without-libgpgme)"])])
AC_CHECK_LIB(gpg-error,gpg_strsource,,[AC_MSG_ERROR(["no libgpg-error found (to disable run with --without-libgpgme)"])],)
AC_CHECK_LIB(gpgme,gpgme_get_protocol_name,,[AC_MSG_ERROR(["did not find libgpgme versoion 0.4.1 or later (to disable run with --without-libgpgme)"])],)
])
diff -Naur reprepro-3.8.1.orig/signature.c reprepro-3.8.1/signature.c
--- reprepro-3.8.1.orig/signature.c 2009-01-28 10:55:34.412015470 +0000
+++ reprepro-3.8.1/signature.c 2009-01-28 10:58:59.871258599 +0000
@@ -27,7 +27,7 @@
#include <fcntl.h>
#ifdef HAVE_LIBGPGME
#include <gpg-error.h>
-#include <gpgme.h>
+#include <gpgme/gpgme.h>
#endif
#include "globals.h"
#include "error.h"