Bug 650134 - LANG variable affects mock output and return codes
Summary: LANG variable affects mock output and return codes
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: mock
Version: 14
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
Assignee: Clark Williams
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-11-05 10:47 UTC by Rasmus Ory Nielsen
Modified: 2013-01-10 06:19 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-08-16 21:22:01 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Rasmus Ory Nielsen 2010-11-05 10:47:11 UTC
User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; da-DK; rv:1.9.2.12) Gecko/20101027 Fedora/3.6.12-1.fc13 Firefox/3.6.12

When running mock I noticed that the LANG variable affects the output and the return codes from mock. See below for examples where --installdeps and --rebuild are running with LANG=C and LANG=da_DK.utf8 respectively.

Reproducible: Always

Steps to Reproduce:
1. Change LANG variable to e.g. da_DK.utf8
2. Run mock --rebuild or mock --installdeps on a package with missing buildreq
3. Compare output/return codes when run with LANG=C
Actual Results:  
$ echo $LANG
da_DK.utf8

--installdeps

$ LANG=C mock -q -r fedora-14-x86_64 --installdeps ~/fastx_toolkit-0.0.13-4.fc13.src.rpm && echo DONE
ERROR: Bad build req: No Package Found for libgtextutils-devel. Exiting.

$ mock -q -r fedora-14-x86_64 --installdeps ~/fastx_toolkit-0.0.13-4.fc13.src.rpm && echo DONE
DONE


--rebuild

$ LANG=C mock -q -r fedora-14-x86_64 --rebuild ~/fastx_toolkit-0.0.13-4.fc13.src.rpm && echo DONE
ERROR: Exception(/home/rasmuson/fastx_toolkit-0.0.13-4.fc13.src.rpm) Config(fedora-14-x86_64) 0 minutes 25 seconds
ERROR: Bad build req: No Package Found for libgtextutils-devel. Exiting.


$ mock -q -r fedora-14-x86_64 --rebuild ~/fastx_toolkit-0.0.13-4.fc13.src.rpm && echo DONE
ERROR: Exception(/home/rasmuson/fastx_toolkit-0.0.13-4.fc13.src.rpm) Config(fedora-14-x86_64) 0 minutes 32 seconds
ERROR: Command failed. See logs for output.
 # ['bash', '--login', '-c', 'rpmbuild -bb --target x86_64 --nodeps builddir/build/SPECS/fastx_toolkit.spec']


Expected Results:  
The same output as when running with LANG=C

I have only tested --rebuild and --installdeps

Comment 1 Fedora Admin XMLRPC Client 2011-03-11 18:10:15 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 2 Fedora End Of Life 2012-08-16 21:22:04 UTC
This message is a notice that Fedora 14 is now at end of life. Fedora 
has stopped maintaining and issuing updates for Fedora 14. It is 
Fedora's policy to close all bug reports from releases that are no 
longer maintained.  At this time, all open bugs with a Fedora 'version'
of '14' have been closed as WONTFIX.

(Please note: Our normal process is to give advanced warning of this 
occurring, but we forgot to do that. A thousand apologies.)

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, feel free to reopen 
this bug and simply change the 'version' to a later Fedora version.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we were unable to fix it before Fedora 14 reached end of life. If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora, you are encouraged to click on 
"Clone This Bug" (top right of this page) and open it against that 
version of Fedora.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping


Note You need to log in before you can comment on or make changes to this bug.