Bug 133934 - acroread won't start due to expr: syntax error
Bug#: 133934 Product:  Gentoo Linux Version: 2006.0 Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: printing@gentoo.org Reported By: wuno@lsvw.de
Component: Applications
URL: 
Summary: acroread won't start due to expr: syntax error
Keywords:  
Status Whiteboard: 
Opened: 2006-05-21 03:36 0000
Description:   Opened: 2006-05-21 03:36 0000
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 From Walter Meinl 2006-05-21 03:36:40 0000 -------
Created an attachment (id=87183) [details]
emerge --info

------- Comment #2 From Walter Meinl 2006-05-21 03:38:02 0000 -------
Created an attachment (id=87184) [details]
patch with double quotes for $version etc.

------- Comment #3 From Walter Meinl 2006-05-21 03:41:41 0000 -------
Created an attachment (id=87185) [details]
patch for acroread-7.0.5-r2.ebuild

------- Comment #4 From Walter Meinl 2006-05-21 03:42:50 0000 -------
Created an attachment (id=87186) [details]
patch for acroread-7.0.5-r3.ebuild

------- Comment #5 From Walter Meinl 2006-05-22 23:19:23 0000 -------
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 From Stefan Schweizer 2006-06-17 19:43:02 0000 -------
thanks I added the patch to the masked 7.0.8 ebuild.

------- Comment #7 From Walter Meinl 2006-07-10 11:34:28 0000 -------
(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.