Skip to content

info: mark deprecated/disabled pkg in install status#22334

Merged
MikeMcQuaid merged 1 commit into
Homebrew:mainfrom
HaraldNordgren:info-deprecated-kegs
May 18, 2026
Merged

info: mark deprecated/disabled pkg in install status#22334
MikeMcQuaid merged 1 commit into
Homebrew:mainfrom
HaraldNordgren:info-deprecated-kegs

Conversation

@HaraldNordgren
Copy link
Copy Markdown
Contributor

Mark deprecated formula and deprecated siblings in brew info:

❯ brew info ffmpeg@2.8 ffmpeg
==> ffmpeg@2.8 ✔ (deprecated): stable 2.8.22 (bottled) [keg-only]
Play, record, convert, and stream audio and video
https://ffmpeg.org/
Old Names: ffmpeg28
Deprecated because it is a versioned formula! It will be disabled on 2027-01-17.
Installed (on request)
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/f/ffmpeg@2.8.rb
License: GPL-3.0-or-later
==> Installed Kegs and Versions
ffmpeg ↑                  7.1.1 → 8.1.1 (287 files, 54.7MB) [Linked]
ffmpeg@2.8 ✔ (deprecated) 2.8.22_8      (266 files, 46.0MB)

==> ffmpeg ↑: 7.1.1 → stable 8.1.1 (bottled), HEAD
Play, record, convert, and stream select audio and video codecs
https://ffmpeg.org/
Aliases: ffmpeg@8
Installed (on request)
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/f/ffmpeg.rb
License: GPL-3.0-or-later
==> Installed Kegs and Versions
ffmpeg ↑                  7.1.1 → 8.1.1 (287 files, 54.7MB) [Linked]
ffmpeg@2.8 ✔ (deprecated) 2.8.22_8      (266 files, 46.0MB)

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same change?
  • Have you added an explanation of what your changes do and why you'd like us to include them? Performance claims (e.g. "this is faster") must include Hyperfine benchmarks.
  • Have you written new tests (excluding integration tests) for your changes? Here's an example.
  • Have you successfully run brew lgtm (style, typechecking and tests) with your changes locally?

  • AI was used to generate or assist with generating this PR.

Claud Code, Extra High


@HaraldNordgren HaraldNordgren force-pushed the info-deprecated-kegs branch from e3b96cc to 2bda7f6 Compare May 18, 2026 08:36
@MikeMcQuaid
Copy link
Copy Markdown
Member

==> ffmpeg@2.8 ✔ (deprecated): stable 2.8.22 (bottled) [keg-only]
Play, record, convert, and stream audio and video
https://ffmpeg.org/
Old Names: ffmpeg28
Deprecated because it is a versioned formula! It will be disabled on 2027-01-17.
Installed (on request)
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/f/ffmpeg@2.8.rb
License: GPL-3.0-or-later
==> Installed Kegs and Versions
ffmpeg ↑ 7.1.1 → 8.1.1 (287 files, 54.7MB) [Linked]
ffmpeg@2.8 ✔ (deprecated) 2.8.22_8 (266 files, 46.0MB)

We're saying 3 times in this output that ffmpeg@2.8 is deprecated. Do we need to do it this many?

Also, I don't think this really makes sense under "Installed Kegs and Versions" because the keg isn't deprecated.

@HaraldNordgren HaraldNordgren force-pushed the info-deprecated-kegs branch from 2bda7f6 to 1e1cd73 Compare May 18, 2026 14:06
@HaraldNordgren
Copy link
Copy Markdown
Contributor Author

@MikeMcQuaid Yeah, maybe that's a bit overkill. Pushed a new version now.

@MikeMcQuaid
Copy link
Copy Markdown
Member

@HaraldNordgren sorry, being lazy: mind pasting the new output when you're changing?

@HaraldNordgren HaraldNordgren force-pushed the info-deprecated-kegs branch from 1e1cd73 to 69b7628 Compare May 18, 2026 14:55
@HaraldNordgren HaraldNordgren changed the title info: mark deprecated formulae and casks in install status info: mark deprecated/disabled pkg in install status May 18, 2026
@HaraldNordgren
Copy link
Copy Markdown
Contributor Author

HaraldNordgren commented May 18, 2026

@MikeMcQuaid Sure! I took the opportunity to also add in "(disabled)" which I found when trying to find some nice output for this.

I also refactored to use this helper for search, but left the uninstall markers turned off for search to not create too big of a change, but I wouldn't mind turning them on as well.

Here is the new output:

❯ brew info ffmpeg@2.8 pyside@2
==> ffmpeg@2.8 ✔ (deprecated): stable 2.8.22 (bottled) [keg-only]
Play, record, convert, and stream audio and video
https://ffmpeg.org/
Old Names: ffmpeg28
Deprecated because it is a versioned formula! It will be disabled on 2027-01-17.
Installed (on request)
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/f/ffmpeg@2.8.rb
License: GPL-3.0-or-later
==> Installed Kegs and Versions
ffmpeg ↑     7.1.1 → 8.1.1 (287 files, 54.7MB) [Linked]
ffmpeg@2.8 ✔ 2.8.22_8      (266 files, 46.0MB)
==> Dependencies
Required (21): fontconfig ✔, freetype ✔, frei0r ✔, lame ✔, libass ✔, libogg ✔, libvo-aacenc ✔, libvorbis ✔, libvpx ✔, opencore-amr ✔, openssl@3 ✔, opus ✔, rtmpdump ✔, sdl12-compat ✔, snappy ✔, speex ✔, theora ✔, x264 ✔, x265 ↑, xvid ✔, xz ✔
Recursive Runtime (43): all installed ✔

==> pyside@2 ✘ (disabled): stable 5.15.17 (bottled) [keg-only]
Official Python bindings for Qt
https://wiki.qt.io/Qt_for_Python
Disabled because it is a versioned formula! It was disabled on 2025-05-26.
Not installed
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/p/pyside@2.rb
License: (GPL-3.0-only WITH Qt-GPL-exception-1.0) AND (LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only)
==> Dependencies
Required (3): llvm ✔, python@3.10 ✘, qt@5 ✘

❯ brew tap-info caius/homebrew-tap
caius/tap: Installed
6 casks, 11 formulae
/opt/homebrew/Library/Taps/caius/homebrew-tap (36 files, 409.7KB)
From: https://github.com/caius/homebrew-tap
HEAD: 4e62f8b24e891af97c66be4fa73796ac102b305c
last commit: 5 hours ago
==> Formulae
dropserver ✘                                pgmetrics ✘                                 safari-webarchiver ✘                        tailsnitch ✘
harvest ✘                                   pitchfork ✘                                 si ✘ (deprecated)                           terraform@1.0.11 ✘
nomctx ✘                                    s3-nuke ✘                                   swamp ✘
==> Casks
amp-cli ✘                                   immersed ✘                                  serenade ✘
dji-assistant-2-consumer-drones-series ✘    keyhole ✘                                   vanta-agent ✘

Match the '(deprecated)'/'(disabled)' suffix already shown by
'brew search'. Apply it via 'pretty_install_status' so it shows in the
'brew info' title and 'brew tap-info' formula/cask listings, and
refactor 'brew search' to use the same helper.
@HaraldNordgren HaraldNordgren force-pushed the info-deprecated-kegs branch from 69b7628 to 3df4930 Compare May 18, 2026 15:09
@MikeMcQuaid
Copy link
Copy Markdown
Member

I also refactored to use this helper for search, but left the uninstall markers turned off for search to not create too big of a change, but I wouldn't mind turning them on as well.

I think we shouldn't have uninstall markers for search. Install markers maybe seem fine but the assumption would be that things you are searching for will not be installed.

Copy link
Copy Markdown
Member

@MikeMcQuaid MikeMcQuaid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@MikeMcQuaid MikeMcQuaid added this pull request to the merge queue May 18, 2026
Merged via the queue into Homebrew:main with commit a7f3847 May 18, 2026
36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants