[Bug 1290069] Re: Bad identification of getopt in /usr/bin/fakeroot-sysv with some translations
Sam Segers
sam.sgrs at gmail.com
Thu May 22 10:15:12 UTC 2014
It's fixed now on Utopic
Thanks
Op 21-mei-2014 12:01 schreef "Launchpad Bug Tracker" <
1290069 at bugs.launchpad.net>:
> This bug was fixed in the package fakeroot - 1.20-3ubuntu3
>
> ---------------
> fakeroot (1.20-3ubuntu3) utopic; urgency=medium
>
> * New patch, getopt-gnu-test, use "getopt -T" to test for GNU getopt
> rather
> than parsing the --version output which is locale specific; LP:
> #1290069.
> -- Loic Minier <loic.minier at ubuntu.com> Tue, 20 May 2014 15:10:08 +0200
>
> ** Changed in: fakeroot (Ubuntu)
> Status: Fix Committed => Fix Released
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1290069
>
> Title:
> Bad identification of getopt in /usr/bin/fakeroot-sysv with some
> translations
>
> Status in “fakeroot” package in Ubuntu:
> Fix Released
>
> Bug description:
> When running fakeroot in a Dutch enviroment, It fails to identify some
> arguments like --version with:
> "getopt: onbekende optie '--version'
> fakeroot, create a fake root environment.
> usage: fakeroot [-l|--lib fakerootlib] [-f|--faked fakedbin]
> [-i file] [-s file] [-u|--unknown-is-real]
> [-b|--fd-base fd] [-h|--help] [-v|--version]
> [--] [command]"
>
> This happens because of line 46 in the fakeroot-sysv script.
> In English the command 'getopt --version' returns "getopt from
> util-linux 2.20.1" but in Dutch it returns "'getopt' uit util-linux 2.20.1"
> (with the " ' " 's)
>
> The following gets bad interpreted:
>
> 46 GETOPTEST=`getopt --version`
> 47 case $GETOPTEST in
> 48 getopt*) # GNU getopt
> 49 FAKE_TEMP=`getopt -l lib: -l faked: -l unknown-is-real -l
> fd-base: -l ve rsion -l help -- +l:f:i:s:ub:vh "$@"`
> 50 ;;
> 51 *) # POSIX getopt ?
> 52 FAKE_TEMP=`getopt l:f:i:s:ub:vh "$@"`
> 53 ;;
> 54 esac
>
> The POSIX getopt ? case is followed and fakeroot doesn't work as
> intended.
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/ubuntu/+source/fakeroot/+bug/1290069/+subscriptions
>
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to fakeroot in Ubuntu.
https://bugs.launchpad.net/bugs/1290069
Title:
Bad identification of getopt in /usr/bin/fakeroot-sysv with some
translations
Status in “fakeroot” package in Ubuntu:
Fix Released
Bug description:
When running fakeroot in a Dutch enviroment, It fails to identify some arguments like --version with:
"getopt: onbekende optie '--version'
fakeroot, create a fake root environment.
usage: fakeroot [-l|--lib fakerootlib] [-f|--faked fakedbin]
[-i file] [-s file] [-u|--unknown-is-real]
[-b|--fd-base fd] [-h|--help] [-v|--version]
[--] [command]"
This happens because of line 46 in the fakeroot-sysv script.
In English the command 'getopt --version' returns "getopt from util-linux 2.20.1" but in Dutch it returns "'getopt' uit util-linux 2.20.1" (with the " ' " 's)
The following gets bad interpreted:
46 GETOPTEST=`getopt --version`
47 case $GETOPTEST in
48 getopt*) # GNU getopt
49 FAKE_TEMP=`getopt -l lib: -l faked: -l unknown-is-real -l fd-base: -l ve rsion -l help -- +l:f:i:s:ub:vh "$@"`
50 ;;
51 *) # POSIX getopt ?
52 FAKE_TEMP=`getopt l:f:i:s:ub:vh "$@"`
53 ;;
54 esac
The POSIX getopt ? case is followed and fakeroot doesn't work as
intended.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/fakeroot/+bug/1290069/+subscriptions
More information about the foundations-bugs
mailing list