Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wmctrl: migrate to brewed X11 #64581

Closed
wants to merge 1 commit into from
Closed

wmctrl: migrate to brewed X11 #64581

wants to merge 1 commit into from

Conversation

carlocab
Copy link
Member

License in main.c of tarball.

Tracking issue: #64166

  • Have you followed the guidelines for contributing?
  • Have you checked that there aren't other open pull requests for the same formula update/change?
  • Have you built your formula locally with brew install --build-from-source <formula>, where <formula> is the name of the formula you're submitting?
  • Is your test running fine brew test <formula>, where <formula> is the name of the formula you're submitting?
  • Does your build pass brew audit --strict <formula> (after doing brew install <formula>)?

  • brew install FORMULA on this list (should be poured from a bottle, not built from source)
  • Run brew linkage FORMULA and observe which X11 libraries it links against
  • Modify the formula to remove depends_on :x11 and replace it with e.g. depends_on "libx11" and any additional X libraries
  • Update /opt/X11 or MacOS::XQuartz references to instead point them to the brewed formula paths
  • revision bump
  • brew install -s FORMULA and brew linkage FORMULA to check that it's now linking against brewed X and not XQuartz

Before:

❯ brew linkage wmctrl
System libraries:
  /opt/X11/lib/libICE.6.dylib
  /opt/X11/lib/libSM.6.dylib
  /opt/X11/lib/libX11.6.dylib
  /opt/X11/lib/libXmu.6.dylib
  /usr/lib/libSystem.B.dylib
Homebrew libraries:
  /usr/local/opt/gettext/lib/libintl.8.dylib (gettext)
  /usr/local/opt/glib/lib/libglib-2.0.0.dylib (glib)

After:

❯ brew linkage wmctrl
System libraries:
  /usr/lib/libSystem.B.dylib
Homebrew libraries:
  /usr/local/opt/gettext/lib/libintl.8.dylib (gettext)
  /usr/local/opt/glib/lib/libglib-2.0.0.dylib (glib)
  /usr/local/opt/libice/lib/libICE.6.dylib (libice)
  /usr/local/opt/libsm/lib/libSM.6.dylib (libsm)
  /usr/local/opt/libx11/lib/libX11.6.dylib (libx11)
  /usr/local/opt/libxmu/lib/libXmu.6.dylib (libxmu)

Tracking issue: #64166

- [x] Have you followed the [guidelines for contributing](https://github.com/Homebrew/homebrew-core/blob/HEAD/CONTRIBUTING.md)?
- [x] Have you checked that there aren't other open [pull requests](https://github.com/Homebrew/homebrew-core/pulls) for the same formula update/change?
- [x] Have you built your formula locally with `brew install --build-from-source <formula>`, where `<formula>` is the name of the formula you're submitting?
- [x] Is your test running fine `brew test <formula>`, where `<formula>` is the name of the formula you're submitting?
- [x] Does your build pass `brew audit --strict <formula>` (after doing `brew install <formula>`)?

-----

- [x] `brew install FORMULA` on this list (should be poured from a bottle, not built from source)
- [x] Run `brew linkage FORMULA` and observe which X11 libraries it links against
- [x] Modify the formula to remove `depends_on :x11` and replace it with e.g. `depends_on "libx11"` and any additional X libraries
- [x] Update `/opt/X11` or `MacOS::XQuartz` references to instead point them to the brewed formula paths
- [x] `revision` bump
- [x] `brew install -s FORMULA` and `brew linkage FORMULA` to check that it's now linking against brewed X and not XQuartz

-----

Before:

    ❯ brew linkage wmctrl
    System libraries:
      /opt/X11/lib/libICE.6.dylib
      /opt/X11/lib/libSM.6.dylib
      /opt/X11/lib/libX11.6.dylib
      /opt/X11/lib/libXmu.6.dylib
      /usr/lib/libSystem.B.dylib
    Homebrew libraries:
      /usr/local/opt/gettext/lib/libintl.8.dylib (gettext)
      /usr/local/opt/glib/lib/libglib-2.0.0.dylib (glib)

After:

    ❯ brew linkage wmctrl
    System libraries:
      /usr/lib/libSystem.B.dylib
    Homebrew libraries:
      /usr/local/opt/gettext/lib/libintl.8.dylib (gettext)
      /usr/local/opt/glib/lib/libglib-2.0.0.dylib (glib)
      /usr/local/opt/libice/lib/libICE.6.dylib (libice)
      /usr/local/opt/libsm/lib/libSM.6.dylib (libsm)
      /usr/local/opt/libx11/lib/libX11.6.dylib (libx11)
      /usr/local/opt/libxmu/lib/libXmu.6.dylib (libxmu)
Copy link
Contributor

@jonchang jonchang left a comment

Choose a reason for hiding this comment

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

Excellent work! 🎉

@BrewTestBot
Copy link
Member

🤖 A scheduled task has triggered a merge.

@jonchang jonchang mentioned this pull request Nov 12, 2020
45 tasks
@carlocab carlocab deleted the wmctrl-brewed-x11 branch November 13, 2020 02:38
@BrewTestBot BrewTestBot added the outdated PR was locked due to age label Dec 14, 2020
@Homebrew Homebrew locked as resolved and limited conversation to collaborators Dec 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated PR was locked due to age
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants