php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56815 pecl-gnupg can't find gpgme because it's looking in the wrong place
Submitted: 2006-02-01 20:14 UTC Modified: 2006-02-02 08:03 UTC
From: me at ben-xo dot com Assigned: traufeisen (profile)
Status: Closed Package: gnupg (PECL)
PHP Version: 4.4.1 OS: Gentoo Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: me at ben-xo dot com
New email:
PHP Version: OS:

 

 [2006-02-01 20:14 UTC] me at ben-xo dot com
Description:
------------
pecl-gnupg can't find gpgme because it's looking in the wrong place during ./configure .

* ./configure looks for /include/gpgme.h inside of /usr/local and /usr

-- but Gentoo puts gpgme.h inside of /usr/include/gpgme/.

Reproduce code:
---------------
Workaround:

apply following diff before phpize

--- gnupg-1.0/config.m4.old     2006-02-01 19:43:56.000000000 +0000
+++ gnupg-1.0/config.m4 2006-02-01 19:44:22.000000000 +0000
@@ -6,7 +6,7 @@
 
 if test "$PHP_GNUPG" != "no"; then
   SEARCH_PATH="/usr/local /usr" 
-  SEARCH_FOR="/include/gpgme.h"  
+  SEARCH_FOR="/include/gpgme/gpgme.h"  
   if test -r $PHP_GNUPG/$SEARCH_FOR; then
     GNUPG_DIR=$PHP_GNUPG
   else
@@ -24,7 +24,7 @@
     AC_MSG_ERROR([Please reinstall the gpgme distribution])
   fi
 
-  PHP_ADD_INCLUDE($GNUPG_DIR/include)
+  PHP_ADD_INCLUDE($GNUPG_DIR/include/gpgme)
 
   LIBNAME=gpgme
   LIBSYMBOL=gpgme_check_version


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-02-02 08:03 UTC] traufeisen@php.net
Thanks for you report.
This has been fixed in CVS and an additional note for a user defined searchpath has been added to config.m4
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 10:01:28 2024 UTC