Package: ecryptfs-utils
Version: 111-5
Severity: serious
Tags: patch ftbfs
Justification: fails to build from source (but built successfully in the past)
User: pkg-gnupg-ma...@lists.alioth.debian.org
Usertags: gpgme-config-transition

ecryptfs-utils relies on gpgme-config to detect gpgme. gpgme-config has
been dropped and replaced by pkg-config pc files.

cu Andreas
-- 
`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'
--- ecryptfs-utils-111.orig/configure.ac
+++ ecryptfs-utils-111/configure.ac
@@ -135,13 +135,6 @@ AC_ARG_ENABLE(
 )
 
 AC_ARG_WITH(
-	[gpgme-prefix],
-	[AS_HELP_STRING([--with-gpgme-prefix=PATH],[Specify the directory where gpgme install, default /usr])],
-	,
-	[with_gpgme_prefix="/usr"]
-)
-
-AC_ARG_WITH(
 	[pamdir],
 	[AS_HELP_STRING([--with-pamdir=PATH],[Specify the directory where PAM modules are stored])],
 	[pamdir="${withval}"],
@@ -315,14 +308,7 @@ if test "${enable_tspi}" = "yes" ; then
 fi
 
 if test "${enable_gpg}" = "yes" ; then
-	AC_MSG_CHECKING([for gpgme])
-	if ! test -x "${with_gpgme_prefix}/bin/gpgme-config"; then
-		AC_MSG_ERROR([Cannot locate gpgme])
-	else
-		AC_MSG_RESULT([found])
-		GPGME_CFLAGS="`\"${with_gpgme_prefix}/bin/gpgme-config\" --cflags`"
-		GPGME_LIBS="`\"${with_gpgme_prefix}/bin/gpgme-config\" --libs`"
-	fi
+	PKG_CHECK_MODULES([GPGME], [gpgme >= 1.0.0])
 fi
 
 if test "${enable_pam}" = "yes" ; then
@@ -385,8 +371,6 @@ AC_SUBST([pamlibdir])
 AC_SUBST([pkgconfigdir])
 AC_SUBST([rootsbindir])
 AC_SUBST([ecryptfskeymoddir])
-AC_SUBST([GPGME_CFLAGS])
-AC_SUBST([GPGME_LIBS])
 AC_SUBST([CRYPTO_CFLAGS])
 AC_SUBST([CRYPTO_LIBS])
 AM_CONDITIONAL([BUILD_OPENSSL], [test "${enable_openssl}" = "yes"])

Reply via email to