Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 253178 - sys-apps/xinetd-2.3.14: /etc/init.d/xinetd uses non-POSIX 'declare' bashism
Summary: sys-apps/xinetd-2.3.14: /etc/init.d/xinetd uses non-POSIX 'declare' bashism
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-30 19:30 UTC by Erik Hahn
Modified: 2008-12-31 09:06 UTC (History)
0 users

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 Erik Hahn 2008-12-30 19:30:06 UTC
Having /bin/sh linked to dash I see this on every boot after "Starting Xinetd":

/lib/rc/sh/runscript.sh: 187: declare: not found

There aren't any apparent problems, though. Changing the shebang to
#!/bin/bash fixes it.
Comment 1 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2008-12-30 20:48:47 UTC
/lib/rc/sh/runscript.sh doesn't contain any 'declare'.

Please reopen with the output of `emerge --info` and `emerge -ptv baselayout openrc`.
Comment 2 Erik Hahn 2008-12-30 22:15:10 UTC
It's obviously Xinetd's init script that does contain declare

sys-apps/xinetd 2.3.14
Comment 3 SpanKY gentoo-dev 2008-12-31 09:06:46 UTC
the declare magic in use to sanitize the env shouldnt really be needed anymore as ssd/openrc does it for us now

http://sources.gentoo.org/sys-apps/xinetd/files/xinetd.rc6?r1=1.19&r2=1.20