FS#46405 - [checkupdates] Fails with some locales

Attached to Project: Pacman
Opened by Alad Wenter (Alad) - Wednesday, 23 September 2015, 00:50 GMT
Last edited by Allan McRae (Allan) - Saturday, 28 November 2015, 23:12 GMT
Task Type Bug Report
Category General
Status Closed
Assigned To Allan McRae (Allan)
Architecture All
Severity Medium
Priority Normal
Reported Version 4.2.1
Due in Version 5.0.0
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Summary and Info:

With some locales (in particular, nl_NL.UTF-8), the fakeroot call in checkupdates will fail with "getopt: invalid option". See:

https://aur.archlinux.org/packages/tkpacman/

From IRC, why this happens:

02:41 < agregory> alad: fakeroot is stupid
https://alioth.debian.org/plugins/scmgit/cgi-bin/gitweb.cgi?p=fakeroot/fakeroot.git;f=scripts/fakeroot.in;hb=HEAD#l46
02:42 < agregory> the output of `getopt --version` is translated...
02:43 < agregory> and apparently in certain locales does not match the format they expect for their test

A workaround is to use:

fakeroot -- pacman -Sy --dbpath "$CHECKUPDATES_DB" --logfile /dev/null &> /dev/null

instead of:

fakeroot pacman -Sy --dbpath "$CHECKUPDATES_DB" --logfile /dev/null &> /dev/null
This task depends upon

Closed by  Allan McRae (Allan)
Saturday, 28 November 2015, 23:12 GMT
Reason for closing:  Fixed
Additional comments about closing:  git commit 0ee1beca12f607

Loading...