Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 525122 - net-misc/openconnect - /etc/init.d/openconnect has bashisms
Summary: net-misc/openconnect - /etc/init.d/openconnect has bashisms
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Matthew Schultz
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-12 09:56 UTC by tharvik
Modified: 2014-10-14 08:18 UTC (History)
2 users (show)

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


Attachments
emerge --info (emerge.info,15.84 KB, text/plain)
2014-10-12 09:59 UTC, tharvik
Details
emerge -pqv dash eselect-sh openconnect (emerge.info,15.84 KB, text/plain)
2014-10-12 10:00 UTC, tharvik
Details
emerge -pqv dash eselect-sh openconnect (emerge.pqv,569 bytes, text/plain)
2014-10-12 10:00 UTC, tharvik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tharvik 2014-10-12 09:56:27 UTC
By using dash as /bin/sh, openconnect fail to start (work correctly with bash).

Reproducible: Always

Steps to Reproduce:
1. emerge app-shells/dash
2. emerge app-admin/eselect-sh
2. eselect sh set 2 [if only having bash and dash]
3. rc-service openconnect.vpn0 start [or any symlink to /etc/init.d/openconnect]
Actual Results:  
openconnect        |/lib64/rc/sh/runscript.sh: 85: /etc/init.d/openconnect: Syntax error: redirection unexpected
openconnect        | * ERROR: openconnect failed to start


Expected Results:  
Launching openconnect without trouble.

There seem to be an here-doc-string on the faulty line, where dash only support here-doc-text.
Comment 1 tharvik 2014-10-12 09:59:44 UTC
Created attachment 386488 [details]
emerge --info
Comment 2 tharvik 2014-10-12 10:00:15 UTC
Created attachment 386490 [details]
emerge -pqv dash eselect-sh openconnect
Comment 3 tharvik 2014-10-12 10:00:56 UTC
Created attachment 386492 [details]
emerge -pqv dash eselect-sh openconnect
Comment 4 Matthew Schultz 2014-10-13 17:07:23 UTC
(In reply to tharvik from comment #3)
> Created attachment 386492 [details]
> emerge -pqv dash eselect-sh openconnect

There have been some changes to the init script since 4.08.  Have you tried openconnect 6.00 to see if it exhibits the same issue?
Comment 5 tharvik 2014-10-14 08:18:16 UTC
(In reply to Matthew Schultz from comment #4)
> (In reply to tharvik from comment #3)
> > Created attachment 386492 [details]
> > emerge -pqv dash eselect-sh openconnect
> 
> There have been some changes to the init script since 4.08.  Have you tried
> openconnect 6.00 to see if it exhibits the same issue?
It's working with 6.00, no more warnings.