BackgroundMusic icon indicating copy to clipboard operation
BackgroundMusic copied to clipboard

Broken my brew

Open StathisKap opened this issue 5 months ago • 3 comments

Description of the bug I believe the application is uninstalled, but whenever I try to brew upgrade it gives me

└─(11:54:21 on stable)──> brew upgrade                                                                               ⎈ stathis-site@stathis /opt/homebrew/Caskroom %
==> Downloading https://formulae.brew.sh/api/formula.jws.json
==> Downloading https://formulae.brew.sh/api/cask.jws.json
==> Casks with 'auto_updates true' or 'version :latest' will not be upgraded; pass `--greedy` to upgrade them.
==> Upgrading 1 outdated package:
background-music 0.4.0 -> 0.4.3
==> Upgrading background-music
==> Downloading https://raw.githubusercontent.com/Homebrew/homebrew-cask/bd90d1f04389a482c44a2b9e426bfa579e0a0434/Casks/b/background-music.rb
############################################################################################################################################################### 100.0%
==> Downloading https://github.com/kyleneideck/BackgroundMusic/releases/download/v0.4.3/BackgroundMusic-0.4.3.pkg
Already downloaded: /Users/stathis/Library/Caches/Homebrew/downloads/f26261d677adedfa65aaf9099670dfbb0a883dfa3b6a01e3ceb1a9859659e34f--BackgroundMusic-0.4.3.pkg
==> Removing launchctl service com.bearisdriving.BGM.XPCHelper
Password:
==> Uninstalling packages with sudo; the password may be necessary:
==> Removing files:
/Library/Application Support/Background Music
/Library/Audio/Plug-Ins/HAL/Background Music Device.driver
/usr/local/libexec/BGMXPCHelper.xpc
Could not kickstart service "com.apple.audio.coreaudiod": 150: Operation not permitted while System Integrity Protection is engaged
==> Purging files for version 0.4.3 of Cask background-music
Error: background-music: Failure while executing; `/usr/bin/sudo -E -- /bin/launchctl kickstart -kp system/com.apple.audio.coreaudiod` exited with 150. Here's the output:
Could not kickstart service "com.apple.audio.coreaudiod": 150: Operation not permitted while System Integrity Protection is engaged

and whenever I try brew uninstall background-music

==> Uninstalling Cask background-music
==> Removing launchctl service com.bearisdriving.BGM.XPCHelper
Password:
==> Uninstalling packages with sudo; the password may be necessary:
==> Removing files:
/Library/Application Support/Background Music
/Library/Audio/Plug-Ins/HAL/Background Music Device.driver
/usr/local/libexec/BGMXPCHelper.xpc
Could not kickstart service "com.apple.audio.coreaudiod": 150: Operation not permitted while System Integrity Protection is engaged
Error: Failure while executing; `/usr/bin/sudo -E -- /bin/launchctl kickstart -kp system/com.apple.audio.coreaudiod` exited with 150. Here's the output:
Could not kickstart service "com.apple.audio.coreaudiod": 150: Operation not permitted while System Integrity Protection is engaged

I haven't disabled SIP but I gave it a quick go and it didn't work so I didn't bother much.

Steps to reproduce I've followed the MANUAL UNINSTALL instructions.

I've downloaded the repo and ran the uninstall.sh, and nothing works. Same problem.

Versions I believe it's Background.0.4.0. That's what I see here. /opt/homebrew/Caskroom/background-music/0.4.0/BackgroundMusic-0.4.0.pkg

Hardware MacBook M1

StathisKap avatar Jul 07 '25 11:07 StathisKap

I think you want this repo: https://github.com/Homebrew/homebrew-cask/blob/main/Casks/b/background-music.rb. The Homebrew formula isn't maintained here.

kyleneideck avatar Jul 09 '25 11:07 kyleneideck

I managed to uninstall background-music by altering the formula at /opt/homebrew/Caskroom/background-music/.metadata/0.4.0/20240222182953.840/Casks/background-music.rb to replace the uninstall_postflight block that has the troublesome call with the block in the latest formula that kyleneideck linked above.

spencer-shupe-qhr avatar Jul 23 '25 21:07 spencer-shupe-qhr

I managed to uninstall background-music by altering the formula at /opt/homebrew/Caskroom/background-music/.metadata/0.4.0/20240222182953.840/Casks/background-music.rb to replace the uninstall_postflight block that has the troublesome call with the block in the latest formula that kyleneideck linked above

Thank you, this worked for me!

ganeshh123 avatar Jul 31 '25 19:07 ganeshh123