Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 436400 - app-office/texmacs fails to build with dev-scheme/guile-2.0.6
Summary: app-office/texmacs fails to build with dev-scheme/guile-2.0.6
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Andrey Grozin
URL:
Whiteboard:
Keywords: PMASKED
: 647580 (view as bug list)
Depends on:
Blocks: 587252 guile-2-porting 597184 355355
  Show dependency tree
 
Reported: 2012-09-27 10:11 UTC by Cyprien Nicolas (fulax)
Modified: 2019-09-05 13:55 UTC (History)
7 users (show)

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


Attachments
build/app-office/texmacs-1.0.7.16-r1:20120927-095955.log (texmacs-1.0.7.16-r1:20120927-095955.log,370.70 KB, text/plain)
2012-09-27 10:11 UTC, Cyprien Nicolas (fulax)
Details
patch for forcing texmacs to use guile-1.8 at compile-time (texmacs-force-guile-18.patch,8.47 KB, patch)
2013-01-26 14:48 UTC, Cyprien Nicolas (fulax)
Details | Diff
texmacs-1.99.9-guile-remove-deprecated.patch (texmacs-1.99.9-guile-remove-deprecated.patch,10.62 KB, patch)
2019-06-04 10:05 UTC, Aaron W. Swenson
Details | Diff
texmacs-1.99.9.ebuild (texmacs-1.99.9.ebuild,1.68 KB, text/plain)
2019-06-04 10:06 UTC, Aaron W. Swenson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Cyprien Nicolas (fulax) 2012-09-27 10:11:18 UTC
Created attachment 325122 [details]
build/app-office/texmacs-1.0.7.16-r1:20120927-095955.log

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.
Comment 1 Cyprien Nicolas (fulax) 2013-01-26 14:48:17 UTC
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.

http://git.overlays.gentoo.org/gitweb/?p=proj/lisp.git;a=commit;h=4bb1f7f0af85caa6f07fd7c46e3bbee3c8540ee4
Comment 2 Andrey Grozin gentoo-dev 2013-03-23 10:12:21 UTC
(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?
Comment 3 Cyprien Nicolas (fulax) 2013-03-24 00:56:05 UTC
(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".
Comment 4 Anton Kochkov 2016-05-22 09:46:28 UTC
Looks like RedHat solved this problem https://bugzilla.redhat.com/show_bug.cgi?id=704515
Comment 5 Anton Kochkov 2016-05-22 09:51:20 UTC
There are sources (patches) for this package in Fedora rawhide https://apps.fedoraproject.org/packages/TeXmacs/sources/#
Comment 6 Anton Kochkov 2016-05-22 09:58:53 UTC
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
Comment 7 Amy Liffey gentoo-dev 2016-08-05 14:54:21 UTC
(In reply to Anton Kochkov from comment #6)
> 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

This builds for me with guile-2.0.12 if --enable-guile2=yes is used with econf.
Comment 8 Pacho Ramos gentoo-dev 2017-06-06 17:25:13 UTC
But the patch was reverted as it was causing crashes, also, guile-2 is officially not supported :/
http://www.texmacs.org/tmweb/download/sources.en.html
Comment 9 Pacho Ramos gentoo-dev 2018-02-14 13:51:03 UTC
*** Bug 647580 has been marked as a duplicate of this bug. ***
Comment 10 Aaron W. Swenson gentoo-dev 2019-06-04 10:05:40 UTC
Created attachment 578662 [details, diff]
texmacs-1.99.9-guile-remove-deprecated.patch

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:

$ texmacs
Backtrace:
           4 (apply-smob/1 #<catch-closure 564b9276f000>)
In ice-9/boot-9.scm:
   2312:4  3 (save-module-excursion #<procedure 564b929b63e0 at ice-…>)
In ice-9/eval-string.scm:
     38:6  2 (read-and-eval #<input: string 564b92a074d0> #:lang _)
In ice-9/boot-9.scm:
   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
Comment 11 Aaron W. Swenson gentoo-dev 2019-06-04 10:06:21 UTC
Created attachment 578664 [details]
texmacs-1.99.9.ebuild
Comment 12 Andrey Grozin gentoo-dev 2019-06-05 04:06:02 UTC
This is what Massimiliano Gubinelli, one of the (few) active TeXmacs developers, wrote on Sun, 19 May 2019 to the mailing list texmacs-dev@gnu.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.
Comment 13 Larry the Git Cow gentoo-dev 2019-06-19 04:45:04 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d1df68a843aef2b2853ecf35269afe1486ec7182

commit d1df68a843aef2b2853ecf35269afe1486ec7182
Author:     Andrey Grozin <grozin@gentoo.org>
AuthorDate: 2019-06-19 04:43:20 +0000
Commit:     Andrey Grozin <grozin@gentoo.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 <titanofold@gentoo.org>
    Bug: https://bugs.gentoo.org/show_bug.cgi?id=436400
    Closes: https://bugs.gentoo.org/show_bug.cgi?id=666470
    Package-Manager: Portage-2.3.67, Repoman-2.3.14
    Signed-off-by: Andrey Grozin <grozin@gentoo.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(+)
Comment 14 Andrey Grozin gentoo-dev 2019-06-19 05:02:28 UTC
(In reply to Aaron W. Swenson from comment #11)
> Created attachment 578664 [details]
> texmacs-1.99.9.ebuild

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
1.8.
Comment 15 Matt Turner gentoo-dev 2019-08-03 01:24:05 UTC
Is there any progress?

I've masked all packages that are incompatible with guile-2 for removal, except for texmacs.
Comment 16 Andrey Grozin gentoo-dev 2019-08-08 13:14:42 UTC
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.
========
Comment 17 Matt Turner gentoo-dev 2019-08-17 18:25:54 UTC
You might want to investigate bug 689408 (slotting guile). It certainly doesn't seem like Amy is going to do it.
Comment 18 Matt Turner gentoo-dev 2019-08-26 05:25:46 UTC
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.
Comment 19 Larry the Git Cow gentoo-dev 2019-09-01 19:20:23 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e09fe196a13f2faa4b184b1bf5d7f961c4c8b8b0

commit e09fe196a13f2faa4b184b1bf5d7f961c4c8b8b0
Author:     Matt Turner <mattst88@gentoo.org>
AuthorDate: 2019-09-01 19:16:42 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2019-09-01 19:19:03 +0000

    profiles: Mask dev-scheme/guile < 2 and app-office/texmacs
    
    Bug: https://bugs.gentoo.org/436400
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

 profiles/base/use.mask | 4 ++++
 profiles/package.mask  | 7 +++++++
 2 files changed, 11 insertions(+)