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: Gentoo Quality Assurance Team
URL:
Whiteboard:
Keywords:
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
Blocks:
  Show dependency tree
 
Reported: 2017-02-12 10:33 UTC by Andrew Savchenko
Modified: 2024-03-12 07:44 UTC (History)
1 user (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.