Skip to content

chore(packaging/copr): Use standard cmake macros#5341

Open
LecrisUT wants to merge 1 commit into
LizardByte:masterfrom
LecrisUT:chore/spec-cleanup/cmake
Open

chore(packaging/copr): Use standard cmake macros#5341
LecrisUT wants to merge 1 commit into
LizardByte:masterfrom
LecrisUT:chore/spec-cleanup/cmake

Conversation

@LecrisUT

Copy link
Copy Markdown

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

  • feat: New feature (non-breaking change which adds functionality)
  • fix: Bug fix (non-breaking change which fixes an issue)
  • docs: Documentation only changes
  • style: Changes that do not affect the meaning of the code (white-space, formatting, missing semicolons, etc.)
  • refactor: Code change that neither fixes a bug nor adds a feature
  • perf: Code change that improves performance
  • test: Adding missing tests or correcting existing tests
  • build: Changes that affect the build system or external dependencies
  • ci: Changes to CI configuration files and scripts
  • chore: Other changes that don't modify src or test files
  • revert: Reverts a previous commit
  • BREAKING CHANGE: Introduces a breaking change (can be combined with any type above)

Checklist

  • Code follows the style guidelines of this project
  • Code has been self-reviewed
  • Code has been commented, particularly in hard-to-understand areas
  • Code docstring/documentation-blocks for new or existing methods/components have been added or updated
  • Unit tests have been added or updated for any new or modified functionality

AI Usage

  • None: No AI tools were used in creating this PR
  • Light: AI provided minor assistance (formatting, simple suggestions)
  • Moderate: AI helped with code generation or debugging specific parts
  • Heavy: AI generated most or all of the code changes

Comment thread packaging/linux/copr/Sunshine.spec
@ReenigneArcher ReenigneArcher force-pushed the chore/spec-cleanup/cmake branch from 8764719 to 4710e19 Compare June 26, 2026 15:16
ReenigneArcher
ReenigneArcher previously approved these changes Jun 26, 2026
@ReenigneArcher ReenigneArcher changed the title chore(spec): Use standard cmake macros chore(copr): Use standard cmake macros Jun 26, 2026
@ReenigneArcher ReenigneArcher changed the title chore(copr): Use standard cmake macros chore(packaging/copr): Use standard cmake macros Jun 26, 2026
@codecov

codecov Bot commented Jun 26, 2026

Copy link
Copy Markdown

Bundle Report

Bundle size has no change ✅

@codecov

codecov Bot commented Jun 26, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (master@bba6c6c). Learn more about missing BASE report.
✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #5341   +/-   ##
=========================================
  Coverage          ?   27.55%           
=========================================
  Files             ?      113           
  Lines             ?    25587           
  Branches          ?    11237           
=========================================
  Hits              ?     7050           
  Misses            ?    15380           
  Partials          ?     3157           
Flag Coverage Δ
Archlinux 0.00% <ø> (?)
FreeBSD-amd64 13.36% <ø> (?)
Homebrew-macos-14 21.05% <ø> (?)
Homebrew-macos-15 21.21% <ø> (?)
Homebrew-macos-26 21.32% <ø> (?)
Homebrew-ubuntu-24.04 13.08% <ø> (?)
Linux-AppImage 12.42% <ø> (?)
Windows-AMD64 15.30% <ø> (?)
Windows-ARM64 13.35% <ø> (?)
macOS-arm64 19.31% <ø> (?)
macOS-x86_64 18.78% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bba6c6c...31781bc. Read the comment docs.

@ReenigneArcher

Copy link
Copy Markdown
Member

copr builds failed:

+ /usr/bin/cmake --install redhat-linux-build
CMake Error: Not a file: /builddir/build/BUILD/Sunshine-0.0.5341-build/redhat-linux-build/cmake_install.cmake
CMake Error: Error processing file: /builddir/build/BUILD/Sunshine-0.0.5341-build/redhat-linux-build/cmake_install.cmake
error: Bad exit status from /var/tmp/rpm-tmp.VdUp8U (%install)

@LecrisUT

Copy link
Copy Markdown
Author

copr builds failed:

+ /usr/bin/cmake --install redhat-linux-build
CMake Error: Not a file: /builddir/build/BUILD/Sunshine-0.0.5341-build/redhat-linux-build/cmake_install.cmake
CMake Error: Error processing file: /builddir/build/BUILD/Sunshine-0.0.5341-build/redhat-linux-build/cmake_install.cmake
error: Bad exit status from /var/tmp/rpm-tmp.VdUp8U (%install)

Probably some inconsistent cd paths or such. I will look into it

@LecrisUT LecrisUT force-pushed the chore/spec-cleanup/cmake branch 2 times, most recently from bf2d380 to 44be8f3 Compare June 30, 2026 09:50
This will pick up the distro's best generator
@ReenigneArcher ReenigneArcher force-pushed the chore/spec-cleanup/cmake branch from 44be8f3 to 31781bc Compare June 30, 2026 13:59
@sonarqubecloud

Copy link
Copy Markdown

@ReenigneArcher

Copy link
Copy Markdown
Member

Now only opensuse is failing.

https://copr.fedorainfracloud.org/coprs/build/10664281/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants