Created
January 6, 2020 23:31
-
-
Save LevitatingBusinessMan/e3eef57edfcbf6e65045494be4c67c85 to your computer and use it in GitHub Desktop.
Fakeroot util-linux dependency fix (make fakeroot run without getopt from util-linux)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 46,51c46,51 | |
| < GETOPTTEST=`getopt -T` | |
| < if test "$?" -eq 4; then # GNU getopt | |
| < FAKE_TEMP=`getopt -l lib: -l faked: -l unknown-is-real -l fd-base: -l version -l help -- +l:f:i:s:ub:vh "$@"` | |
| < else | |
| < FAKE_TEMP=`getopt l:f:i:s:ub:vh "$@"` | |
| < fi | |
| --- | |
| > #GETOPTTEST=`getopt -T` | |
| > #if test "$?" -eq 4; then # GNU getopt | |
| > # FAKE_TEMP=`getopt -l lib: -l faked: -l unknown-is-real -l fd-base: -l version -l help -- +l:f:i:s:ub:vh "$@"` | |
| > #else | |
| > # FAKE_TEMP=`getopt l:f:i:s:ub:vh "$@"` | |
| > #fi | |
| 57c57 | |
| < eval set -- "$FAKE_TEMP" | |
| --- | |
| > #eval set -- "$FAKE_TEMP" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment