[Bug 1290069] Re: Bad identification of getopt in /usr/bin/fakeroot-sysv with some translations

Sam Segers sam.sgrs at gmail.com
Sun Mar 9 17:33:31 UTC 2014


Temporary/hacky solution is to add:
GETOPTEST="getopt"
after line 46

-- 
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:
  New

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