Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 335294 - net-misc/memcached: Make init.d script confirm to POSIX
Summary: net-misc/memcached: Make init.d script confirm to POSIX
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
: 448252 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-08-30 17:22 UTC by Kai Krakow
Modified: 2012-12-25 07:05 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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