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

Bug 335294

Summary: net-misc/memcached: Make init.d script confirm to POSIX
Product: Gentoo Linux Reporter: Kai Krakow <hurikhan77+bgo>
Component: [OLD] ServerAssignee: Robin Johnson <robbat2>
Status: RESOLVED FIXED    
Severity: normal CC: gentoo
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Kai Krakow 2010-08-30 17:22:49 UTC
To use dash as the default-sh for booting baselayout-2, memcached's init script needs to conform to POSIX and remove the following bashisms:

The tests in lines 7+8 can be replaced by replacing the [[..]] syntax with a call to "test" which is a builtin in dash, and falls back to a binary otherwise:

test -z "${PIDBASE}" && PIDBASE="/var/run/memcached/memcached"
test "${CONF}" = "memcached" && CONF=''


Reproducible: Always
Comment 1 Chris Reffett (RETIRED) gentoo-dev Security 2012-12-25 03:23:24 UTC
*** Bug 448252 has been marked as a duplicate of this bug. ***
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2012-12-25 07:05:44 UTC
It's posix already
Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2012-12-25 07:05:49 UTC
bah