Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 638520 - app-office/libreoffice-5.4.2.2 w/ media-libs/jpeg: error: ‘JCS_EXT_BGRA’ was not declared in this scope
Summary: app-office/libreoffice-5.4.2.2 w/ media-libs/jpeg: error: ‘JCS_EXT_BGRA’ was ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Office Team
URL: https://bugs.documentfoundation.org/s...
Whiteboard: fixed in 6.0.0.3
Keywords: InVCS
Depends on: 652638
Blocks:
  Show dependency tree
 
Reported: 2017-11-22 21:11 UTC by Jean-Claude Repetto
Modified: 2018-05-29 12:31 UTC (History)
2 users (show)

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


Attachments
Build log (build.log.gz,278.77 KB, application/gzip)
2017-11-22 21:11 UTC, Jean-Claude Repetto
Details
patch for issue (libreoffice-5.4.2.2.ebuild.patch,422 bytes, patch)
2017-11-25 00:54 UTC, John Haverkamp
Details | Diff
Build log of 5.4.4.2 (build.log.gz,281.36 KB, application/gzip)
2018-02-02 20:01 UTC, Jean-Claude Repetto
Details
Patches for libreoffice 5.4.2.2 and 5.4.4.2 (libreoffice-5.4-jpeg-patches.tgz,848 bytes, application/gzip)
2018-02-04 07:36 UTC, Jean-Claude Repetto
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jean-Claude Repetto 2017-11-22 21:11:42 UTC
Created attachment 505856 [details]
Build log

Build fails:

[CXX] vcl/source/filter/jpeg/JpegTransform.cxx
/var/tmp/portage/app-office/libreoffice-5.4.2.2/work/libreoffice-5.4.2.2/vcl/source/filter/jpeg/jpegc.cxx: In function ‘void ReadJPEG(JPEGReader*, void*, long int*, const Size&, GraphicFilterImportFlags, Bitmap::ScopedWriteAccess*)’:
/var/tmp/portage/app-office/libreoffice-5.4.2.2/work/libreoffice-5.4.2.2/vcl/source/filter/jpeg/jpegc.cxx:196:44: error: ‘JCS_EXT_BGRA’ was not declared in this scope
                     best_out_color_space = JCS_EXT_BGRA;
                                            ^
/var/tmp/portage/app-office/libreoffice-5.4.2.2/work/libreoffice-5.4.2.2/vcl/source/filter/jpeg/jpegc.cxx:202:44: error: ‘JCS_EXT_RGBA’ was not declared in this scope
                     best_out_color_space = JCS_EXT_RGBA;
                                            ^
/var/tmp/portage/app-office/libreoffice-5.4.2.2/work/libreoffice-5.4.2.2/vcl/source/filter/jpeg/jpegc.cxx:208:44: error: ‘JCS_EXT_ARGB’ was not declared in this scope
                     best_out_color_space = JCS_EXT_ARGB;
                                            ^
make[1]: *** [/var/tmp/portage/app-office/libreoffice-5.4.2.2/work/libreoffice-5.4.2.2/solenv/gbuild/LinkTarget.mk:290: /var/tmp/portage/app-office/libreoffice-5.4.2.2/work/libreoffice-5.4.2.2/workdir/CxxObject/vcl/source/filter/jpeg/jpegc.o] Error 1
Comment 1 Jean-Claude Repetto 2017-11-22 21:12:22 UTC
# emerge --info '=app-office/libreoffice-5.4.2.2::gentoo'

Portage 2.3.13 (python 3.4.5-final-0, default/linux/amd64/13.0, gcc-5.4.0, glibc-2.25-r9, 4.4.39-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.4.39-gentoo-x86_64-Intel-R-_Core-TM-_i5-3550_CPU_@_3.30GHz-with-gentoo-2.4.1
KiB Mem:     7865956 total,   3449828 free
KiB Swap:   16777212 total,  16777212 free
Timestamp of repository gentoo: Wed, 22 Nov 2017 20:30:01 +0000
Head commit of repository gentoo: 85caa28e896e0a81d262de779aa68b0f5ed42b6b
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.28.1 p1.0) 2.28.1
app-shells/bash:          4.3_p48-r1::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.3::gentoo
dev-lang/python:          2.7.14::gentoo, 3.4.5::gentoo
dev-util/cmake:           3.8.2::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.34.9::gentoo
sys-apps/sandbox:         2.10-r4::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.14.1::gentoo, 1.15.1-r1::gentoo
sys-devel/binutils:       2.28.1::gentoo, 2.29.1-r1::gentoo
sys-devel/gcc:            4.9.4::gentoo, 5.4.0-r3::gentoo, 6.4.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.25-r9::gentoo
Repositories:

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

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

