Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 4046 - acroread-5.05-plugin/mozilla: a bug?
Summary: acroread-5.05-plugin/mozilla: a bug?
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Michael M Nazaroff (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-06-23 04:19 UTC by Andreas Waschbuesch
Modified: 2003-02-04 19:42 UTC (History)
2 users (show)

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


Attachments
path fix for Acrobat reader (gentoo-acrobat505.patch,334 bytes, patch)
2002-07-19 13:08 UTC, Mark Hazen
Details | Diff
fixed typo in the path; path is now /opt/Acrobat5, not /opt/Acrobat (gentoo-acrobat505.patch,335 bytes, patch)
2002-07-19 18:06 UTC, Mark Hazen
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Waschbuesch 2002-06-23 04:19:09 UTC
since updating to 5.05-r4 the plugin stops during loading. It won't crash
mozilla, it just stops and one can easily switch back to the "source" page.

Is this a bug or just me?
Comment 1 Avi Schwartz 2002-07-03 13:20:50 UTC
In my case, when acroread starts, the last thing I see is the splash screen
after which Mozilla (and acroread) hang and have to be killed.
Comment 2 Michael M Nazaroff (RETIRED) gentoo-dev 2002-07-09 20:31:37 UTC
acroread has a major tmp directory root exploit so it needs to be updated.
Comment 3 Mark Hazen 2002-07-18 14:06:18 UTC
This same problem happens with Galeon (which uses the mozilla core), requires a
kill -9 to get rid of. A temporary workaround is to move nppdf.so out of
/usr/lib/mozilla/plugins; at least this keeps you from inadvertently crashing
your browser.
Comment 4 Mark Hazen 2002-07-19 13:08:04 UTC
Created attachment 2395 [details, diff]
path fix for Acrobat reader

fixes Acrobat reader plug-in crashes
works on the 'built' tree; it's a script correction
Comment 5 Mark Hazen 2002-07-19 13:11:33 UTC
Solved. The package uses a security wrapper, but unfortunately the path to the
"real" acroread start script wasn't fixed in the wrapper.

I've posted the patch at http://www.markh.com/gentoo-acrobat505.patch for those
interested, and attached it to this bug report (previous comment).
                                                              
To apply: *after* acrobat has been emerge'ed, change to the parent directory
above the Acrobat5 install directory (if  you have it installed already, cd to
/opt)  and run the following command:

 patch -p0 <gentoo-acrobat505.patch
Comment 6 Mark Hazen 2002-07-19 18:06:55 UTC
Created attachment 2406 [details, diff]
fixed typo in the path; path is now /opt/Acrobat5, not /opt/Acrobat
Comment 7 Mark Hazen 2002-07-19 18:27:45 UTC
Okay, I've tried this *twice* to make sure I got it right. 

First of all, I made a typo (oops, sorry) inthe patch; the path is Acrobat5, not
Acrobat. The second file above is the fixed one.

There was a *second* bug in the mix... this being that the elements in
/opt/Acrobat5/Readers/intellinux/plug_ins (like everything else) get stripped.
Unfortunately, this breaks ewh.api in that directory, beyond repair.

*SO*... what you need to do in order to get a working Acrobat Reader under
Mozilla and/or Galeon is...

1. emerge acroread

2. put an *unstripped* version of ewh.api into
/opt/Acrobat5/Reader/intellinux/plug_ins; You can download one from me at
http://www.markh.com/ewh.api or, if you prefer, get the Acrobat Reader tarball
from Adobe, run the ./INSTALL and give it /tmp/Acrobat5 as an install directory,
and copy /tmp/Acrobat5/Reader/intellinux/plug_ins/ewh.api to
/opt/Acrobat5/Reader/intellinux/plug_ins/ 

3. change to /opt, and apply the second patch above via 'patch -p0
<gentoo-acrobat505.patch'  -or-  edit /opt/Acrobat/acroread by hand (it's a
script) and change
  $PROG = '/usr/share/Acrobat/505/bin/acroread.real';
to 
  $PROG = '/opt/Acrobat5/bin/acroread.real';
..in the third line.

4. You need a link in your path to acroread for the plugin to work, so type:
  ln -s /opt/Acrobat/acroread /usr/local/bin/acroread

Everything should work for you now. 

One other note... if you've already tried reading a pdf in your browser, make
*sure* you kill -9 any stuck acroread's hanging around before doing the above.
If you don't, and you still have acroread processes stuck in the background, you
won't be able to get it to work.

Cheers, and hope this helps... -mh.
Comment 8 Michael M Nazaroff (RETIRED) gentoo-dev 2002-08-05 00:53:00 UTC
Would you be interested in turning this into a ebuild.. ?
Comment 9 Mark Hazen 2002-08-05 14:28:05 UTC
Sounds like a plan. I will work on it tonight or tomorrow, as time permits. 

Comment 10 Seemant Kulleen (RETIRED) gentoo-dev 2002-08-13 22:17:21 UTC
Thanks for the bug fix Mark.  Updated in portage.
Comment 11 Mark Hazen 2002-08-28 10:49:31 UTC
I *heart* Seemant :)

Many thanks for taking over this, Seemant... RealLife(TM) has been really nuts
as of late, and I did not get to the ebuild as intended.