wxmaxima: broken help menus

  • Done
  • quality assurance status badge
Details
3 participants
  • Christopher Howard
  • Kei
  • Tobias Geerinckx-Rice
Owner
unassigned
Submitted by
Christopher Howard
Severity
normal
Merged with

Debbugs page

Christopher Howard wrote 5 years ago
(address . bug-guix@gnu.org)
da6d15b552438f2d618821f65e9bac955757dbff.camel@alaskasi.com
In WxMaxima, if I click on Help >> WxMaxima Help, I receive error:
"Cannot open HTML help book: /gnu/store/...etc.../share/doc/wxmaxima-
20.01.3/wxmaxima.hhp".

If I click on Help >> Maxima Help, I receive error: "Cannot open HTML
help book: /home/christopher".

christopher@eowyn ~$ guix describe
Generation 11 Feb 21 2020 15:45:33 (current)
guix 447f834
branch: master
commit: 447f834263a26fe62d86f1a655ba01b88efeafde


christopher@eowyn ~$ neofetch
.. `. christopher@eowyn
`--..```..` `..```..--` -----------------
.-:///-:::. `-:::///:-. OS: Guix System
447f834263a26fe62d86f1a655ba01b88efeafde x86_64
````.:::` `:::.```` Host: Vostro 230 00
-//:` -::- Kernel: 5.4.21-gnu
://: -::- Uptime: 8 days, 19 hours, 12 mins
`///- .:::` Packages: 55 (guix-system), 81
(guix-user)
-+++-:::. Shell: bash 5.0.7
:+/:::- DE: GNOME 3.32.2
`-....` Theme: Adwaita [GTK2/3]
Icons: Adwaita [GTK2/3]
Terminal: .gnome-terminal
CPU: Intel Core 2 Duo E7500 (2) @
2.710GHz
GPU: Intel 4 Series Chipset
Memory: 3909MiB / 7929MiB



--
Christopher Howard
Enterprise Solutions Manager
Alaska Satellite Internet
PO Box 70, Ester, AK 99725
3239 La Ree Way, Fairbanks, AK 99709
907.451.0088
1.888.396.5623
www.alaskasatelliteinternet.com
Attachment: file
Tobias Geerinckx-Rice wrote 5 years ago
(no subject)
(name . GNU bug tracker automated control server)(address . control@debbugs.gnu.org)
8736al8fd3.fsf@nckx
merge 39955 39957
Christopher Howard wrote 5 years ago
wxmaxima: broken help menus
(address . 39955@debbugs.gnu.org)
b3eba21d5709026e4d0b5ccdba3f16d6f71f4a82.camel@alaskasi.com
Hi, after a few months, I still have this problem, though the symptoms
changed somewhat. Now, if I click on either the Help >> wxMaxima help
menu, or the Help >> Maxima help menu, wxMaxima simply terminates, and
the word "Aborted" is dumped to stderr.

--
Christopher Howard
Enterprise Solutions Manager
Alaska Satellite Internet
PO Box 70, Ester, AK 99725
3239 La Ree Way, Fairbanks, AK 99709
907.451.0088
1.888.396.5623
www.alaskasatelliteinternet.com
Attachment: file
Kei wrote 5 years ago
(address . 39955@debbugs.gnu.org)
a84ba4c98655988c1402f97ffc9d195785debd5b.camel@posteo.net
Hi all,

I saw this bug as I was updating WxMaxima today. It seems the issue is with
"filetype->GetOpenCommand()" function calls in src/wxMaxima.cpp (lines 3796 and
4078 specifically). These calls are used to find a browser that can open the
HTML help files. We could hard-code a browser (e.g., icecat) as a stopgap while
we debug the wxWidgets library to see what exactly is going wrong.

Thoughts?
Kei Kebreau wrote 5 years ago
Re: bug#39955: wxmaxima: broken help menus
(name . Christopher Howard)(address . christopher@alaskasi.com)(address . 39955@debbugs.gnu.org)
873658bcoq.fsf@posteo.net
Christopher Howard <christopher@alaskasi.com> writes:

Toggle quote (4 lines)
> Hi, after a few months, I still have this problem, though the symptoms changed somewhat.
> Now, if I click on either the Help >> wxMaxima help menu, or the Help >> Maxima help menu,
> wxMaxima simply terminates, and the word "Aborted" is dumped to stderr.

Hi Christopher,

Can you try applying these two patches to see if they resolve this issue
on your machine?
From 769eee72f408f31d77d261bf3b14479f8383873e Mon Sep 17 00:00:00 2001
From: Kei Kebreau <kkebreau@posteo.net>
Date: Tue, 30 Jun 2020 17:07:48 -0400
Subject: [PATCH 1/2] gnu: wxmaxima: Update to 20.06.6.

* gnu/packages/maths.scm (wxmaxima): Update to 20.06.6.
[arguments]: Add 'patch-doc-path' phase.
---
gnu/packages/maths.scm | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)

