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

Bug 527566

Summary: www-servers/uwsgi - bashisms in /etc/init.d/uwsgi
Product: Gentoo Linux Reporter: Philipp Riegger <bugs+gentoo>
Component: [OLD] ServerAssignee: Ultrabug <ultrabug>
Status: RESOLVED FIXED    
Severity: normal CC: alecm, python
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 526268    

Description Philipp Riegger 2014-10-31 09:14:05 UTC
Using '[ "$foo" == "bar" ]' should not be used in a portable shell script, replace the == with = please.

Reproducible: Always

Steps to Reproduce:
1. Have the uwsgi init script installed an in a runlevel.
2. Run "rc" or "rc-service uwsgi.foo restart".

Actual Results:  
I get an error: '/lib/rc/sh/gendepends.sh: 10: [: uwsgi.moin: unexpected operator'

Expected Results:  
There should be no error.

I use dash for /bin/sh.
Comment 1 Ultrabug gentoo-dev 2014-11-05 11:07:23 UTC
Thanks Philipp, it's fixed in tree :)

+*uwsgi-2.0.8-r1 (05 Nov 2014)
+
+  05 Nov 2014; Ultrabug <ultrabug@gentoo.org> +uwsgi-2.0.8-r1.ebuild,
+  +files/uwsgi.initd-r4:
+  init script enable emperor in app mode thx to Stefan Talpalaru fix #528136,
+  remove bashism thx to Philipp Riegger fix #527566
+