CMake + extra modules - LIB_INSTALL_DIR is deprecated

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello.

I'm trying to update zeal package to the latest master because the latest released version doesn't work anymore.

My WIP specfile is here: https://src.fedoraproject.org/fork/lbalhar/rpms/zeal/blob/rawhide/f/zeal.spec

When I try to build it in mock for rawhide or f34, I get this error:

CMake Deprecation Error at /usr/share/ECM/kde-modules/KDEInstallDirs.cmake:337 (message):
  LIB_INSTALL_DIR is deprecated, use KDE_INSTALL_LIBDIR instead.
Call Stack (most recent call first):
  /usr/share/ECM/kde-modules/KDEInstallDirs.cmake:432 (_define_relative)
  assets/freedesktop/CMakeLists.txt:5 (include)


-- Configuring incomplete, errors occurred!
See also "/builddir/build/BUILD/zeal-dbb8eb29db1476a7b117d96e047867577ff73261/x86_64-redhat-linux-gnu/CMakeFiles/CMakeOutput.log".

The error is raised by this piece of code from extra-cmake-modules:

https://github.com/KDE/extra-cmake-modules/blob/3a75f891f5a914280a2a23194d1a61b19387d8ae/kde-modules/KDEInstallDirs.cmake#L337

but the LIB_INSTALL_DIR is defined in the %cmake macro:

rpm --eval "%cmake"
…

  /usr/bin/cmake \
        -S "." \
        -B "x86_64-redhat-linux-gnu" \
        -DCMAKE_C_FLAGS_RELEASE:STRING="-DNDEBUG" \
        -DCMAKE_CXX_FLAGS_RELEASE:STRING="-DNDEBUG" \
        -DCMAKE_Fortran_FLAGS_RELEASE:STRING="-DNDEBUG" \
        -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \
        -DCMAKE_INSTALL_DO_STRIP:BOOL=OFF \
        -DCMAKE_INSTALL_PREFIX:PATH=/usr \
        -DINCLUDE_INSTALL_DIR:PATH=/usr/include \
        -DLIB_INSTALL_DIR:PATH=/usr/lib64 \
        -DSYSCONF_INSTALL_DIR:PATH=/etc \
        -DSHARE_INSTALL_PREFIX:PATH=/usr/share \
%if "lib64" == "lib64"
        -DLIB_SUFFIX=64 \
%endif
        -DBUILD_SHARED_LIBS:BOOL=ON

How can I fix this? Is this a bug?

Thanks a lot and have a nice day.

Lumír
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux