Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 600482 - sci-mathematics/octave-4.2.0: qt5 gui is missing editor functionality
Summary: sci-mathematics/octave-4.2.0: qt5 gui is missing editor functionality
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Keywording (show other bugs)
Hardware: All Linux
: Normal major with 1 vote (vote)
Assignee: Gentoo Science Mathematics related packages
URL:
Whiteboard:
Keywords: KEYWORDREQ
Depends on: 541604
Blocks: 617694
  Show dependency tree
 
Reported: 2016-11-22 13:39 UTC by Erik Quaeghebeur
Modified: 2017-05-10 12:47 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Erik Quaeghebeur 2016-11-22 13:39:20 UTC
I just installed octave-4.2.0. I didn't have the GUI installed previously, but now it is qt5-based and I decided to give it a try. It seems to work well enough, except for the fact that nothing related to file editing seems to work or even ‘present’: the editor window/tab does not show up and nothing happens when opening an existing or new script file.
Comment 1 David Seifert gentoo-dev 2016-11-22 21:16:02 UTC
I think this is due to x11-libs/qscintilla, specifically, the fact that it cannot be built for Qt5, see also bug 541604.
Comment 2 Steven Trogdon 2016-12-09 21:07:11 UTC
It seems here that something more than the editor is not working. I'm unable to get the GUI to function at all.

[I] sci-mathematics/octave
     Available versions:  3.6.4(0/3.6.4) 3.8.2-r1(0/3.8.2) (~)4.2.0(0/4.2.0) {X curl doc fftw +glpk gnuplot graphicsmagick gui hdf5 +imagemagick java opengl openssl portaudio postscript +qhull +qrupdate qt5 readline sndfile +sparse static-libs zlib ELIBC="FreeBSD"}
     Installed versions:  4.2.0(02:18:17 PM 12/09/2016)(X curl doc fftw glpk gnuplot imagemagick java opengl openssl postscript qhull qrupdate qt5 readline sparse zlib -graphicsmagick -hdf5 -portaudio -sndfile -static-libs ELIBC="-FreeBSD")

Whether starting using 'octave' or 'octave --no-gui' or 'octave --force-gui' the result is the same - just the 'octave' prompt. I did notice some errors while building qtnetwork-5.6.1, qtdbus-5.6.1 and qtgui-5.6.1 which were non-fatal.
Comment 3 Erik Quaeghebeur 2016-12-09 22:49:48 UTC
(In reply to Steven Trogdon from comment #2)
> […] I'm unable to get the GUI to function at all.

Then you're faced with a different issue. Best seek help on the forums and/or file a separate bug report not to confuse the issue at hand here.
Comment 4 Josef Larsson 2016-12-14 10:13:39 UTC
Same problem here. 

The GUI worked fine in octave-4.0.3 with the (now deprecated?) gui USE-flag.
Comment 5 Erik Quaeghebeur 2016-12-14 10:23:48 UTC
(In reply to Josef Larsson from comment #4)
> Same problem here. 
> 
> The GUI worked fine in octave-4.0.3 with the (now deprecated?) gui USE-flag.
In case you are referring to Steven's issue, as I think you are: *please* file a separate bug so that this one stays on-topic: the editor in the GUI being absent.

(You need the qt5 use flag to get the GUI now.)
Comment 6 Josef Larsson 2016-12-14 12:37:25 UTC
(In reply to Erik Quaeghebeur from comment #5)
> (In reply to Josef Larsson from comment #4)
> > Same problem here. 
> > 
> > The GUI worked fine in octave-4.0.3 with the (now deprecated?) gui USE-flag.
> In case you are referring to Steven's issue, as I think you are: *please*
> file a separate bug so that this one stays on-topic: the editor in the GUI
> being absent.
> 
> (You need the qt5 use flag to get the GUI now.)

No, I was referring to the original issue.

I used the qt5 flag as that was the only alternative left now and experienced the same problems as you did (a working GUI with no editor). I just wanted to mention the fact that I used to have a working GUI solution for a version as late as 4.0.3, if it could be of any help.
Comment 7 Hong Ng 2016-12-14 13:00:18 UTC
(In reply to David Seifert from comment #1)
> I think this is due to x11-libs/qscintilla, specifically, the fact that it
> cannot be built for Qt5, see also bug 541604.

Yes, it is due to the fact that x11-libs/qscintilla is just built for Qt4.

With Qt5 flag, octave-4.2.0 will come with Gui(command window, etc). However, the editor window requires qscintilla plugin built for Qt5. Without that, the editor window won't be compiled.  The current codes of octave-4.2.0 will search for the library named "libqscintilla2-qt5.so". As discussed in bug 541604, currently Gentoo developers seem not yet have an agreement on the qscintilla-vs-qt4/qt5 issue.
Comment 8 Josef Larsson 2016-12-18 21:19:54 UTC
So meanwhile, one should perhaps re-add the 4.0.3 ebuild since it was the latest ebuild that had a working GUI with a working editor, at least in my experience. When the qscintilla issue is worked out, one could again remove the 4.0.3 ebuild.
Comment 9 David Seifert gentoo-dev 2016-12-20 21:04:23 UTC
I'm currently working towards enabling Qt5 in x11-libs/qscintilla, https://github.com/gentoo/gentoo/pull/3188
Comment 10 David Seifert gentoo-dev 2016-12-22 22:35:04 UTC
I've switched back to using USE=gui to control enabling of the GUI, as USE=qt5 was evidently too obscure. With the latest QScintilla changes in the tree, the editor window seems to be working fine for me now. Please report back if this works for you, so we can close it.

commit 1842a17a0dacbcf414630b07b2e9a79bca455ddb
Author: David Seifert <soap@gentoo.org>
Date:   Thu Dec 22 22:58:56 2016 +0200

    sci-mathematics/octave: Fix QScintilla detection for Qt5
    
    Gentoo-bug: 600482
    * Also bring back USE=gui flag
Comment 11 Erik Quaeghebeur 2016-12-23 09:01:01 UTC
It works for me. I had to ditch another program that relied on qt4-qscintilla to get things emerged, but after that, the installation went smoothly.
Comment 12 Jeroen Roovers (RETIRED) gentoo-dev 2017-05-10 12:47:54 UTC
Marked ~hppa.