Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 521696 - kde-base/gwenview-4.14.0 fails to build with media-libs/jpeg-9a
Summary: kde-base/gwenview-4.14.0 fails to build with media-libs/jpeg-9a
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: Gentoo KDE team
URL: https://bugs.kde.org/show_bug.cgi?id=...
Whiteboard:
Keywords:
Depends on:
Blocks: jpeg-9
  Show dependency tree
 
Reported: 2014-08-29 22:14 UTC by Rafal Kupiec
Modified: 2014-09-16 19:18 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rafal Kupiec 2014-08-29 22:14:56 UTC
Gwenview fails to build at configure stage due to below error:


>>> Emerging (1 of 1) kde-base/gwenview-4.14.0::gentoo
 * gwenview-4.14.0.tar.xz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                                                                                                                                                          [ ok ]
>>> Unpacking source...
>>> Unpacking gwenview-4.14.0.tar.xz to /var/tmp/portage/kde-base/gwenview-4.14.0/work
>>> Source unpacked in /var/tmp/portage/kde-base/gwenview-4.14.0/work
>>> Preparing source in /var/tmp/portage/kde-base/gwenview-4.14.0/work/gwenview-4.14.0 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/kde-base/gwenview-4.14.0/work/gwenview-4.14.0 ...
>>> Working in BUILD_DIR: "/var/tmp/portage/kde-base/gwenview-4.14.0/work/gwenview-4.14.0_build"
cmake --no-warn-unused-cli -C /var/tmp/portage/kde-base/gwenview-4.14.0/work/gwenview-4.14.0_build/gentoo_common_config.cmake -G Unix Makefiles -DCMAKE_INSTALL_PREFIX=/usr -DKDE4_BUILD_TESTS=OFF -DCMAKE_INSTALL_PREFIX=/usr -DSYSCONF_INSTALL_DIR=/etc -DWITH_kipi=OFF -DWITH_KIPI=OFF -DWITH_Kipi=OFF -DGWENVIEW_SEMANTICINFO_BACKEND=None -DCMAKE_BUILD_TYPE=Gentoo -DCMAKE_INSTALL_DO_STRIP=OFF -DCMAKE_USER_MAKE_RULES_OVERRIDE=/var/tmp/portage/kde-base/gwenview-4.14.0/work/gwenview-4.14.0_build/gentoo_rules.cmake  /var/tmp/portage/kde-base/gwenview-4.14.0/work/gwenview-4.14.0
Not searching for unused variables given on the command line.
loading initial cache file /var/tmp/portage/kde-base/gwenview-4.14.0/work/gwenview-4.14.0_build/gentoo_common_config.cmake
-- The C compiler identification is GNU 4.8.3
-- The CXX compiler identification is GNU 4.8.3
-- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc
-- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/x86_64-pc-linux-gnu-g++
-- Check for working CXX compiler: /usr/bin/x86_64-pc-linux-gnu-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found
-- Found Qt-Version 4.8.5 (using /usr/bin/qmake)
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so;/usr/lib64/libXft.so;/usr/lib64/libXau.so;/usr/lib64/libXdmcp.so;/usr/lib64/libXpm.so
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so;/usr/lib64/libXft.so;/usr/lib64/libXau.so;/usr/lib64/libXdmcp.so;/usr/lib64/libXpm.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib64/libX11.so
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Found OpenSSL: /usr/lib64/libssl.so;/usr/lib64/libcrypto.so (found version "1.0.1i") 
-- Looking for _POSIX_TIMERS
-- Looking for _POSIX_TIMERS - found
-- Found Automoc4: /usr/bin/automoc4  
-- Found Perl: /usr/bin/perl (found version "5.18.2") 
-- Found Phonon: /usr/include (Required is at least version "4.3.80") 
-- Performing Test _OFFT_IS_64BIT
-- Performing Test _OFFT_IS_64BIT - Success
-- Performing Test HAVE_FPIE_SUPPORT
-- Performing Test HAVE_FPIE_SUPPORT - Success
-- Performing Test __KDE_HAVE_W_OVERLOADED_VIRTUAL
-- Performing Test __KDE_HAVE_W_OVERLOADED_VIRTUAL - Success
-- Performing Test __KDE_HAVE_GCC_VISIBILITY
-- Performing Test __KDE_HAVE_GCC_VISIBILITY - Success
-- Found KDE 4.12 include dir: /usr/include
-- Found KDE 4.12 library dir: /usr/lib64
-- Found the KDE4 kconfig_compiler preprocessor: /usr/bin/kconfig_compiler
-- Found automoc4: /usr/bin/automoc4
-- Found JPEG: /usr/lib64/libjpeg.so  
-- Found ZLIB: /usr/lib64/libz.so (found version "1.2.8") 
-- Found PNG: /usr/lib64/libpng.so (found version "1.6.13") 
-- Found PkgConfig: /usr/bin/x86_64-pc-linux-gnu-pkg-config (found version "0.28") 
-- Found Exiv2: /usr/lib64/libexiv2.so (found suitable version "0.24.0", minimum required is "0.12") 
-- checking for module 'lcms2'
--   found lcms2, version 2.6
-- Found lcms version 2.06, /usr/lib64/liblcms2.so
-- Found LIBKONQ: /usr/include  
-- Check for Kdcraw library in local sub-folder...
-- Check Kdcraw library using pkg-config...
-- checking for module 'libkdcraw'
--   found libkdcraw, version 2.4.2
-- Found libkdcraw release 2.4.2
-- Found libkdcraw: /usr/lib64/libkdcraw.so
-- Looking for libjpeg version in /usr/include/jpeglib.h
CMake Error at lib/CMakeLists.txt:36 (message):
  Unknown libjpeg version: 90


