@@ -17,7 +17,7 @@ class SunshineBeta < Formula
1717 desc "Self-hosted game stream host for Moonlight"
1818 homepage "https://app.lizardbyte.dev/Sunshine"
1919 url "https://github.com/LizardByte/Sunshine.git" ,
20- tag : "v2026.816.192458 "
20+ tag : "v2026.817.185037 "
2121 license all_of : [ "GPL-3.0-only" ]
2222 head "https://github.com/LizardByte/Sunshine.git" , branch : "master"
2323
@@ -39,11 +39,11 @@ class SunshineBeta < Formula
3939
4040 bottle do
4141 root_url "https://ghcr.io/v2/lizardbyte/homebrew"
42- sha256 arm64_tahoe : "8f91eb18a426a8e957c7abfb0426b11c2bf93132a64b38a1b52db4660c6ea231 "
43- sha256 arm64_sequoia : "4f3b17855df34e4f9e96f38cca0b2df584acd7f6b468919ee4633bb8fb15bba0 "
44- sha256 arm64_sonoma : "01c7d5ce6ca57931c2f720b40979b0ec30b07bc8f46cc5691a236561b320677d "
45- sha256 arm64_linux : "6243b6bc21a2f677d00fd63f66b485fdc65ebeee61684b9ea108d00d200c1663 "
46- sha256 x86_64_linux : "461d1c00d25d8b8d06e411574dafbc4bf9a8de9b158ea645c40627b680c93a35 "
42+ sha256 arm64_tahoe : "33ae0d44dd517af05346adec5488ec4b031aa19e6902b03bc990464f35620fcf "
43+ sha256 arm64_sequoia : "f7ab651e17e87cd5fc8c59ae614a2cc43c69d06786d20bf6ad43a94d0863379f "
44+ sha256 arm64_sonoma : "4b18317e448320133938c11f42e72f67dff70b92a177d3ac49a4ca840b406bad "
45+ sha256 arm64_linux : "9286784e2ed6cf6e655863cac80ff0657421f47857008841418ca6f6e23a1f43 "
46+ sha256 x86_64_linux : "b890283d56d20efa839fe92197e2b27fe6c5e520be251433f336f63b17c1f097 "
4747 end
4848
4949 option "with-docs" , "Enable docs build"
@@ -137,8 +137,8 @@ class SunshineBeta < Formula
137137
138138 def setup_build_environment
139139 ENV [ "BRANCH" ] = ""
140- ENV [ "BUILD_VERSION" ] = "2026.816.192458 "
141- ENV [ "COMMIT" ] = "687e12d013a838e1769ffdf996eb1d5ef8402660 "
140+ ENV [ "BUILD_VERSION" ] = "2026.817.185037 "
141+ ENV [ "COMMIT" ] = "f0ea53694420d48303c6cfe95b12136c65ed5af5 "
142142
143143 setup_linux_gcc_environment if OS . linux?
144144
@@ -370,11 +370,20 @@ def relative_lcov_record(record, source_prefixes)
370370 source_index = lines . index { |line | line . start_with? ( "SF:" ) }
371371 return unless source_index
372372
373- source_path = lines [ source_index ] . delete_prefix ( "SF:" ) . strip
374- source_prefix = source_prefixes . find { |prefix | source_path . start_with? ( prefix ) }
375- return unless source_prefix
373+ source_path = Pathname . new ( lines [ source_index ] . delete_prefix ( "SF:" ) . strip ) . cleanpath . to_s
374+ # Homebrew remaps the formula build path to ".". LLVM may then resolve that
375+ # relative path from CMake's compilation directory at "build/tests".
376+ relative_source_path = if source_path . start_with? ( "build/tests/src/" )
377+ source_path . delete_prefix ( "build/tests/" )
378+ elsif source_path . start_with? ( "src/" )
379+ source_path
380+ else
381+ source_prefix = source_prefixes . find { |prefix | source_path . start_with? ( prefix ) }
382+ "src/#{ source_path . delete_prefix ( source_prefix ) } " if source_prefix
383+ end
384+ return unless relative_source_path
376385
377- lines [ source_index ] = "SF:src/ #{ source_path . delete_prefix ( source_prefix ) } \n "
386+ lines [ source_index ] = "SF:#{ relative_source_path } \n "
378387 "#{ lines . join } end_of_record\n "
379388 end
380389
@@ -479,6 +488,42 @@ def caveats
479488 run_test_suite testpath
480489 generate_coverage_report testpath , ENV . fetch ( "HOMEBREW_BUILDPATH" , "" )
481490 end
491+
492+ lcov = <<~LCOV
493+ SF:./src/remapped.cpp
494+ DA:1,1
495+ end_of_record
496+ SF:build/tests/src/remapped_from_compile_dir.cpp
497+ DA:1,1
498+ end_of_record
499+ SF:src/relative.cpp
500+ DA:1,1
501+ end_of_record
502+ SF:#{ testpath } /src/absolute.cpp
503+ DA:1,1
504+ end_of_record
505+ SF:./tests/excluded.cpp
506+ DA:1,1
507+ end_of_record
508+ SF:build/tests/tests/excluded_from_compile_dir.cpp
509+ DA:1,1
510+ end_of_record
511+ LCOV
512+ expected_lcov = <<~LCOV
513+ SF:src/remapped.cpp
514+ DA:1,1
515+ end_of_record
516+ SF:src/remapped_from_compile_dir.cpp
517+ DA:1,1
518+ end_of_record
519+ SF:src/relative.cpp
520+ DA:1,1
521+ end_of_record
522+ SF:src/absolute.cpp
523+ DA:1,1
524+ end_of_record
525+ LCOV
526+ assert_equal expected_lcov , lcov_for_source_files ( lcov , testpath )
482527 end
483528 end
484529end
0 commit comments