XR packaging for Fedora Atomic
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore(wlx-overlay-s): Apply formatting

+19 -4
+19 -4
Formula/wlx-overlay-s.rb
··· 23 23 24 24 # HACK: temporarily disable fixincludes for pthread.h, see https://github.com/orgs/Homebrew/discussions/6193 25 25 # Maybe building with LLVM clang would be a better idea? 26 - system "nu", "-c", "try {ls /home/linuxbrew/.linuxbrew/Cellar/gcc/*/lib/gcc/current/gcc/x86_64-pc-linux-gnu/*/include-fixed/pthread.h | each {|file| mv $file.name $'($file.name).bak'}}" 26 + system "nu", "-c", "try { 27 + ls /home/linuxbrew/.linuxbrew/Cellar/gcc/*/lib/gcc/current/gcc/x86_64-pc-linux-gnu/*/include-fixed/pthread.h 28 + | each {|file| mv $file.name $'($file.name).bak'}; 29 + print 'GCC Fixincludes disabled for `pthread.h`' 30 + } catch { 31 + print 'WARNING: Failed to disable pthread.h fixincludes from GCC.' 32 + }" 27 33 28 - system "cargo", "install", "--no-default-features", "--features", "openxr,wayland,pipewire,osc,wayvr", *std_cargo_args 34 + system "cargo", "install", 35 + "--no-default-features", 36 + "--features", "openxr,wayland,pipewire,osc,wayvr", 37 + *std_cargo_args 29 38 30 - # HACK: restore from above 31 - system "nu", "-c", "try {ls /home/linuxbrew/.linuxbrew/Cellar/gcc/*/lib/gcc/current/gcc/x86_64-pc-linux-gnu/*/include-fixed/pthread.h.bak | each {|file| mv $file.name ($file.name | str substring 0..-5)}}" 39 + # HACK: re-enable pthread.h fixincludes 40 + system "nu", "-c", "try { 41 + ls /home/linuxbrew/.linuxbrew/Cellar/gcc/*/lib/gcc/current/gcc/x86_64-pc-linux-gnu/*/include-fixed/pthread.h.bak 42 + | each {|file| mv $file.name ($file.name | str substring 0..-5)}; 43 + print 'GCC Fixincludes re-enabled for `pthread.h`' 44 + } catch { 45 + print 'WARNING: Failed to re-enable pthread.h fixincludes from GCC.' 46 + }" 32 47 end 33 48 34 49 test do