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

pyqt5 5.8.1, sip 4.19.1, qscintilla2 2.10 #10171

Closed
wants to merge 4 commits into from
Closed

pyqt5 5.8.1, sip 4.19.1, qscintilla2 2.10 #10171

wants to merge 4 commits into from

Conversation

xu-cheng
Copy link
Member

No description provided.

@ilovezfs
Copy link
Contributor

Last I checked, this causes the octave build to fail. We should not merge it until that is resolved (unless it already has been).

Copy link
Contributor

@ilovezfs ilovezfs left a comment

Choose a reason for hiding this comment

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

Make sure octave is not broken by this PR.

@ilovezfs
Copy link
Contributor

@xu-cheng qscintilla2 build fails

==> Downloading https://downloads.sourceforge.net/project/pyqt/QScintilla2/QScintilla-2.10/QScintilla_gpl-2.10.tar.gz
==> Downloading from https://cytranet.dl.sourceforge.net/project/pyqt/QScintilla2/QScintilla-2.10/QScintilla_gpl-2.10.tar.gz
/usr/bin/curl --remote-time --location --user-agent Homebrew/1.1.10-92-gbd0a131 (Macintosh; Intel macOS 10.11.6) curl/7.43.0 --fail https://cytranet.dl.sourceforge.net/project/pyqt/QScintilla2/QScintilla-2.10/QScintilla_gpl-2.10.tar.gz -C 0 -o /Users/joe/Library/Caches/Homebrew/qscintilla2-2.10.tar.gz.incomplete
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 2599k  100 2599k    0     0  2739k      0 --:--:-- --:--:-- --:--:-- 2739k
==> Verifying qscintilla2-2.10.tar.gz checksum
tar xzf /Users/joe/Library/Caches/Homebrew/qscintilla2-2.10.tar.gz
==> Downloading https://raw.githubusercontent.com/Homebrew/formula-patches/a651d71/qscintilla2/xcode-8.patch
Already downloaded: /Users/joe/Library/Caches/Homebrew/qscintilla2--patch-1a88309fdfd421f4458550b710a562c622d72d6e6fdd697107e4a43161d69bc9.patch
==> Verifying qscintilla2--patch-1a88309fdfd421f4458550b710a562c622d72d6e6fdd697107e4a43161d69bc9.patch checksum
==> Patching
==> Applying xcode-8.patch
/usr/bin/patch -g 0 -f -p1 -i /private/tmp/qscintilla2--patch-20170220-77975-t8ryzv/xcode-8.patch
patching file Qt4Qt5/Qsci/qsciscintilla.h
Hunk #1 FAILED at 22.
Hunk #2 succeeded at 2228 (offset 91 lines).
Hunk #3 FAILED at 2256.
2 out of 3 hunks FAILED -- saving rejects to file Qt4Qt5/Qsci/qsciscintilla.h.rej
patching file Qt4Qt5/qsciscintilla.cpp
Hunk #2 succeeded at 78 (offset 3 lines).
Hunk #3 succeeded at 162 (offset 5 lines).
/usr/local/Homebrew/Library/Homebrew/debrew.rb:11:in `raise'
ErrorDuringExecution: Failure while executing: /usr/bin/patch -g 0 -f -p1 -i /private/tmp/qscintilla2--patch-20170220-77975-t8ryzv/xcode-8.patch
1. raise
2. ignore
3. backtrace
4. irb
5. shell
Choose an action: 

@ilovezfs
Copy link
Contributor

I checked, and this still causes octave to fail, as follows:

See the file /private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/test/fntests.log for additional details.

Items listed as XFAIL above are known bugs.
Bug report numbers for them may be found in the log file:
/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/test/fntests.log
Please help improve Octave by contributing fixes for them.

Tests are most often skipped because the features they require
have been disabled.  Features are most often disabled because
they require dependencies that were not present when Octave
was built.  The configure script should have printed a summary
at the end of its run indicating which dependencies were not found.

0 (of 0) .m files have no tests.

Please help improve Octave by contributing tests for these files
(see the list in the file /private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/test/fntests.log).

panic: Abort trap: 6 -- stopping myself...
attempting to save variables to 'octave-workspace'...

@ilovezfs
Copy link
Contributor

octave-spindump.txt
@xu-cheng I have uploaded a spindump.

@ilovezfs
Copy link
Contributor

iMac-TMP:~ joe$ ps aux|grep octave
joe               9647  55.9  1.0  2973232 320024   ??  SNs   9:58PM   4:43.08 /private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/src/.libs/octave-gui --no-init-path --path=/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/audio:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/deprecated:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/elfun:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/general:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/geometry:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/gui:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/help:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/image:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/io:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/java:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/java/org:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/java/org/octave:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/linear-algebra:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/miscellaneous:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/ode:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/optimization:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/path:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/pkg:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/plot:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/plot/appearance:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/plot/draw:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/plot/util:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/polynomial:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/prefs:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/profiler:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/profiler/html:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/set:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/signal:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/sparse:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/specfun:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/special-matrix:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/startup:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/statistics:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/statistics/base:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/statistics/distributions:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/statistics/models:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/statistics/tests:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/strings:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/testfun:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/time:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/audio:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/deprecated:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/elfun:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/general:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/geometry:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/gui:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/help:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/image:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/io:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/java:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/java/org:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/java/org/octave:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/linear-algebra:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/miscellaneous:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/ode:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/optimization:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/path:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/pkg:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/plot:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/plot/appearance:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/plot/draw:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/plot/util:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/polynomial:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/prefs:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/profiler:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/profiler/html:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/set:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/signal:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/sparse:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/specfun:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/special-matrix:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/startup:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/statistics:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/statistics/base:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/statistics/distributions:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/statistics/models:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/statistics/tests:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/strings:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/testfun:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/time:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/libinterp:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/libinterp/corefcn:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/libinterp/dldfcn:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/libinterp/octave-value:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/libinterp/operators:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/libinterp/parse-tree:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/libinterp/template-inst:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/examples/data --image-path=/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/image --doc-cache-file=/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/doc/interpreter/doc-cache --built-in-docstrings-file=/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/libinterp/DOCSTRINGS --texi-macros-file=/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/doc/interpreter/macros.texi --info-file=/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/doc/interpreter/octave.info --norc --silent --no-history /private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/test/fntests.m /private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/test
joe               9520   0.0  0.0  2447000   4044 s000  SN+   9:58PM   0:00.12 /private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/src/octave --no-init-path --path=/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/audio:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/deprecated:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/elfun:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/general:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/geometry:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/gui:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/help:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/image:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/io:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/java:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/java/org:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/java/org/octave:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/linear-algebra:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/miscellaneous:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/ode:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/optimization:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/path:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/pkg:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/plot:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/plot/appearance:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/plot/draw:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/plot/util:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/polynomial:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/prefs:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/profiler:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/profiler/html:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/set:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/signal:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/sparse:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/specfun:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/special-matrix:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/startup:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/statistics:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/statistics/base:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/statistics/distributions:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/statistics/models:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/statistics/tests:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/strings:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/testfun:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/time:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/audio:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/deprecated:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/elfun:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/general:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/geometry:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/gui:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/help:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/image:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/io:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/java:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/java/org:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/java/org/octave:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/linear-algebra:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/miscellaneous:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/ode:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/optimization:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/path:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/pkg:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/plot:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/plot/appearance:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/plot/draw:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/plot/util:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/polynomial:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/prefs:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/profiler:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/profiler/html:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/set:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/signal:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/sparse:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/specfun:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/special-matrix:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/startup:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/statistics:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/statistics/base:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/statistics/distributions:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/statistics/models:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/statistics/tests:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/strings:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/testfun:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/time:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/libinterp:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/libinterp/corefcn:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/libinterp/dldfcn:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/libinterp/octave-value:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/libinterp/operators:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/libinterp/parse-tree:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/libinterp/template-inst:/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/examples/data --image-path=/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/scripts/image --doc-cache-file=/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/doc/interpreter/doc-cache --built-in-docstrings-file=/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/libinterp/DOCSTRINGS --texi-macros-file=/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/doc/interpreter/macros.texi --info-file=/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/doc/interpreter/octave.info --norc --silent --no-history /private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/test/fntests.m /private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/test
joe               9519   0.0  0.0  2435436   1156 s000  SN+   9:58PM   0:00.00 /bin/sh -c cd test && /bin/sh ../run-octave  --norc --silent --no-history /private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/test/fntests.m /private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0/test
joe               7156   0.0  0.0  2437484   1236 s000  SN+   9:57PM   0:00.00 /bin/sh -c fail=; if (target_option=k; case ${target_option-} in ?) ;; *) echo "am__make_running_with_option: internal error: invalid" "target option '${target_option-}' specified" >&2; exit 1;; esac; has_opt=no; sane_makeflags=$MAKEFLAGS; if { if test -z '1'; then false; elif test -n ''; then true; elif test -n '3.81' && test -n '/private/tmp/octave-20170220-84328-lxweh3/octave-4.2.0'; then true; else false; fi; }; then sane_makeflags=$MFLAGS; else case $MAKEFLAGS in *\\[\ \^I]*) bs=\\; sane_makeflags=`printf '%s\n' "$MAKEFLAGS" | sed "s/$bs$bs[$bs $bs^I]*//g"`;; esac; fi; skip_next=no; strip_trailopt () { flg=`printf '%s\n' "$flg" | sed "s/$1.*$//"`; }; for flg in $sane_makeflags; do test $skip_next = yes && { skip_next=no; continue; }; case $flg in *=*|--*) continue;; -*I) strip_trailopt 'I'; skip_next=yes;; -*I?*) strip_trailopt 'I';; -*O) strip_trailopt 'O'; skip_next=yes;; -*O?*) strip_trailopt 'O';; -*l) strip_trailopt 'l'; skip_next=yes;; -*l?*) strip_trailopt 'l';; -[dEDm]) skip_next=yes;; -[JT]) skip_next=yes;; esac; case $flg in *$target_option*) has_opt=yes; break;; esac; done; test $has_opt = yes); then   failcom='fail=yes'; else   failcom='exit 1'; fi; dot_seen=no; target=`echo check-recursive | sed s/-recursive//`; case "check-recursive" in   distclean-* | maintainer-clean-*) list='libgnu' ;;   *) list='libgnu' ;; esac; for subdir in $list; do   echo "Making $target in $subdir";   if test "$subdir" = "."; then     dot_seen=yes;     local_target="$target-am";   else     local_target="$target";   fi;   (CDPATH="${ZSH_VERSION+.}:" && cd $subdir && /Applications/Xcode.app/Contents/Developer/usr/bin/make  $local_target)   || eval $failcom; done; if test "$dot_seen" = "no"; then   /Applications/Xcode.app/Contents/Developer/usr/bin/make  "$target-am" || exit 1; fi; test -z "$fail"
joe              84328   0.0  0.1  2530024  48680 s000  SN+   9:51PM   0:00.84 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby -W0 -I /usr/local/Homebrew/Library/Homebrew -- /usr/local/Homebrew/Library/Homebrew/build.rb /usr/local/Homebrew/Library/Taps/homebrew/homebrew-science/octave.rb --verbose --debug
joe              84326   0.0  0.0  2532672   5744 s000  S+    9:51PM   0:00.00 /System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/ruby -W0 /usr/local/Homebrew/Library/Homebrew/brew.rb install -dvs octave
joe              78027   0.0  0.1  2533432  49804 s000  S+    9:50PM   0:02.00 /System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/ruby -W0 /usr/local/Homebrew/Library/Homebrew/brew.rb install -dvs octave
joe              14322   0.0  0.0  2434840    792 s001  S+   10:08PM   0:00.00 grep octave
iMac-TMP:~ joe$

