Skip to content

wxwidgets*, wxpython: migrate jpeg to jpeg-turbo#107066

Closed
cho-m wants to merge 3 commits intoHomebrew:masterfrom
cho-m:wx-jpegturbo
Closed

wxwidgets*, wxpython: migrate jpeg to jpeg-turbo#107066
cho-m wants to merge 3 commits intoHomebrew:masterfrom
cho-m:wx-jpegturbo

Conversation

@cho-m
Copy link
Copy Markdown
Member

@cho-m cho-m commented Aug 1, 2022

  • Have you followed the guidelines for contributing?
  • Have you ensured that your commits follow the commit style guide?
  • 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 --build-from-source <formula>)? If this is a new formula, does it pass brew audit --new <formula>?

@cho-m cho-m added the CI-no-fail-fast Continue CI tests despite failing GitHub Actions matrix builds. label Aug 1, 2022
Copy link
Copy Markdown
Member

@carlocab carlocab left a comment

Choose a reason for hiding this comment

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

Would also be nice to get wxpython to use our wxwidgets and link with the dependencies properly. But could be done separately.

@cho-m cho-m added the long build Set a long timeout for formula testing label Aug 2, 2022
@cho-m cho-m added the CI-long-timeout [DEPRECATED] Use longer GitHub Actions CI timeout. label Aug 8, 2022
@cho-m cho-m marked this pull request as ready for review August 8, 2022 04:21
@cho-m cho-m removed the CI-long-timeout [DEPRECATED] Use longer GitHub Actions CI timeout. label Aug 8, 2022
@cho-m
Copy link
Copy Markdown
Member Author

cho-m commented Aug 8, 2022

Would also be nice to get wxpython to use our wxwidgets and link with the dependencies properly. But could be done separately.

May be possible with wxwidgets@3.0. Getting it to build with wxwidgets would require backports.

@carlocab
Copy link
Copy Markdown
Member

carlocab commented Aug 8, 2022

May be possible with wxwidgets@3.0. Getting it to build with wxwidgets would require backports.

Huh; I thought wet used the vendored one since 3.0 didn't work.

@cho-m
Copy link
Copy Markdown
Member Author

cho-m commented Aug 8, 2022

Huh; I thought wet used the vendored one since 3.0 didn't work.

Haven't looked at previous discussions, but Fedora and Arch were able to build with 3.0.

Arch now applies a couple patches to support 3.2.

@cho-m cho-m added the CI-long-timeout [DEPRECATED] Use longer GitHub Actions CI timeout. label Aug 8, 2022
@carlocab
Copy link
Copy Markdown
Member

carlocab commented Aug 8, 2022

I also don’t mind following Arch’s patches for wxpython.

@cho-m
Copy link
Copy Markdown
Member Author

cho-m commented Aug 8, 2022

The tedious part is there are 3 sets of patches:

  1. Patches to support sip 6 (bundled copy is sip 4)
  2. Patches to support WxWidgets 3.2
  3. Patches to support Python 3.10 (Arch's set may be incomplete)

I'm hoping upstream will do a 4.2.0 release "soon" which should fix all of these (https://github.com/wxWidgets/Phoenix/blob/master/CHANGES.rst#420-rumors-of-my-death-are-only-slightly-exaggerated).

Otherwise, could explore in separate PR.

ENV.append_to_cflags "-I#{sdk}/usr/include"
end
system "python3", *Language::Python.setup_install_args(prefix)
system "python3.9", *Language::Python.setup_install_args(prefix)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
system "python3.9", *Language::Python.setup_install_args(prefix)
system "python3.9", *Language::Python.setup_install_args(prefix, "python3.9")

if OS.mac?
sdk = MacOS.sdk_path_if_needed
ENV.append_to_cflags "-I#{sdk}/usr/include" if sdk
if OS.mac? && (sdk = MacOS.sdk_path_if_needed)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
if OS.mac? && (sdk = MacOS.sdk_path_if_needed)
if (sdk = MacOS.sdk_path_if_needed)

We don't need the OS.mac?. We might even be able to remove the parens.

@carlocab carlocab removed the CI-long-timeout [DEPRECATED] Use longer GitHub Actions CI timeout. label Aug 8, 2022
Copy link
Copy Markdown
Member

@carlocab carlocab left a comment

Choose a reason for hiding this comment

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

Can fix comments in a separate PR.

@BrewTestBot
Copy link
Copy Markdown
Contributor

🤖 A scheduled task has triggered a merge.

@github-actions github-actions bot added the outdated PR was locked due to age label Sep 8, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 8, 2022
@cho-m cho-m deleted the wx-jpegturbo branch September 18, 2022 06:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

CI-no-fail-fast Continue CI tests despite failing GitHub Actions matrix builds. long build Set a long timeout for formula testing outdated PR was locked due to age

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants