Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 405939 - app-office/calligra-2.3.87 USE=calligra_features_plan - work/calligra-2.3.87/plan/libs/ui/kptsummarytaskgeneralpanel.cpp:35:57: fatal error: akonadi/contact/emailaddressselectiondialog.h: No such file or directory compilation terminated.
Summary: app-office/calligra-2.3.87 USE=calligra_features_plan - work/calligra-2.3.87/...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Andreas K. Hüttel
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-26 17:57 UTC by Ondřej Kajínek
Modified: 2012-03-20 18:52 UTC (History)
2 users (show)

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


Attachments
build_log (build_log,499.01 KB, text/plain)
2012-02-26 17:58 UTC, Ondřej Kajínek
Details
portage_output (file_405939.txt,6.86 KB, text/plain)
2012-03-11 12:08 UTC, Ondřej Kajínek
Details
modified calligra-2.3.87.ebuild (calligra-2.3.87.ebuild,6.47 KB, text/plain)
2012-03-19 21:10 UTC, Ondřej Kajínek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ondřej Kajínek 2012-02-26 17:57:10 UTC
Unable to emerge app-office/calligra-2.3.87 with calligra_feature_plan set on. Emerging with USE="-calligra_feature_plan" runs successfully.

Reproducible: Always

Steps to Reproduce:
1. emerge app-office/calligra
Actual Results:  
I tried emerging calligra (features: words, tables, flow, plan, krita), emerge failed when building 'plan/libs/ui/CMakeFiles/kplatoui.dir/kptsummarytaskgeneralpanel.o' - 'fatal error: akonadi/contact/emailaddressselectiondialog.h: No such file or directory' (line 5423 in build_log).

Expected Results:  
Successfully emerging app-office/calligra with selected features

last emerge --sync: Fri, 26 Feb 2012 13:31:01 +0000

emerge -pqv app-office/calligra:
[ebuild  N    ] app-office/calligra-2.3.87  USE="crypt eigen exif fontconfig gif glib gsf iconv jpeg kdcraw kdepim lcms mso okular opengl pdf ssl threads tiff truetype wmf xml xslt (-aqua) -attica -fftw -freetds -glew -gsl -handbook -jpeg2k -marble -mysql -openctl -openexr -postgres -semantic-desktop -sybase -test -word-perfect -xbase" CALLIGRA_FEATURES="flow krita plan tables words -braindump -karbon -kexi -stage" 


emerge --info:

Portage 2.1.10.44 (default/linux/x86/10.0, gcc-4.5.3, glibc-2.13-r4, 3.2.1-gentoo-r2 i686)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.2.1-gentoo-r2-i686-Intel-R-_Pentium-R-_4_CPU_3.00GHz-with-gentoo-2.0.3
Timestamp of tree: Fri, 24 Feb 2012 20:30:01 +0000
app-shells/bash:          4.1_p9
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.1.4-r3
dev-util/cmake:           2.8.6-r4
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r1
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo rebutia
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=prescott -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /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="-O2 -march=prescott -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="cs_CZ.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="cs"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/rebutia"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac acl acpi aiglx alsa aoss asf berkdb bzip2 cli cracklib crypt cups cxx dbus djvu dri dvd fam flac fortran gdbm gif gpm hal iconv jpeg kde lame mad matroska mmx modules mp3 mp4 mudflap ncurses new-login nls nptl nptlonly nsplugin opengl openmp pam pcre pdf png pppd qt3support qt4 rar readline samba session spell sse sse2 sse3 ssl svg symlink sysfs tcpd threads tiff truetype unicode vidix win32codecs x264 x86 xcomposite xml xorg xscreensaver xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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="words flow plan tables krita" 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 ubx" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="cs" PHP_TARGETS="php5-3" RUBY_TARGETS="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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Ondřej Kajínek 2012-02-26 17:58:47 UTC
Created attachment 303395 [details]
build_log

build.log from attempt to emerge calligra with plan feature
Comment 2 Ian Delaney (RETIRED) gentoo-dev 2012-03-08 19:51:09 UTC
could not replicate.

gentoo64 calligra # qfile emailaddressselectiondialog.h
kde-base/kdepimlibs (/usr/include/akonadi/contact/emailaddressselectiondialog.h)

ebuild has calligra_features_plan? ( kdepim ) && the emerge demanded the use flag kdepim.  I find it diffcult to see how this occured.  Is it posible you used 

