Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 854105 Details for
Bug 1056039
[PATCH] $releasever in Repos field is not expanded
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
First approach to fix the problem
0001-try-to-pass-releasever-to-yum.patch (text/plain), 2.43 KB, created by
Miroslav Suchý
on 2014-01-22 22:54:26 UTC
(
hide
)
Description:
First approach to fix the problem
Filename:
MIME Type:
Creator:
Miroslav Suchý
Created:
2014-01-22 22:54:26 UTC
Size:
2.43 KB
patch
obsolete
>From 7fd8e9050fb802f586096b09e89b29eee00386c7 Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Miroslav=20Such=C3=BD?= <miroslav@suchy.cz> >Date: Wed, 22 Jan 2014 23:51:24 +0100 >Subject: [PATCH] try to pass releasever to yum > >--- > etc/mock/fedora-19-i386.cfg | 1 + > py/mockbuild/backend.py | 3 +++ > py/mockbuild/util.py | 1 + > 3 files changed, 5 insertions(+) > >diff --git a/etc/mock/fedora-19-i386.cfg b/etc/mock/fedora-19-i386.cfg >index 6d1dbd2..a6df015 100644 >--- a/etc/mock/fedora-19-i386.cfg >+++ b/etc/mock/fedora-19-i386.cfg >@@ -3,6 +3,7 @@ config_opts['target_arch'] = 'i686' > config_opts['legal_host_arches'] = ('i386', 'i586', 'i686', 'x86_64') > config_opts['chroot_setup_cmd'] = 'groupinstall buildsys-build' > config_opts['dist'] = 'fc19' # only useful for --resultdir variable subst >+config_opts['releasever'] = '19' > > config_opts['yum.conf'] = """ > [main] >diff --git a/py/mockbuild/backend.py b/py/mockbuild/backend.py >index f8df77d..9ca1244 100644 >--- a/py/mockbuild/backend.py >+++ b/py/mockbuild/backend.py >@@ -89,6 +89,7 @@ class Root(object): > if isinstance(self.chroot_setup_cmd, basestring): > # accept strings in addition to other sequence types > self.chroot_setup_cmd = self.chroot_setup_cmd.split() >+ self.releasever = config['releasever'] > self.yum_path = '/usr/bin/yum' > self.yum_builddep_path = '/usr/bin/yum-builddep' > self.yum_builddep_opts = config['yum_builddep_opts'] >@@ -966,6 +967,8 @@ class Root(object): > for eachopt in self.yum_builddep_opts.split(): > yumcmd.insert(1, '%s' % eachopt) > yumcmd.extend(('--installroot', self.makeChrootPath())) >+ if self.releasever: >+ yumcmd.extend(('--releasever', self.releasever)) > if not self.online: > yumcmd.append("-C") > yumcmd.extend(self.yum_common_opts) >diff --git a/py/mockbuild/util.py b/py/mockbuild/util.py >index d21dad2..0c4de4c 100644 >--- a/py/mockbuild/util.py >+++ b/py/mockbuild/util.py >@@ -591,6 +591,7 @@ def setup_default_config_opts(unprivUid, version, pkgpythondir): > config_opts['use_host_resolv'] = True > config_opts['chroot_setup_cmd'] = ('groupinstall', 'buildsys-build') > config_opts['target_arch'] = 'i386' >+ config_opts['releasever'] = None > config_opts['rpmbuild_arch'] = None # <-- None means set automatically from target_arch > config_opts['yum.conf'] = '' > config_opts['yum_builddep_opts'] = '' >-- >1.8.4.2 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1056039
:
853431
|
854105
|
854608