[MacPorts] #57850: octave @4.4.1_2: Error message when starting Octave.app and broken online help using the doc function

MacPorts noreply at macports.org
Mon Jan 7 02:05:38 UTC 2019


#57850: octave @4.4.1_2: Error message when starting Octave.app and broken online
help using the doc function
---------------------+---------------------------------
  Reporter:  maehne  |      Owner:  MarcusCalhoun-Lopez
      Type:  defect  |     Status:  accepted
  Priority:  Normal  |  Milestone:
 Component:  ports   |    Version:
Resolution:          |   Keywords:
      Port:  octave  |
---------------------+---------------------------------

Comment (by MarcusCalhoun-Lopez):

 Just to document the progress:
 * The error happens in the
 [http://hg.savannah.gnu.org/hgweb/octave/file/1f46d371968c/libgui/src/documentation.cc#l75
 octave documentation code].
 * The Qt method
 [http://doc.qt.io/qt-5/qhelpenginecore.html#copyCollectionFile
 copyCollectionFile] returns false.
 * copyCollectionFile helpfully has the side affect that "file references
 to Qt Collection files (.qch) files are updated."
 * In this case, the
 [http://hg.savannah.gnu.org/hgweb/octave/file/1f46d371968c/libgui/src/documentation.cc#l62
 octave_interpreter.qhc] file is copied and updated.
 * The update fails because the user does not have write permission to
 ${prefix}/share/octave/4.4.1/doc/octave_interpreter.qhc.

 I am not sure why this problem seems to have just started.\\
 It might be the [https://github.com/macports/macports-
 ports/commit/e0babf1f7ad4f6675b3a8ec2c8a105a4af675427 update of Qt to
 5.12.0] and the
 [http://code.qt.io/cgit/qt/qttools.git/commit/?h=5.12&id=30a75f7f redesign
 of qcollectiongenerator].\\
 I am also not sure why the copyCollectionFile feels the need to update
 octave_interpreter.qhc.

 A very vary bad workaround (**that should probably not be used**) seems to
 be:
 * {{{mv -i $HOME/.config/octave $HOME/.config/octave-save}}}
 * {{{sudo octave --gui}}}
 * {{{sudo rm -r $HOME/.config/octave}}}
 * {{{mv -i $HOME/.config/octave-save $HOME/.config/octave}}}

 octave_interpreter.qhc is updated, and octave seems to run normally after
 that.

-- 
Ticket URL: <https://trac.macports.org/ticket/57850#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list