@ilovezfs
Copy link
Contributor

CC @schoeps the non-dev versions have been released and problem persists, as feared.

@xu-cheng
Copy link
Member Author

Make sure octave is not broken by this PR.

I probably can only find time to work on this next week. Sorry about that.

@ilovezfs
Copy link
Contributor

@xu-cheng that's no problem. I think we have 3 choices:

  1. fix octave
  2. vendor pyqt5/qscintilla2/sip into octave formula built against qt 5.7
  3. drop the qt5 option from octave

@ilovezfs
Copy link
Contributor

@xu-cheng looks like codequery needs a revision bump and to depend on qt5 not qt@5.7

@ilovezfs
Copy link
Contributor

Thanks

@schoeps
Copy link
Contributor

schoeps commented Feb 21, 2017

@ilovezfs let's make the gui optional for octave. As far as I recall, this would make also the linux build easier. I will play around with qt5 but do not expect anything. I am a numerical analyst, not a gui programmer :)

@ilovezfs
Copy link
Contributor

@schoeps unfortunately if we know it doesn't build, we'll just need to remove it.

@schoeps
Copy link
Contributor

schoeps commented Feb 21, 2017

@ilovezfs I have seen other ports with "experimental" options....

@ilovezfs
Copy link
Contributor

@schoeps point them out, and I will remove them 🔥

