Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 79356 - Request to add ability to compile gpg plugin to qhacc
Summary: Request to add ability to compile gpg plugin to qhacc
Status: RESOLVED LATER
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Carsten Lohrke (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-24 10:08 UTC by ta2002
Modified: 2005-01-24 15:07 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
proposed patch to compile gpg plugin (qhacc.patch,1.05 KB, patch)
2005-01-24 10:12 UTC, ta2002
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description ta2002 2005-01-24 10:08:18 UTC
Since 3.2.2, the capability to compile a gpg plugin exists, in
order to encrypt and compress saved data to the hard drive. The
ebuild does not offer a flag to enable compilation of the plugin.

Reproducible: Always
Steps to Reproduce:




I have never submitted a proposed patch to an "official" ebuild
before, but this looked easy enough to try. :)
Comment 1 ta2002 2005-01-24 10:12:26 UTC
Created attachment 49395 [details, diff]
proposed patch to compile gpg plugin
Comment 2 Carsten Lohrke (RETIRED) gentoo-dev 2005-01-24 11:11:48 UTC
does it work for you? afaik only <gpgme-0.4 is supported 
Comment 3 ta2002 2005-01-24 15:04:41 UTC
Oops. No, it did not compile (I guess I should leave this
to the experts :) ).

You have probably seen this before, but to document:

Making all in gpg
make[3]: Entering directory `/var/tmp/portage/qhacc-3.2.3/work/qhacc-3.2.3/plugins/gpg'
if /bin/sh ../../libtool --mode=compile --tag=CXX i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../..  -I/usr/qt/3/include -I../../lib   -O2 -Wall -g -Wnon-virtual-dtor -Wno-long-long -Wundef -W -Wpointer-arith -Wwrite-strings -Wcast-align -Wconversion -fPIC  -O2 -mcpu=i686 -pipe -MT gpgplugin.lo -MD -MP -MF ".deps/gpgplugin.Tpo" -c -o gpgplugin.lo gpgplugin.cpp; \
then mv -f ".deps/gpgplugin.Tpo" ".deps/gpgplugin.Plo"; else rm -f ".deps/gpgplugin.Tpo"; exit 1; fi
mkdir .libs
 i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/qt/3/include -I../../lib -O2 -Wall -g -Wnon-virtual-dtor -Wno-long-long -Wundef -W -Wpointer-arith -Wwrite-strings -Wcast-align -Wconversion -fPIC -O2 -mcpu=i686 -pipe -MT gpgplugin.lo -MD -MP -MF .deps/gpgplugin.Tpo -c gpgplugin.cpp  -fPIC -DPIC -o .libs/gpgplugin.o
In file included from gpgplugin.cpp:20:
gpgplugin.h:25:19: gpgme.h: No such file or directory
In file included from gpgplugin.cpp:20:
gpgplugin.h:51: error: 'GpgmeCtx' is used as a type, but is not defined as a
   type.
gpgplugin.cpp: In destructor `virtual GPGDBPlugin::~GPGDBPlugin()':
gpgplugin.cpp:50: error: `gpgctx' undeclared (first use this function)
gpgplugin.cpp:50: error: (Each undeclared identifier is reported only once for
   each function it appears in.)
gpgplugin.cpp:50: error: `gpgme_release' undeclared (first use this function)
gpgplugin.cpp: In member function `virtual bool GPGDBPlugin::iconnect(QHacc*,
   const QString&, QString&)':
gpgplugin.cpp:56: error: `gpgme_new' undeclared (first use this function)
gpgplugin.cpp:56: error: `GPGME_No_Error' undeclared (first use this function)
gpgplugin.cpp:59: error: `gpgme_set_passphrase_cb' undeclared (first use this
   function)
gpgplugin.cpp:60: error: `gpgme_set_armor' undeclared (first use this function)
gpgplugin.cpp: In member function `virtual bool
   GPGDBPlugin::gpgloadt(QHaccTable&, const QString&, QString&)':
gpgplugin.cpp:82: error: `GpgmeData' undeclared (first use this function)
gpgplugin.cpp:82: error: parse error before `,' token
gpgplugin.cpp:83: error: `GpgmeError' undeclared (first use this function)
gpgplugin.cpp:85: error: `rslt' undeclared (first use this function)
gpgplugin.cpp:85: error: `plain' undeclared (first use this function)
gpgplugin.cpp:85: error: `gpgme_data_new' undeclared (first use this function)
gpgplugin.cpp:86: error: `cipher' undeclared (first use this function)
gpgplugin.cpp:86: error: `gpgme_data_new_from_file' undeclared (first use this
   function)
gpgplugin.cpp:88: error: `GPGME_File_Error' undeclared (first use this
   function)
gpgplugin.cpp:94: error: `gpgme_op_decrypt' undeclared (first use this
   function)
gpgplugin.cpp:98: error: `gpgme_data_release' undeclared (first use this
   function)
gpgplugin.cpp:101: error: `GPGME_Decryption_Failed' undeclared (first use this
   function)
gpgplugin.cpp:105: error: `GPGME_No_Data' undeclared (first use this function)
gpgplugin.cpp:132: error: `gpgme_data_read' undeclared (first use this
   function)
gpgplugin.cpp:134: error: `GPGME_EOF' undeclared (first use this function)
gpgplugin.cpp: In member function `virtual bool
   GPGDBPlugin::isavet(QHaccTable&, const QString&, QString&)':
gpgplugin.cpp:170: error: parse error before `,' token
gpgplugin.cpp:173: error: `gpgme_data_new' undeclared (first use this function)
gpgplugin.cpp:179: error: `gpgme_data_write' undeclared (first use this
   function)
gpgplugin.cpp:185: error: `gpgme_op_encrypt' undeclared (first use this
   function)
gpgplugin.cpp:190: error: `gpgme_data_release' undeclared (first use this
   function)
gpgplugin.cpp:208: error: `gpgme_data_read' undeclared (first use this
   function)
make[3]: *** [gpgplugin.lo] Error 1
make[3]: Leaving directory `/var/tmp/portage/qhacc-3.2.3/work/qhacc-3.2.3/plugins/gpg'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/qhacc-3.2.3/work/qhacc-3.2.3/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/qhacc-3.2.3/work/qhacc-3.2.3'
make: *** [all] Error 2

!!! ERROR: app-office/qhacc-3.2.3 failed.
!!! Function src_compile, Line 46, Exitcode 2
!!! make failed
!!! If you need support, post the topmost build error, NOT this status message.

I guess we either have to wait for the author to support the
newer version of gpgme, or force in the old version. I don't
know much about this, but as gpgme uses different slots, I
assume this doesn't represent an impossibility - only a lot
of work (do the Makefile require editing to find the correct
libraries?).

Thanks for the quick reply.
Comment 4 Carsten Lohrke (RETIRED) gentoo-dev 2005-01-24 15:07:20 UTC
Yes, that's what I meant. Will have a look at it, when current gpgme is supported.