Opened 7 years ago

Last modified 3 years ago

#43903 accepted update

LaTeXiT: update to 2.6.1, cannot rebuild current version

Reported by: dstrubbe (David Strubbe) Owned by: ryandesign (Ryan 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)

Portfile-latexit.diff (1.6 KB) - added by dstrubbe (David Strubbe) 7 years ago.
main.log_261 (83.1 KB) - added by dstrubbe (David Strubbe) 7 years ago.
main.log_250 (80.5 KB) - added by dstrubbe (David Strubbe) 7 years ago.
patch-LaTeXiT.xcodeproj-project.pbxproj.orig.diff (1.2 KB) - added by Schamschula (Marius Schamschula) 7 years ago.
patch-NSDataExtended.m.diff (663 bytes) - added by Schamschula (Marius Schamschula) 7 years ago.
Portfile-LaTeXiT.diff (1.4 KB) - added by Schamschula (Marius Schamschula) 7 years ago.
patch-LaTeXiT.xcodeproj-project.pbxproj.diff (3.6 KB) - added by Schamschula (Marius Schamschula) 7 years ago.
patch-MyImageView.m.diff (354 bytes) - added by Schamschula (Marius Schamschula) 7 years ago.
Portfile-LaTeXiT.2.diff (1.4 KB) - added by Schamschula (Marius Schamschula) 6 years ago.

Download all attachments as: .zip

Change History (38)

Changed 7 years ago by dstrubbe (David Strubbe)

Attachment: Portfile-latexit.diff added

Changed 7 years ago by dstrubbe (David Strubbe)

Attachment: main.log_261 added

Changed 7 years ago by dstrubbe (David Strubbe)

Attachment: main.log_250 added

comment:1 Changed 7 years ago by cooljeanius (Eric Gallager)

info:build error: garbage collection is no longer supported

You could try only allowing LaTeXiT to be built on the versions of OS X where garbage collection is still supported...

comment:2 Changed 7 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:3 Changed 7 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

comment:4 Changed 7 years ago by ryandesign (Ryan 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:5 Changed 7 years ago by dstrubbe (David Strubbe)

Cc: dstrubbe@… added

Cc Me!

comment:6 Changed 7 years ago by larryv (Lawrence Velázquez)

Cc: larryv@… added

Cc Me!

comment:7 Changed 7 years ago by Schamschula (Marius Schamschula)

Cc: mschamschula@… added

Cc Me!

comment:8 Changed 7 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 the OS, but this is likely to work for 10.7 through 10.10.

Patches for the Portfile, project.pbxproj and NSDataExtended.m are attached.

I've also added livecheck.

Last edited 7 years ago by Schamschula (Marius Schamschula) (previous) (diff)

Changed 7 years ago by Schamschula (Marius Schamschula)

Changed 7 years ago by Schamschula (Marius Schamschula)

Attachment: patch-NSDataExtended.m.diff added

comment:9 Changed 7 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.

Last edited 7 years ago by Schamschula (Marius Schamschula) (previous) (diff)

Changed 7 years ago by Schamschula (Marius Schamschula)

Attachment: Portfile-LaTeXiT.diff added

Changed 7 years ago by Schamschula (Marius Schamschula)

Changed 7 years ago by Schamschula (Marius Schamschula)

Attachment: patch-MyImageView.m.diff added

comment:10 Changed 7 years ago by leander.claes@…

Cc: leander.claes@… added

Cc Me!

comment:11 Changed 7 years ago by crossd@…

Cc: crossd@… added

Cc Me!

comment:12 Changed 7 years ago by anddam (Andrea D'Amore)

Cc: and.damore@… added

Cc Me!

comment:13 Changed 7 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 in reply to:  13 Changed 7 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 7 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 6 years ago by Schamschula (Marius Schamschula)

Attachment: Portfile-LaTeXiT.2.diff added

comment:16 Changed 6 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 in reply to:  16 Changed 6 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:18 Changed 6 years ago by ansgar@…

Cc: ansgar@… added

Cc Me!

comment:19 Changed 6 years ago by larryv (Lawrence Velázquez)

Cc: ddmarshall@… added

Has duplicate #47259.

comment:20 Changed 6 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 in reply to:  20 Changed 6 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:22 Changed 6 years ago by jowens@…

Cc: jowens@… added

Cc Me!

comment:23 Changed 5 years ago by manuSrep (Manuel Tuschen)

Maybe someone could try it again with Version 2.8.0 (7th september 2015) ??

comment:24 Changed 5 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:25 Changed 5 years ago by stewartboogert

Cc: stewart.boogert@… added

Cc Me!

comment:26 Changed 5 years ago by david.e.pi.3.14@…

Cc: david.e.pi.3.14@… added

Cc Me!

comment:27 Changed 3 years ago by ryandesign (Ryan Schmidt)

Owner: changed from macports-tickets@… to ryandesign
Status: newaccepted

Working on it...

comment:28 Changed 3 years ago by EJFielding (Eric Fielding)

Cc: EJFielding added

comment:29 Changed 3 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.

Note: See TracTickets for help on using tickets.