Subject: CVS commit: pkgsrc/editors/kate
From: David H. Gutteridge
Date: 2024-02-23 05:00:03
Message id: 20240223040003.A4877F9F4@cvs.NetBSD.org

Log Message:
kate: fix builds for some platforms (e.g., NetBSD 9.x)

In some contexts, use of PCH causes build failures, e.g.:

[  9%] Building C object pch/CMakeFiles/katepch.dir/cmake_pch.h.gch
[  9%] Building CXX object \ 
pch/CMakeFiles/katepch.dir/katepch_autogen/mocs_compilation.cpp.o
[  9%] Building CXX object \ 
addons/backtracebrowser/autotests/CMakeFiles/btbrowser_test.dir/__/btparser.cpp. \ 
o
<command-line>: fatal error: had to relocate PCH
compilation terminated.
--- pch/CMakeFiles/katepch.dir/katepch_autogen/mocs_compilation.cpp.o ---
*** [pch/CMakeFiles/katepch.dir/katepch_autogen/mocs_compilation.cpp.o] Error code 1

The upstream project offers the configuration option to disable PCH, so
take advantage of this. Except, evidently they have not recently tested
a build with that setting disabled, as various files then miss specific
includes that happen to get covered with their catch-all pch.h header.

While here, also don't install .desktop files as executable, they are
not scripts (and this one wouldn't magically work anyway).

Files:
RevisionActionfile
1.90modifypkgsrc/editors/kate/Makefile
1.21modifypkgsrc/editors/kate/distinfo
1.1addpkgsrc/editors/kate/patches/patch-addons_project_git_gitstatus.h
1.1addpkgsrc/editors/kate/patches/patch-addons_project_kateproject.h
1.1addpkgsrc/editors/kate/patches/patch-addons_project_kateprojectitem.h
1.1addpkgsrc/editors/kate/patches/patch-apps_lib_ktexteditor__utils.h