Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 543068 - app-office/calligra-2.9.6 version bump
Summary: app-office/calligra-2.9.6 version bump
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
: 552302 (view as bug list)
Depends on:
Blocks: 549940
  Show dependency tree
 
Reported: 2015-03-12 15:16 UTC by Alexandre
Modified: 2015-08-19 15:23 UTC (History)
11 users (show)

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


Attachments
test ebuild for Calligra 2.9.2 (calligra-2.9.2.ebuild,6.25 KB, text/plain)
2015-04-28 07:36 UTC, Jonathan Scruggs (RETIRED)
Details
Test ebuild for internationalization files for Calligra (calligra-l10n-2.9.2.ebuild,1.96 KB, text/plain)
2015-04-28 07:39 UTC, Jonathan Scruggs (RETIRED)
Details
potentially complete ebuild for calligra 2.9.2 (calligra-2.9.2.ebuild,6.49 KB, text/plain)
2015-04-30 14:00 UTC, Jonathan Scruggs (RETIRED)
Details
metadata.xml file updated for app-office/calligra with new use flag. (metadata.xml,1.61 KB, text/plain)
2015-04-30 14:02 UTC, Jonathan Scruggs (RETIRED)
Details
build.log for app-office/calligra-2.9.2 (build.log,11.08 KB, text/plain)
2015-05-04 18:19 UTC, Matteo 'The Peach' Pescarin
Details
calligra-2.9.2.ebuild (calligra-2.9.2.ebuild,6.51 KB, text/plain)
2015-05-06 22:17 UTC, Jonathan Scruggs (RETIRED)
Details
app-office/calligra-l10n/calligra-l10n-2.9.4.ebuild (calligra-l10n-2.9.4.ebuild,1.96 KB, text/plain)
2015-05-07 09:00 UTC, Jonathan Scruggs (RETIRED)
Details
app-office/calligra/metadata.xml (metadata.xml,1.61 KB, text/xml)
2015-05-07 09:01 UTC, Jonathan Scruggs (RETIRED)
Details
app-office/calligra/calligra-2.9.4.ebuild (calligra-2.9.4.ebuild,6.51 KB, text/plain)
2015-05-07 09:04 UTC, Jonathan Scruggs (RETIRED)
Details
app-office/calligra/calligra-2.9.4-r1.ebuild (calligra-2.9.4-r1.ebuild,6.65 KB, text/plain)
2015-05-10 20:14 UTC, Jonathan Scruggs (RETIRED)
Details
app-office/calligra-l10n/calligra-l10n-2.9.4.ebuild (calligra-l10n-2.9.4.ebuild,1.85 KB, text/plain)
2015-05-10 20:16 UTC, Jonathan Scruggs (RETIRED)
Details
app-office/calligra/calligra-2.9.4-r2.ebuild (calligra-2.9.4-r2.ebuild,6.22 KB, text/plain)
2015-05-20 17:57 UTC, Jonathan Scruggs (RETIRED)
Details
calligra-2.9.5.ebuild (calligra-2.9.5.ebuild,6.07 KB, text/plain)
2015-06-14 20:26 UTC, Jonathan Scruggs (RETIRED)
Details
calligra-l10n-2.9.5.ebuild (calligra-l10n-2.9.5.ebuild,1.85 KB, text/plain)
2015-06-14 20:27 UTC, Jonathan Scruggs (RETIRED)
Details
calligra-2.9.5.ebuild (file_543068.txt,6.29 KB, text/plain)
2015-06-15 13:03 UTC, Alex Xu (Hello71)
Details
calligra-2.9.5.ebuild (calligra-2.9.5.ebuild,6.07 KB, text/plain)
2015-06-21 15:13 UTC, Alex Xu (Hello71)
Details
Patch for fixing upstream file (libs_widgets_CMakeLists.patch,531 bytes, patch)
2015-08-10 08:36 UTC, Tamas Jantvik
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandre 2015-03-12 15:16:41 UTC
The 2.9.0 version of Calligra is out.

Thanks!

Reproducible: Always
Comment 1 Michael Palimaka (kensington) gentoo-dev 2015-03-13 15:05:03 UTC
Unfortunately this could take a little while - there's a lot of changes to check. We really need a dedicated maintainer.
Comment 2 Frank Krömmelbein 2015-03-15 23:17:21 UTC
Calligra 2.9.1 was released:
https://www.calligra.org/news/announcements/stable/calligra-2-9-1-released/
Comment 3 Frank Krömmelbein 2015-04-02 23:02:07 UTC
Again new upstream release: 2.9.2
https://www.calligra.org/news/calligra-2-9-2-released/
Comment 4 brothermechanic 2015-04-11 18:04:24 UTC
Hate media-gfx mantainers!!!
Comment 5 Michael Palimaka (kensington) gentoo-dev 2015-04-11 18:05:22 UTC
(In reply to brothermechanic from comment #4)
> Hate media-gfx mantainers!!!

Why?
Comment 6 brothermechanic 2015-04-14 11:45:51 UTC
Because they don't hear of users, especially mr. hasufell

I emailed to blener maintainer and to calligra maintainer - no result...
Comment 7 brothermechanic 2015-04-14 11:46:39 UTC
blender, i mean
Comment 8 Michael Palimaka (kensington) gentoo-dev 2015-04-14 13:30:40 UTC
I'm sorry you didn't get a response - there appear only to be a few active members of the graphics team and perhaps they missed your mail or are simply busy. It's probably better to file a bug - the issue can't get lost that way.

Not sure what any of this has to do with calligra though.
Comment 9 Jonathan Scruggs (RETIRED) gentoo-dev 2015-04-28 07:36:44 UTC
Created attachment 402138 [details]
test ebuild for Calligra 2.9.2

I made an updated ebuild with the new dependencies that 2.9.x needs, like Eigen 3 and others. I also took the liberty of adding or dependencies with kde-apps, though not sure what will happen if someone without the KDE overlay will use this.

Please Note: I have not finished checking every single new optional dependency yet. This is a time consuming process. I post this so those that have posted before can start playing with it and see if everything works alright. It compiles, installs, and runs. I will do more testing as I have kde-apps installed and I need to see if it breaks anything.

Have fun.
Comment 10 Jonathan Scruggs (RETIRED) gentoo-dev 2015-04-28 07:39:58 UTC
Created attachment 402140 [details]
Test ebuild for internationalization files for Calligra

There were some languages removed and some added. If your language was removed, then you need to file a bug upstream as these are all the officially released ones.

You will need to make an overlay with app-office/calligra and app-office/calligra-l10n to put the respective ebuilds in.

Have fun. :)
Comment 11 Jonathan Scruggs (RETIRED) gentoo-dev 2015-04-30 14:00:27 UTC
Created attachment 402302 [details]
potentially complete ebuild for calligra 2.9.2

I added new optional dependencies and a new use flag for OpenColorIO use. I couldn't activate all optional dependencies due to the fact that the required packages are not in portage, or overlays for that matter. If I feel up to it, I'll make those ebuilds and update this ebuild for those. Also, some compiler options to enable certain dependencies have changed names and version required of external dependencies.

This should be mostly a feature complete ebuild unless I misspelled something. All features really need testing, like the PostgreSQL connector for Kexi. I don't use Postgres, so not too familiar with it or if the plugin even compiles for it, since it's one of those that changed activator names.

Hope this is right.

Thanks.
Comment 12 Jonathan Scruggs (RETIRED) gentoo-dev 2015-04-30 14:02:50 UTC
Created attachment 402304 [details]
metadata.xml file updated for app-office/calligra with new use flag.

Updated with a full description of the added use flag for OpenColorIO. To enable that, use colorio, which is an already established use flag.
Comment 13 Matteo 'The Peach' Pescarin 2015-05-04 18:19:53 UTC
Created attachment 402642 [details]
build.log for app-office/calligra-2.9.2

Thanks for providing the ebuild.

Just tried compiling it and I've got a bunch of errors in the configure phase.
See full log attached.

Following the emerge --info output

Portage 2.2.18 (python 2.7.9-final-0, default/linux/amd64/13.0, gcc-4.8.4, glibc-2.20-r2, 3.19.5 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.19.5-x86_64-Intel-R-_Core-TM-_i7_CPU_M_620_@_2.67GHz-with-gentoo-2.2
KiB Mem:     8024124 total,    741020 free
KiB Swap:    2047996 total,   2047692 free
Timestamp of repository gentoo: Sat, 02 May 2015 10:15:01 +0000
sh bash 4.2_p53
ld GNU ld (Gentoo 2.24 p1.4) 2.24
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.2_p53::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.9-r1::gentoo, 3.3.5-r1::gentoo, 3.4.1::gentoo
dev-util/cmake:           2.8.12.2-r1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.13.11::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.13.4::gentoo
sys-devel/binutils:       2.24-r3::gentoo
sys-devel/gcc:            4.8.4::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers)
sys-libs/glibc:           2.20-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.europe.gentoo.org/gentoo-portage
    priority: -1000

jorgicio
    location: /var/lib/layman/jorgicio
    masters: gentoo
    priority: 0