@schoeps
Copy link
Contributor

schoeps commented Feb 21, 2017

@ilovezfs ok, you take that really serious. I will report such cases if I see them. For now, I will check how to fix octave...

@ilovezfs
Copy link
Contributor

ilovezfs commented Feb 21, 2017

@schoeps fwiw, the problem seems to be that octave gui cannot quit. The build finishes without dying in make check if I pass --without-gnuplot and then the cannot-quit problem is clear.

Note that I'm building octave with this PR, and these diffs to octave and gnuplot (when not building --without-gnuplot):

diff --git a/octave.rb b/octave.rb
index e0d0c17..2998185 100644
--- a/octave.rb
+++ b/octave.rb
@@ -62,8 +62,8 @@ class Octave < Formula
   deprecated_option "without-check" => "without-test"
 
   unless OS.linux?
-    deprecated_option "without-gui" => "without-qt@5.7"
-    deprecated_option "without-qt5" => "without-qt@5.7"
+    deprecated_option "without-gui" => "without-qt5"
+    deprecated_option "without-qt@5.7" => "without-qt5"
   end
 
   # options, enabled by default
@@ -77,12 +77,12 @@ class Octave < Formula
   option "without-qhull",          "Do not use the Qhull library (delaunay,voronoi,etc.)"
   option "without-qrupdate",       "Do not use the QRupdate package (qrdelete,qrinsert,qrshift,qrupdate)"
   if OS.linux?
