Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 133934 - acroread won't start due to expr: syntax error
Summary: acroread won't start due to expr: syntax error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-21 03:36 UTC by Walter Meinl
Modified: 2006-07-10 11:34 UTC (History)
1 user (show)

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


Attachments
emerge --info (ei,3.28 KB, text/plain)
2006-05-21 03:36 UTC, Walter Meinl
Details
patch with double quotes for $version etc. (acroread-expr.patch,959 bytes, patch)
2006-05-21 03:38 UTC, Walter Meinl
Details | Diff
patch for acroread-7.0.5-r2.ebuild (r2.ebuild.patch,388 bytes, patch)
2006-05-21 03:41 UTC, Walter Meinl
Details | Diff
patch for acroread-7.0.5-r3.ebuild (r3.ebuild.patch,806 bytes, patch)
2006-05-21 03:42 UTC, Walter Meinl
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Walter Meinl 2006-05-21 03:36:07 UTC
Maybe due to my bash (3.1_p17) / coreutils (5.95) combination I couldn't start acroread and the ff-plugin anymore. Running in an xterm I see:
expr: syntax error (repeated endlessly)
Changing language settings, downgrading coreutils to stable 5.94-r1 and acroread to 7.0.5-r1 didn't help (didn't downgrade bash though)
I then looked at the acroread script in /opt/Acrobat7 and found that several version checks done with expr had unqouted variables, while most other expressions being variables to expr where. Putting those variables in double quotes resolved the problem, acroread and plugin are fine again.
Patch for acroread script will be attached.

emerge --info attached also
Comment 1 Walter Meinl 2006-05-21 03:36:40 UTC
Created attachment 87183 [details]
emerge --info
Comment 2 Walter Meinl 2006-05-21 03:38:02 UTC
Created attachment 87184 [details, diff]
patch with double quotes for $version etc.
Comment 3 Walter Meinl 2006-05-21 03:41:41 UTC
Created attachment 87185 [details, diff]
patch for acroread-7.0.5-r2.ebuild
Comment 4 Walter Meinl 2006-05-21 03:42:50 UTC
Created attachment 87186 [details, diff]
patch for acroread-7.0.5-r3.ebuild
Comment 5 Walter Meinl 2006-05-22 23:19:23 UTC
upgrading coreutils to 5.96 didn't solve the problems with the portage acroread-7.0.5-r2 and -r3 ebuilds. The patch is still needed.
Comment 6 Stefan Schweizer (RETIRED) gentoo-dev 2006-06-17 19:43:02 UTC
thanks I added the patch to the masked 7.0.8 ebuild.
Comment 7 Walter Meinl 2006-07-10 11:34:28 UTC
(In reply to comment #6)
> thanks I added the patch to the masked 7.0.8 ebuild.
> 

Stefan, I feel bad, cause now after upgrading to binutils-2.17 (no more LDFLAG -Wl,Bdirect) and coreutils-5.97 the 7.0.5-r3 ebuild works again w/o the patch.
So, maybe http://bugs.gentoo.org/attachment.cgi?id=87186 isn't needed anymore (probably won't hurt anyway if it's applied). Sorry for the noise.