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

Bug 609070

Summary: [TRACKER] Non-POSIX init scripts
Product: Gentoo Linux Reporter: Andrew Savchenko <bircoph>
Component: Current packagesAssignee: Andrew Savchenko <bircoph>
Status: CONFIRMED ---    
Severity: normal CC: kfm, mgorny
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=526268
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 646546, 836690, 836791, 840248, 841251, 841431, 841587, 841800, 843305, 843689, 843692, 844001, 844178, 846668, 847214, 848708, 848732, 848915, 849227, 849257, 849260, 849275, 849281, 849284, 849287, 849329, 849443, 849446, 850319, 850322, 851813, 851825, 852062, 852068, 852293, 852716, 852719, 335298, 340175, 506522, 597914, 609112, 609118, 609132, 609134, 609146, 620818, 646548, 655468, 836614, 836701, 837383, 838844, 840457, 840945, 841428, 841794, 843848, 844976, 845297, 845300, 848474, 849263, 849269, 850577, 852077, 852080, 855464, 860309, 863776, 872476    
Bug Blocks:    

Description Andrew Savchenko gentoo-dev 2017-02-12 10:33:17 UTC
Baselayout-2 requires init scripts to be POSIX compatible:
https://wiki.gentoo.org/wiki/OpenRC/Baselayout_1_to_2_migration#Why_migrate.3F

Aside from following standard this will make our dash/posh/mksh users happy. Since dash is quite fast it is reasonable to use it as /bin/sh for OpenRC users.

Not all ebuils follow this, the most common mistakes are bashisms like:
[[ ]] and ==
These are easy to fix.

Some problems are more complicated, like arrays.

Please fix your scripts.

This tracker is intended to monitor and fix ebuilds with non-POSIX init scripts.