-    option "with-qt@5.7",          "Compile with qt-based graphical user interface"
+    option "with-qt5",             "Compile with qt-based graphical user interface"
   else
-    option "without-qt@5.7",       "Do not compile with qt-based graphical user interface"
+    option "without-qt5",          "Do not compile with qt-based graphical user interface"
   end
 
-  option "without-qt@5.7",         "Do not compile with qt-based graphical user interface"
+  option "without-qt5",            "Do not compile with qt-based graphical user interface"
   option "without-sundials",       "Do not use SUNDIALS library"
   option "without-suite-sparse",   "Do not use SuiteSparse (sparse matrix operations)"
   option "without-test",           "Do not perform build-time tests (not recommended)"
@@ -143,14 +143,14 @@ class Octave < Formula
 
   # recommended qt5 dependencies
   if OS.linux?
-    depends_on "qt@5.7"            => :optional
+    depends_on "qt5"               => :optional
   else
-    depends_on "qt@5.7"            => :recommended
+    depends_on "qt5"               => :recommended
   end
 
-  if build.with? "qt@5.7"
+  if build.with? "qt5"
     depends_on "qscintilla2"
-    depends_on "gnuplot" => [:recommended, "with-qt@5.7"]
+    depends_on "gnuplot" => [:recommended, "with-qt5"]
   else
     depends_on "gnuplot" => :recommended
   end