steam-overlay
    location: /var/lib/layman/steam-overlay
    masters: gentoo
    priority: 1

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 2

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=core2"
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/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php
5.5/ext-active/ /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=core2"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs candy config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-war
n unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://trumpetti.atm.tut.fi/gentoo/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
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"
USE="X a52 aac acl acpi alsa amd64 bash-completion berkdb bluetooth bzip2 cairo cddb cleartype cli cracklib crypt cups cxx dbus dri dvd dvdr exif ffmpeg flac foomaticdb fortran gdbm gif gimp gtk iconv icu i
dn ipv6 jpeg jpeg2k lcms libnotify libsamplerate logrotate mmx mmxext mng modules mp3 mpeg multilib ncurses nls nptl nsplugin offensive ogg opengl openmp pam pcre png policykit ppds pulseaudio qt3support qt
4 readline samba schroedinger session sse sse2 ssl ssse3 startup-notification svg syslog systemd tcpd theora threads tiff truetype udev unicode usb v4l v4l2 vorbis wavpack win32codecs wma x264 xcomposite xf
t xinerama xml xpm xscreensaver xv xvid 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="actions alias auth_basic authn_alias authn_anon authn_default authn_file authz_default authz_groupfile authz_host authz_us
er autoindex cache 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 userd
ir usertrack vhost_alias" APACHE2_MPMS="peruser" CALLIGRA_FEATURES="krita" CAMERAS="*" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes mmx mmxext popcnt sse sse2 sse3 
sse4_1 sse4_2 ssse3" ELIBC="glibc" ENLIGHTENMENT_MODULES="*" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm1
04v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev keyboard mouse synaptics wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb
216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_GB it" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7
" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby20" USERLAND="GNU" VIDEO_CARDS="nvidia v4l" XFCE_PLUGINS="brightness menu trash logout clock" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4opt
ions ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
USE_PYTHON="2.7 3.3"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 14 Jonathan Scruggs (RETIRED) gentoo-dev 2015-05-05 19:50:32 UTC
(In reply to Matteo 'The Peach' Pescarin from comment #13)
Strange. It compiles for me. Maybe I have a needed dependency or version needed? Are you using stable or unstable packages?
Comment 15 Matteo 'The Peach' Pescarin 2015-05-05 23:20:22 UTC
(In reply to Jon from comment #14)
> Strange. It compiles for me. Maybe I have a needed dependency or version
> needed? Are you using stable or unstable packages?

well, mostly stable... 
any output that could help anyone figure out where this is coming from?

The error I do see during configure phase is the following:

> CMake Error at filters/words/wiki/CMakeLists.txt:4 (update_xdg_mimetypes):
  Unknown CMake command "update_xdg_mimetypes".
Comment 16 Jonathan Scruggs (RETIRED) gentoo-dev 2015-05-06 07:33:15 UTC
(In reply to Matteo 'The Peach' Pescarin from comment #15)
> (In reply to Jon from comment #14)
> The error I do see during configure phase is the following:
> 
> > CMake Error at filters/words/wiki/CMakeLists.txt:4 (update_xdg_mimetypes):
>   Unknown CMake command "update_xdg_mimetypes".
 That's the stop error. I'll go through my list of dependencies and check the versions plus use flags and post that later tonight. By that I mean around 10:30 PM London time. :P

Kind regards.
Comment 17 Frank Krömmelbein 2015-05-06 10:50:33 UTC
Calligra 2.9.4 was just released:
https://www.calligra.org/news/calligra-2-9-4-released/

Just tested this new version with the rennamed attached ebuild.
Result, exactly the same error as Matteo with the older version.
Tested this also with a newer version of cmake instead of the actual stable version: same result.
Comment 18 Jonathan Scruggs (RETIRED) gentoo-dev 2015-05-06 22:17:59 UTC
Created attachment 402794 [details]
calligra-2.9.2.ebuild

Apparently one of the optional dependencies is not very optional. Took awhile to track it down. I happened to have the dependencies for it install already. I guess I need to file this upstream as it's more like a hard dependency, rather than an optional one. Ah well. It should configure now.

Go nuts.
Comment 19 Jonathan Scruggs (RETIRED) gentoo-dev 2015-05-07 09:00:39 UTC
Created attachment 402806 [details]
app-office/calligra-l10n/calligra-l10n-2.9.4.ebuild

Changelog: tr is no longer a supported translation.
Comment 20 Jonathan Scruggs (RETIRED) gentoo-dev 2015-05-07 09:01:35 UTC
Created attachment 402808 [details]
app-office/calligra/metadata.xml
Comment 21 Jonathan Scruggs (RETIRED) gentoo-dev 2015-05-07 09:04:54 UTC
Created attachment 402810 [details]
app-office/calligra/calligra-2.9.4.ebuild

They skipped 2.9.3 due to bugs or a serious nature. Let's hope they are fixed in this release. I have noticed a few bugs in 2.9.2, so let's hope they fixed them as well.

Cheers
Comment 22 Matteo 'The Peach' Pescarin 2015-05-08 12:00:05 UTC
@Jon, thanks a lot for the ebuild.

Just tried compiling it and everything works perfectly.
Big thumbs up!
Comment 23 Jonathan Scruggs (RETIRED) gentoo-dev 2015-05-08 13:55:28 UTC
(In reply to Matteo 'The Peach' Pescarin from comment #22)
> @Jon, thanks a lot for the ebuild.
> 
> Just tried compiling it and everything works perfectly.
> Big thumbs up!

Thanks. Was it the new 2.9.4 ebuilds? I still had to hard enable the one optional dependency, but it doesn't matter too much since it's useful. :)

Cheers.
Comment 24 Matteo 'The Peach' Pescarin 2015-05-08 14:01:47 UTC
(In reply to Jon from comment #23)
> Thanks. Was it the new 2.9.4 ebuilds? I still had to hard enable the one
> optional dependency, but it doesn't matter too much since it's useful. :)
> 

Yes, 2.9.4. 

What was the dep?
Comment 25 Jonathan Scruggs (RETIRED) gentoo-dev 2015-05-08 14:26:11 UTC
(In reply to Matteo 'The Peach' Pescarin from comment #24)
> (In reply to Jon from comment #23)
> > Thanks. Was it the new 2.9.4 ebuilds? I still had to hard enable the one
> > optional dependency, but it doesn't matter too much since it's useful. :)
> > 
> 
> Yes, 2.9.4. 
> 
> What was the dep?

It was an import filter. It helps detect file types of only certain types, basically all the ones enabled by the import-filter use flag, which is why I had it under that. I read through all the CMake files to determine what it does, and saw what it was good for, so I figured might as well enable it for those types, but the configure system was having none of it. Now Calligra has the ability to determin the type of file it can't import. :P

Calligra also has git support, but can't enable that as one of the needed dependencies isn't even in portage, so now I guess I'll work on that ebuild and a few others that are missing.

Kind regards,
Jon
Comment 26 Alex Xu (Hello71) 2015-05-09 13:02:47 UTC
(In reply to Jon from comment #21)
> Created attachment 402810 [details]
> app-office/calligra/calligra-2.9.4.ebuild
> 
> They skipped 2.9.3 due to bugs or a serious nature. Let's hope they are
> fixed in this release. I have noticed a few bugs in 2.9.2, so let's hope
> they fixed them as well.
> 
> Cheers

> -# $Header: /var/cvsroot/gentoo-x86/app-office/calligra/calligra-2.8.7.ebuild,v 1.4 2015/01/28 22:40:16 johu Exp $
> +# $Header: Exp $

remove "Exp"

> +inherit check-reqs kde4-base kde5-functions versionator

I don't know if we really want kde5 here; maybe it would be better to wait for calligra 3?

> +               dev-libs/librevenge
> +       x11-misc/shared-mime-info
> +               $(cmake-utils_use_with colorio OCIO)

sort deps and cmakeargs in some order; doesn't have to be strict :!sort, but maybe put all the non-USE deps first, then the USE-deps or something.
Comment 27 Jonathan Scruggs (RETIRED) gentoo-dev 2015-05-10 20:14:32 UTC
Created attachment 403002 [details]
app-office/calligra/calligra-2.9.4-r1.ebuild

NOTE: If you installed the previous ebuild and you have Calligra Active installed, then you will want to upgrade to this one. Explanation below.

Changes:
Removed the Exp that I forgot about in the header. Ooops.

Resorted some of the depends. A bit better now. I'll think of a better way as it's a huge list that's doing my head in.

Changed method of disabling OpenGL. It's on by default and when disabling it, it will completely disable it and all possible checks. There are two different disablers for OpenGL. Not sure one would really want to though, but you have the option.

Added another use flag that already exists in Gentoo for the Gold Linker. Gold supports faster linking. Better Linking???

I left the original logic of disabling/enabling Calligra features alone, initially. For example -DBUILD_active=OFF. However, this apparently did not work as Active was installed on my system. The new way of dealing with this is via Product Sets. This should completely turn off a Feature. In tests on my system, Active is no longer installed, or Gemini. It also allowed the Calligra Features USE Expand to be organized in alphabetical order. Always a bonus, right?

Added Gemini to Calligra Features Use Expand. Though, it is meant more for Touchscreen devices, so unless you have a touchscreen, don't enable it as it will do nothing for you. In fact, it only works when you switch to a Touchscreen Activity setting on the KDE Desktop.

Removed some hard enable depends as they are already on because Calligra needs them anyways, so extra lines in the ebuild that do nothing.

I removed the KDE5 stuff. I had to use that on my system since I use kde-apps/* instead of using kde-base/* and didn't want to recompile my whole system. I can understand why not to have it. I will be working on the live ebuild for master branch sometime to compile against KF5. In the meantime, the live master branch should really be removed, but didn't want to touch that yet as I might break something else.

Please peer review and abuse and report issues. ...Read that as: I hope I didn't remove something important removing the KDE5 stuff as I can't test it otherwise... I need to set up a dev VM.

Cheers.
Comment 28 Jonathan Scruggs (RETIRED) gentoo-dev 2015-05-10 20:16:38 UTC
Created attachment 403004 [details]
app-office/calligra-l10n/calligra-l10n-2.9.4.ebuild

Removed header that I forgot about. No other changes.
Comment 29 Alex Xu (Hello71) 2015-05-17 19:04:27 UTC
(In reply to Jon from comment #27)
> Created attachment 403002 [details]
> app-office/calligra/calligra-2.9.4-r1.ebuild

> 	!app-office/karbon

are any of these packages actually in the tree anymore?

> RESTRICT=test

are these still broken?

>       # Enable the gold linker support.
>       use gold && mycmakeargs+=(
>               "-DCMAKE_C_FLAGS=-fuse-linker-plugin"
>               "-DCMAKE_CXX_FLAGS=-fuse-linker-plugin"
>       )

this should be upstream iff they use lto

otherwise lgtm. I should have time to test in the next week or so.
Comment 30 Jonathan Scruggs (RETIRED) gentoo-dev 2015-05-17 19:33:41 UTC
(In reply to Alex Xu (Hello71) from comment #29)
> (In reply to Jon from comment #27)
> > Created attachment 403002 [details]
> > app-office/calligra/calligra-2.9.4-r1.ebuild
> 
> > 	!app-office/karbon
> 
> are any of these packages actually in the tree anymore?

Doesn't look like it. A quick search has them in the kde-sunset overlay, but I think those can be removed.

> 
> > RESTRICT=test
> 
> are these still broken?

I've never tried with test. 

> 
> >       # Enable the gold linker support.
> >       use gold && mycmakeargs+=(
> >               "-DCMAKE_C_FLAGS=-fuse-linker-plugin"
> >               "-DCMAKE_CXX_FLAGS=-fuse-linker-plugin"
> >       )
> 
> this should be upstream iff they use lto
> 
> otherwise lgtm. I should have time to test in the next week or so.

This is directly from their page https://community.kde.org/Calligra/Building (copy and paste verbatim):
[quote]Recommended: Faster linking on Linux. Linking can take noticeable time in large software such as Calligra. On Linux Gold linker can be used to speed up this task. If you're building for Linux, install the Gold linker package and add the following to your cmake command:

-DCMAKE_C_FLAGS=-fuse-linker-plugin -DCMAKE_CXX_FLAGS=-fuse-linker-plugin
(you can set the CMAKE_C_FLAGS adn CMAKE_CXX_FLAGS variables in your {build dir}/CMakeCache.txt file either using text editor or the ccmake tool)[/quote]

So, I added it in as an option. They made it an option if people want to use it. Though, they did misspell "and" as "adn". -_-

Cheers.
Comment 31 Michael Palimaka (kensington) gentoo-dev 2015-05-18 13:17:20 UTC
gold shouldn't be exposed via a USE flag - it's up to the user to change their default linker.
Comment 32 Alex Xu (Hello71) 2015-05-18 14:18:52 UTC
(In reply to Jon from comment #30)
> (In reply to Alex Xu (Hello71) from comment #29)
> > (In reply to Jon from comment #27)
> > > Created attachment 403002 [details]
> > > app-office/calligra/calligra-2.9.4-r1.ebuild
> > 
> > > 	!app-office/karbon
> > 
> > are any of these packages actually in the tree anymore?
> 
> Doesn't look like it. A quick search has them in the kde-sunset overlay, but
> I think those can be removed.
> 
> > 
> > > RESTRICT=test
> > 
> > are these still broken?
> 
> I've never tried with test. 
> 
> > 
> > >       # Enable the gold linker support.
> > >       use gold && mycmakeargs+=(
> > >               "-DCMAKE_C_FLAGS=-fuse-linker-plugin"
> > >               "-DCMAKE_CXX_FLAGS=-fuse-linker-plugin"
> > >       )
> > 
> > this should be upstream iff they use lto
> > 
> > otherwise lgtm. I should have time to test in the next week or so.
> 
> This is directly from their page https://community.kde.org/Calligra/Building
> (copy and paste verbatim):
> [quote]Recommended: Faster linking on Linux. Linking can take noticeable
> time in large software such as Calligra. On Linux Gold linker can be used to
> speed up this task. If you're building for Linux, install the Gold linker
> package and add the following to your cmake command:
> 
> -DCMAKE_C_FLAGS=-fuse-linker-plugin -DCMAKE_CXX_FLAGS=-fuse-linker-plugin
> (you can set the CMAKE_C_FLAGS adn CMAKE_CXX_FLAGS variables in your {build
> dir}/CMakeCache.txt file either using text editor or the ccmake tool)[/quote]
> 
> So, I added it in as an option. They made it an option if people want to use
> it. Though, they did misspell "and" as "adn". -_-
> 
> Cheers.

there are many things wrong with this. one, gold cannot be "installed" (at least on Gentoo), it comes packaged with binutils. two, -fuse-linker-plugin *does not enable gold*. in fact, it has nothing to do with gold unless you have extremely old binutils (i.e. older than our portage tree). [0] moreover, it is completely useless if you are not using -flto or possibly -fwhole-program. three, gold still shouldn't be a use flag, it should be configured with CXXFLAGS=-fuse-ld=gold. four, it should be auto-detected upstream if it is truly helpful to their build system. even if it isn't, we should auto-detect if the build CC supports it and enable it for the user if they haven't specified a linker.

not that it's your fault; upstream is just highly confused. (or maybe s/ly confused//.)

[0] https://gcc.gnu.org/onlinedocs/gcc-5.1.0/gcc/Optimize-Options.html#index-flto-report-wpa-1064
Comment 33 Jonathan Scruggs (RETIRED) gentoo-dev 2015-05-18 19:59:41 UTC
(In reply to Alex Xu (Hello71) from comment #32)
> there are many things wrong with this. one, gold cannot be "installed" (at
> least on Gentoo), it comes packaged with binutils. two, -fuse-linker-plugin
> *does not enable gold*. in fact, it has nothing to do with gold unless you
> have extremely old binutils (i.e. older than our portage tree). [0]
> moreover, it is completely useless if you are not using -flto or possibly
> -fwhole-program. three, gold still shouldn't be a use flag, it should be
> configured with CXXFLAGS=-fuse-ld=gold. four, it should be auto-detected
> upstream if it is truly helpful to their build system. even if it isn't, we
> should auto-detect if the build CC supports it and enable it for the user if
> they haven't specified a linker.


To be fair, I was just trying to implement things the way the upstream site said to do things. I kinda trusted their material would be correct. Also to be fair, I should have been a bit more weary on their information since the above fiasco of an optional dependency not being very optional (it is clearly written as optional in the CMakeList.txt file). I will speak to upstream about this to see what's going on with their documentation. I also did point out that they had a spekking error in their official documentation... another alarm bell. Sigh.

After thinking about what you said, I like the idea of them autodecting, and I don't understand why they didn't since they clearly said that it's better.

I just wanted to give people choice, which is why I used a use flag. I borrowed the flag and dependency from LLVM, which has the gold use flag.

> 
> not that it's your fault; upstream is just highly confused. (or maybe s/ly
> confused//.)
100% agree, and may I add headache inducing?

> [0]
> https://gcc.gnu.org/onlinedocs/gcc-5.1.0/gcc/Optimize-Options.html#index-
> flto-report-wpa-1064
Comment 34 Jonathan Scruggs (RETIRED) gentoo-dev 2015-05-20 17:57:36 UTC
Created attachment 403696 [details]
app-office/calligra/calligra-2.9.4-r2.ebuild

Removed unneeded blockers as they are no longer in portage.

Removed Gold Linker stuff until upstream corrects their documentation.
Comment 35 Frank Krömmelbein 2015-06-09 12:00:21 UTC
Calligra 2.9.5 was released:
https://www.calligra.org/news/calligra-2-9-5-released/
Comment 36 Alex Xu (Hello71) 2015-06-09 13:44:00 UTC
(In reply to Jon from comment #34)
> Created attachment 403696 [details]
> app-office/calligra/calligra-2.9.4-r2.ebuild
> 
> Removed unneeded blockers as they are no longer in portage.
> 
> Removed Gold Linker stuff until upstream corrects their documentation.

tested working on amd64. looks good to me, we can probably commit this with any minor changes required for the bump.
Comment 37 Jonathan Scruggs (RETIRED) gentoo-dev 2015-06-14 20:26:31 UTC
Created attachment 405154 [details]
calligra-2.9.5.ebuild
Comment 38 Jonathan Scruggs (RETIRED) gentoo-dev 2015-06-14 20:27:19 UTC
Created attachment 405156 [details]
calligra-l10n-2.9.5.ebuild
Comment 39 Alex Xu (Hello71) 2015-06-15 13:03:05 UTC
Created attachment 405184 [details]
calligra-2.9.5.ebuild

changed kdebase to kdeapps for applicable packages.
Comment 40 Frank Krömmelbein 2015-06-16 09:49:30 UTC
I would suggest to bring 2.9.5 to the main tree. The attached Ebuilds work for me.

[ebuild   R    ] app-office/calligra-2.9.5:4::mylocal  USE="crypt eigen exif fontconfig glew glib gsf handbook jpeg kdcraw kde kdepim lcms mysql okular opengl pdf threads tiff truetype xml (-aqua) -attica -colorio -fftw -freetds -gsl -import-filter -jpeg2k -marble -nepomuk -openexr (-postgres) -spacenav (-sybase) {-test} -vc -xbase" CALLIGRA_FEATURES="author braindump flow karbon kexi krita plan sheets stage words -gemini" 0 KiB
Comment 41 Alex Xu (Hello71) 2015-06-16 10:44:29 UTC
I have also tested them working on amd64. kde/office, could we get these finally committed?
Comment 42 Alex Xu (Hello71) 2015-06-16 15:14:56 UTC
*** Bug 552302 has been marked as a duplicate of this bug. ***
Comment 43 Matteo 'The Peach' Pescarin 2015-06-20 11:02:29 UTC
I can't seem to be able to download the l10n package, as it seems there isn't a generic one anymore:
http://download.kde.org/stable/calligra-2.9.5/calligra-l10n/

am I wrong?
Comment 44 Jonathan Scruggs (RETIRED) gentoo-dev 2015-06-21 08:39:25 UTC
(In reply to Matteo 'The Peach' Pescarin from comment #43)
> I can't seem to be able to download the l10n package, as it seems there
> isn't a generic one anymore:
> http://download.kde.org/stable/calligra-2.9.5/calligra-l10n/
> 
> am I wrong?

Calligra doesn't have one massive l10n package. Even 2.8 didn't have one.

Just use the calligra-l10n ebuild and select your language. If your language isn't there, then you could offer to make a translation. :) You can select multiple languages, if you want.

Regards,
Jon
Comment 45 Matteo 'The Peach' Pescarin 2015-06-21 09:43:43 UTC
(In reply to Jon from comment #44)
> Calligra doesn't have one massive l10n package. Even 2.8 didn't have one.
> 
> Just use the calligra-l10n ebuild and select your language. If your language
> isn't there, then you could offer to make a translation. :) You can select
> multiple languages, if you want.
> 
> Regards,
> Jon

Hi Jon, and thanks for the reply.
I do have the language selected already (en_GB) but when trying to do the digest I get the following:

# ebuild /usr/local/portage/app-office/calligra-l10n/calligra-l10n-2.9.5.ebuild digest
>>> Downloading 'http://download.kde.org/stable/calligra-l10n-2.9.5/calligra-l10n-2.9.5.tar.xz'
--2015-06-21 10:41:13--  http://download.kde.org/stable/calligra-l10n-2.9.5/calligra-l10n-2.9.5.tar.xz
Resolving download.kde.org (download.kde.org)... 195.135.221.71, 2001:67c:2178:7::71
Connecting to download.kde.org (download.kde.org)|195.135.221.71|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2015-06-21 10:41:13 ERROR 404: Not Found.

!!! Couldn't download 'calligra-l10n-2.9.5.tar.xz'. Aborting.
!!! Fetch failed for calligra-l10n-2.9.5.tar.xz, can't update Manifest


I'd also like to point out that both the latest ebuilds posted here have DOS newlines, had to convert them with dos2unix to be able to digest them.
Comment 46 Alex Xu (Hello71) 2015-06-21 13:39:54 UTC
(In reply to Matteo 'The Peach' Pescarin from comment #45)
> (In reply to Jon from comment #44)
> > Calligra doesn't have one massive l10n package. Even 2.8 didn't have one.
> > 
> > Just use the calligra-l10n ebuild and select your language. If your language
> > isn't there, then you could offer to make a translation. :) You can select
> > multiple languages, if you want.
> > 
> > Regards,
> > Jon
> 
> Hi Jon, and thanks for the reply.
> I do have the language selected already (en_GB) but when trying to do the
> digest I get the following:
> 
> # ebuild
> /usr/local/portage/app-office/calligra-l10n/calligra-l10n-2.9.5.ebuild digest
> >>> Downloading 'http://download.kde.org/stable/calligra-l10n-2.9.5/calligra-l10n-2.9.5.tar.xz'
> --2015-06-21 10:41:13-- 
> http://download.kde.org/stable/calligra-l10n-2.9.5/calligra-l10n-2.9.5.tar.xz
> Resolving download.kde.org (download.kde.org)... 195.135.221.71,
> 2001:67c:2178:7::71
> Connecting to download.kde.org (download.kde.org)|195.135.221.71|:80...
> connected.
> HTTP request sent, awaiting response... 404 Not Found
> 2015-06-21 10:41:13 ERROR 404: Not Found.
> 
> !!! Couldn't download 'calligra-l10n-2.9.5.tar.xz'. Aborting.
> !!! Fetch failed for calligra-l10n-2.9.5.tar.xz, can't update Manifest
> 
> 
> I'd also like to point out that both the latest ebuilds posted here have DOS
> newlines, had to convert them with dos2unix to be able to digest them.

I don't know what files you're downloading. No attachment on this bug has CRLF line terminators (verified with curl and Firefox).
Comment 47 Jon Mc 2015-06-21 14:59:04 UTC
(In reply to Alex Xu (Hello71) from comment #46)
> (In reply to Matteo 'The Peach' Pescarin from comment #45)
> > (In reply to Jon from comment #44)
> > > Calligra doesn't have one massive l10n package. Even 2.8 didn't have one.
> > > 
> > > Just use the calligra-l10n ebuild and select your language. If your language
> > > isn't there, then you could offer to make a translation. :) You can select
> > > multiple languages, if you want.
> > > 
> > > Regards,
> > > Jon
> > 
> > Hi Jon, and thanks for the reply.
> > I do have the language selected already (en_GB) but when trying to do the
> > digest I get the following:
> > 
> > # ebuild
> > /usr/local/portage/app-office/calligra-l10n/calligra-l10n-2.9.5.ebuild digest
> > >>> Downloading 'http://download.kde.org/stable/calligra-l10n-2.9.5/calligra-l10n-2.9.5.tar.xz'
> > --2015-06-21 10:41:13-- 
> > http://download.kde.org/stable/calligra-l10n-2.9.5/calligra-l10n-2.9.5.tar.xz
> > Resolving download.kde.org (download.kde.org)... 195.135.221.71,
> > 2001:67c:2178:7::71
> > Connecting to download.kde.org (download.kde.org)|195.135.221.71|:80...
> > connected.
> > HTTP request sent, awaiting response... 404 Not Found
> > 2015-06-21 10:41:13 ERROR 404: Not Found.
> > 
> > !!! Couldn't download 'calligra-l10n-2.9.5.tar.xz'. Aborting.
> > !!! Fetch failed for calligra-l10n-2.9.5.tar.xz, can't update Manifest
> > 
> > 
> > I'd also like to point out that both the latest ebuilds posted here have DOS
> > newlines, had to convert them with dos2unix to be able to digest them.
> 
> I don't know what files you're downloading. No attachment on this bug has
> CRLF line terminators (verified with curl and Firefox).

I had the same issue, but only with the 2.9.5 ebuild; downloading it gives me "file_543068.txt" with DOS end of lines. I haven't tried curl/wget, but used Firefox and Qupzilla, DOS end of line confirmed by the ebuild command and KWrite. Otherwise everything works fine here.
Comment 48 Alex Xu (Hello71) 2015-06-21 15:13:37 UTC
Created attachment 405492 [details]
calligra-2.9.5.ebuild

strange, it worked fine before. oh well.
Comment 49 Frank Krömmelbein 2015-07-10 07:33:02 UTC
Calligra 2.9.6 was released:
https://www.calligra.org/news/announcements/stable/calligra-2-9-6-released/

[ebuild   R    ] app-office/calligra-2.9.6:4::mylocal  USE="crypt eigen exif fontconfig glew glib gsf handbook jpeg kdcraw kde kdepim lcms mysql okular opengl pdf threads tiff truetype xml (-aqua) -attica -colorio -fftw -freetds -gsl -import-filter -jpeg2k -marble -nepomuk -openexr (-postgres) -spacenav (-sybase) {-test} -vc -xbase" CALLIGRA_FEATURES="author braindump flow karbon kexi krita plan sheets stage words -gemini" 0 KiB
Comment 50 Tamas Jantvik 2015-08-10 08:36:33 UTC
Created attachment 408704 [details, diff]
Patch for fixing upstream file

Upstream package seems to contain a typo. With this patch the package compiles for me.
[ebuild   R   ] app-office/calligra-2.9.6  USE="attica colorio crypt eigen exif fftw fontconfig freetds glew glib gsf gsl handbook import-filter jpeg jpeg2k kdcraw kde kdepim lcms marble mysql nepomuk okular openexr opengl pdf spacenav threads tiff truetype xbase xml (-aqua) (-postgres) (-sybase) {-test} -vc" CALLIGRA_FEATURES="author braindump flow gemini karbon kexi krita plan sheets stage words"