Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1299494 - Env variables are not set for --new-chroot
Summary: Env variables are not set for --new-chroot
Keywords:
Status: CLOSED DUPLICATE of bug 1311796
Alias: None
Product: Fedora
Classification: Fedora
Component: mock
Version: 24
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Suchý
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-01-18 14:01 UTC by Vít Ondruch
Modified: 2016-06-02 14:31 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-06-02 14:31:31 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Vít Ondruch 2016-01-18 14:01:15 UTC
Description of problem:
$ cat /etc/mock/cucos.cfg | grep RUBYOPT
config_opts['environment']['RUBYOPT'] = '-I/builddir/gem-cucos/lib/'

$ mock -r cucos shell --old-chroot
<mock-chroot>sh-4.3# env | grep RUBYOPT
RUBYOPT=-I/builddir/gem-cucos/lib/

$ mock -r cucos shell --new-chroot
sh-4.3# env | grep RUBYOPT





Version-Release number of selected component (if applicable):
$ rpm -q mock
mock-1.2.14-1.fc24.noarch


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:
$ mock -r cucos shell --new-chroot
sh-4.3# env | grep RUBYOPT

Expected results:
$ mock -r cucos shell --new-chroot
sh-4.3# env | grep RUBYOPT
RUBYOPT=-I/builddir/gem-cucos/lib/


Additional info:

Comment 1 Vít Ondruch 2016-01-18 14:08:21 UTC
Please note that --unpriv should be reflected as well.

Comment 2 Jan Kurik 2016-02-24 14:18:07 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 24 development cycle.
Changing version to '24'.

More information and reason for this action is here:
https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora24#Rawhide_Rebase

Comment 3 Miroslav Suchý 2016-06-02 14:31:31 UTC
This has been fixed in bug 1311796

*** This bug has been marked as a duplicate of bug 1311796 ***


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