You are not logged in.

#1 2024-02-29 00:19:18

strayhay
Member
Registered: 2022-02-24
Posts: 11

[SOLVED] okular-no-purpose fails build due to dependency

okular-no-purpose builds okular the document view without KDE dependencies. I believe this is achieved by having "-DFORCE_NOT_REQUIRED_DEPENDENCIES=KF5Purpose" and "-DKDEExperimentalPurpose_FOUND=OFF" in the cmake command.

I tried to install the package with yay, but the build fails:

yay -S okular-no-purpose
:: Checking for conflicts...
:: Checking for inner conflicts...
[Aur:1]  okular-no-purpose-23.08.5-1

  1 okular-no-purpose                        (Build Files Exist)
==> Packages to cleanBuild?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> A
:: Deleting (1/1): /home/xfeng/.cache/yay/okular-no-purpose
:: (1/1) Downloaded PKGBUILD: okular-no-purpose
  1 okular-no-purpose                        (Build Files Exist)
==> Diffs to show?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> n
:: (1/1) Parsing SRCINFO: okular-no-purpose
==> Making package: okular-no-purpose 23.08.5-1 (Wed 28 Feb 2024 07:06:48 PM EST)
==> Retrieving sources...
  -> Downloading okular-23.08.5.tar.xz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 8316k  100 8316k    0     0  5845k      0  0:00:01  0:00:01 --:--:-- 11.1M
  -> Downloading okular-23.08.5.tar.xz.sig...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   833  100   833    0     0   1569      0 --:--:-- --:--:-- --:--:--  1568
==> Validating source files with sha256sums...
    okular-23.08.5.tar.xz ... Passed
    okular-23.08.5.tar.xz.sig ... Skipped
==> Verifying source file signatures with gpg...
    okular-23.08.5.tar.xz ... Passed
==> Making package: okular-no-purpose 23.08.5-1 (Wed 28 Feb 2024 07:06:51 PM EST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found okular-23.08.5.tar.xz
  -> Found okular-23.08.5.tar.xz.sig
==> Validating source files with sha256sums...
    okular-23.08.5.tar.xz ... Passed
    okular-23.08.5.tar.xz.sig ... Skipped
==> Verifying source file signatures with gpg...
    okular-23.08.5.tar.xz ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Extracting okular-23.08.5.tar.xz with bsdtar
==> Sources are ready.
==> Making package: okular-no-purpose 23.08.5-1 (Wed 28 Feb 2024 07:06:53 PM EST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Starting build()...
-- The C compiler identification is GNU 13.2.1
-- The CXX compiler identification is GNU 13.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- 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
-- Installing in the same prefix as Qt, adopting their path scheme.
-- Found KF5Archive: /usr/lib/cmake/KF5Archive/KF5ArchiveConfig.cmake (found version "5.115.0")
CMake Warning at /usr/share/cmake/Modules/CMakeFindDependencyMacro.cmake:76 (find_package):
  Could not find a configuration file for package "KF5WidgetsAddons" that is
  compatible with requested version "5.115.0".

  The following configuration files were considered but not accepted:

    /usr/lib/cmake/KF5WidgetsAddons/KF5WidgetsAddonsConfig.cmake, version: 5.114.0
    /lib/cmake/KF5WidgetsAddons/KF5WidgetsAddonsConfig.cmake, version: 5.114.0

Call Stack (most recent call first):
  /usr/lib/cmake/KF5Bookmarks/KF5BookmarksConfig.cmake:38 (find_dependency)
  /usr/share/ECM/find-modules/FindKF5.cmake:52 (find_package)
  CMakeLists.txt:118 (find_package)


CMake Warning at /usr/share/ECM/find-modules/FindKF5.cmake:52 (find_package):
  Found package configuration file:

    /usr/lib/cmake/KF5Bookmarks/KF5BookmarksConfig.cmake

  but it set KF5Bookmarks_FOUND to FALSE so package "KF5Bookmarks" is
  considered to be NOT FOUND.  Reason given by package:

  KF5Bookmarks could not be found because dependency KF5WidgetsAddons could
  not be found.

Call Stack (most recent call first):
  CMakeLists.txt:118 (find_package)


-- Could NOT find KF5Bookmarks (found version "5.115.0"), checked the following files:
    /usr/lib/cmake/KF5Bookmarks/KF5BookmarksConfig.cmake (version 5.115.0)
    Reason given by package: KF5Bookmarks could not be found because dependency KF5WidgetsAddons could not be found.

-- Found KF5Completion: /usr/lib/cmake/KF5Completion/KF5CompletionConfig.cmake (found version "5.114.0")
-- Found KF5Config: /usr/lib/cmake/KF5Config/KF5ConfigConfig.cmake (found version "5.114.0")
CMake Warning at /usr/share/cmake/Modules/CMakeFindDependencyMacro.cmake:76 (find_package):
  Could not find a configuration file for package "KF5CoreAddons" that is
  compatible with requested version "5.115.0".

  The following configuration files were considered but not accepted:

    /usr/lib/cmake/KF5CoreAddons/KF5CoreAddonsConfig.cmake, version: 5.114.0
    /lib/cmake/KF5CoreAddons/KF5CoreAddonsConfig.cmake, version: 5.114.0

Call Stack (most recent call first):
  /usr/lib/cmake/KF5Auth/KF5AuthConfig.cmake:47 (find_dependency)
  /usr/share/cmake/Modules/CMakeFindDependencyMacro.cmake:76 (find_package)
  /usr/lib/cmake/KF5ConfigWidgets/KF5ConfigWidgetsConfig.cmake:39 (find_dependency)
  /usr/share/ECM/find-modules/FindKF5.cmake:52 (find_package)
  CMakeLists.txt:118 (find_package)


CMake Warning at /usr/share/cmake/Modules/CMakeFindDependencyMacro.cmake:76 (find_package):
  Found package configuration file:

    /usr/lib/cmake/KF5Auth/KF5AuthConfig.cmake

  but it set KF5Auth_FOUND to FALSE so package "KF5Auth" is considered to be
  NOT FOUND.  Reason given by package:

  KF5Auth could not be found because dependency KF5CoreAddons could not be
  found.

Call Stack (most recent call first):
  /usr/lib/cmake/KF5ConfigWidgets/KF5ConfigWidgetsConfig.cmake:39 (find_dependency)
  /usr/share/ECM/find-modules/FindKF5.cmake:52 (find_package)
  CMakeLists.txt:118 (find_package)


CMake Warning at /usr/share/ECM/find-modules/FindKF5.cmake:52 (find_package):
  Found package configuration file:

    /usr/lib/cmake/KF5ConfigWidgets/KF5ConfigWidgetsConfig.cmake

  but it set KF5ConfigWidgets_FOUND to FALSE so package "KF5ConfigWidgets" is
  considered to be NOT FOUND.  Reason given by package:

  KF5ConfigWidgets could not be found because dependency KF5Auth could not be
  found.

Call Stack (most recent call first):
  CMakeLists.txt:118 (find_package)


-- Could NOT find KF5ConfigWidgets (found version "5.115.0"), checked the following files:
    /usr/lib/cmake/KF5ConfigWidgets/KF5ConfigWidgetsConfig.cmake (version 5.115.0)
    Reason given by package: KF5ConfigWidgets could not be found because dependency KF5Auth could not be found.

-- Found KF5CoreAddons: /usr/lib/cmake/KF5CoreAddons/KF5CoreAddonsConfig.cmake (found version "5.114.0")
-- Found Gettext: /usr/bin/msgmerge (found version "0.22.4")
-- Found KF5I18n: /usr/lib/cmake/KF5I18n/KF5I18nConfig.cmake (found version "5.114.0")
CMake Warning at /usr/share/cmake/Modules/CMakeFindDependencyMacro.cmake:76 (find_package):
  Could not find a configuration file for package "KF5CoreAddons" that is
  compatible with requested version "5.115.0".

  The following configuration files were considered but not accepted:

    /usr/lib/cmake/KF5CoreAddons/KF5CoreAddonsConfig.cmake, version: 5.114.0
    /lib/cmake/KF5CoreAddons/KF5CoreAddonsConfig.cmake, version: 5.114.0

Call Stack (most recent call first):
  /usr/lib/cmake/KF5KIO/KF5KIOConfig.cmake:43 (find_dependency)
  /usr/share/ECM/find-modules/FindKF5.cmake:52 (find_package)
  CMakeLists.txt:118 (find_package)


CMake Warning at /usr/share/ECM/find-modules/FindKF5.cmake:52 (find_package):
  Found package configuration file:

    /usr/lib/cmake/KF5KIO/KF5KIOConfig.cmake

  but it set KF5KIO_FOUND to FALSE so package "KF5KIO" is considered to be
  NOT FOUND.  Reason given by package:

  KF5KIO could not be found because dependency KF5CoreAddons could not be
  found.

Call Stack (most recent call first):
  CMakeLists.txt:118 (find_package)


-- Could NOT find KF5KIO (found version "5.115.0"), checked the following files:
    /usr/lib/cmake/KF5KIO/KF5KIOConfig.cmake (version 5.115.0)
    Reason given by package: KF5KIO could not be found because dependency KF5CoreAddons could not be found.

-- Found KF5ThreadWeaver: /usr/lib/cmake/KF5ThreadWeaver/KF5ThreadWeaverConfig.cmake (found version "5.115.0")
-- Found X11: /usr/include
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.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 KF5WindowSystem: /usr/lib/cmake/KF5WindowSystem/KF5WindowSystemConfig.cmake (found version "5.114.0")
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find KF5 (missing: Bookmarks ConfigWidgets KIO) (found suitable
  version "5.114.0", minimum required is "5.92.0")
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/ECM/find-modules/FindKF5.cmake:93 (find_package_handle_standard_args)
  CMakeLists.txt:118 (find_package)


-- Configuring incomplete, errors occurred!
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: okular-no-purpose

It seems despite the request for not using KF5Purpose, the building process still looked for it...?  (Some KDE-related dependencies already exists on the system due to programs like krita, hence the message of version number mismatch, I guess.)

The only somewhat related issue I have found is this now-fixed bug of okular in 2022, and it specified dependencies in a different way. Probably irrelevant here.

Since the AUR package page has no discussions about failed build, I'm sure it must be me doing something wrong. But I have no idea what.

Last edited by strayhay (2024-02-29 07:18:40)

Offline

#2 2024-02-29 00:33:23

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,779

Re: [SOLVED] okular-no-purpose fails build due to dependency

It's not looking for purpose but the rest of the KDE dependencies (... which aren't optional) and apparently your system being out of date because the current KF5 versions are 115 and your system has 114 at points.

Always pacman -Syu before installing/building packages.

Last edited by V1del (2024-02-29 00:40:08)

Offline

#3 2024-02-29 07:18:17

strayhay
Member
Registered: 2022-02-24
Posts: 11

Re: [SOLVED] okular-no-purpose fails build due to dependency

Yes, I forgot to update the system. Thank you! Marking as solved.

Offline

Board footer

Powered by FluxBB