Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upWorking directory in CMakeLists.txt required #344
Comments
This comment has been minimized.
This comment has been minimized.
Backward incompatible changes in cmake again?! That's why I dislike cmake; have never seen such issues with qmake. Thanks for letting me know about this problem and its solution! I'll investigate it as soon as I find time. |
tsujan
added
the
workaround needed
label
Feb 11, 2019
This comment has been minimized.
This comment has been minimized.
The problem wasn't in Kvantum's cmake file -- a standard cmake compilation works OK -- but in the AUR PKGBUILD of git kvantum: it should have made a build directory before compilation. SOLUTION:Please make these changes to PKGBUILD's build() {
cd ${srcdir}/${_gitname}/${_gitname}
mkdir -p build ; cd build
cmake .. -DCMAKE_INSTALL_PREFIX:PATH=/usr
make
}
package() {
cd ${srcdir}/${_gitname}/${_gitname}
cd build
make DESTDIR=${pkgdir}/ install
cd ..
install -Dm644 ChangeLog ${pkgdir}/usr/share/doc/kvantum/ChangeLog
install -Dm644 COPYING ${pkgdir}/usr/share/licenses/kvantum/COPYING
cp -r doc ${pkgdir}/usr/share/doc/kvantum
} It works here without problem but please test it before making the change. Please also close this issue after you made the change successfully! Thanks in advance! NOTE: There may be simpler ways but the above-mentioned one seems to work. |
tsujan
added
downstream
and removed
workaround needed
labels
Feb 12, 2019
This comment has been minimized.
This comment has been minimized.
Oh my... need to review some pkgbuilds now ;) Tested and build is fine now, but added a line to remove the /usr/share/kde4 directory because i think it is not needed anymore. Maybe you can remove it in source. Ah, thank you! |
omni6
closed this
Feb 12, 2019
This comment has been minimized.
This comment has been minimized.
Right! It's just a relic from very old times. I'll remove it later. |
This comment has been minimized.
This comment has been minimized.
Oh, I still have one Qt4 app; so, |
This comment has been minimized.
This comment has been minimized.
backward compatiblity... |
omni6 commentedFeb 11, 2019
Hi @tsujan,
got an issue for the kvantum-qt5-git PKGBUILD
Here issue report for cmake:
https://gitlab.kitware.com/cmake/cmake/issues/18817
Patch for CMakeLists.txt for another application:
https://gist.github.com/ulyssesrr/d7c93e121bc9c5c7a4e0564be5e4ac21