[PATCH] support ppc64le in mash
by Mark Hamzy
Add support for the ppc64le architecture in mash.
---
mash/arch.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/mash/arch.py b/mash/arch.py
index a2b0f79..cbeb24b 100644
--- a/mash/arch.py
+++ b/mash/arch.py
@@ -19,6 +19,7 @@ compat = { "i386" : ("athlon", "i686", "i586", "i486", "i386", "noarch"),
"ia64" : ("ia64", "noarch"),
"ppc" : ("ppc", "noarch"),
"ppc64" : ("ppc64p7", "ppc64pseries", "ppc64iseries", "ppc64", "noarch"),
+ "ppc64le" : ("ppc64le", "noarch"),
"s390" : ("s390", "noarch"),
"s390x" : ("s390x", "noarch"),
"sparc" : ("sparcv9v", "sparcv9", "sparcv8", "sparc", "noarch"),
--
1.9.0
9 years, 3 months
Patch to make pungi 3.03 respect the --nosource option
by Barry Scott
The attached patch has the changes I needed to make to prevent
pungi looking for .src.rpm files, which I believe is what the
--nosource option is intended to do.
I did not see this problem with the version of pungi shipped
with F19.
Barry
9 years, 4 months
[PATCH] support ppc64le in pungi
by Mark Hamzy
Add support for the ppc64le architecture in pungi.
---
src/pypungi/__init__.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/pypungi/__init__.py b/src/pypungi/__init__.py
index e719f1a..3d29a77 100644
--- a/src/pypungi/__init__.py
+++ b/src/pypungi/__init__.py
@@ -1302,6 +1302,9 @@ class Pungi(pypungi.PungiBase):
if self.tree_arch == 'ppc64':
self.ayum.arch.setup_arch('ppc64')
self.ayum.compatarch = 'ppc64'
+ elif self.tree_arch == 'ppc64le':
+ self.ayum.arch.setup_arch('ppc64le')
+ self.ayum.compatarch = 'ppc64le'
# Only supported mac hardware is x86 make sure we only enable mac support on arches that need it
if self.tree_arch in ['x86_64']:
@@ -1354,7 +1357,7 @@ class Pungi(pypungi.PungiBase):
os.path.walk(os.path.join(self.topdir, 'images'), getsum, self.topdir + '/')
# Capture PPC images
- if self.tree_arch in ['ppc', 'ppc64']:
+ if self.tree_arch in ['ppc', 'ppc64', 'ppc64le']:
os.path.walk(os.path.join(self.topdir, 'ppc'), getsum, self.topdir + '/')
# Get a checksum of repomd.xml since it has within it sums for other files
--
1.9.0
9 years, 4 months
[PATCH] add secondary F-20 signing key
by Dan Horák
---
configs/rawhide.arm.mash | 2 +-
configs/rawhide.ppc.mash | 2 +-
configs/rawhide.s390.mash | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/configs/rawhide.arm.mash b/configs/rawhide.arm.mash
index 762bb13..265d381 100644
--- a/configs/rawhide.arm.mash
+++ b/configs/rawhide.arm.mash
@@ -9,7 +9,7 @@ multilib = False
tag = f21
inherit = False
strict_keys = False
-keys = 4B94091B, BA094068, A4D647E9, F8DF67E6, 34E166FA, A82BA4B7, 069C8460, 97A1071F, E8E40FDE, 57BBCCBA, D22E77F2, 4EBFC273, 0B86274E, 6DF2196F, DF9B0AE9
+keys = EFE550F5, 4B94091B, BA094068, A4D647E9, F8DF67E6, 34E166FA, A82BA4B7, 069C8460, 97A1071F, E8E40FDE, 57BBCCBA, D22E77F2, 4EBFC273, 0B86274E, 6DF2196F, DF9B0AE9
repoviewurl = http://download.fedoraproject.org/pub/fedora-secondary/development/rawhid...
repoviewtitle = "Fedora Rawhide - %(arch)s"
arches = aarch64
diff --git a/configs/rawhide.ppc.mash b/configs/rawhide.ppc.mash
index 6ca442d..2d42bbb 100644
--- a/configs/rawhide.ppc.mash
+++ b/configs/rawhide.ppc.mash
@@ -10,7 +10,7 @@ multilib_method = yaboot
tag = f21
inherit = False
strict_keys = False
-keys = 4B94091B, BA094068, A4D647E9, F8DF67E6, 34E166FA, A82BA4B7, 069C8460, 97A1071F, E8E40FDE, 57BBCCBA, D22E77F2, 4EBFC273, 0B86274E, 6DF2196F, DF9B0AE9
+keys = EFE550F5, 4B94091B, BA094068, A4D647E9, F8DF67E6, 34E166FA, A82BA4B7, 069C8460, 97A1071F, E8E40FDE, 57BBCCBA, D22E77F2, 4EBFC273, 0B86274E, 6DF2196F, DF9B0AE9
repoviewurl = http://download.fedoraproject.org/pub/fedora-secondary/development/rawhid...
repoviewtitle = "Fedora Rawhide - %(arch)s"
arches = ppc ppc64
diff --git a/configs/rawhide.s390.mash b/configs/rawhide.s390.mash
index d896419..1077e41 100644
--- a/configs/rawhide.s390.mash
+++ b/configs/rawhide.s390.mash
@@ -10,7 +10,7 @@ multilib_method = devel
tag = f21
inherit = False
strict_keys = False
-keys = 4B94091B, BA094068, A4D647E9, F8DF67E6, 34E166FA, A82BA4B7, 069C8460, 97A1071F, E8E40FDE, 57BBCCBA, D22E77F2, 4EBFC273, 0B86274E, 6DF2196F, DF9B0AE9
+keys = EFE550F5, 4B94091B, BA094068, A4D647E9, F8DF67E6, 34E166FA, A82BA4B7, 069C8460, 97A1071F, E8E40FDE, 57BBCCBA, D22E77F2, 4EBFC273, 0B86274E, 6DF2196F, DF9B0AE9
repoviewurl = http://download.fedoraproject.org/pub/fedora-secondary/development/rawhid...
repoviewtitle = "Fedora Rawhide - %(arch)s"
arches = s390 s390x
--
1.8.5.3
9 years, 5 months
[PATCH] update for secondary arches
by Dan Horák
- add correct ID for fedora-20-secondary key
- disable inheritance for s390
---
configs/rawhide.ppc.mash | 2 +-
configs/rawhide.s390.mash | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/configs/rawhide.ppc.mash b/configs/rawhide.ppc.mash
index 6ca442d..2d42bbb 100644
--- a/configs/rawhide.ppc.mash
+++ b/configs/rawhide.ppc.mash
@@ -10,7 +10,7 @@ multilib_method = yaboot
tag = f21
inherit = False
strict_keys = False
-keys = 4B94091B, BA094068, A4D647E9, F8DF67E6, 34E166FA, A82BA4B7, 069C8460, 97A1071F, E8E40FDE, 57BBCCBA, D22E77F2, 4EBFC273, 0B86274E, 6DF2196F, DF9B0AE9
+keys = EFE550F5, 4B94091B, BA094068, A4D647E9, F8DF67E6, 34E166FA, A82BA4B7, 069C8460, 97A1071F, E8E40FDE, 57BBCCBA, D22E77F2, 4EBFC273, 0B86274E, 6DF2196F, DF9B0AE9
repoviewurl = http://download.fedoraproject.org/pub/fedora-secondary/development/rawhid...
repoviewtitle = "Fedora Rawhide - %(arch)s"
arches = ppc ppc64
diff --git a/configs/rawhide.s390.mash b/configs/rawhide.s390.mash
index d896419..1077e41 100644
--- a/configs/rawhide.s390.mash
+++ b/configs/rawhide.s390.mash
@@ -10,7 +10,7 @@ multilib_method = devel
tag = f21
inherit = False
strict_keys = False
-keys = 4B94091B, BA094068, A4D647E9, F8DF67E6, 34E166FA, A82BA4B7, 069C8460, 97A1071F, E8E40FDE, 57BBCCBA, D22E77F2, 4EBFC273, 0B86274E, 6DF2196F, DF9B0AE9
+keys = EFE550F5, 4B94091B, BA094068, A4D647E9, F8DF67E6, 34E166FA, A82BA4B7, 069C8460, 97A1071F, E8E40FDE, 57BBCCBA, D22E77F2, 4EBFC273, 0B86274E, 6DF2196F, DF9B0AE9
repoviewurl = http://download.fedoraproject.org/pub/fedora-secondary/development/rawhid...
repoviewtitle = "Fedora Rawhide - %(arch)s"
arches = s390 s390x
--
1.8.5.3
9 years, 5 months
koji 1.9.0 release
by Mike McLean
The koji 1.9.0 release is ready. You can get the official tarball here:
https://fedorahosted.org/released/koji/
Notable changes include:
- new image-build command for building images via ImageFactory
- (this includes building docker images)
- support for config directories in the client
- kojivmd no longer requires python-virtinst
- client uses fast upload automatically if server supports it
- new download-logs command
- new options for the mock-config command
- numerous fixes and enhancements
9 years, 6 months
mock-1.1.22 ->1.1.36 upgrade
by Farkas Levente
hi,
after i upgrade our mock build env the first build always works, but all
of other build with fail with such error (if i clean all mock cache and
i will work again once, and i was working with 1.1.22):
----------------------------------
Starting at Sun Mar 23 14:33:07 CET 2014: mock -r epel-6-x86_64 --define
"rhel 6" --define ".el6 1" --define "ver 1.1.31" --define "svn 21"
--define "dist .el6" --rebuild ./yum-utils-1.1.31-21.el6.src.rpm
INFO: mock.py version 1.1.36 starting...
Start: init plugins
INFO: tmpfs initialized
INFO: selinux disabled
Finish: init plugins
Start: run
INFO: Start(./yum-utils-1.1.31-21.el6.src.rpm) Config(epel-6-x86_64)
Start: lock buildroot
Start: clean chroot
INFO: chroot (/var/lib/mock/epel-6-x86_64) unlocked and deleted
Finish: clean chroot
Finish: lock buildroot
Start: chroot init
Start: lock buildroot
Mock Version: 1.1.36
INFO: Mock Version: 1.1.36
INFO: calling preinit hooks
INFO: mounting tmpfs at /var/lib/mock/epel-6-x86_64/root/.
INFO: enabled root cache
Start: unpacking root cache
Finish: unpacking root cache
INFO: enabled yum cache
Start: cleaning yum metadata
Finish: cleaning yum metadata
INFO: enabled ccache
Start: device setup
Finish: device setup
Start: yum update
Start: Outputting list of available packages
Finish: Outputting list of available packages
Finish: yum update
Finish: lock buildroot
Finish: chroot init
INFO: Installed packages:
Start: build phase for yum-utils-1.1.31-21.el6.src.rpm
Start: device setup
Finish: device setup
Start: build setup for yum-utils-1.1.31-21.el6.src.rpm
INFO: unmounting tmpfs.
ERROR: Exception(./yum-utils-1.1.31-21.el6.src.rpm)
Config(epel-6-x86_64) 0 minutes 4 seconds
INFO: Results and/or logs in: /var/lib/mock/epel-6-x86_64/result
ERROR: [Errno 2] No such file or directory:
'./yum-utils-1.1.31-21.el6.src.rpm'
Traceback (most recent call last):
File "/usr/sbin/mock", line 697, in <module>
main(retParams)
File "/usr/sbin/mock", line 631, in main
do_rebuild(config_opts, chroot, args)
File "<peak.util.decorators.rewrap wrapping __main__.do_rebuild at
0x010D9668>", line 3, in do_rebuild
def do_rebuild(config_opts, chroot, srpms): return
__decorated(config_opts, chroot, srpms)
File "/usr/lib/python2.6/site-packages/mockbuild/trace_decorator.py",
line 70, in trace
result = func(*args, **kw)
File "/usr/sbin/mock", line 279, in do_rebuild
chroot.build(srpm, timeout=config_opts['rpmbuild_timeout'],
check=config_opts['check'])
File "<peak.util.decorators.rewrap wrapping mockbuild.backend.build at
0x010D40C8>", line 3, in build
def build(self, srpm, timeout, check): return __decorated(self,
srpm, timeout, check)
File "/usr/lib/python2.6/site-packages/mockbuild/trace_decorator.py",
line 70, in trace
result = func(*args, **kw)
File "/usr/lib/python2.6/site-packages/mockbuild/backend.py", line
688, in build
srpmChrootFilename = self._copySrpmIntoChroot(srpm)
File "<peak.util.decorators.rewrap wrapping
mockbuild.backend._copySrpmIntoChroot at 0x010DBA28>", line 3, in
_copySrpmIntoChroot
def _copySrpmIntoChroot(self, srpm): return __decorated(self, srpm)
File "/usr/lib/python2.6/site-packages/mockbuild/trace_decorator.py",
line 70, in trace
result = func(*args, **kw)
File "/usr/lib/python2.6/site-packages/mockbuild/backend.py", line
1091, in _copySrpmIntoChroot
shutil.copy2(srpm, dest)
File "/usr/lib64/python2.6/shutil.py", line 95, in copy2
copyfile(src, dst)
File "/usr/lib64/python2.6/shutil.py", line 50, in copyfile
with open(src, 'rb') as fsrc:
IOError: [Errno 2] No such file or directory:
'./yum-utils-1.1.31-21.el6.src.rpm'
----------------------------------
any tips?
--
Levente "Si vis pacem para bellum!"
9 years, 6 months
docker-rpm-builder
by Alan Franzoni
Hello,
if anybody is interested I've started a very small project which builds
rpms using docker:
https://github.com/alanfranz/docker-rpm-builder
It's a very small wrapper around rpmbuild, and I hope it's a bit more
hackable than mock (which is got plenty of functions but I find it a bit
hard to understand); it's designed to work on any host that support docker
( I had some issues in using mock on host distributions that weren't either
Fedora, Redhat or Centos ).
In our scenarios is already proving faster than mock, but I'm sure there's
plenty of space for optimization.
If anybody is interested in contributing just drop me an email and/or
submit a pull request.
bye,
Alan
--
My development blog: http://ollivander.franzoni.eu
contact me at public(a)[mysurname].eu
9 years, 6 months
[PATCH] Don't hardcode /var/lib/mock
by Mathieu Bridon
The builder configuration allows setting this to a different folder.
---
koji/daemon.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/koji/daemon.py b/koji/daemon.py
index fa22d5a..4f4b575 100644
--- a/koji/daemon.py
+++ b/koji/daemon.py
@@ -651,7 +651,7 @@ class TaskManager(object):
if id is None or name is None:
continue
# see if there's a dir for the buildroot
- vardir = "/var/lib/mock/%s" % name
+ vardir = os.path.join(self.options.mockdir, name)
#XXX
buildroots[id] = {}
buildroots[id]['name'] = name
--
1.8.4.2
9 years, 6 months