Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#52471 closed defect (fixed)

kmymoney4(-devel): currently fail to build due to qqpgpme

Reported by: mkae (Marko Käning) Owned by: mkae (Marko Käning)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: RJVB (René Bertin), ryandesign (Ryan Carsten Schmidt)
Port: kmymoney4, kmymoney4-devel

Description (last modified by mkae (Marko Käning))

Due to #52342 I run into this when building kmymoney4 from source:

info:configure -- Found gpgme-config at /opt/local/bin/gpgme-config
:info:configure -- Found gpgme v1.7.0, checking for flavours...
:info:configure --  Found flavour 'vanilla', checking whether it's usable...yes
:info:configure --  Found flavour 'pthread', checking whether it's usable...yes
:info:configure CMake Error at /opt/local/share/cmake-3.6/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
:info:configure   Could NOT find QGpgme (missing: _QGPGME_EXTRA_LIBRARY)
:info:configure Call Stack (most recent call first):
:info:configure   /opt/local/share/cmake-3.6/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE)
:info:configure   /opt/local/share/apps/cmake/modules/FindQGpgme.cmake:43 (find_package_handle_standard_args)
:info:configure   CMakeLists.txt:79 (find_package)
:info:configure
:info:configure
:info:configure -- Configuring incomplete, errors occurred!

Happens for the version currently on MacPorts as well as the newer version 4.8.0 (needless attached patch).

Attachments (1)

kmymoney4-Portfile.diff (889 bytes) - added by mkae (Marko Käning) 8 years ago.

Download all attachments as: .zip

Change History (10)

Changed 8 years ago by mkae (Marko Käning)

Attachment: kmymoney4-Portfile.diff added

comment:1 Changed 8 years ago by mkae (Marko Käning)

Port: kmymoney4-devel added
Summary: kmymoney4: currently fails to build due to qqpgpmekmymoney4(-devel): currently fail to build due to qqpgpme

comment:2 Changed 8 years ago by mkae (Marko Käning)

Cc: stansand@… added
Last edited 8 years ago by mkae (Marko Käning) (previous) (diff)

comment:3 Changed 8 years ago by mkae (Marko Käning)

Description: modified (diff)

comment:4 Changed 8 years ago by StanSanderson

Cc: stansand@… removed

Cc Me!

comment:5 Changed 8 years ago by mkae (Marko Käning)

Still no luck after recent changes to kdelibs4:

:info:build In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_kde_kmymoney4/kmymoney4/work/kmymoney-4.7.2/libkgpgfile/kgpgfile.cpp:50:
:info:build In file included from /opt/local/include/qgpgme/dataprovider.h:26:
:info:build /opt/local/include/gpgme++/interfaces/dataprovider.h:28:10: fatal error: 'gpgmepp_export.h' file not found
:info:build #include "gpgmepp_export.h"
:info:build          ^

comment:6 Changed 8 years ago by RJVB (René Bertin)

I don't think anything has changed to kdelibs4?!

You'll have to figure out what and why nicos changed to KDEPIM4, make the same changes, and hope it works.

I still think that port:gpgme is late to the gpgme++ party, and thus should use the mechanism provided by its buildsystem to put its gpgme++ headers somewhere where they cannot be picked up by accident. All the more so given that it clearly hasn't been given such a warm welcome on Linux that it has replaced KDE's gpgme++ wrappers everywhere and immediately.

comment:7 Changed 8 years ago by mkae (Marko Käning)

Despite this:

Index: Portfile
===================================================================
--- Portfile	(revision 153452)
+++ Portfile	(working copy)
@@ -45,7 +45,8 @@
 
 patch.dir           ${workpath}/${distname}
 patch.pre_args      -p1
-patchfiles          patch-mainRaster.diff
+patchfiles          patch-mainRaster.diff \
+                    patch-CMakeLists_QGPGME.txt.diff
 #
 # OK, let's try building with documentation and see whether we end up with meinproc crashing again:
 #
Index: files/patch-CMakeLists_QGPGME.txt.diff
===================================================================
--- files/patch-CMakeLists_QGPGME.txt.diff	(nonexistent)
+++ files/patch-CMakeLists_QGPGME.txt.diff	(working copy)
@@ -0,0 +1,18 @@
+*** kmymoney-4.7.2/CMakeLists.txt	Sat Apr 25 19:20:16 2015
+--- kmymoney-4.7.2/CMakeLists.txt	Wed Oct  5 23:14:44 2016
+***************
+*** 70,75 ****
+--- 70,82 ----
+  endif (WIN32)
+  # needed by libkgpgfile
+  find_package(QGpgme REQUIRED)
++ 
++ # This is specific for MacPorts, as it ships a newer version of gpgme (1.7.0)
++ if (QGPGME_FOUND) 
++   set(GPGME_INCLUDES "%PREFIX%/include/kde4")
++   include_directories(${GPGME_INCLUDES})
++ endif (QGPGME_FOUND) 
++ 
+  find_package(KdepimLibs REQUIRED)
+  find_package(SharedMimeInfo REQUIRED)
+  

I still get above error concerning not being able to find gpgmepp_export.h, although the file is installed by port:gpgme:

$ port contents gpgme | grep _export
  /opt/local/include/gpgme++/gpgmepp_export.h

Well, and the to-be-used file is actually using "++" instead of "pp":

$ ls /opt/local/include/kde4/gpgme++/gpgme*_export.h
/opt/local/include/kde4/gpgme++/gpgme++_export.h

What can/should be done about this! René, you described this situation already...

Version 0, edited 8 years ago by mkae (Marko Käning) (next)

comment:8 Changed 8 years ago by mkae (Marko Käning)

Resolution: fixed
Status: newclosed

comment:9 Changed 8 years ago by mkae (Marko Käning)

kmymoney4-devel done in r153613

Note: See TracTickets for help on using tickets.