hooks/pre-configure/install-wrapper: also drop -o/-g, they break in xbps-uunshare environments.
This commit is contained in:
parent
6a547353eb
commit
964c0e2b4e
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# install-wrapper - run install(1), but never strip
|
# install-wrapper - run install(1), but never strip or chown
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
# taken from install (GNU coreutils) 8.23
|
# taken from install (GNU coreutils) 8.23
|
||||||
|
@ -8,7 +8,7 @@ longopts='backup::,compare,directory,group:,mode:,owner:,preserve-timestamps,\
|
||||||
strip:,strip-program:,suffix:,target-directory:,no-target-directory,verbose,\
|
strip:,strip-program:,suffix:,target-directory:,no-target-directory,verbose,\
|
||||||
preserve-context,context::,help,version'
|
preserve-context,context::,help,version'
|
||||||
|
|
||||||
parsed="$(getopt -o "$opts" --long "$longopts" -n 'install(wrapper)' -- "$@")"
|
parsed="$(getopt -o "$opts" --long "$longopts" -n 'install-wrapper' -- "$@")"
|
||||||
eval set -- "$parsed"
|
eval set -- "$parsed"
|
||||||
|
|
||||||
iopts=()
|
iopts=()
|
||||||
|
@ -21,13 +21,15 @@ while :; do
|
||||||
--strip-program)
|
--strip-program)
|
||||||
echo "install-wrapper: dropping strip program '$2'." 1>&2
|
echo "install-wrapper: dropping strip program '$2'." 1>&2
|
||||||
shift 2;;
|
shift 2;;
|
||||||
|
-g|--group|-o|--owner)
|
||||||
|
echo "install-wrapper: dropping option $1 $2." 1>&2
|
||||||
|
shift 2;;
|
||||||
-b|-c|-C|--compare|-d|--directory|-D|-p|--preserve-timestamps|\
|
-b|-c|-C|--compare|-d|--directory|-D|-p|--preserve-timestamps|\
|
||||||
-T|--no-target-directory|-v|--verbose|--preserve-context|-Z|\
|
-T|--no-target-directory|-v|--verbose|--preserve-context|-Z|\
|
||||||
--help|--version)
|
--help|--version)
|
||||||
iopts+=("$1")
|
iopts+=("$1")
|
||||||
shift;;
|
shift;;
|
||||||
-g|--group|-m|--mode|-o|--owner|-S|--suffix|-t|--target-directory|\
|
-m|--mode|-S|--suffix|-t|--target-directory|--backup|--context)
|
||||||
--backup|--context)
|
|
||||||
iopts+=("$1" "$2")
|
iopts+=("$1" "$2")
|
||||||
shift 2;;
|
shift 2;;
|
||||||
--)
|
--)
|
||||||
|
|
Loading…
Reference in New Issue