Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 657678 - media-gfx/kuickshow-0.10.0 fails with Unknown CMake command "kdoctools_create_handbook"
Summary: media-gfx/kuickshow-0.10.0 fails with Unknown CMake command "kdoctools_create...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Christian Gerloff
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-09 21:34 UTC by Lucas Matt
Modified: 2018-06-24 20:02 UTC (History)
2 users (show)

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 Lucas Matt 2018-06-09 21:34:16 UTC
emerge =media-gfx/kuickshow-0.10.0 fails in configure phase with the following error:

>>> Emerging (1 of 1) media-gfx/kuickshow-0.10.0::gentoo
 * kuickshow-0.10.0.tar.xz BLAKE2B SHA512 size ;-) ...                                                                                                                                                                                      [ ok ]
>>> Unpacking source...
>>> Unpacking kuickshow-0.10.0.tar.xz to /var/tmp/portage/media-gfx/kuickshow-0.10.0/work
>>> Source unpacked in /var/tmp/portage/media-gfx/kuickshow-0.10.0/work
>>> Preparing source in /var/tmp/portage/media-gfx/kuickshow-0.10.0/work/kuickshow-0.10.0 ...
 * Applying kuickshow-0.10.0-desktop-fix.patch ...                                                                                                                                                                                          [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/media-gfx/kuickshow-0.10.0/work/kuickshow-0.10.0 ...
>>> Working in BUILD_DIR: "/var/tmp/portage/media-gfx/kuickshow-0.10.0/work/kuickshow-0.10.0_build"
cmake -C /var/tmp/portage/media-gfx/kuickshow-0.10.0/work/kuickshow-0.10.0_build/gentoo_common_config.cmake -G Unix Makefiles -DCMAKE_INSTALL_PREFIX=/usr -DKDE_INSTALL_USE_QT_SYS_PATHS=ON -DCMAKE_BUILD_TYPE=Gentoo -DCMAKE_USER_MAKE_RULES_OVERRIDE=/var/tmp/portage/media-gfx/kuickshow-0.10.0/work/kuickshow-0.10.0_build/gentoo_rules.cmake -DCMAKE_TOOLCHAIN_FILE=/var/tmp/portage/media-gfx/kuickshow-0.10.0/work/kuickshow-0.10.0_build/gentoo_toolchain.cmake  /var/tmp/portage/media-gfx/kuickshow-0.10.0/work/kuickshow-0.10.0
loading initial cache file /var/tmp/portage/media-gfx/kuickshow-0.10.0/work/kuickshow-0.10.0_build/gentoo_common_config.cmake
-- The C compiler identification is GNU 7.3.0
-- The CXX compiler identification is GNU 7.3.0
-- 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
-- Detecting C compile features
-- Detecting C compile features - 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
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Could not set up the appstream test. appstreamcli is missing.
-- Looking for __GLIBC__
-- Looking for __GLIBC__ - found
-- Performing Test _OFFT_IS_64BIT
-- Performing Test _OFFT_IS_64BIT - Success
-- Performing Test HAVE_DATE_TIME
-- Performing Test HAVE_DATE_TIME - Success
-- Found Gettext: /usr/bin/msgmerge (found version "0.19.8.1") 
-- Found KF5I18n: /usr/lib64/cmake/KF5I18n/KF5I18nConfig.cmake (found version "5.46.0") 
-- Found KF5IconThemes: /usr/lib64/cmake/KF5IconThemes/KF5IconThemesConfig.cmake (found version "5.46.0") 
-- Found KF5Init: /usr/lib64/cmake/KF5Init/KF5InitConfig.cmake (found version "5.46.0") 
-- Found KF5KIO: /usr/lib64/cmake/KF5KIO/KF5KIOConfig.cmake (found version "5.46.0") 
-- Found KF5WindowSystem: /usr/lib64/cmake/KF5WindowSystem/KF5WindowSystemConfig.cmake (found version "5.46.0") 
-- Found KF5XmlGui: /usr/lib64/cmake/KF5XmlGui/KF5XmlGuiConfig.cmake (found version "5.46.0") 
-- Found KF5: success (found version "5.46.0") found components:  I18n IconThemes Init KIO WindowSystem XmlGui 
-- Found PkgConfig: x86_64-pc-linux-gnu-pkg-config (found version "0.29.2") 
-- Checking for module 'imlib>=1.9'
--   Found imlib, version 1.9.15
-- Found IMLIB Defs     : 
-- Found IMLIB Includes : /usr/include
-- Found IMLIB Libraries: -L/usr/lib64;Imlib;jpeg;tiff;gif;png;z;m;Xext;SM;ICE;Xext;X11
CMake Error at doc-translations/de/CMakeLists.txt:1 (kdoctools_create_handbook):
  Unknown CMake command "kdoctools_create_handbook".


-- Configuring incomplete, errors occurred!
See also "/var/tmp/portage/media-gfx/kuickshow-0.10.0/work/kuickshow-0.10.0_build/CMakeFiles/CMakeOutput.log".
 * ERROR: media-gfx/kuickshow-0.10.0::gentoo failed (configure phase):
 *   cmake failed
 * 
 * Call stack:
 *     ebuild.sh, line  124:  Called src_configure
 *   environment, line 3772:  Called kde5_src_configure
 *   environment, line 2793:  Called cmake-utils_src_configure
 *   environment, line 1242:  Called die
 * The specific snippet of code:
 *       "${CMAKE_BINARY}" "${cmakeargs[@]}" "${CMAKE_USE_DIR}" || die "cmake failed";

My system is amd64 with kde-frameworks/-plasma/-apps from ~amd64. I tried building with dev-util/cmake-3.10.3 and and dev-util/cmake-3.11.3 to no avail.

Can someone reproduce this?
Comment 1 Christian Gerloff 2018-06-10 15:56:12 UTC
I couldn't reproduce that error on a --depclean'ed system with KF 5.43.0 and either cmake 3.9.6 or 3.11.3.

I'm assuming it's not cmake, but rather a change in the newer KDE release that's causing this, but I need to do more testing.

In the meantime, if you don't need the handbook, you could try disabling it via USE flag in package.use. That should keep that failing command from being called:
media-gfx/kuickshow  -handbook
Comment 2 Lucas Matt 2018-06-10 18:53:22 UTC
Hi Christian,

thanks for looking into it.
Yes handbook use flag was the obvious thing. I already have have it disabled globally, however.

Trying to force it leads to the same error:

USE="-handbook" emerge kuickshow    
Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) media-gfx/kuickshow-0.10.0::gentoo
 * kuickshow-0.10.0.tar.xz BLAKE2B SHA512 size ;-) ...                                                                                                                                                                                      [ ok ]