laurentb
    location: /var/lib/layman/laurentb
    masters: gentoo
    priority: 50

vaca
    location: /var/lib/layman/vaca
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA PUEL dlj-1.1 AdobeFlash-10.3 googleearth Oracle-BCLA-JavaSE AdobeFlash-11.x license(s)"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /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"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="fr_FR.utf8"
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 --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X alsa amd64 apache2 berkdb branding bzip2 cairo cli consolekit corefonts cracklib cxx dbus dhcpcd django dri dv dvb dvd dvdnav dvdr dvi ecwj2k expat ffmpeg firefox flac gdbm geos gif gnutls gtk hwdb iconv java jpeg keymap libsamplerate logrotate mmx modules mp3 multilib nautilus ncurses nlpsolver nls nptl nsplugin ogg openmp opus pam pcre pdfimport png pulseaudio python qt3support readline samba seccomp session spatialite sqlite sqlite3 sse sse2 ssl svg tcpd threads tiff truetype unicode vorbis x264 xattr zlib" 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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" L10N="fr" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="fr en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby22" 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:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Jean-Claude Repetto 2017-11-22 21:13:45 UTC
# emerge -pqv '=app-office/libreoffice-5.4.2.2::gentoo'

[ebuild     U ] app-office/libreoffice-5.4.2.2 [5.2.7.2] USE="branding cups dbus gtk java pdfimport -bluetooth (-coinmp) -collada -debug -eds (-firebird) -gltf -gnome -googledrive -gstreamer -gtk3 -jemalloc -kde -libressl -mysql -odk -postgres -quickstarter {-test} -vlc (-telepathy%)" LIBREOFFICE_EXTENSIONS="-nlpsolver -scripting-beanshell -scripting-javascript -wiki-publisher" PYTHON_SINGLE_TARGET="python3_4 -python2_7 -python3_5 (-python3_6)" PYTHON_TARGETS="python2_7 python3_4 -python3_5 (-python3_6)"
Comment 3 John Haverkamp 2017-11-25 00:54:58 UTC
Created attachment 506464 [details, diff]
patch for issue
Comment 4 John Haverkamp 2017-11-25 00:57:17 UTC
(In reply to John Haverkamp from comment #3)
> Created attachment 506464 [details, diff] [details, diff]
> patch for issue

Note that this missing dependency also affects at least the 5.4.3.2 ebuild also, and probably also the 5.4.9999 and -9999 ebuilds as well.
Comment 5 Jean-Claude Repetto 2017-11-25 14:12:57 UTC
Thanks, your patch fixed the problem. Note that I had to unmerge media-libs/jpeg in order to be able to emerge libreoffice.
Comment 6 Andreas Sturmlechner gentoo-dev 2017-11-26 09:27:03 UTC
That's not a fix, libreoffice depends on virtual/jpeg already. It means that the code is currently broken with media-libs/jpeg.
Comment 7 Andreas Sturmlechner gentoo-dev 2018-01-20 03:03:44 UTC
Still happening with 5.4.4.2?
Comment 8 Jean-Claude Repetto 2018-02-02 20:00:11 UTC
Yes, same problem. See build log.
Comment 9 Jean-Claude Repetto 2018-02-02 20:01:32 UTC
Created attachment 517618 [details]
Build log of 5.4.4.2
Comment 10 Andreas Sturmlechner gentoo-dev 2018-02-02 20:57:39 UTC
What version of media-libs/jpeg do you have installed?
Comment 11 Andreas Sturmlechner gentoo-dev 2018-02-03 16:52:15 UTC
I'm away from the testing box right now, but you can test the following bug:

https://gerrit.libreoffice.org/gitweb?p=core.git;a=patch;h=98dd57705d82a96fe10f7e9cbfa499fbf351a9b0
Comment 12 Jean-Claude Repetto 2018-02-03 17:34:17 UTC
(In reply to Andreas Sturmlechner from comment #10)
> What version of media-libs/jpeg do you have installed?

Both versions 8d-r1 and 6b-r12 are installed:

[I] media-libs/jpeg
     Available versions:  
     (62)   6b-r12
     (0)    8d-r1 ~9a ~9b
     (8)    ~8d-r2
       {static-libs ABI_MIPS="n32 n64 o32" ABI_PPC="32 64" ABI_S390="32 64" ABI_X86="32 64 x32"}
     Installed versions:  6b-r12(62)(08:35:29 03/02/2018)(ABI_MIPS="-n32 -n64 -o32" ABI_PPC="-32 -64" ABI_S390="-32 -64" ABI_X86="64 -32 -x32") 8d-r1(08:33:32 03/02/2018)(-static-libs ABI_MIPS="-n32 -n64 -o32" ABI_PPC="-32 -64" ABI_S390="-32 -64" ABI_X86="64 -32 -x32")
Comment 13 Jean-Claude Repetto 2018-02-04 07:36:38 UTC
Created attachment 517724 [details]
Patches for libreoffice 5.4.2.2 and 5.4.4.2

Yes, the patch proposed by upstream fixed the compilation problem.
Comment 14 Larry the Git Cow gentoo-dev 2018-02-04 18:58:10 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9340ca0e6718d790d4fdd949a7e8f7392441a4d9

commit 9340ca0e6718d790d4fdd949a7e8f7392441a4d9
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2018-02-04 18:57:42 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2018-02-04 18:57:42 +0000

    app-office/libreoffice: Fix build with media-libs/jpeg
    
    Backport picked from upstream.
    
    Bug: https://bugs.gentoo.org/638520
    Package-Manager: Portage-2.3.24, Repoman-2.3.6

 .../files/libreoffice-6.0.0.3-jpeg-9.patch         | 41 ++++++++++++++++++++++
 app-office/libreoffice/libreoffice-6.0.0.3.ebuild  |  7 ++--
 app-office/libreoffice/libreoffice-6.0.9999.ebuild |  4 +--
 app-office/libreoffice/libreoffice-9999.ebuild     |  4 +--
 4 files changed, 50 insertions(+), 6 deletions(-)}
Comment 15 Andreas Sturmlechner gentoo-dev 2018-02-04 19:00:34 UTC
Added the fix to 6.0.0.3, feel free to test this version.
Comment 16 Larry the Git Cow gentoo-dev 2018-05-29 12:31:48 UTC
The bug has been closed via the following commit(s):

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

commit a00781792fbd23987196bc103187edd9b122cac9
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2018-05-23 21:24:52 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2018-05-29 12:31:06 +0000

    app-office/libreoffice*: Drop 5.4.5.1
    
    Closes: https://bugs.gentoo.org/619918
    Closes: https://bugs.gentoo.org/638012
    Closes: https://bugs.gentoo.org/638520
    Closes: https://bugs.gentoo.org/649666
    Closes: https://bugs.gentoo.org/652354
    Package-Manager: Portage-2.3.38, Repoman-2.3.9

 app-office/libreoffice-bin-debug/Manifest          |  12 -
 .../libreoffice-bin-debug-5.4.5.1.ebuild           |  87 ----
 app-office/libreoffice-bin/Manifest                |  12 -
 .../libreoffice-bin/libreoffice-bin-5.4.5.1.ebuild | 255 ---------
 app-office/libreoffice-l10n/Manifest               | 168 ------
 .../libreoffice-l10n-5.4.5.1.ebuild                |  88 ----
 app-office/libreoffice/Manifest                    |   3 -
 .../files/libreoffice-5.4.5.1-pyuno-crash.patch    |  87 ----
 app-office/libreoffice/libreoffice-5.4.5.1.ebuild  | 578 ---------------------
 app-office/libreoffice/metadata.xml                |   3 -
 10 files changed, 1293 deletions(-)