linamh/app-admin/reprepro/files/reprepro-3.5.2-gpgme-header-check-1.patch
2008-07-25 21:07:23 +00:00

47 lines
2.1 KiB
Diff

Submitted By: Mario Fetka (mario-fetka at gmx dot at)
Date: 2008-07-25
Initial Package Version: 2.2.2
Origin: hron@hronszoft.dyndns.biz
Upstream Status: never accepted
Description: find gpgme headers
diff -Naur reprepro-3.5.2.orig/configure.ac reprepro-3.5.2/configure.ac
--- reprepro-3.5.2.orig/configure.ac 2008-06-27 15:31:23.000000000 +0000
+++ reprepro-3.5.2/configure.ac 2008-07-25 20:57:28.000000000 +0000
@@ -134,20 +134,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.5.2.orig/signature.c reprepro-3.5.2/signature.c
--- reprepro-3.5.2.orig/signature.c 2008-03-06 16:14:55.000000000 +0000
+++ reprepro-3.5.2/signature.c 2008-07-25 20:57:43.000000000 +0000
@@ -26,7 +26,7 @@
#include <malloc.h>
#include <fcntl.h>
#ifdef HAVE_LIBGPGME
-#include <gpgme.h>
+#include <gpgme/gpgme.h>
#endif
#include "globals.h"
#include "error.h"