Bug 388905 - Can not compile kservice
Summary: Can not compile kservice
Status: RESOLVED NOT A BUG
Alias: None
Product: frameworks-kservice
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.41.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: David Faure
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-13 12:57 UTC by shevegen
Modified: 2018-03-29 14:04 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description shevegen 2018-01-13 12:57:55 UTC
Error line:








--------








cmake -DCMAKE_INSTALL_PREFIX=/usr .
-- The C compiler identification is GNU 7.2.0
-- The CXX compiler identification is GNU 7.2.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- 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/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- 

-- Installing in the same prefix as Qt, adopting their path scheme.
-- 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
-- Could not set up the appstream test. appstreamcli is missing.
-- Found Gettext: /usr/bin/msgmerge (found version "0.19.8.1") 
-- Found PythonInterp: /usr/bin/python (found version "2.7.14") 
-- Found FLEX: /usr/bin/flex (found version "2.6.4") 
-- Found BISON: /usr/bin/bison (found version "3.0.4") 
-- Looking for mmap
-- Looking for mmap - found
-- Looking for posix_madvise
-- Looking for posix_madvise - found
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Success
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success
CMake Error at autotests/CMakeLists.txt:43 (file):
  file COPY cannot find
  "/Depot/Temp/kservice-5.41.0/autotests/fakeplugin.desktop".


CMake Error at autotests/CMakeLists.txt:44 (file):
  file RENAME failed to rename

    /Depot/Temp/kservice-5.41.0/autotests/fakeplugin.desktop

  to

    /Depot/Temp/kservice-5.41.0/autotests/fakeplugin_json_old.desktop

  because: No such file or directory



CMake Error at autotests/CMakeLists.txt:47 (file):
  file COPY cannot find
  "/Depot/Temp/kservice-5.41.0/autotests/fakeplugin.desktop".


CMake Error at autotests/CMakeLists.txt:48 (file):
  file RENAME failed to rename

    /Depot/Temp/kservice-5.41.0/autotests/fakeplugin.desktop

  to

    /Depot/Temp/kservice-5.41.0/autotests/fakeplugin_json_new.desktop

  because: No such file or directory



-- The following OPTIONAL packages have been found:

 * KF5DocTools (required version >= 5.41.0)

-- The following REQUIRED packages have been found:

 * ECM (required version >= 5.41.0), Extra CMake Modules., <https://projects.kde.org/projects/kdesupport/extra-cmake-modules>
 * Qt5DBus
 * Qt5Xml
 * KF5Config (required version >= 5.41.0)
 * KF5CoreAddons (required version >= 5.41.0)
 * KF5Crash (required version >= 5.41.0)
 * KF5DBusAddons (required version >= 5.41.0)
 * Gettext
 * PythonInterp
 * KF5I18n (required version >= 5.41.0)
 * FLEX, Fast Lexical Analyzer, <http://flex.sourceforge.net>
   Required for the Trader parser
 * BISON, general-purpose parser generator, <http://www.gnu.org/software/bison>
   Required for the Trader parser
 * Qt5Concurrent
 * Qt5Test
 * Qt5 (required version >= 5.7.0)

-- The following features have been disabled:

 * QCH, API documentation in QCH format (for e.g. Qt Assistant, Qt Creator & KDevelop)

-- Configuring incomplete, errors occurred!
See also "/Depot/Temp/kservice-5.41.0/CMakeFiles/CMakeOutput.log".

---------------


As can be seen, fakeplugin.desktop is not found or generated and thus the
whole compilation fails.

I have no idea what the error is about really but I have two suggestions:

(1) if fakeplugin.desktop is not totally important, perhaps continue with
the compile cycle.

(2) IF fakeplugin.desktop is important, it should be auto-generated or
perhaps a failsafe .desktop file bundled with kservice.

Right now I can not compile the rest of KDE5 but I am absolutely sure
that I was able to compile KDE5 up to including KDE Konsole a few months
ago. It seems as if the tests are run automatically? Perhaps that could
also become some documented commandline switch, since I don't need any
tests really - the C++ code should work just fine no?
Comment 1 Christoph Feck 2018-01-31 01:06:07 UTC
Is this still an issue? On our CI, kservice builds fine, including autotests, on all supported platforms. Some autotests fail when run, though.
Comment 2 Christoph Feck 2018-02-14 18:35:10 UTC
If you can provide the information requested in comment #1, please add it.
Comment 3 Christoph Feck 2018-03-01 00:59:29 UTC
To further investigate this issue, KDE developers need the information requested in comment #1. If you can provide it, or need help with finding that information, please add a comment.
Comment 4 Christoph Feck 2018-03-29 14:04:09 UTC
No response; changing status. If you have more information, please add a comment.