Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 494712 - kde-base/kwalletd-4.12.0 - fails to build with USE="-semantic-desktop"
Summary: kde-base/kwalletd-4.12.0 - fails to build with USE="-semantic-desktop"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Gentoo KDE team
URL: https://bugs.kde.org/show_bug.cgi?id=...
Whiteboard: fixed in 4.12.2
Keywords:
: 496056 496424 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-12-19 03:53 UTC by David E. Narváez
Modified: 2014-01-21 05:22 UTC (History)
28 users (show)

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


Attachments
Build log (build.log,37.83 KB, text/x-log)
2013-12-19 03:54 UTC, David E. Narváez
Details
kwalletd-4.12.0-qgpgme.patch (kwalletd-4.12.0-qgpgme.patch,1.96 KB, patch)
2013-12-19 04:54 UTC, Alex Barker
Details | Diff
Second patch (kwalletd-4.12.0-qgpgme-2.patch,1.06 KB, patch)
2013-12-23 20:07 UTC, shinydoofy
Details | Diff
Patch for 4.12.1 (kwalletd-4.12.1-qgpgme.patch,684 bytes, patch)
2014-01-19 00:07 UTC, shinydoofy
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David E. Narváez 2013-12-19 03:53:00 UTC
Tracking KDE bug 328990, but some extra precautions need to be taken at ebuild level:

From my understanding of

http://commits.kde.org/kde-runtime/a6c3e399e8674914ccde5d80710de866cbb700da

this means we'd need to add a USE flag for gpgme that will pull in the gpgme++ library from KDE PIM. I haven't looked into details of this yet, but it is my rough idea of the situation.
Comment 1 David E. Narváez 2013-12-19 03:54:10 UTC
Created attachment 365642 [details]
Build log

Failed build log.
Comment 2 Alex Barker 2013-12-19 04:54:05 UTC
Created attachment 365644 [details, diff]
kwalletd-4.12.0-qgpgme.patch

Simply applying <s>a few</s> several #ifdef HAVE_QGPGME patches will not solve this problem.  There is some serious oversight in the kwalletd/kwalletwizard.cpp file.  I have attached the progress I made before giving up...
Comment 3 David E. Narváez 2013-12-19 12:59:45 UTC
Johu, thanks for managing the upstream bug. OTOH, how is this related to USE="-semantic-desktop"? Here's my setup

# equery -C uses kwalletd
[ Legend : U - final flag setting for installation]
[        : I - package is installed with flag     ]
[ Colors : set, unset                             ]
 * Found these USE flags for kde-base/kwalletd-4.12.0:
 U I
 - - debug            : Enable extra debug codepaths, like asserts and extra output. If you want to get meaningful backtraces see http://www.gentoo.org/proj/en/qa/backtraces.xml
 + + semantic-desktop : Cross-KDE support for semantic search and information retrieval

