Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 707358

Summary: Ignored option -c messages in log, when using --installroot.
Product: Red Hat Enterprise Linux 6 Reporter: Levente Farkas <lfarkas>
Component: yumAssignee: James Antill <james.antill>
Status: CLOSED ERRATA QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: high Docs Contact:
Priority: medium    
Version: 6.1CC: ksrot, mebrown, sheltren, williams
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: yum-3.2.29-18.el6 Doc Type: Bug Fix
Doc Text:
Prior to this update, running a yum command with the "--installroot" command line option caused it to report the following warning: Ignored option -c (probably due to merging -yc != -y -c) This update adapts the underlying source code not to display this warning when the "--installroot" option is in use, resolving this issue.
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-06 17:34:36 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Levente Farkas 2011-05-24 19:54:57 UTC
i see such messages in mock's log where 
Ignored option -c (probably due to merging -yc != -y -c)
it seems mock call yum with wrong options:
------------------------------------
DEBUG backend.py:739:  ['/usr/bin/yum', '--installroot', '/var/lib/mock/abc-6.1-i386/root/', 'resolvedep', 'ccache']
DEBUG util.py:284:  Executing command: ['/usr/bin/yum', '--installroot', '/var/lib/mock/abc-6.1-i386/root/', 'resolvedep', 'ccache']
DEBUG util.py:250:  Ignored option -c (probably due to merging -yc != -y -c)
DEBUG util.py:250:  0:ccache-3.1.4-1.el6.i686
DEBUG util.py:323:  Child returncode was: 0
DEBUG backend.py:739:  ['/usr/bin/yum', '--installroot', '/var/lib/mock/abc-6.1-i386/root/', 'install', 'ccache']
DEBUG util.py:284:  Executing command: ['/usr/bin/yum', '--installroot', '/var/lib/mock/abc-6.1-i386/root/', 'install', 'ccache']
DEBUG util.py:250:  Ignored option -c (probably due to merging -yc != -y -c)
------------------------------------

Comment 1 Levente Farkas 2011-06-22 19:28:15 UTC
this still not fixed...

Comment 2 Clark Williams 2011-06-22 19:46:52 UTC
I believe that's yum issuing those warning messages

Comment 3 Jeff Sheltren 2011-06-23 15:02:05 UTC
Changing produce to RHEL

Comment 5 Karel Srot 2011-07-26 14:36:01 UTC
James,
is this going to be fixed on yum side? And how? Is 'yum -yc yum.conf ...' a valid cmd (I mean like  -y -c yum.conf)? Thank you in advance.

Comment 6 James Antill 2011-07-26 19:42:17 UTC
 No, we can't make -yc valid ... easily.

 The "bug" here is that if you use --installroot then it issues the warning, and we've fixed that upstream:

commit b4e12dec606dc19fa1ce2ba4be39e26e6145cacf
Author: James Antill <james>
Date:   Thu Jun 23 13:28:23 2011 -0400

    Don't show -c warning, when we've changed it due to --installroot. BZ 707358

...which takes the hammer approach to solving the problem:

-        if opts.conffile != pc.fn:
+        #  getRoot() changes it, but then setupYumConfig() changes it back. So
+        # don't test for this, if we are using --installroot.
+        if root == '/' and opts.conffile != pc.fn:

Comment 11 Jaromir Hradilek 2011-10-26 15:21:36 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Prior to this update, running a yum command with the "--installroot" command line option caused it to report the following warning:

    Ignored option -c (probably due to merging -yc != -y -c)

This update adapts the underlying source code not to display this warning when the "--installroot" option is in use, resolving this issue.

Comment 12 errata-xmlrpc 2011-12-06 17:34:36 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2011-1702.html