Skip to content

bundle dump fails on Linux without systemd #21720

@harkabeeparolus

Description

@harkabeeparolus

brew doctor output

Your system is ready to brew.

Verification

  • I ran brew update twice and am still able to reproduce my issue.
  • My "brew doctor output" above says Your system is ready to brew or a definitely unrelated Tier message.
  • This issue's title and/or description do not reference a single formula e.g. brew install wget. If they do, open an issue at https://github.com/Homebrew/homebrew-core/issues/new/choose instead.

brew config output

HOMEBREW_VERSION: 5.1.0
ORIGIN: https://github.com/Homebrew/brew
HEAD: 4135badeddc3899aa2e89d3ea1caee320c55d299
Last commit: 18 hours ago
Branch: stable
Core tap JSON: 12 Mar 11:03 UTC
HOMEBREW_PREFIX: /home/linuxbrew/.linuxbrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_DOWNLOAD_CONCURRENCY: 24
HOMEBREW_FORBID_PACKAGES_FROM_PATHS: set
HOMEBREW_MAKE_JOBS: 12
Homebrew Ruby: 4.0.1 => /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/4.0.1/bin/ruby
CPU: dodeca-core 64-bit skylake
Clang: 21.1.7
Git: 2.53.0 => /bin/git
Curl: 8.18.0 => /bin/curl
Kernel: Linux 6.6.87.2-microsoft-standard-WSL2 x86_64 GNU/Linux
OS: Void Linux (void)
WSL: 2 (Microsoft Store)
Host glibc: 2.41
Host libstdc++: 6.0.33
/usr/bin/gcc: N/A
/usr/bin/ruby: N/A
glibc: N/A
gcc@12: N/A
gcc: 15.2.0_1
xorg: N/A

What were you trying to do (and why)?

brew bundle dump

What happened (include all command output)?

brew bundle dump completely fails if a Linux system doesn't use systemd. When using "Void Linux", for example, it fails with a cryptic non-message.

[foobar@07dc56b6bf49 ~]$ brew bundle dump
Error: Failure while executing; `/home/linuxbrew/.linuxbrew/bin/brew services list` exited with 1. Here's the output:

(Yes, that is the entire output. ☹️)

What did you expect to happen?

I expected brew bundle dump to work, and not to crash.

Step-by-step reproduction instructions (by running brew commands)

[foobar@07dc56b6bf49 ~]$ brew bundle dump
Error: Failure while executing; `/home/linuxbrew/.linuxbrew/bin/brew services list` exited with 1. Here's the output:

[foobar@07dc56b6bf49 ~]$ brew services list |& grep Error
Error: Invalid usage: `brew services` is supported only on macOS or Linux (with systemd)!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions