Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 532762 - app-office/calligra-2.8.5 - In file included from .../work/calligra-2.8.5/krita/image/kis_assert.cpp:24:0: .../work/calligra-2.8.5/krita/image/kis_assert_exception.h:27:1: error: expected class-name before ‘{’ token
Summary: app-office/calligra-2.8.5 - In file included from .../work/calligra-2.8.5/kri...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL: https://bugs.kde.org/show_bug.cgi?id=...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-17 04:44 UTC by boxcars
Modified: 2015-08-18 11:23 UTC (History)
2 users (show)

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


Attachments
app-office:calligra-2.8.5:20141217-042147.log.gz (app-office:calligra-2.8.5:20141217-042147.log.gz,627.11 KB, application/gzip)
2014-12-18 03:56 UTC, boxcars
Details
app-office:calligra-2.8.5:20141221-083915.log.gz (app-office:calligra-2.8.5:20141221-083915.log.gz,831.21 KB, application/gzip)
2014-12-21 15:06 UTC, boxcars
Details
calligra-2.8.7-r1 (calligra-2.8.7.ebuild,5.77 KB, text/plain)
2015-05-24 19:13 UTC, Jonathan Scruggs (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description boxcars 2014-12-17 04:44:14 UTC
$ emerge -pqv '=app-office/calligra-2.8.5::gentoo'
[ebuild  N    ] app-office/calligra-2.8.5  USE="crypt eigen exif fontconfig glib handbook jpeg kde kdepim lcms mysql okular opengl pdf threads tiff truetype xml (-aqua) -attica -fftw -freetds -glew -gsf -gsl -import-filter -jpeg2k -kdcraw -marble -nepomuk -openexr (-postgres) -spacenav (-sybase) {-test} -vc -xbase" CALLIGRA_FEATURES="author braindump flow karbon kexi krita plan sheets stage words"

$ emerge --info '=app-office/calligra-2.8.5::gentoo'
Portage 2.2.14 (python 3.4.1-final-0, default/linux/amd64/13.0/desktop/kde, gcc-4.8.3, glibc-2.19-r1, 3.17.4-gentoo-mlc x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.17.4-gentoo-mlc-x86_64-Intel-R-_Core-TM-_i7-4700MQ_CPU_@_2.40GHz-with-gentoo-2.2
KiB Mem:     8087196 total,   2730904 free
KiB Swap:    8191996 total,   8144476 free
Timestamp of tree: Wed, 17 Dec 2014 03:45:01 +0000
ld GNU ld (Gentoo 2.24 p1.4) 2.24
app-shells/bash:          4.2_p53
dev-lang/perl:            5.18.2-r2
dev-lang/python:          2.7.7, 3.4.1
dev-util/cmake:           2.8.12.2-r1
dev-util/pkgconfig:       0.28-r1
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-r1, 1.13.4
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.8.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.16 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: mozilla gentoo
ACCEPT_KEYWORDS="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 /usr/share/themes/oxygen-gtk/gtk-2.0 /usr/share/themes/oxygen-gtk/gtk-3.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--ask-enter-invalid --jobs=8 --load-average 11.2 --with-bdeps y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildsyspkg collision-protect config-protect-if-modified distlocks downgrade-backup ebuild-locks fail-clean fixlafiles merge-sync news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.cites.uiuc.edu/pub/gentoo/ http://gentoo.mirrors.easynews.com/linux/gentoo/ http://mirror.lug.udel.edu/pub/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="--jobs=8 --load-average=11.2"
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/mozilla /usr/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="64bit X a52 aac aalib accessibility acl acpi additions agg alsa amd64 apng asf aspell audio aura avahi avcodec avformat bash-completion bluetooth bookmarks boost branding bzip2 cairo calendar canlock cdda cddb cdio cdparanoia cdr center-tilde chatzilla chert city classic clucene color colordiff consolekit cover cracklib crypt cryptsetup css cups curl cxx dbus declarative dga dillo distinct-l dri dts dvd dvdr edit eigen encode exif expat extensions extra-cardsets fam fbcon ffmpeg filters flac fluidsynth fontconfig fontforge foomatic foomaticdb fortran ftp gdbm gif gles2 glib gnutls gost gpm graphviz gstreamer gudev handbook hbci hddtemp holidays hwdb iconv icu id3tag idn imagemagick inotify input_uvc int-quality ipc ipv6 isag javascript jit joystick jpeg json kde kdenlive kdepim kerberos kipi kmod ladspa lame lcms libass libev libkms libnotify libsecret libvisual lm_sensors lzma mad magic matroska mdnsresponder-compat melt midi mikmod minizip mjpeg mmx mmxext mng mod modplug mouse mp3 mp4 mpd mpeg mplayer mudflap musepack musicbrainz mysql nano-syntax natspec ncurses netifrc nls nntp nptl nsplugin ntfsprogs offensive offlinehelp ofx ogg okular opengl openmp openrc openssl opus orc output_autofocus output_file output_http output_rtsp output_udp pam pcf pci pcre pdf perl pm-utils png policykit portmon postproc psf pyqt4 python python2 qt3support qt4 quicktime raptor readline recursion-limit redland rss rtc sasl script scripts sdk sdl sdl-image sdl-sound secure-delete security semantic-desktop sensord session sha512 shared-glapi shorten skins smime smp sna soprano sound spell sql sqlite sse sse2 sse3 sse4_1 ssl ssse3 startup-notification stereo stl svg swscale symlink syslog system-icu system-jpeg system-libvpx taglib tcpd themes theora threads thumbnail tiff tk tls-heartbeat tremor truetype tty-helpers udev udisks unicode upower usb uudeview v4l vaapi vamp vcd vcdx vdpau video virtuoso vlm vorbis wav weather-metar weather-xoap webdav webgl webkit wifi xcb xface xml xorg xosd xpm xscreensaver xv xvfb xvmc yaml zeroconf zlib" ABI_X86="64" CALLIGRA_FEATURES="author braindump flow karbon kexi krita plan sheets stage words" CURL_SSL="openssl" ELIBC="glibc" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev mouse keyboard synaptics" KERNEL="linux" LINGUAS="en_US en" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20" USERLAND="GNU" VIDEO_CARDS="intel i965 v4l vesa"
USE_PYTHON="2.7"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-12-17 06:54:46 UTC
Please attach the entire build log to this bug report.
Comment 2 boxcars 2014-12-18 03:56:13 UTC
Created attachment 391904 [details]
app-office:calligra-2.8.5:20141217-042147.log.gz

Sorry, yesterday I was trying to upload the log uncompressed.
Comment 3 Michael Palimaka (kensington) gentoo-dev 2014-12-18 09:47:59 UTC
What is the output of grep exceptions /var/db/pkg/dev-qt/*/USE ?
Comment 4 boxcars 2014-12-19 02:29:20 UTC
(In reply to Michael Palimaka (kensington) from comment #3)
> What is the output of grep exceptions /var/db/pkg/dev-qt/*/USE ?

Empty output.

$ grep exceptions /var/db/pkg/dev-qt/*/USE
$
Comment 5 Michael Palimaka (kensington) gentoo-dev 2014-12-19 14:08:34 UTC
I suspect one or more Qt packages need to be built with USE="exceptions". If that's the case, we can enforce the appropriate dependency in the ebuild.
Comment 6 boxcars 2014-12-20 02:45:56 UTC
(In reply to Michael Palimaka (kensington) from comment #5)
> I suspect one or more Qt packages need to be built with USE="exceptions".

I'm happy to build some or all of them with USE exceptions, if the results of that might help figure it out.  But I'd need guideance on which package(s) to start with.
Comment 7 Michael Palimaka (kensington) gentoo-dev 2014-12-20 14:37:25 UTC
I think it could be qtcore, but failing that, calligra has these other qt dependencies:

dev-qt/qt3support
dev-qt/qtdbus
dev-qt/qtdeclarative
dev-qt/qtgui
dev-qt/qtopengl
dev-qt/qtsql
dev-qt/qtsvg
dev-qt/qtwebkit
Comment 8 boxcars 2014-12-21 15:06:22 UTC
Created attachment 392166 [details]
app-office:calligra-2.8.5:20141221-083915.log.gz

After rebuilding all of those with USE exceptions, calligra still fails to build.  Here's the new log.
Comment 9 Michael Palimaka (kensington) gentoo-dev 2014-12-21 15:59:27 UTC
Thanks, the exceptions issue is fixed in CVS:

+  21 Dec 2014; Michael Palimaka <kensington@gentoo.org> calligra-2.8.5.ebuild,
+  calligra-2.8.6.ebuild, calligra-2.8.7.ebuild, calligra-9999.ebuild:
+  Enforce dev-qt/qtcore[exceptions] dependency wrt bug #532762.

The new issue looks like upstream bug https://bugs.kde.org/show_bug.cgi?id=332813. I will investigate, but in the meantime building with USE="glew" should workaround.
Comment 10 boxcars 2014-12-22 17:42:00 UTC
Thanks.  And you were right about glew, so thanks again. :)
Comment 11 Jonathan Scruggs (RETIRED) gentoo-dev 2015-05-23 20:31:02 UTC
After reading upstream's bug report, it looks like the added OpenGL disablement I added in the 2.9.x ebuild might fix this. 

@boxcars@gmx.net: add this to the configure section of the ebuild, and then disable glew and opengl for calligra. Post back if it compiles or fails. If it succeeds, then maybe I need to add a bit of extra logic to disable opengl when glew is disabled.

# complete disablement of opengl is controlled by USEOPENGL. Defaults to ON.
use opengl || mycmakeargs+=( "-DUSEOPENGL=OFF" )


Thanks.
Comment 12 boxcars 2015-05-24 01:25:03 UTC
(In reply to Jon from comment #11)
 
It does compile with USE="-glew -opengl" after adding that to the ebuild.
Comment 13 Jonathan Scruggs (RETIRED) gentoo-dev 2015-05-24 19:13:05 UTC
Created attachment 403878 [details]
calligra-2.8.7-r1

Added logic to have user disable opengl if glew is disabled. Not ideal, but it works around this issue as per boxcars@gmx.net testing. Thanks to boxcars@gmx.net  for testing this quickly. Glew must have Opengl enabled in order to work. The logic in 2.9.x is very different -- they added extra opengl logic. Will test it.

Don't know if this really clears up this bug, as it's more of an upstream issue and by reading that bug report, they were under the attitude that it was a packaging error, as in Gentoo bug, not there's.
Comment 14 Johannes Huber (RETIRED) gentoo-dev 2015-08-18 11:23:15 UTC
Thanks for reporting. Glew use flag is dropped (merged into opengl). This is fixed in git now. Please sync.

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=40140f8ca8162288b9d5404183147109abcc5e2b