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

Bug 335298

Summary: media-sound/mt-daapd: fix bashism in init.d script
Product: Gentoo Linux Reporter: Kai Krakow <hurikhan77+bgo>
Component: Current packagesAssignee: Gentoo Sound Team <sound>
Status: RESOLVED FIXED    
Severity: normal CC: bircoph
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 609070    
Attachments: mt-daapd.init.2.patch

Description Kai Krakow 2010-08-30 17:30:40 UTC
Replace "if [[...]]" by "if [...]" to make the script work with non-bash shells (eg dash used as default-sh in baselayout-2) and make it conform to POSIX. This affects line 15 and 20.

Reproducible: Always
Comment 1 Andrew Savchenko gentoo-dev 2017-02-12 12:41:17 UTC
Created attachment 463432 [details, diff]
mt-daapd.init.2.patch

Fix is trivial, will commit in two weeks if there are no objections.
Comment 2 Alexis Ballier gentoo-dev 2017-02-12 12:48:25 UTC
(In reply to Andrew Savchenko from comment #1)
> Created attachment 463432 [details, diff] [details, diff]
> mt-daapd.init.2.patch
> 
> Fix is trivial, will commit in two weeks if there are no objections.

go ahead, thx :)