-- Configuring incomplete, errors occurred!
See also "/var/tmp/portage/kde-base/gwenview-4.14.0/work/gwenview-4.14.0_build/CMakeFiles/CMakeOutput.log".
See also "/var/tmp/portage/kde-base/gwenview-4.14.0/work/gwenview-4.14.0_build/CMakeFiles/CMakeError.log".
 * ERROR: kde-base/gwenview-4.14.0::gentoo failed (configure phase):
 *   cmake failed
 * 
 * Call stack:
 *     ebuild.sh, line   93:  Called src_configure
 *   environment, line 3835:  Called kde4-base_src_configure
 *   environment, line 2821:  Called cmake-utils_src_configure
 *   environment, line 1029:  Called _execute_optionally 'src_configure'
 *   environment, line  515:  Called enable_cmake-utils_src_configure
 *   environment, line 1332:  Called die
 * The specific snippet of code:
 *       "${CMAKE_BINARY}" "${cmakeargs[@]}" "${CMAKE_USE_DIR}" || die "cmake failed";
 * 
 * If you need support, post the output of `emerge --info '=kde-base/gwenview-4.14.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=kde-base/gwenview-4.14.0::gentoo'`.
 * The complete build log is located at '/var/log/portage/kde-base:gwenview-4.14.0:20140829-221137.log'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/kde-base/gwenview-4.14.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/kde-base/gwenview-4.14.0/temp/environment'.
 * Working directory: '/var/tmp/portage/kde-base/gwenview-4.14.0/work/gwenview-4.14.0_build'
 * S: '/var/tmp/portage/kde-base/gwenview-4.14.0/work/gwenview-4.14.0'

>>> Failed to emerge kde-base/gwenview-4.14.0, Log file:

