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

ncview: migrate to brewed X11 #64779

Closed
wants to merge 1 commit into from
Closed

ncview: migrate to brewed X11 #64779

wants to merge 1 commit into from

Conversation

carlocab
Copy link
Member

Test not passing. Same issue as with morse: #64333 (comment)

It builds fine, but doesn't really work outside of XQuartz. It does work inside XQuartz though. Will fix the test over the weekend.

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 ncview
System libraries:
  /opt/X11/lib/libICE.6.dylib
  /opt/X11/lib/libSM.6.dylib
  /opt/X11/lib/libX11.6.dylib
  /opt/X11/lib/libXaw.7.dylib
  /opt/X11/lib/libXt.6.dylib
  /usr/lib/libSystem.B.dylib
  /usr/lib/libexpat.1.dylib
Homebrew libraries:
  /usr/local/opt/libpng/lib/libpng16.16.dylib (libpng)
  /usr/local/opt/netcdf/lib/libnetcdf.18.dylib (netcdf)
  /usr/local/opt/udunits/lib/libudunits2.dylib (udunits)

After:

❯ brew linkage ncview
System libraries:
  /usr/lib/libSystem.B.dylib
  /usr/lib/libexpat.1.dylib
Homebrew libraries:
  /usr/local/opt/libice/lib/libICE.6.dylib (libice)
  /usr/local/opt/libpng/lib/libpng16.16.dylib (libpng)
  /usr/local/opt/libsm/lib/libSM.6.dylib (libsm)
  /usr/local/opt/libx11/lib/libX11.6.dylib (libx11)
  /usr/local/opt/libxaw/lib/libXaw.7.dylib (libxaw)
  /usr/local/opt/libxt/lib/libXt.6.dylib (libxt)
  /usr/local/opt/netcdf/lib/libnetcdf.18.dylib (netcdf)
  /usr/local/opt/udunits/lib/libudunits2.dylib (udunits)

Test not passing. Same issue as with morse: #64333 (comment)
It builds fine, but doesn't really work outside of XQuartz.

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?
- [ ] 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 ncview
    System libraries:
      /opt/X11/lib/libICE.6.dylib
      /opt/X11/lib/libSM.6.dylib
      /opt/X11/lib/libX11.6.dylib
      /opt/X11/lib/libXaw.7.dylib
      /opt/X11/lib/libXt.6.dylib
      /usr/lib/libSystem.B.dylib
      /usr/lib/libexpat.1.dylib
    Homebrew libraries:
      /usr/local/opt/libpng/lib/libpng16.16.dylib (libpng)
      /usr/local/opt/netcdf/lib/libnetcdf.18.dylib (netcdf)
      /usr/local/opt/udunits/lib/libudunits2.dylib (udunits)

After:

    ❯ brew linkage ncview
    System libraries:
      /usr/lib/libSystem.B.dylib
      /usr/lib/libexpat.1.dylib
    Homebrew libraries:
      /usr/local/opt/libice/lib/libICE.6.dylib (libice)
      /usr/local/opt/libpng/lib/libpng16.16.dylib (libpng)
      /usr/local/opt/libsm/lib/libSM.6.dylib (libsm)
      /usr/local/opt/libx11/lib/libX11.6.dylib (libx11)
      /usr/local/opt/libxaw/lib/libXaw.7.dylib (libxaw)
      /usr/local/opt/libxt/lib/libXt.6.dylib (libxt)
      /usr/local/opt/netcdf/lib/libnetcdf.18.dylib (netcdf)
      /usr/local/opt/udunits/lib/libudunits2.dylib (udunits)
@carlocab
Copy link
Member Author

Duplicate of #64777

@carlocab carlocab closed this Nov 14, 2020
@jonchang
Copy link
Contributor

all good, thanks for helping out, just trying to finish these last few migrations before big sur

@carlocab carlocab deleted the ncview-brewed-x11 branch November 14, 2020 05:20
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