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: Gentoo Quality Assurance Team <qa>
Status: CONFIRMED ---    
Severity: normal CC: 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, 763891, 836791, 840248, 841251, 841587, 841800, 843305, 846668, 847214, 848708, 848732, 849257, 849260, 849275, 849281, 849284, 849443, 850319, 850322, 851813, 852062, 852068, 852293, 852719, 876058, 877219, 921557, 335298, 340175, 506522, 597914, 609112, 609118, 609132, 609134, 609146, 620818, 646548, 655468, 720046, 833087, 836614, 836690, 836701, 837383, 838844, 840457, 840945, 841428, 841431, 841794, 843689, 843692, 843848, 844001, 844178, 844976, 845297, 845300, 848474, 848915, 849227, 849263, 849269, 849287, 849329, 849446, 850577, 851825, 852077, 852080, 852716, 855464, 860309, 863776, 872476, 876412, 883055, 883057, 911407, 913102, 920456, 926803    
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.