>>>  '/var/log/portage/kde-base:gwenview-4.14.0:20140829-221137.log'

 * Messages for package kde-base/gwenview-4.14.0:

 * ERROR: kde-base/gwenview-4.14.0::gentoo failed (configure phase):
 *   cmake failed
 * 
 * Call stack:
 *     ebuild.sh, line   93:  Called src_configure
 *   environment, line 3835:  Called kde4-base_src_configure
 *   environment, line 2821:  Called cmake-utils_src_configure
 *   environment, line 1029:  Called _execute_optionally 'src_configure'
 *   environment, line  515:  Called enable_cmake-utils_src_configure
 *   environment, line 1332:  Called die
 * The specific snippet of code:
 *       "${CMAKE_BINARY}" "${cmakeargs[@]}" "${CMAKE_USE_DIR}" || die "cmake failed";
 * 
 * If you need support, post the output of `emerge --info '=kde-base/gwenview-4.14.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=kde-base/gwenview-4.14.0::gentoo'`.
 * The complete build log is located at '/var/log/portage/kde-base:gwenview-4.14.0:20140829-221137.log'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/kde-base/gwenview-4.14.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/kde-base/gwenview-4.14.0/temp/environment'.
 * Working directory: '/var/tmp/portage/kde-base/gwenview-4.14.0/work/gwenview-4.14.0_build'
 * S: '/var/tmp/portage/kde-base/gwenview-4.14.0/work/gwenview-4.14.0'


After upgrading libjpeg portage complains about emerge @preserve-rebuild. However this stops on building gwenview.
Comment 1 Timo Gurr (RETIRED) gentoo-dev 2014-08-29 22:56:31 UTC
Just for the record, I've reported this upstream, see URL. There also exists a working older patch (see link in the upstream bug) but not sure if it's upstreamable as it is.
Comment 2 Michael Palimaka (kensington) gentoo-dev 2014-08-30 18:20:33 UTC
Which package - media-libs/jpeg-9a ?
Comment 3 Michael Palimaka (kensington) gentoo-dev 2014-08-30 18:25:16 UTC
Very interested to know why gwenview appears to bundle libjpeg in the first place!
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2014-08-31 16:37:45 UTC
(In reply to Michael Palimaka (kensington) from comment #3)
> Very interested to know why gwenview appears to bundle libjpeg in the first
> place!

It's because of the transupp.* files, they aren't installed by jpeg, they are internal files
However, some apps still make use of transupp.* by copying them inside the application itself
For example, media-gfx/feh *USED* to do this, but they switched from doing that, to calling the jpeg utilities for *image rotation feature* instead
I would expect gwenview to do this, for *image rotation* as well
For example, transupp.* from jpeg-6b is not compatible with jpeg-7 and so forth, so each jpeg version needs it's own transupp.* files
So I expect gwenview to selectively, use correct transupp.*, after detecting system jpeg version
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2014-08-31 17:05:42 UTC
(In reply to Samuli Suominen from comment #4)
> (In reply to Michael Palimaka (kensington) from comment #3)
> > Very interested to know why gwenview appears to bundle libjpeg in the first
> > place!
> 
> It's because of the transupp.* files, they aren't installed by jpeg, they
> are internal files
> However, some apps still make use of transupp.* by copying them inside the
> application itself
> For example, media-gfx/feh *USED* to do this, but they switched from doing
> that, to calling the jpeg utilities for *image rotation feature* instead
> I would expect gwenview to do this, for *image rotation* as well
> For example, transupp.* from jpeg-6b is not compatible with jpeg-7 and so
> forth, so each jpeg version needs it's own transupp.* files
> So I expect gwenview to selectively, use correct transupp.*, after detecting
> system jpeg version

As in, http://bugs.gentoo.org/show_bug.cgi?id=314613 is why
Comment 6 Michael Palimaka (kensington) gentoo-dev 2014-09-04 13:31:57 UTC
Thanks for the info Samuli.

I prepared review request for upstream.
Comment 7 Michael Palimaka (kensington) gentoo-dev 2014-09-16 13:36:01 UTC
This is now fixed upstream and we will be backporting to 4.14.1 which should be in the tree in a day or so.
Comment 8 Michael Palimaka (kensington) gentoo-dev 2014-09-16 19:18:26 UTC
4.14.1 is in the tree now