From b73df3629f9743ccbc6c157d8300c459cd44619f Mon Sep 17 00:00:00 2001 From: Chris Gorman Date: Thu, 2 May 2024 12:30:48 -0400 Subject: [PATCH 1/2] octave: Fix opengl-partial-update bug Please test this. I don't have a homebrew system and this is my first wack at ruby code. I copied the patch command from ocaml@4.rb, updated the sha256sum and linked in the patch from savannah.gnu.org. Hope this helps. Chris --- Formula/o/octave.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Formula/o/octave.rb b/Formula/o/octave.rb index 60f8aea563ddf..812dcc45bdfac 100644 --- a/Formula/o/octave.rb +++ b/Formula/o/octave.rb @@ -5,7 +5,7 @@ class Octave < Formula mirror "https://ftpmirror.gnu.org/octave/octave-9.1.0.tar.xz" sha256 "ed654b024aea56c44b26f131d31febc58b7cf6a82fad9f0b0bf6e3e9aa1a134b" license "GPL-3.0-or-later" - revision 2 + revision 3 # New tarballs appear on https://ftp.gnu.org/gnu/octave/ before a release is # announced, so we check the octave.org download page instead. @@ -81,6 +81,12 @@ class Octave < Formula fails_with gcc: "5" + # Fix opengl-partial-update bug causing crashes on figure() and plot(). + patch do + url "https://file.savannah.gnu.org/file/bug65605-qt6-opengl-partial-update.patch?file_id=55978" + sha256 "4f258a90dcb6b5d7f1af466dfc2b2fd6413968070ab224e4b368d355ec257ca9" + end + def install # Default configuration passes all linker flags to mkoctfile, to be # inserted into every oct/mex build. This is unnecessary and can cause From c616179076d07a0768ef34ff74bb100702c482df Mon Sep 17 00:00:00 2001 From: Carlo Cabrera <30379873+carlocab@users.noreply.github.com> Date: Thu, 2 May 2024 19:45:03 +0100 Subject: [PATCH 2/2] octave: attempt build without patch --- Formula/o/octave.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Formula/o/octave.rb b/Formula/o/octave.rb index 812dcc45bdfac..1bfde893c52ca 100644 --- a/Formula/o/octave.rb +++ b/Formula/o/octave.rb @@ -82,10 +82,10 @@ class Octave < Formula fails_with gcc: "5" # Fix opengl-partial-update bug causing crashes on figure() and plot(). - patch do - url "https://file.savannah.gnu.org/file/bug65605-qt6-opengl-partial-update.patch?file_id=55978" - sha256 "4f258a90dcb6b5d7f1af466dfc2b2fd6413968070ab224e4b368d355ec257ca9" - end + # patch do + # url "https://file.savannah.gnu.org/file/bug65605-qt6-opengl-partial-update.patch?file_id=55978" + # sha256 "4f258a90dcb6b5d7f1af466dfc2b2fd6413968070ab224e4b368d355ec257ca9" + # end def install # Default configuration passes all linker flags to mkoctfile, to be