Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
octave: update to 7.1.0, fix aarm64 build
fix pkg bug 62436, delete obsolete patchfiles remove obsolete qt4 variant
- Loading branch information
1 parent
9d26d6e
commit c5404c9
Showing
5 changed files
with
79 additions
and
153 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# HG changeset patch | ||
# User John Donoghue <john.donoghue@ieee.org> | ||
# Date 1652358904 14400 | ||
# Thu May 12 08:35:04 2022 -0400 | ||
# Branch stable | ||
# Node ID 8c940cfcce257369677c09154da2aab2c56eaa79 | ||
# Parent 63710f3bd9811c2d206ac9e7b4f47cf06c47e153 | ||
* scripts/pkg/private/build.m: check configure and Makefile exist before trying to unlink them (Bug #62436) | ||
|
||
diff -r 63710f3bd981 -r 8c940cfcce25 scripts/pkg/private/build.m | ||
--- scripts/pkg/private/build.m Wed May 11 09:44:55 2022 -0700 | ||
+++ scripts/pkg/private/build.m Thu May 12 08:35:04 2022 -0400 | ||
@@ -77,8 +77,12 @@ | ||
else | ||
arch_abi = getarch (); | ||
configure_make (desc, build_root, verbose); | ||
- unlink (fullfile (build_root, "src", "configure")); | ||
- unlink (fullfile (build_root, "src", "Makefile")); | ||
+ if exist (fullfile (build_root, "src", "configure"), "file") | ||
+ unlink (fullfile (build_root, "src", "configure")); | ||
+ endif | ||
+ if exist (fullfile (build_root, "src", "Makefile"), "file") | ||
+ unlink (fullfile (build_root, "src", "Makefile")); | ||
+ endif | ||
endif | ||
tar_name = [desc.name "-" desc.version "-" arch_abi ".tar"]; | ||
tar_path = fullfile (builddir, tar_name); |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
c5404c9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Schamschula Why was Qt4 removed? Was it actually broken? Configure script does not seem to require a specific version of Qt.
c5404c9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Read the 'news' for version 9.1.0!
The default is Qt6 (currently we are missing qscintilla-qt6). The news is Qt5 already on the way out: "Support for building with Qt5 is still available but might be removed in a future version of Octave." No mention of Qt4.
c5404c9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Schamschula I will try building it with Qt4, or if it does not work, it apparently has X11 support, which is not enabled in the port for some reason.
Will update on this. Portfile needs a couple of fixes anyway:
https://trac.macports.org/ticket/69574
https://trac.macports.org/ticket/69573
c5404c9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Re Qt4, there was a claim here that is will be removed in v. 7: https://octave.org/NEWS-6.1.html
But then nothing is said later on if it was.
c5404c9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Upstream deprecated qt4 in octave 6.x.
At the beginning there were only smallish changes needed to keep qt4 alive, like this last set of fixes I did here:
c162006
but these became greater as the versions went by, and then qt4 supports was officially stripped out of octave in version 7.
gnu-octave/octave@12c2ea8
c5404c9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kencu Thank you, Ken, this is the commit I was looking for. There were apparently other like gnu-octave/octave@4f7c682
So yeah, even that is probably feasible to restore, dropping the variant in the portfile was absolutely justified.
I may return to this if I have mood and time; for now, I will only deal with malloc issue and other minor stuff which does not require hours of rebasing something.
(I.e., I have built 9.1.0 on my PowerPC system with zero patches to the code, but portfile needs a couple of fix-ups.)
c5404c9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if octave has a gtk3 version then that might be feasible to work on.
c5404c9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kencu That would do, since we know for the fact GTK3 works fine, but at least
octave
itself does not seem to have an option for it. Maybe there are third-party IDEs available.octave
seems to support some sort of X11 (--with-x
), which is disabled in portfile now, but I have no idea what it does.c5404c9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the non-gui version of octave would be better than nothing on older systems...
c5404c9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IIRC the
--with-x
uses the FLTK backend. Here is the current note on that:c5404c9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ Schamschula Thank you for a clarification!
On a side note, could you say why the build system may be getting the path wrong when installing a package? Notice, it adds
x
here, and the cannot find needed files.The correct path would be
tmp-build/io/DESCRIPTION
, but I cannot figure out what causes this error.octave
on its own now runs withmalloc
errors, so that issue sorted. But packages do not install due to this error withpkg build
setting a wrong path.c5404c9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The above error is while building
octave-io
rather thanoctave
itself.The warning is expected. Creating the
tmp-build
directory is a required step.I can't reproduce the
DESCRIPTION
file issue locally.