Bug 427008 - CMAKE/Ninja Fails build kf5-knewstuff when installing in Homebrew
Summary: CMAKE/Ninja Fails build kf5-knewstuff when installing in Homebrew
Status: RESOLVED FIXED
Alias: None
Product: frameworks-knewstuff
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Homebrew (macOS) macOS
: NOR normal
Target Milestone: ---
Assignee: Dan Leinir Turthra Jensen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-26 22:33 UTC by Arjun Bhobe
Modified: 2020-09-29 16:02 UTC (History)
3 users (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 Arjun Bhobe 2020-09-26 22:33:44 UTC
SUMMARY
CMAKE/Ninja Fails build kf5-knewstuff

STEPS TO REPRODUCE
1. brew install kdenlive
OR
2. brew install kf5-knewstuff

OBSERVED RESULT

Installing dependencies for kde-mac/kde/kdenlive: KDE-mac/kde/kf5-knewstuff and KDE-mac/kde/kf5-knotifyconfig
==> Installing kde-mac/kde/kdenlive dependency: KDE-mac/kde/kf5-knewstuff
==> cmake -G Ninja .. -DBUILD_TESTING=OFF -DBUILD_QCH=ON -DKDE_INSTALL_QMLDIR=lib/qt5/qml -DKDE_INST
==> ninja
==> ninja install
Last 15 lines from /Users/abhobe/Library/Logs/Homebrew/kf5-knewstuff/03.ninja:
-- Installing: /usr/local/Cellar/kf5-knewstuff/5.74.0/lib/qt5/qml/org/kde/newstuff/qml/EntryDetails.qml
-- Installing: /usr/local/Cellar/kf5-knewstuff/5.74.0/lib/qt5/qml/org/kde/newstuff/qmldir
-- Installing: /Applications/KDE/knewstuff-dialog.app
CMake Error at src/tools/knewstuff-dialog/cmake_install.cmake:49 (file):
  file INSTALL cannot make directory
  "/Applications/KDE/knewstuff-dialog.app": No such file or directory.
Call Stack (most recent call first):
  src/tools/cmake_install.cmake:42 (include)
  src/cmake_install.cmake:145 (include)
  cmake_install.cmake:122 (include)


FAILED: CMakeFiles/install.util 
cd /tmp/kf5-knewstuff-20200926-74687-gpt8fs/knewstuff-5.74.0/build && /usr/local/Cellar/cmake/3.18.3/bin/cmake -P cmake_install.cmake
ninja: build stopped: subcommand failed.

If reporting this issue please do so to (not Homebrew/brew or Homebrew/core):
  kde-mac/kde

These open issues may also help:
KDE-mac/kde/kf5-knewstuff fails to build https://github.com/KDE-mac/homebrew-kde/issues/313


EXPECTED RESULT


SOFTWARE/OS VERSIONS
macOS: Catalina 10.15.6
 
KDE Frameworks Version: 
Qt Version: Qt 5.12.9 (x86_64-little_endian-lp64 shared (dynamic) release build;

ADDITIONAL INFORMATION
Comment 1 Arjun Bhobe 2020-09-26 22:37:05 UTC
I also ran this from https://invent.kde.org/packaging/homebrew-kde/-/tree/master

brew untap kde-mac/kde 2> /dev/null
brew tap kde-mac/kde https://invent.kde.org/packaging/homebrew-kde.git --force-auto-update
"$(brew --repo kde-mac/kde)/tools/do-caveats.sh"