@@ -201,7 +201,7 @@ class Octave < Formula
     args << "--without-fftw3"            if build.without? "fftw"
     args << "--with-fltk-prefix=#{Formula["fltk"].opt_prefix}" if build.with? "fltk"
     args << "--without-glpk"             if build.without? "glpk"
-    args << "--without-qt"               if build.without? "qt@5.7"
+    args << "--without-qt"               if build.without? "qt5"
     args << "--without-opengl"           if build.without? "opengl"
     args << "--without-framework-opengl" if build.without? "opengl"
     args << "--without-OSMesa"           if build.without? "osmesa"
@@ -281,7 +281,7 @@ class Octave < Formula
   def caveats
     s = ""
 
-    if build.with?("qt@5.7")
+    if build.with?("qt5")
       s += <<-EOS.undent
 
       Octave is compiled with a graphical user interface. The start-up option --no-gui
@@ -296,7 +296,7 @@ class Octave < Formula
       s += <<-EOS.undent
 
       Octave's graphical user interface is disabled; compile Octave with the option
-      --with-qt@5.7 to enable it.
+      --with-qt5 to enable it.
 
       EOS
  
diff --git a/Formula/gnuplot.rb b/Formula/gnuplot.rb
index 2cf6211..6043fee 100644
--- a/Formula/gnuplot.rb
+++ b/Formula/gnuplot.rb
@@ -3,7 +3,7 @@ class Gnuplot < Formula
   homepage "http://www.gnuplot.info"
   url "https://downloads.sourceforge.net/project/gnuplot/gnuplot/5.0.5/gnuplot-5.0.5.tar.gz"
   sha256 "25f3e0bf192e01115c580f278c3725d7a569eb848786e12b455a3fda70312053"
-  revision 2
+  revision 3
 
   bottle do
     rebuild 1
@@ -32,9 +32,9 @@ class Gnuplot < Formula
   deprecated_option "with-x" => "with-x11"
   deprecated_option "pdf" => "with-pdflib-lite"
   deprecated_option "wx" => "with-wxmac"
-  deprecated_option "qt" => "with-qt@5.7"
-  deprecated_option "with-qt" => "with-qt@5.7"
-  deprecated_option "with-qt5" => "with-qt@5.7"
+  deprecated_option "qt" => "with-qt5"
+  deprecated_option "with-qt" => "with-qt5"
+  deprecated_option "with-qt@5.7" => "with-qt5"
   deprecated_option "cairo" => "with-cairo"
   deprecated_option "nolua" => "without-lua"
   deprecated_option "tests" => "with-test"
@@ -48,12 +48,12 @@ class Gnuplot < Formula
   depends_on "readline"
   depends_on "pango" if build.with?("cairo") || build.with?("wxmac")
   depends_on "pdflib-lite" => :optional
-  depends_on "qt@5.7" => :optional
+  depends_on "qt5" => :optional
   depends_on "wxmac" => :optional
   depends_on :tex => :optional
   depends_on :x11 => :optional
 
-  needs :cxx11 if build.with? "qt@5.7"
+  needs :cxx11 if build.with? "qt5"
 
   resource "libcerf" do
     url "http://apps.jcns.fz-juelich.de/src/libcerf/libcerf-1.5.tgz"
@@ -63,7 +63,7 @@ class Gnuplot < Formula
 
   def install
     # Qt5 requires c++11 (and the other backends do not care)
