Bug 7514

Summary: Отсутствует зависимость от getopt
Product: Sisyphus Reporter: Yauhen Kharuzhy <y.kharuzhy>
Component: alternativesAssignee: placeholder <placeholder>
Status: CLOSED FIXED QA Contact: qa-sisyphus
Severity: major    
Priority: P3 CC: at, glebfm, ldv, placeholder
Version: unstable   
Hardware: all   
OS: Linux   

Description Yauhen Kharuzhy 2005-07-29 11:41:09 MSD
/usr/bin/alternatives-upgrade использует getopt, но пакет alternatives не
зависит от пакета getopt.
Steps to Reproduce:
1. (Делалось в scratchbox) Установить на чистую систему пакеты setup,
interactivesystem.
2. apt-get install gcc3.4
3.
Actual Results:  
gcc3.4                   ########################################### [ 72%]
/usr/bin/alternatives-upgrade: line 1: getopt: command not found
Usage: alternatives-upgrade [options] 

The alternatives-upgrade program converts alternatives config files from old
format (XML based) to new.
This utility process only files from /etc/alternatives/packages.d directory.

Valid options are:
  -h, --help    display help screen
  -v, --version display version information
                                     
Report bugs to <inger@altlinux.org>
/usr/bin/alternatives-install: line 1: getopt: command not found
Usage: alternatives-install [options] <configs..>
.....
Comment 1 Dmitry V. Levin 2005-10-15 02:38:55 MSD
Стас, и правда есть проблема:

$ rpmquery -l alternatives |fgrep bin/ |xargs -r grep -w getopt
/usr/bin/alternatives-auto:TEMP=`getopt -n $PROG -o h,v -l help,version -- "$@"`
|| print_usage
/usr/bin/alternatives-config:TEMP=`getopt -n $PROG -o h,v -l help,version --
"$@"` || print_usage
/usr/bin/alternatives-display:TEMP=`getopt -n $PROG -o h,v -l help,version --
"$@"` || print_usage
/usr/bin/alternatives-install:TEMP=`getopt -n $PROG -o h,v -l help,version --
"$@"` || print_usage
/usr/bin/alternatives-list:TEMP=`getopt -n $PROG -o h,v -l help,version -- "$@"`
|| print_usage
/usr/bin/alternatives-manual:TEMP=`getopt -n $PROG -o h,v -l help,version --
"$@"` || print_usage
/usr/bin/alternatives-uninstall:TEMP=`getopt -n $PROG -o h,v -l help,version --
"$@"` || print_usage
/usr/bin/alternatives-update:TEMP=`getopt -n $PROG -o h,v,g -l
help,version,ignore -- "$@"` || print_usage
/usr/bin/alternatives-upgrade:TEMP=`getopt -n $PROG -o h,v -l help,version --
"$@"` || print_usage
/usr/bin/alternatives-validate:TEMP=`getopt -n $PROG -o h,v -l help,version --
"$@"` || print_usage
/usr/sbin/alternatives-update:TEMP=`getopt -n $PROG -o h,v,g -l
help,version,ignore -- "$@"` || print_usage
Comment 2 inger@altlinux.org 2005-10-20 14:20:32 MSD
добавлено