Toggle diff (39 lines)
diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index 3991b2f88b..6f446d9118 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -3263,7 +3263,7 @@ point numbers.")
(define-public wxmaxima
(package
(name "wxmaxima")
- (version "20.04.0")
+ (version "20.06.6")
(source
(origin
(method git-fetch)
@@ -3272,7 +3272,7 @@ point numbers.")
(commit (string-append "Version-" version))))
(file-name (git-file-name name version))
(sha256
- (base32 "0vrjxzfgmjdzm1rgl0crz4b4badl14jwh032y3xkcdvjl5j67lp3"))))
+ (base32 "054f7n5kx75ng5j20rd5q27n9xxk03mrd7sbxyym1lsswzimqh4w"))))
(build-system cmake-build-system)
(native-inputs
`(("gettext" ,gettext-minimal)
@@ -3290,6 +3290,14 @@ point numbers.")
`(#:test-target "test"
#:phases
(modify-phases %standard-phases
+ (add-after 'unpack 'patch-doc-path
+ (lambda _
+ ;; Don't look in share/doc/wxmaxima-xx.xx.x for the
+ ;; documentation. Only licensing information is placed there by
+ ;; Guix.
+ (substitute* "src/Dirstructure.cpp"
+ (("/doc/wxmaxima-\\%s") "/doc/wxmaxima"))
+ #t))
(add-before 'check 'pre-check
(lambda _
;; Tests require a running X server.
--
2.27.0
From a2c82a7c4743ce1ec578cfc890320fb72e96c8aa Mon Sep 17 00:00:00 2001
From: Kei Kebreau <kkebreau@posteo.net>
Date: Thu, 30 Jul 2020 22:45:21 -0400
Subject: [PATCH 2/2] gnu: wxwidgets: Fix MIME type loading.

* gnu/packages/wxwidgets.scm (wxwidgets)[inputs]: Add shared-mime-info.
[arguments]: Update 'refer-to-inputs phase so wxWidgets looks in the correct
directory for MIME type information.
---
gnu/packages/wxwidgets.scm | 16 +++++++++++-----
1 file changed, 11 insertions(+), 5 deletions(-)

Toggle diff (43 lines)
diff --git a/gnu/packages/wxwidgets.scm b/gnu/packages/wxwidgets.scm
index 7141b2f4b8..f3a7fdd7a4 100644
--- a/gnu/packages/wxwidgets.scm
+++ b/gnu/packages/wxwidgets.scm
@@ -37,6 +37,7 @@
#:use-module (gnu packages databases)
#:use-module (gnu packages freedesktop)
#:use-module (gnu packages gl)
+ #:use-module (gnu packages gnome)
#:use-module (gnu packages gstreamer)
#:use-module (gnu packages gtk)
#:use-module (gnu packages image)
@@ -75,6 +76,7 @@
("mesa" ,mesa)
("webkitgtk" ,webkitgtk)
("sdl" ,sdl)
+ ("shared-mime-info" ,shared-mime-info)
("xdg-utils" ,xdg-utils)))
(native-inputs
`(("pkg-config" ,pkg-config)))
@@ -97,11 +99,15 @@
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'refer-to-inputs
- (lambda _
- (substitute* "src/unix/utilsx11.cpp"
- (("wxExecute\\(xdg_open \\+")
- (string-append "wxExecute(\"" (which "xdg-open") "\"")))
- #t)))))
+ (lambda* (#:key inputs #:allow-other-keys)
+ (let* ((mime (string-append (assoc-ref inputs "shared-mime-info")
+ "/share/mime")))
+ (substitute* "src/unix/utilsx11.cpp"
+ (("wxExecute\\(xdg_open \\+")
+ (string-append "wxExecute(\"" (which "xdg-open") "\"")))
+ (substitute* "src/unix/mimetype.cpp"
+ (("/usr(/local)?/share/mime") mime))
+ #t))))))
(home-page "https://www.wxwidgets.org/")
(synopsis "Widget toolkit for creating graphical user interfaces")
(description
--
2.27.0
Kei Kebreau wrote 4 years ago
(name . Christopher Howard)(address . christopher@alaskasi.com)(address . 39955-done@debbugs.gnu.org)
87o8jcnuxq.fsf@posteo.net
This bug appears to have been fixed by the patches sent on July 31,
pushed to master as commits e79fe4f675 and 93d9737d2b respectively.

Thanks for reporting this, and please let us know if you continue to
have issues with wxMaxima on Guix!
Closed
?
Your comment

This issue is archived.

To comment on this conversation send an email to 39955@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 39955
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch
You may also tag this issue. See list of standard tags. For example, to set the confirmed and easy tags
mumi command -t +confirmed -t +easy
Or, remove the moreinfo tag and set the help tag
mumi command -t -moreinfo -t +help