Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 355599

Summary: www-plugins/adobe-flash: memcpy-to-memmove.sh fails with non-bash shells
Product: Gentoo Linux Reporter: Michał Górny <mgorny>
Component: New packagesAssignee: Jim Ramsay (lack) (RETIRED) <lack>
Status: RESOLVED DUPLICATE    
Severity: normal CC: desktop-misc, spatz
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2011-02-19 17:46:18 UTC
The included script carries /bin/sh shebang, though it doesn't work with dash. This is due to:

	trap "rm -f $TEMP_OUTPUT" ERR

Where ERR is a ksh-specific extension. I'd suggest using EXIT instead.

'echo -n' & 'echo -ne' need to be replaced with printf too.
Comment 1 Dror Levin (RETIRED) gentoo-dev 2011-02-20 20:28:01 UTC
Also, the script is run as

  sh "${FILESDIR}/memcpy-to-memmove.sh" libflashplayer.so

So simply changing the shebang doesn't help, this line (130 in the ebuild) must be fixed to run bash instead of sh.
Comment 2 Jim Ramsay (lack) (RETIRED) gentoo-dev 2011-02-22 13:34:23 UTC

*** This bug has been marked as a duplicate of bug 354073 ***