chore(packaging/copr): Use standard cmake macros#5341
Conversation
8764719 to
4710e19
Compare
Bundle ReportBundle size has no change ✅ |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #5341 +/- ##
=========================================
Coverage ? 27.45%
=========================================
Files ? 113
Lines ? 25554
Branches ? 11244
=========================================
Hits ? 7016
Misses ? 15473
Partials ? 3065
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report in Codecov by Harness.
|
|
copr builds failed: |
Probably some inconsistent cd paths or such. I will look into it |
bf2d380 to
44be8f3
Compare
44be8f3 to
31781bc
Compare
|
Now only opensuse is failing. |
31781bc to
fa2abc1
Compare
Yeah, seems like the macro details diverge for these 2 distros1. The interface are the same, so if we can use ctest 2 the difference once again vanish. Footnotes
|
|
You can just put the changes from your other PR into this one |
This will pick up the distro's best generator
4be7530 to
073854d
Compare
|
|
|
||
| # tests | ||
| if(BUILD_TESTS) | ||
| enable_testing() |
There was a problem hiding this comment.
This is already in the tests/CMakeLists.txt... is it truly necessary here?
There was a problem hiding this comment.
Yes, the location affects where you can run ctest from. Before you had to do it from {builddir}/tests, but with this you can do it from {builddir}
| "-DSUNSHINE_PUBLISHER_NAME=LizardByte" | ||
| "-DSUNSHINE_PUBLISHER_WEBSITE=https://app.lizardbyte.dev" | ||
| "-DSUNSHINE_PUBLISHER_ISSUE_URL=https://app.lizardbyte.dev/support" | ||
| "-DCMAKE_TEST_LAUNCHER=xvfb-run" |
There was a problem hiding this comment.
Was assuming there is CMake 3.29 at least everywhere, but it's not the case for opensuse leap 15.x. Leap 16 has CMake 3.31. I will check with copr team why those are not made available since opensuse 15.6 is already EOL. But also just to confirm, which opensuse version would you like to build on?
There was a problem hiding this comment.
But also just to confirm, which opensuse version would you like to build on?
Ideally whichever one is supported... but it's becoming apparent that OpenSuse is a second class citizen on copr. (#5353 (comment))
There was a problem hiding this comment.
Fwiw, we did do some work to support OBS with packit, but that kinda stalled because of lack of push from users. If interested to build there, we can probably revive the effort.
But for now, I am considering just waiting it out 1 week to see if the new chroot will be added.
There was a problem hiding this comment.
Just to add some context regarding openSUSE: there is already an open PR by me adding Tumbleweed support, but it currently can't be merged because of an existing bug with Tumbleweed in Copr. Any changes made to accommodate Leap's older CMake version could definitely impact or break that Tumbleweed build.
Regarding OBS: that's unfortunately a no-go for the full version. Because of NVENC licensing restrictions, OBS can't build it with NVENC enabled (there is actually already an NVENC-less build sitting in games:tools on OBS right now).
Sticking with Copr is the best bet to get a fully-featured build on openSUSE, so it really does seem like waiting for Copr to sort out the chroots/bugs for both Leap and Tumbleweed is the only way forward.



Description
This will pick up the distro's best generator, e.g. since Fedora 44 it uses Ninja.
For now I am starting with a small PR because I am not sure what flow you would prefer for these kind of cleanups. One PR at a time or grouped together with documented individual commits?
Screenshot
Issues Fixed or Closed
Roadmap Issues
Type of Change
Checklist
AI Usage