Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 112667 - gaim-latex does not work
Summary: gaim-latex does not work
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo Net-im project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-15 21:53 UTC by Chris Eagan
Modified: 2006-07-06 09:13 UTC (History)
4 users (show)

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


Attachments
Patch to get gaim latex working on gaim-2.0.0-beta2 (gaim-latex-gaim2.patch,6.76 KB, patch)
2006-04-06 10:06 UTC, Milan Plzik
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Eagan 2005-11-15 21:53:16 UTC
gaim-latex-0.3-r1 seems to install correct, but when attempting to use the
plugin, it shows only a no-image image in place of where the content image
should go.

I'm not sure how to provide any extra useful information for this. I have tested
the plugin on both an amd64 machine, and dual-x86.
Comment 1 Don Seiler (RETIRED) gentoo-dev 2005-11-17 08:12:05 UTC
I think this bug might be upstream.  Another user pointed this out.  Can you
check with the gaim-latex author?
Comment 2 Nathan Goldstick 2005-12-06 23:03:39 UTC
(In reply to comment #0)
> gaim-latex-0.3-r1 seems to install correct, but when attempting to use the
> plugin, it shows only a no-image image in place of where the content image
> should go.
> 
> I'm not sure how to provide any extra useful information for this. I have tested
> the plugin on both an amd64 machine, and dual-x86.

It sortof works for me. The file LaTeX.so is installed by gaim-latex, but it
seems to be installed in a location - /usr/lib - where gaim can't find it. When
I create a link to it in /usr/lib/gaim (ln -sv /usr/lib/LaTeX.so
/usr/lib/gaim/LaTeX.so), it shows up in gaim (Tools->Preferences->Plugins). When
I enable the plugin and IM myself LaTeX commands, and they are correctly
interpreted. No one else seems to be able to recieve the images, but I havn't
tried with anyone else who uses the plugin.
Comment 3 Patrik Marschalik 2006-01-21 04:08:08 UTC
(In reply to comment #0)
> gaim-latex-0.3-r1 seems to install correct, but when attempting to use the
> plugin, it shows only a no-image image in place of where the content image
> should go.

A few months ago gaim-latex-0.3-r1 works great, but now I have the same problem with the no-image image. LaTeX.so is in /usr/lib/gaim. I have no idea why it doesn't work at once any more.
Comment 4 Jonatan Åkerlind 2006-02-01 13:36:23 UTC
(In reply to comment #0)
> gaim-latex-0.3-r1 seems to install correct, but when attempting to use the
> plugin, it shows only a no-image image in place of where the content image
> should go.
> 
> I'm not sure how to provide any extra useful information for this. I have tested
> the plugin on both an amd64 machine, and dual-x86.

I also have this problem on my new computer, but it used to work with the same versions on my old one. I tried commenting out the line which removes the latex and image files in the gaim-latex source, and it turns out that the PNG-file is created correctly (I can view it with xview). The problem must be when the image is inserted into the IM window. 
Comment 5 mambro 2006-03-05 12:04:00 UTC
I've the same problem, too. It could be a problem with new versions of gaim?
Comment 6 Hypnos 2006-03-22 22:27:36 UTC
(In reply to comment #5)
> I've the same problem, too. It could be a problem with new versions of gaim?
> 

This appears to be the case.  The image is being prepared properly in /tmp/gaimLaTeX.png, but it's not being shown in the chat window.
Comment 7 Raphael 2006-03-30 01:33:07 UTC
I have just installed gaim-latex 0.3-r1 and I have exactly the same problem.

Any fix/workaround very much appreciated!

Raphael
Comment 8 Milan Plzik 2006-04-06 10:06:01 UTC
Created attachment 84071 [details, diff]
Patch to get gaim latex working on gaim-2.0.0-beta2
Comment 9 Milan Plzik 2006-04-06 10:07:44 UTC
Comment on attachment 84071 [details, diff]
Patch to get gaim latex working on gaim-2.0.0-beta2

(In reply to comment #7)
> I have just installed gaim-latex 0.3-r1 and I have exactly the same problem.
> 
> Any fix/workaround very much appreciated!
> 
> Raphael
> 

I think I fixed this bug; the problem is that gaim catches the SIGCHLD, so the 'system' call isn't able to execute properly. I wrote a small patch, but it works only for beta2 (I've had no time to port it to beta3 yet), but it also contains a small modification - latex-over-irc :-). The patch is basically an ugly hack, please, if anyone knows about more systematic solution, use that instead.
Comment 10 Jonatan Åkerlind 2006-04-14 09:55:13 UTC
(In reply to comment #9)

> I think I fixed this bug; the problem is that gaim catches the SIGCHLD, so the
> 'system' call isn't able to execute properly. I wrote a small patch, but it
> works only for beta2 (I've had no time to port it to beta3 yet), ...

I just tried it with gaim-2.0.0_beta3 and it seams to work for me. Thanks for the fix!
I did encounter some problems though because of some reason I missed some of gaim's include files. The solution was to unpack the gaim source and copy the missing files to /usr/include/gaim/

ebuild /usr/portage/net-im/gaim/gaim-2.0.0_beta3.ebuild unpack
cp /var/tmp/portage/gaim-2.0.0_beta3/work/gaim-2.0.0beta3/src/internal.h /usr/include/gaim/
cp /var/tmp/portage/gaim-2.0.0_beta3/work/gaim-2.0.0beta3/src/prefix.h /usr/include/gaim/
Comment 11 Jonatan Åkerlind 2006-04-14 10:35:32 UTC
I spoke too soon. What does work: LaTeX runs when it finds the $$ ... $$ code, but the image is only inserted on incoming messages. Outgoing messages containing the $$ ... $$ are sent, but not displayd at all at the sender. 
Comment 12 Pietro Franchi 2006-05-27 14:02:44 UTC
Can you try the new rewrite on the CVS? http://gaim-latex.cvs.sourceforge.net/gaim-latex/gaim-latex-0.2/
The code is much neater, and it works very well for me on gaim 1.5.0
Comment 13 Pietro Franchi 2006-05-28 06:24:21 UTC
I spoke with the autor, that released today version 0.4. This version solves this bug. 

Just bumping the ebuild works, I've tested both sending and receiving in gaim-1.5.0 on x86 and this bug has gone.
Comment 14 Kathryn Kulick (RETIRED) gentoo-dev 2006-07-06 06:00:10 UTC
0.4 has been added to the tree, will mark as stable if in 30 days no bug is filed
Comment 15 xiaoping Gao 2006-07-06 09:13:26 UTC
(In reply to comment #14)
> 0.4 has been added to the tree, will mark as stable if in 30 days no bug is
> filed
> 
0.4 didn't work on my gaim-1.5.0, the files under /tmp are
"gaimTeX.aux  gaimTeX.dvi  gaimTeX.log  gaimTeX.ps  gaimTeX.tex"
It seems work, but cannot see any pictures in the IM conversation window