Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 609070 - [TRACKER] Non-POSIX init scripts
Summary: [TRACKER] Non-POSIX init scripts
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Andrew Savchenko
URL:
Whiteboard:
Keywords:
Depends on: 646546 836690 836791 840248 840945 841251 841431 841587 841794 841800 843305 843689 843692 844001 844178 846668 847214 848708 848732 848915 849227 849257 849260 849269 849275 849281 849284 849287 849329 849443 849446 850319 850322 851813 851825 852062 852068 852293 852716 852719 860309 335298 340175 506522 597914 609112 609118 609132 609134 609146 620818 646548 655468 836614 836701 837383 838844 840457 841428 843848 844976 845297 845300 848474 849263 850577 852077 852080 855464 863776
Blocks:
  Show dependency tree
 
Reported: 2017-02-12 10:33 UTC by Andrew Savchenko
Modified: 2022-08-05 10:34 UTC (History)
2 users (show)

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 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.