RFC: Split out project version in CMakeLists into a separate file to simplify downstream snapshot builds
Neal Gompa
ngompa13 at gmail.com
Mon Apr 12 23:53:24 BST 2021
On Mon, Apr 12, 2021 at 3:17 PM Albert Astals Cid <aacid at kde.org> wrote:
>
> El dilluns, 12 d’abril de 2021, a les 20:39:26 (CEST), Neal Gompa va escriure:
> > Hello all,
> >
> > In the Fedora KDE SIG, we're working on setting up a process to build
> > nightly snapshots of KDE software so that we can build and test
> > changes across the stack easily. However, a hurdle that we've
> > encountered early on is that it's difficult to pull out the version
> > from the CMakeLists and use it to prepare a snapshot version for RPMs
> > because they need to be evaluated by CMake to generate the correct
> > value.
>
> I don't understand why running cmake to get the version is hard but writing a script to parse a file is easy.
>
> They are both "running binaries", so if you can just run binaries why not just do the cmake thing that requires no changes on our side?
>
> Cheers,
> Albert
>
> P.S: If the problem is you don't know how to get the version from cmake we do this in various places, one being https://invent.kde.org/sysadmin/release-tools/-/blob/master/tools/python-kde-release/kde_release/cmake.py you basically run cmake with --trace-expand and parse the verison out of it.
>
Well, I didn't know about this functionality, so that would be why. :)
Marc, would this work for you for your automation?
--
真実はいつも一つ!/ Always, there's only one truth!
More information about the kde-devel
mailing list