Created attachment 325122 [details]
Known build failure, according to Andrey Grozin:
“TeXmacs cannot be compiled with guile-2, and there are no plans to change this (upstreem even considers switching to some other scheme implementation, but not to guile-2). Therefore, I have >=scheme-2 masked on my system. As long as 1.8 remains in the tree, slotting should be OK for TeXmacs.”
So we have to found a way to force texmacs to build against guile:12 (there are guil*-1.8 binaries on the system that should be use).
This bug is a remainder for myself, to propose solutions for this issue before adding herds and maintainers.
Created attachment 336912 [details, diff]
patch for forcing texmacs to use guile-1.8 at compile-time
Here is a patch in testing in the lisp overlay. It requires guile-1.8 to be correctly slotted, and thus it needs to change how guile is built.
(In reply to comment #1)
> Here is a patch in testing in the lisp overlay. It requires guile-1.8 to be
> correctly slotted, and thus it needs to change how guile is built.
I cannot test this patch because I have unslotted guile installed, but it looks OK. Could you please check one thing: start texmacs, click the icon which looks like a computer monitor, choose Scheme from the drop-down menu. Then, at the prompt Scheme], type (version) <enter>. What does it say?
(In reply to comment #2)
> I cannot test this patch because I have unslotted guile installed, but it
> looks OK. Could you please check one thing: start texmacs, click the icon
> which looks like a computer monitor, choose Scheme from the drop-down menu.
> Then, at the prompt Scheme], type (version) <enter>. What does it say?
It reports "1.8.8".
Looks like RedHat solved this problem https://bugzilla.redhat.com/show_bug.cgi?id=704515
There are sources (patches) for this package in Fedora rawhide https://apps.fedoraproject.org/packages/TeXmacs/sources/#
Here are the patches to selectively build texmacs against guile-1.8: http://pkgs.fedoraproject.org/cgit/rpms/TeXmacs.git/commit/?h=master&id=a541fc654cc3d92c14f81d52d6703ef35a50d317
(In reply to Anton Kochkov from comment #6)
> Here are the patches to selectively build texmacs against guile-1.8:
This builds for me with guile-2.0.12 if --enable-guile2=yes is used with econf.
But the patch was reverted as it was causing crashes, also, guile-2 is officially not supported :/
*** Bug 647580 has been marked as a duplicate of this bug. ***
Created attachment 578662 [details, diff]
I've been working on this a bit, and I've gotten to the point where TeXmacs successfully compiles with Guile 2.0 and 2.2. However, I'm a bit stuck now with this:
4 (apply-smob/1 #<catch-closure 564b9276f000>)
2312:4 3 (save-module-excursion #<procedure 564b929b63e0 at ice-…>)
38:6 2 (read-and-eval #<input: string 564b92a074d0> #:lang _)
3084:0 1 (debug-enable . _)
In unknown file:
0 (debug-options-interface (debug show-file-name #t # # …))
ERROR: In procedure debug-options-interface:
In procedure debug-options-interface: Unknown option name: debug
Created attachment 578664 [details]
This is what Massimiliano Gubinelli, one of the (few) active TeXmacs developers, wrote on Sun, 19 May 2019 to the mailing list firstname.lastname@example.org:
> Also: I’m right now working on Guile 2 support and can bootstrap all the scheme code right now but TeXmacs is still not working, there seems to be some bug remaining, maybe introduced by my modifications. I’m working on them.
The problem is far from trivial, the amount of scheme code in TeXmacs is huge. The only thing that remains to us is to wait.
The bug has been referenced in the following commit(s):
Author: Andrey Grozin <email@example.com>
AuthorDate: 2019-06-19 04:43:20 +0000
Commit: Andrey Grozin <firstname.lastname@example.org>
CommitDate: 2019-06-19 04:43:20 +0000
app-office/texmacs: bump to 1.99.9
Thanks to Aaron W. Swenson for the ebuild
Suggested-by: Aaron W. Swenson <email@example.com>
Package-Manager: Portage-2.3.67, Repoman-2.3.14
Signed-off-by: Andrey Grozin <firstname.lastname@example.org>
app-office/texmacs/Manifest | 1 +
.../texmacs-1.99.9-guile-remove-deprecated.patch | 295 +++++++++++++++++++++
app-office/texmacs/texmacs-1.99.9.ebuild | 72 +++++
3 files changed, 368 insertions(+)
(In reply to Aaron W. Swenson from comment #11)
> Created attachment 578664 [details]
Many thanks for the ebuild and the patch. I've committed them, but kept the dependency on guile-1.8.
Massimiliano Gubinelli has written on Fri, 14 Jun 2019:
> As for Guile 2.0, at the moment I’m trying to look at the remaining bugs which are a bit subtle since they are generated by the different evaluation strategy wrt
Is there any progress?
I've masked all packages that are incompatible with guile-2 for removal, except for texmacs.
The version 2.1 is expected in September. However, Joris van der Hoeven, the main author of TeXmacs, writes in the dev mailing list today:
For the sake of stability, TeXmacs 2.1 will be based on Qt4 and Guile 1.8.
Massimiliano made a lot of progress on Qt5 and Guile 2, but this will
require a significant amount of testing before it will become stable.
That will be our next major objective for version 2.2,
which will hopefully be released in 2020.
In another email, he writes:
The point with Guile 2 is that it basically has nothing to do with Guile 1,
so the most of the interface has to be rewritten and retested.
At a first stage, we plan to run Guile 2 in interpreter mode.
This causes a slow-down with respect to Guile 1, but it will at least
enable us to track down potential problems. During a second stage,
we should move to the compiled version, but this will again require
a lot of work and testing.
You might want to investigate bug 689408 (slotting guile). It certainly doesn't seem like Amy is going to do it.
I propose that when all other reverse dependencies of guile-1.8 are removed (Sept 1) that we package.mask app-office/texmacs and <dev-scheme/guile-2.
The bug has been referenced in the following commit(s):
Author: Matt Turner <email@example.com>
AuthorDate: 2019-09-01 19:16:42 +0000
Commit: Matt Turner <firstname.lastname@example.org>
CommitDate: 2019-09-01 19:19:03 +0000
profiles: Mask dev-scheme/guile < 2 and app-office/texmacs
Signed-off-by: Matt Turner <email@example.com>
profiles/base/use.mask | 4 ++++
profiles/package.mask | 7 +++++++
2 files changed, 11 insertions(+)