USE=calligra_features_plan ebuild calligra-2.3.87.ebuild merge tather than emerge, because that will skirt the deps.
Comment 3 Ondřej Kajínek 2012-03-09 21:23:32 UTC
Hi,
I tried searching for emailaddressselectiondialog.h (qfile, locate), but I don't have it in my system (even akonadi directory isn't present in my /usr/include/ directory). Kde-base/kdepimlibs is installed (have been merged before, with KDE apps). 
I certainly used "emerge app-office/calligra", I've been trying to emerge it several times, on x86 and later on amd64, and on both machines I got the same error. Portage forced me to add kdepim flag when trying to emerge with calligra_features_plan, and also pulled several more dependencies.
I'll try to re-emerge kde-base/kdepimlibs (now I've installed 4.7.4-r1 with all USE flags disabled) and then app-office/calligra, and will post the result.

Thanks for your time and effort
Comment 4 Ondřej Kajínek 2012-03-10 19:02:15 UTC
I found out that calligra with plan feature compiles correctly when kde-base/kdepimlibs is compiled with semantic-desktop USE flag enabled. Only in such case you get emailaddressselectiondialog.h in your /usr/include/ directory. I suppose that this header is pulled with app-office/akonadi-server, on which kdepimlibs[semantic-desktop] depend. 
I'll modify the calligra-2.3.87.ebuild and once again try to emerge calligra, and if it is successful, post the modified ebuild, if such solution would be acceptable.
Comment 5 Ondřej Kajínek 2012-03-11 12:08:05 UTC
Created attachment 304909 [details]
portage_output

after emerging app-office/calligra, I got this when tried emerge -pvuDN world
Comment 6 Ondřej Kajínek 2012-03-11 12:18:08 UTC
Well...
I add "calligra_features_plan? ( kde-base/kdepimlibs[semantic-desktop] )" to RDEPEND in calligra-2.3.87.ebuild so portage pulls all packages needed to compile app-office/calligra. Now I am able to emerge calligra without any problem, calligraplan runs. 
Problem is, that I have semantic-desktop flag disabled in all my packages (excluding kdelibs and kdepimlibs), portage starts to complain about slot conflicts (see portage_output in my previous post). So I have to enable semantic-desktop globally (or use any alternative to calligraplan) and re-emerge several packages (if you disable this flag and reinstall kdelibs and kdepimlibs, you also remove some libs needed by calligraplan).
I don't think that this solution is "nice" (only working, with some headache), calligra compiles with calligra_feature_plan enabled, calligraplan runs. I'm a little disapointed, I hope there is an easier way.
Comment 7 Ian Delaney (RETIRED) gentoo-dev 2012-03-18 09:51:58 UTC
Problem is, that I have semantic-desktop flag disabled in all my packages (excluding kdelibs and kdepimlibs)

ouch.  Have a good reason?  kde and co like use=semantic-desktop
Comment 8 Tomáš Chvátal (RETIRED) gentoo-dev 2012-03-18 11:45:42 UTC
Actually the plan really uses akonadi.

Which means that it NEEDS semanitc-desktop on.

Sadly the semantic-desktop useflag is ment to be set only in make.conf so you can wether enable it globaly, or disable it globaly.

If you finetune your semantic-desktop useflag then you should stop doing so as it only will result in broken system.

@Andreas: as it seems in the cmakelists just add the dep there.
Comment 9 Ondřej Kajínek 2012-03-19 19:06:17 UTC
I have modified calligra-2.3.87.ebuild (added the missing dependency and some ewarns about recompiling KDE apps with semantic-desktop flag enabled), I'm going to emerge calligra once again, and if the ebuild will seem fine to me, I'll post it here (or if it should be put on different place, I will do so).

@Ian: yes, as you said, you have to enable semantic-desktop flag in kdelibs and kdepimlibs, otherwise calligra won't compile. And having these libs with semantic-desktop on forces you to enable it in all other KDE apps that use this flag (try updating your system, portage will suggest to disable this flag in libs, or to enable it in dolphin, amarok, etc), or recompile kde{,pim}libs without this flag (which breaks dependecies of calligraplan) => you'll end up with semantic-desktop enabled :)
Comment 10 Ondřej Kajínek 2012-03-19 21:10:16 UTC
Created attachment 305903 [details]
modified calligra-2.3.87.ebuild

This ebuild contains dependency of calligraplan which are missing in official portage ebuild. And when emerging calligra with feature_plan, emerge will show warning about semantic-desktop flag (either globally enabled, or disabled, which leads to unability to run calligraplan).
Comment 11 Andreas K. Hüttel archtester gentoo-dev 2012-03-20 08:32:12 UTC
Requirement added... thanks.
Comment 12 Ondřej Kajínek 2012-03-20 11:36:31 UTC
thanks? why? :) solving this bug was quite easy and fun :) (and my very first experience with ebuilds)
Comment 13 Andreas K. Hüttel archtester gentoo-dev 2012-03-20 18:52:05 UTC
(In reply to comment #12)
> thanks? why? :) solving this bug was quite easy and fun :) (and my very
> first experience with ebuilds)

:) feel free to join us on #gentoo-kde or any of the other gentoo irc channels on freenode, we're always glad for help :)