-    ENV.cxx11 if build.with? "qt@5.7"
+    ENV.cxx11 if build.with? "qt5"
 
     if build.with? "aquaterm"
       # Add "/Library/Frameworks" to the default framework search path, so that an
@@ -103,7 +103,7 @@ class Gnuplot < Formula
       args << "--without-cairo" if build.without? "cairo"
     end
 
-    if build.with? "qt@5.7"
+    if build.with? "qt5"
       args << "--with-qt"
     else
       args << "--with-qt=no"

@schoeps
Copy link
Contributor

schoeps commented Feb 21, 2017

fwiw, the problem seems to be that octave gui cannot quit. The build finishes without dying in make check if I pass --without-gnuplot and then the cannot-quit problem is clear.

That quitting issue was already observed with the old qt5 but the compilation went along somehow. Nonetheless mac users are complaining on the mailing list a lot. Maybe I can do the tests using cli only.

@ilovezfs
Copy link
Contributor

ilovezfs commented Feb 21, 2017

@schoeps that's really weird, since with the current octave bottle, there's no such quitting issue I can discern. There's something to be learned here hehe

@schoeps
Copy link
Contributor

schoeps commented Feb 21, 2017

@ilovezfs really? on my machine quitting octave gui (after having plotted something) gives me the spinning beach ball of death....

@ilovezfs
Copy link
Contributor

Yeah, I can plot and then quit without a problem.

@schoeps
Copy link
Contributor

schoeps commented Feb 21, 2017

@ilovezfs indeed octave compilation runs fine, one needs to kill octave-gui because it crashes after having finished the tests. If you do this the installation finishes but the gui crashes on exit (as it did before on my system).

Error log here: https://gist.github.com/schoeps/9ebb217220c875548f551c73163b153b. Anybody knows anyone with qt on mac expertise?

@ilovezfs
Copy link
Contributor

If you do this the installation finishes but the gui crashes on exit (as it did before on my system).

@schoeps Can you clarify for me ... when you say "as it did before on my system" are you referring to a build against Qt 5.7 or Qt 5.8?

@schoeps
Copy link
Contributor

schoeps commented Feb 21, 2017

@ilovezfs on my system octave-gui has been crashing on exit already with qt5.7. This did not effect the installation since the process did not become a zombie. With qt5.8 it is still crashing on exit but the process goes directly zombie and therefore already the installation stalls.

EDIT: it could be also some other reason that happen to coincide with the change from qt4 to qt5.

@schoeps
Copy link
Contributor

schoeps commented Feb 21, 2017

@ilovezfs The problem is known [1] but nobodies takes care. It seems also to happen to macport's octave [2].

[1] https://savannah.gnu.org/bugs/?50025
[2] http://octave.1599824.n4.nabble.com/Re-Version-4-2-freezes-under-OS-10-12-3-td4681885.html

@schoeps
Copy link
Contributor

schoeps commented Feb 21, 2017

@ilovezfs Still trying but adding this into the formula before running tests

# make sure that the gui is not used for tests
inreplace "run-octave", "builddir/src/octave", "builddir/src/octave-cli"

fixes the installation.... however the application will still crash on exit.

@ilovezfs
Copy link
Contributor

@schoeps does it crash on exit with --no-gui passed?

@schoeps
Copy link
Contributor

schoeps commented Feb 21, 2017

@ilovezfs yes but it does not crash if one uses octave --no-window-system (which is the same as calling octave-cli)

@ilovezfs
Copy link
Contributor

interesting

@schoeps
Copy link
Contributor

schoeps commented Feb 21, 2017

@ilovezfs When using --no-gui qt5 is still initialized, i.e., graphics_toolkit('qt') works. Within octave-cli it complains error: graphics_toolkit: qt toolkit is not available.

@dakcarto
Copy link
Contributor

Hi. Quick comment: edits here for sip, pyqt5, qscintilla2 built fine for me on 10.11.6 with Xcode 8.2.1.

@ilovezfs wrote:

