ports/audio/spotifyd/files/patch-src_utils.rs
Rodrigo Osorio eefde745d9 audio/spotifyd: upgrade to 0.3.0 and fix panic after rust update
Major changes:
    - Changed the config format from ini to TOML
      Make sure to update your config file accordingly[1].
    - Expose volume trough dbus
    - Add an option to disable dbus

Introduce two temporary patches to :
 - Fix panic reported in upstream bug system #719[2] - fixed in future
 - Fix compilation issue with FreeBSD (Merged after 0.3.0[3] release)

[1] https://github.com/Spotifyd/spotifyd/blob/master/docs/src/config/File.md
[2] https://github.com/Spotifyd/spotifyd/issues/719
[3] a352eab53e

PR:		251968
Submitted by:	<nick.rozhkov@gmail.com>
2021-02-12 10:41:53 +00:00

11 lines
324 B
Rust

--- src/utils.rs.orig 2021-02-09 22:43:15 UTC
+++ src/utils.rs
@@ -3,7 +3,7 @@
#[cfg(target_os = "macos")]
use whoami;
-#[cfg(target_os = "linux")]
+#[cfg(any(target_os = "freebsd", target_os = "linux"))]
fn get_shell_ffi() -> Option<String> {
use libc::{geteuid, getpwuid_r};
use std::{ffi::CStr, mem, ptr};