>>> Unpacking source...
>>> Unpacking kuickshow-0.10.0.tar.xz to /var/tmp/portage/media-gfx/kuickshow-0.10.0/work
>>> Source unpacked in /var/tmp/portage/media-gfx/kuickshow-0.10.0/work
>>> Preparing source in /var/tmp/portage/media-gfx/kuickshow-0.10.0/work/kuickshow-0.10.0 ...
 * Applying kuickshow-0.10.0-desktop-fix.patch ...                                                                                                                                                                                          [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/media-gfx/kuickshow-0.10.0/work/kuickshow-0.10.0 ...
>>> Working in BUILD_DIR: "/var/tmp/portage/media-gfx/kuickshow-0.10.0/work/kuickshow-0.10.0_build"
cmake -C /var/tmp/portage/media-gfx/kuickshow-0.10.0/work/kuickshow-0.10.0_build/gentoo_common_config.cmake -G Unix Makefiles -DCMAKE_INSTALL_PREFIX=/usr -DKDE_INSTALL_USE_QT_SYS_PATHS=ON -DCMAKE_BUILD_TYPE=Gentoo -DCMAKE_USER_MAKE_RULES_OVERRIDE=/var/tmp/portage/media-gfx/kuickshow-0.10.0/work/kuickshow-0.10.0_build/gentoo_rules.cmake -DCMAKE_TOOLCHAIN_FILE=/var/tmp/portage/media-gfx/kuickshow-0.10.0/work/kuickshow-0.10.0_build/gentoo_toolchain.cmake  /var/tmp/portage/media-gfx/kuickshow-0.10.0/work/kuickshow-0.10.0
loading initial cache file /var/tmp/portage/media-gfx/kuickshow-0.10.0/work/kuickshow-0.10.0_build/gentoo_common_config.cmake
-- The C compiler identification is GNU 7.3.0
-- The CXX compiler identification is GNU 7.3.0
-- 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
-- Detecting C compile features
-- Detecting C compile features - 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
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Could not set up the appstream test. appstreamcli is missing.
-- Looking for __GLIBC__
-- Looking for __GLIBC__ - found
-- Performing Test _OFFT_IS_64BIT
-- Performing Test _OFFT_IS_64BIT - Success
-- Performing Test HAVE_DATE_TIME
-- Performing Test HAVE_DATE_TIME - Success
-- Found Gettext: /usr/bin/msgmerge (found version "0.19.8.1") 
-- Found KF5I18n: /usr/lib64/cmake/KF5I18n/KF5I18nConfig.cmake (found version "5.46.0") 
-- Found KF5IconThemes: /usr/lib64/cmake/KF5IconThemes/KF5IconThemesConfig.cmake (found version "5.46.0") 
-- Found KF5Init: /usr/lib64/cmake/KF5Init/KF5InitConfig.cmake (found version "5.46.0") 
-- Found KF5KIO: /usr/lib64/cmake/KF5KIO/KF5KIOConfig.cmake (found version "5.46.0") 
-- Found KF5WindowSystem: /usr/lib64/cmake/KF5WindowSystem/KF5WindowSystemConfig.cmake (found version "5.46.0") 
-- Found KF5XmlGui: /usr/lib64/cmake/KF5XmlGui/KF5XmlGuiConfig.cmake (found version "5.46.0") 
-- Found KF5: success (found version "5.46.0") found components:  I18n IconThemes Init KIO WindowSystem XmlGui 
-- Found PkgConfig: x86_64-pc-linux-gnu-pkg-config (found version "0.29.2") 
-- Checking for module 'imlib>=1.9'
--   Found imlib, version 1.9.15
-- Found IMLIB Defs     : 
-- Found IMLIB Includes : /usr/include
-- Found IMLIB Libraries: -L/usr/lib64;Imlib;jpeg;tiff;gif;png;z;m;Xext;SM;ICE;Xext;X11
CMake Error at doc-translations/de/CMakeLists.txt:1 (kdoctools_create_handbook):
  Unknown CMake command "kdoctools_create_handbook".


-- Configuring incomplete, errors occurred!
See also "/var/tmp/portage/media-gfx/kuickshow-0.10.0/work/kuickshow-0.10.0_build/CMakeFiles/CMakeOutput.log".
 * ERROR: media-gfx/kuickshow-0.10.0::gentoo failed (configure phase):
 *   cmake failed
 * 
 * Call stack:
 *     ebuild.sh, line  124:  Called src_configure
 *   environment, line 3772:  Called kde5_src_configure
 *   environment, line 2793:  Called cmake-utils_src_configure
 *   environment, line 1242:  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 '=media-gfx/kuickshow-0.10.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=media-gfx/kuickshow-0.10.0::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/media-gfx/kuickshow-0.10.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-gfx/kuickshow-0.10.0/temp/environment'.
 * Working directory: '/var/tmp/portage/media-gfx/kuickshow-0.10.0/work/kuickshow-0.10.0_build'
 * S: '/var/tmp/portage/media-gfx/kuickshow-0.10.0/work/kuickshow-0.10.0'

>>> Failed to emerge media-gfx/kuickshow-0.10.0

emerge --info
Portage 2.3.40 (python 3.5.5-final-0, default/linux/amd64/17.0/desktop/plasma/systemd, gcc-7.3.0, glibc-2.26-r7, 4.14.48-gentoo x86_64)
=================================================================
System uname: Linux-4.14.48-gentoo-x86_64-Intel-R-_Core-TM-_i7-4790K_CPU_@_4.00GHz-with-gentoo-2.4.1
KiB Mem:    16394392 total,  12676204 free
KiB Swap:   16249852 total,  16249852 free
Timestamp of repository gentoo: Sun, 10 Jun 2018 18:00:01 +0000
Head commit of repository gentoo: c17f069e0fc9ae8095cfa63850a09a76d0987951
Head commit of repository steam-overlay: 46d2624c5f248bf28e25c25e172e60c2eb988e5f

sh bash 4.4_p12
ld GNU ld (Gentoo 2.30 p2) 2.30.0
app-shells/bash:          4.4_p12::gentoo
dev-lang/perl:            5.24.3-r1::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.5.5::gentoo, 3.6.5::gentoo
dev-util/cmake:           3.10.3::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.15.1-r2::gentoo
sys-devel/binutils:       2.30-r2::gentoo
sys-devel/gcc:            7.3.0-r3::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.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.26-r7::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts: 

steam-overlay
    location: /usr/local/steam-overlay
    sync-type: git
    sync-uri: https://github.com/anyc/steam-overlay/
    masters: gentoo

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

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -mtune=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /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/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -mtune=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y --keep-going"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs clean-logs config-protect-if-modified distlocks ebuild-locks fail-clean fixlafiles merge-sync metadata-transfer 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="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de en"
MAKEOPTS="-j9"
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 a52 aac acl acpi activities alsa amd64 avahi berkdb branding bzip2 cairo cdda cdr cli crypt cups cxx dbus declarative dri dts dvd dvdr emboss encode exif fam flac fortran gdbm gif glamor gpm gtk http2 iconv icu inotify ipv6 jpeg kde kipi kwallet lcms ldap libnotify libtirpc mad mng modules mp3 mp4 mpeg multilib ncurses networkmanager nls nptl ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds pulseaudio qml qt3support qt5 readline sdl seccomp semantic-desktop spell ssl startup-notification svg systemd tcpd tiff truetype udev udisks unicode upower usb v4l vaapi vdpau vorbis widgets wxwidgets x264 xattr xcb xcomposite xml xv xvid zeroconf 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="karbon plan sheets stage words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 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="evdev" KERNEL="linux" L10N="de en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5" RUBY_TARGETS="ruby23" SANE_BACKENDS="genesys" USERLAND="GNU" VIDEO_CARDS="nvidia nv" 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, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


Unfortunately I do not have time to look into it more thoroughly right now, myself. Please let me know if I can provide more information or test other fixes/workarounds.
Comment 3 Christian Gerloff 2018-06-12 03:42:10 UTC
Hi Lucas,

> Yes handbook use flag was the obvious thing. I already have have it disabled globally, however.
> 
> Trying to force it leads to the same error:
> 
> USE="-handbook" emerge kuickshow    
> ...

That's a bug I could confirm. That'll be fixed in the next release which should be live in the next couple of days.

I'm still looking into the error with the missing macro "kdoctools_create_handbook".
Comment 4 Andreas Sturmlechner gentoo-dev 2018-06-20 17:28:51 UTC
I guess with 0.10.0-r1 we can consider this fixed?
Comment 5 Christian Gerloff 2018-06-23 17:57:37 UTC
(In reply to Andreas Sturmlechner from comment #4)
> I guess with 0.10.0-r1 we can consider this fixed?

I think so.
I've noticed that when I compile with USE="-handbook" the component "KF5DocTools" is removed from CMakeLists.txt by the build system. That could explain Lucas' error, because in 0.10.0 the directory "doc-translations" with all the translated handbooks was processed unconditionally.
Now it has the default code put in by the KDE release system which checks if "KF5DocTools" has been found before doing that.


A snippet of the cmake outputs:

USE="handbook"
> -- The following REQUIRED packages have been found:
> * ECM
> ...
> * Qt5
> * KF5DocTools
> * Gettext
> ...

USE="-handbook"
> -- The following REQUIRED packages have been found:
> * ECM
> ...
> * Qt5
> * Gettext
> ...
Comment 6 Lucas Matt 2018-06-24 19:55:43 UTC
Hi Christian and Andreas,

sorry, but I could not test earlier. I tried today. Version 0.10.0-r1 compiles and installs fine on my system.
From my side this is fixed and can be closed.
Thanks a bunch for your efforts!

Best
Luc
Comment 7 Andreas Sturmlechner gentoo-dev 2018-06-24 20:02:09 UTC
Thanks for checking back.

(In reply to Christian Gerloff from comment #5)
> I've noticed that when I compile with USE="-handbook" the component
> "KF5DocTools" is removed from CMakeLists.txt by the build system. That could
> explain Lucas' error, because in 0.10.0 the directory "doc-translations"
> with all the translated handbooks was processed unconditionally.
See also: https://gitweb.gentoo.org/repo/gentoo.git/tree/eclass/kde5.eclass#n86