# grep USE /etc/portage/make.conf
# These are the USE flags that were used in addition to what is provided by the
USE="-gtk -gnome qt4 kde dvd alsa cdr bindist mmx sse sse2 python perl semantic-desktop"
Comment 4 Johannes Huber (RETIRED) gentoo-dev 2013-12-19 13:30:14 UTC
(In reply to David E. Narváez from comment #3)
> Johu, thanks for managing the upstream bug. OTOH, how is this related to
> USE="-semantic-desktop"? Here's my setup

Qgpgme is provided by kdepimlibs:

http://git.overlays.gentoo.org/gitweb/?p=proj/kde.git;a=commit;h=7231eac2f678f8b465a7cf55053b3d6dbd54caa2
Comment 5 David E. Narváez 2013-12-19 15:30:15 UTC
(In reply to Johannes Huber from comment #4)
> Qgpgme is provided by kdepimlibs:
> 
> http://git.overlays.gentoo.org/gitweb/?p=proj/kde.git;a=commit;
> h=7231eac2f678f8b465a7cf55053b3d6dbd54caa2

Oh, got it. I wasn't using the ebuild from the overlay for now. Wouldn't it be better to have a separate ebuild for gpgme++?
Comment 6 C. Wijtmans 2013-12-21 23:52:54 UTC
Great and now the nepomuk junk is going to slip into my system through kwallet?
Time to ditch KDE.
Comment 7 Egor Y. Egorov 2013-12-23 03:20:26 UTC
Upstream fixed
https://bugs.kde.org/show_bug.cgi?id=328476
Comment 9 Johannes Huber (RETIRED) gentoo-dev 2013-12-23 07:56:03 UTC
Thanks for reporting. This is fixed in cvs now. Please sync in some hours to get the changes.

+
+  23 Dec 2013; Johannes Huber <johu@gentoo.org>                                                                         
+  +files/kwalletd-4.12.0-qgpgme.patch, kwalletd-4.12.0.ebuild:                                                          
+  Add upstream patch to fix build without USE semantic-desktop, bug #494712.                                            
+
Comment 10 wojtek 2013-12-23 10:49:03 UTC
Still fails on my system.


[ 29%] Building CXX object kwalletd/backend/CMakeFiles/kwalletbackend.dir/kwalletbackend.o
cd /tmp/portage_build/portage/kde-base/kwalletd-4.12.0/work/kwalletd-4.12.0_build/kwalletd/backend && /usr/bin/x86_64-pc-linux-gnu-g++  -DKDE4_CMAKE_TOPLEVEL_DIR_LENGTH=56 -DKDE_DEPRECATED_WARNINGS -DMAKE_KWALLETBACKEND_LIB -DQT_NO_CAST_TO_ASCII -DQT_NO_STL -DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS -D_BSD_SOURCE -D_REENTRANT -D_XOPEN_SOURCE=500  -DQT_NO_DEBUG -DNDEBUG -O2 -march=amdfam10 -pipe -fno-ident  -Wnon-virtual-dtor -Wno-long-long -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-exceptions -DQT_NO_EXCEPTIONS -fno-check-new -fno-common -Woverloaded-virtual -fno-threadsafe-statics -fvisibility=hidden -fvisibility-inlines-hidden -fPIC -I/tmp/portage_build/portage/kde-base/kwalletd-4.12.0/work/kwalletd-4.12.0_build/kwalletd/backend -I/tmp/portage_build/portage/kde-base/kwalletd-4.12.0/work/kwalletd-4.12.0/kwalletd/backend -I/tmp/portage_build/portage/kde-base/kwalletd-4.12.0/work/kwalletd-4.12.0 -I/tmp/portage_build/portage/kde-base/kwalletd-4.12.0/work/kwalletd-4.12.0_build -I/usr/include/KDE -I/usr/include/qt4/QtXmlPatterns -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtWebKit -I/usr/include/qt4/QtUiTools -I/usr/include/qt4/QtTest -I/usr/include/qt4/QtSvg -I/usr/include/qt4/QtSql -I/usr/include/qt4/QtScriptTools -I/usr/include/qt4/QtScript -I/usr/include/qt4/QtOpenGL -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtDesigner -I/usr/include/qt4/QtDeclarative -I/usr/include/qt4/QtDBus -I/usr/include/qt4/Qt3Support -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtCore -I/usr/include/qt4/Qt -I/usr/share/qt4/mkspecs/default -I/usr/include/qt4    -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -o CMakeFiles/kwalletbackend.dir/kwalletbackend.o -c /tmp/portage_build/portage/kde-base/kwalletd-4.12.0/work/kwalletd-4.12.0/kwalletd/backend/kwalletbackend.cc
/tmp/portage_build/portage/kde-base/kwalletd-4.12.0/work/kwalletd-4.12.0/kwalletd/backend/kwalletbackend.cc:31:25: fatal error: gpgme++/key.h: No such file or directory
 #include <gpgme++/key.h>
                         ^
compilation terminated.
Comment 11 shinydoofy 2013-12-23 20:06:25 UTC
(In reply to wojtek from comment #10)
> Still fails on my system.
Also still fails for me as well.
I'll attach the patch that I also had to apply to fix compilation for me. For now, I cannot comment on the functionality itself because I haven't logged in again after upgrading to KDE 4.12.
Comment 12 shinydoofy 2013-12-23 20:07:23 UTC
Created attachment 366014 [details, diff]
Second patch

Patch to fix some more qgpgme++ #includes.
Comment 13 Oleh 2013-12-25 19:10:34 UTC
Reopen bug, because patch doesn't fixed anything.
Comment 14 László Szalma 2013-12-25 19:24:29 UTC
"because patch doesn't fixed anything" I didn't wanted to add a comment, but this is not true, it didn't compiled before, now it does. (for me at least, and some others). I don't know if it works for others, but the original problem was solved (at least for many)
Comment 15 Martin Wegner 2013-12-25 19:37:12 UTC
Compilation still fails with the same error here.

$ emerge -pv kdewalletd
[ebuild     U  ] kde-base/kwalletd-4.12.0:4 [4.11.4:4] USE="(-aqua) -debug -semantic-desktop%" 7,667 kB

Error:

/var/tmp/portage/kde-base/kwalletd-4.12.0/work/kwalletd-4.12.0/kwalletd/backend/kwalletbackend.cc:31:25: fatal error: gpgme++/key.h: No such file or directory
 #include <gpgme++/key.h>
                         ^
compilation terminated.

Compilation works for me with the patch provided in comment #12 which seems to be still missing from the ebuild.

$ emerge --info kwalletd
Portage 2.2.7 (default/linux/amd64/13.0/desktop/gnome, gcc-4.8.2, glibc-2.17, 3.12.6-gentoo-odin x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.12.6-gentoo-odin-x86_64-Intel-R-_Core-TM-_i5_CPU_M_560_@_2.67GHz-with-gentoo-2.2
KiB Mem:     8021728 total,   4548140 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Wed, 25 Dec 2013 14:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.6, 3.2.5-r3, 3.3.3
dev-util/cmake:           2.8.12.1-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.13.4, 1.14.1
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.8.2
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.12 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo systemd gentoo-haskell betagarden steam-overlay x-portage
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=1 --load-average=5"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs candy clean-logs config-protect-if-modified distlocks ebuild-locks fakeroot fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.modulix.net/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/"
LANG="C"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4 -l5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/systemd /var/lib/layman/haskell /var/lib/layman/betagarden /var/lib/layman/steam /usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="X a52 aac acpi alsa amd64 amr avahi berkdb bluetooth branding bzip2 cairo cdda cli colord cracklib crypt cryptsetup cups cxx dbus dirac divx dri dts dvb dvd emboss encode exif faac faad fam ffmpeg firefox flac fuse gdbm gif gnome gnome-keyring gnome-online-accounts gstreamer gtk gtk3 iconv idn inotify introspection ipv6 jpeg lame lastfm lcms libnotify libsecret mad mmx mng modules mp3 mp4 mpeg mudflap multilib nautilus ncurses networkmanager nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio readline realmedia samba schroedinger sdl sendto session socialweb spell sse sse2 ssl startup-notification svg syslog systemd tcpd telepathy theora tiff truetype udev udisks unicode upower usb v4l v4l2 vim-syntax vorbis wmp wxwidgets x264 xcb xinerama xml xv xvid zeitgeist zeroconf zlib zsh-completion" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en de" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

kde-base/kwalletd-4.11.4 was built with the following:
USE="(-aqua) -debug"
Comment 16 Michael Palimaka (kensington) gentoo-dev 2013-12-26 12:52:19 UTC
*** Bug 496056 has been marked as a duplicate of this bug. ***
Comment 17 Uros 2013-12-29 06:55:03 UTC
I also hit the same problem as #15, when upgrading from 4.11.4 (-semantic-desktop).
Comment 18 Piotr Szymaniak 2013-12-29 22:26:58 UTC
(In reply to Martin Wegner from comment #15)

Got the same error.
Comment 19 Michael Palimaka (kensington) gentoo-dev 2013-12-30 08:58:20 UTC
*** Bug 496424 has been marked as a duplicate of this bug. ***
Comment 20 Märt Bakhoff 2014-01-12 22:41:19 UTC
Comment #10 in the kde bugtracker contains a fix for the missing gpgme++ header. Applying it in addition to the existing kwalletd-4.12.0-qgpgme.patch fixes the build on my machine.
Comment 21 megabaks 2014-01-18 18:20:10 UTC
>>> Whiteboard:	fixed in 4.12.1
no! same problem.
patches are incompatible with 4.12.1
Comment 22 Michael Palimaka (kensington) gentoo-dev 2014-01-18 18:20:58 UTC
(In reply to megabaks from comment #21)
> >>> Whiteboard:	fixed in 4.12.1
> no! same problem.
> patches are incompatible with 4.12.1

Try it without the patches, the issue should be fixed upstream
Comment 23 megabaks 2014-01-18 19:10:18 UTC
(In reply to Michael Palimaka (kensington) from comment #22)
> (In reply to megabaks from comment #21)
> > >>> Whiteboard:	fixed in 4.12.1
> > no! same problem.
> > patches are incompatible with 4.12.1
> 
> Try it without the patches, the issue should be fixed upstream

without patches problem
with patches no problem - patches incompatible with 4.12.1 :)
Comment 24 Alex Barker 2014-01-18 20:22:02 UTC
I can confirm that 4.12.1 is still an issue for me as well.  I will see if I can fix some of the patches.  P.S. Fixed up streams a bit of a joke when talking about KDE.
Comment 25 shinydoofy 2014-01-19 00:07:05 UTC
Created attachment 368126 [details, diff]
Patch for 4.12.1
Comment 26 megabaks 2014-01-19 00:43:33 UTC
(In reply to shinydoofy from comment #25)
> Created attachment 368126 [details, diff] [details, diff]
> Patch for 4.12.1

compiled fine
Comment 27 Uros 2014-01-19 08:10:05 UTC
(In reply to shinydoofy from comment #25)
> Created attachment 368126 [details, diff] [details, diff]
> Patch for 4.12.1

Thanks. Works for me.
Comment 28 Alex Barker 2014-01-19 18:34:04 UTC
(In reply to shinydoofy from comment #25)
> Created attachment 368126 [details, diff] [details, diff]
> Patch for 4.12.1

Patching also works for me.  Thanks!
Comment 29 J.Borme 2014-01-19 19:02:53 UTC
(In reply to shinydoofy from comment #25)
> Created attachment 368126 [details, diff] [details, diff]
> Patch for 4.12.1

Thanks for the patch, it worked for me as well
Comment 30 Michael Palimaka (kensington) gentoo-dev 2014-01-21 05:22:25 UTC
Thanks, the latest patch here is merged upstream and backported into CVS. Sorry about the delay.

+  21 Jan 2014; Michael Palimaka <kensington@gentoo.org>
+  +files/kwalletd-4.12.1-nosemanticdesktop.patch,
+  -files/kwalletd-4.12.0-qgpgme.patch, kwalletd-4.12.1.ebuild:
+  Backport patch from upstream to fix build with USE="-semantic-desktop", wrt
+  bug #494712.