Skip to content

Instantly share code, notes, and snippets.

@LevitatingBusinessMan
Created January 6, 2020 23:31
Show Gist options
  • Select an option

  • Save LevitatingBusinessMan/e3eef57edfcbf6e65045494be4c67c85 to your computer and use it in GitHub Desktop.

Select an option

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