Opened 10 years ago
Last modified 7 years ago
#43903 accepted update
LaTeXiT: update to 2.6.1, cannot rebuild current version
Reported by: | dstrubbe (David Strubbe) | Owned by: | ryandesign (Ryan Carsten Schmidt) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.3.0 |
Keywords: | haspatch | Cc: | cooljeanius (Eric Gallager), dstrubbe (David Strubbe), larryv (Lawrence Velázquez), Schamschula (Marius Schamschula), leander.claes@…, crossd@…, anddam (Andrea D'Amore), ansgar@…, ddmarshall@…, jowens@…, stewartboogert, david.e.pi.3.14@…, EJFielding (Eric Fielding) |
Port: | LaTeXiT |
Description
I tried to create a Portfile for updating LaTeXiT to 2.6.1 from 2.5.0. I updated the version and checksums, added a livecheck, and fixed a spelling matter. However, the port does not build, and gives a large number of errors like
info:build error: garbage collection is no longer supported
I am not sure what the next step is to fix this. I checked that if I try to rebuild my currently installed 2.5.0 it also fails in the same way, so I believe the issue is not the newer version of LaTeXiT but rather an intervening update to XCode. I currently have version 5.1.1 on OSX 10.8.5. I have attached a patch to update the Portfile, as well as main.log from the update to 2.6.1 and from trying to rebuild as is at 2.5.0.
Attachments (9)
Change History (38)
Changed 10 years ago by dstrubbe (David Strubbe)
Attachment: | Portfile-latexit.diff added |
---|
Changed 10 years ago by dstrubbe (David Strubbe)
Attachment: | main.log_261 added |
---|
Changed 10 years ago by dstrubbe (David Strubbe)
Attachment: | main.log_250 added |
---|
comment:1 Changed 10 years ago by cooljeanius (Eric Gallager)
comment:2 Changed 10 years ago by dstrubbe (David Strubbe)
Which are those versions?
Anyway, my machine evidently doesn't fall into that category. As you might imagine, that is where I am most interested in figuring out how to make it build.
comment:4 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)
You should contact the developers of LaTeXiT and advise them to rewrite their code to no longer use OS X's garbage collection. The replacement feature is called automatic reference counting, however IIRC that will require compiling on OS X 10.7 or newer, with a possibility that the compiled program could still be used on 10.6.
comment:8 Changed 10 years ago by Schamschula (Marius Schamschula)
The bad news: In the meantime LaTeXiT is at version 2.7.3…
The good news: I've been able to build version 2.7.3 under Mavericks! I have not tested my patches on other versions of toe OS, but this is likely to work for 10.7 through 10.10.
Patches for the Portfile, project.pbxproj and NSDataExtended.m are attached.
Changed 10 years ago by Schamschula (Marius Schamschula)
Attachment: | patch-LaTeXiT.xcodeproj-project.pbxproj.orig.diff added |
---|
Changed 10 years ago by Schamschula (Marius Schamschula)
Attachment: | patch-NSDataExtended.m.diff added |
---|
comment:9 Changed 10 years ago by Schamschula (Marius Schamschula)
The above patches did not work with OS 10.10/Yosemite.
I've added a new patch (patch-MyImageView.m.diff) and replaced patch-LaTeXiT.xcodeproj-project.pbxproj.orig.diff with patch-LaTeXiT.xcodeproj-project.pbxproj.diff.
Changed 10 years ago by Schamschula (Marius Schamschula)
Attachment: | Portfile-LaTeXiT.diff added |
---|
Changed 10 years ago by Schamschula (Marius Schamschula)
Attachment: | patch-LaTeXiT.xcodeproj-project.pbxproj.diff added |
---|
Changed 10 years ago by Schamschula (Marius Schamschula)
Attachment: | patch-MyImageView.m.diff added |
---|
comment:13 follow-up: 14 Changed 10 years ago by crossd@…
Any movement on submitting this? The current LaTeXiT port won't build on Yosemite and this would both update the port and solve the problem on all platforms rather neatly, wouldn't it?
comment:14 Changed 10 years ago by anddam (Andrea D'Amore)
Replying to crossd@…:
Any movement on submitting this? The current LaTeXiT port won't build on Yosemite and this would both update the port and solve the problem on all platforms rather neatly, wouldn't it?
The latest patched port builds and the resulting application correctly typesets but it doesn't update its window, i.e. it remains blank after running "LaTeX it!" even if you can actually drag the output from the window itself.
Can you confirm the updated port works fine on your system?
comment:15 Changed 10 years ago by Schamschula (Marius Schamschula)
Unfortunately, I can confirm the rendering issue under Yosemite.
Interestingly, the when I copy the Mavericks build, built using Xcode 6.1 onto my Yosemite machine, it works correctly…
Changed 10 years ago by Schamschula (Marius Schamschula)
Attachment: | Portfile-LaTeXiT.2.diff added |
---|
comment:16 follow-up: 17 Changed 10 years ago by Schamschula (Marius Schamschula)
Added an update, as LaTeXiT 2.7.4 has been released. This does NOT fix the Yosemite rendering issue.
comment:17 Changed 10 years ago by anddam (Andrea D'Amore)
Replying to mschamschula@…:
Added an update, as LaTeXiT 2.7.4 has been released. This does NOT fix the Yosemite rendering issue.
The issue is most likely caused by the patching needed to build source using ARC, did you try getting in touch with Pierre Chatelier?
comment:19 Changed 10 years ago by larryv (Lawrence Velázquez)
Cc: | ddmarshall@… added |
---|
Has duplicate #47259.
comment:20 follow-up: 21 Changed 10 years ago by bernstei
LaTexit 2.7.5, which I just downloaded from http://www.chachatelier.fr/latexit/latexit-downloads.php?lang=en, renders fine on my Yosemite 10.10 machine. Perhaps someone could try to build it under MacPorts, and if it works, update the port? I'm afraid I'm too unfamiliar with the internals of the port system to make progress on this myself.
comment:21 Changed 10 years ago by Schamschula (Marius Schamschula)
Replying to noam.bernstein@…:
LaTexit 2.7.5, which I just downloaded from http://www.chachatelier.fr/latexit/latexit-downloads.php?lang=en, renders fine on my Yosemite 10.10 machine. Perhaps someone could try to build it under MacPorts, and if it works, update the port? I'm afraid I'm too unfamiliar with the internals of the port system to make progress on this myself.
As does LaTeXiT built under Mavericks, when copied to Yosemite. LaTeXiT has not been updated to use ARC, hence LaTeXiT builds under Yosemite, but does not produce output. See comment #17.
I just checked, and this is still the case for version 2.7.5.
comment:23 Changed 9 years ago by manuSrep (Manuel Tuschen)
Maybe someone could try it again with Version 2.8.0 (7th september 2015) ??
comment:24 Changed 9 years ago by Schamschula (Marius Schamschula)
I already have. The same issue still applies. LaTeXiT still uses garbage collection, which has been deprecated for OS X 10.7 and newer.
comment:27 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)
Owner: | changed from macports-tickets@… to ryandesign |
---|---|
Status: | new → accepted |
Working on it...
comment:28 Changed 7 years ago by EJFielding (Eric Fielding)
Cc: | EJFielding added |
---|
comment:29 Changed 7 years ago by EJFielding (Eric Fielding)
Upstream source is now at version 2.10.1 updated in March 2018. Downloading the compiled application from the source works on OS X 10.12.6, so that is an option while MacPorts version is not installing.
You could try only allowing LaTeXiT to be built on the versions of OS X where garbage collection is still supported...