Bug 7514 - Отсутствует зависимость от getopt
Summary: Отсутствует зависимость от getopt
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: alternatives (show other bugs)
Version: unstable
Hardware: all Linux
: P3 major
Assignee: placeholder@altlinux.org
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-29 11:41 MSD by Yauhen Kharuzhy
Modified: 2005-10-20 14:20 MSD (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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
добавлено