I think we have 3 choices:

  1. fix octave
  2. vendor pyqt5/qscintilla2/sip into octave formula built against qt 5.7
  3. drop the qt5 option from octave

For # 2 could those formulae be frozen to their respective 5.7 versions, e.g. sip@4.19, pyqt5@5.7.1, qscintilla2@2.9.4 (or sip@qt5.7, pyqt5@qt5.7, qscintilla2@qt5.7 <-- would be non-standard), instead of being vendored?

@ilovezfs
Copy link
Contributor

Unlikely, as it will set an unacceptable precedent.

@dakcarto
Copy link
Contributor

Hi, so what's the solution here?

We can't just leave pyqt5 and qscintilla2 built against a non-default qt5 because of one other formula, e.g. octave. Doing so means any software that loads qt5 and pyqt5 and/or qscintilla2 will run into the "multiple Qt versions loaded" crash.

Also, loading multiple Qt versions into the formula build environ can lead to incorrect header resolution (at least that appears to be what is happening during build failures).

@dakcarto
Copy link
Contributor

@ilovezfs wrote:

I think we have 3 choices:

  1. fix octave
  2. vendor pyqt5/qscintilla2/sip into octave formula built against qt 5.7
  3. drop the qt5 option from octave

After reviewing the octave formula, it appears to not depend upon pyqt5 or sip. It seems # 2 could be vendoring only qscintilla2 against qt@5.7.

@ilovezfs
Copy link
Contributor

├── qscintilla2
│   ├── :python3
│   ├── :python
│   ├── qt@5.7
│   │   ├── :mysql
│   │   ├── :postgresql
│   │   ├── xz
│   │   ├── pkg-config
│   │   └── xz
│   ├── sip
│   │   └── :python3
│   └── pyqt5
│       ├── :python3
│       ├── :python
│       ├── qt@5.7
│       │   ├── :mysql
│       │   ├── :postgresql
│       │   ├── xz
│       │   ├── pkg-config
│       │   └── xz
│       └── sip
│           └── :python3

@dakcarto
Copy link
Contributor

Sorry, not following. If it is vendored within the octave formula, there is no need to build the Python support for QScintilla.

@ilovezfs
Copy link
Contributor

Ah I didn't realize that was a strictly optional dependency for qscintilla2.

@dakcarto
Copy link
Contributor

Yes, so is the Qt Designer plugin. Should be fairly simple to vendor just the QScintilla2 package for its C++ API. Want me to do that? I have time available today that I can use for that.

@ilovezfs
Copy link
Contributor

That would be lovely.

@ilovezfs
Copy link
Contributor

ilovezfs commented Mar 2, 2017

@dakcarto did you have a chance to work on that?

@dakcarto
Copy link
Contributor

dakcarto commented Mar 2, 2017

Hi, @ilovezfs, I worked on it yesterday. I have the QScintilla2 compilation and vendoring working fine, just having an issue with octave getting confused during configure when there is also theqscintilla2 formula installed. Should have a PR available today, even if it is still a WIP.

@ilovezfs
Copy link
Contributor

ilovezfs commented Mar 9, 2017

I've shipped https://github.com/Homebrew/homebrew-science/pull/5217 so we should be good to go here now.

@ilovezfs ilovezfs changed the title pyqt5 5.8 sip 4.19.1 qscintilla2 2.10 pyqt5 5.8.1, sip 4.19.1, qscintilla2 2.10 Mar 9, 2017
@ilovezfs ilovezfs dismissed their stale review March 9, 2017 06:00

octave situation has been dealt with

@ilovezfs ilovezfs closed this in e81190f Mar 9, 2017
@ilovezfs
Copy link
Contributor

ilovezfs commented Mar 9, 2017

Shipped! Thanks @xu-cheng

@xu-cheng xu-cheng deleted the pyqt5 branch March 9, 2017 06:50
@Homebrew Homebrew locked and limited conversation to collaborators May 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants