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
This will pick up the distro's best generator
@ReenigneArcher ReenigneArcher force-pushed the chore/spec-cleanup/cmake branch from 8764719 to 4710e19 Compare June 26, 2026 15:16
@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
@sonarqubecloud

Copy link
Copy Markdown

@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.
✅ Project coverage is 27.54%. Comparing base (e40d355) to head (4710e19).
✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #5341      +/-   ##
==========================================
+ Coverage   27.52%   27.54%   +0.01%     
==========================================
  Files         113      113              
  Lines       25596    25596              
  Branches    11239    11239              
==========================================
+ Hits         7046     7051       +5     
+ Misses      17567    16445    -1122     
- Partials      983     2100    +1117     
Flag Coverage Δ
Archlinux 11.49% <ø> (ø)
FreeBSD-amd64 13.30% <ø> (-0.01%) ⬇️
Homebrew-macos-14 21.02% <ø> (ø)
Homebrew-macos-15 21.18% <ø> (ø)
Homebrew-macos-26 21.30% <ø> (ø)
Homebrew-ubuntu-24.04 13.52% <ø> (ø)
Linux-AppImage 12.39% <ø> (ø)
Windows-AMD64 15.26% <ø> (ø)
Windows-ARM64 13.28% <ø> (ø)
macOS-arm64 19.25% <ø> (ø)
macOS-x86_64 18.72% <ø> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.
see 32 files with indirect coverage changes


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 e40d355...4710e19. 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

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