[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] Add configurable compression type to mash (default to xz)
by Ralph Bean
This is for https://fedorahosted.org/rel-eng/ticket/5362#comment:17
---
mash/__init__.py | 1 +
mash/config.py | 2 ++
mash/metadata.py | 7 +++++++
3 files changed, 10 insertions(+)
diff --git a/mash/__init__.py b/mash/__init__.py
index 997c0ce..61e2001 100644
--- a/mash/__init__.py
+++ b/mash/__init__.py
@@ -102,6 +102,7 @@ class Mash:
md.set_cachedir(repocache)
md.set_skipstat(gofast)
md.set_database(self.config.use_sqlite)
+ md.set_compress_type(self.config.compress_type)
md.set_hash(self.config.hash)
if comps and self.config.compsfile:
md.set_comps(self.config.compsfile)
diff --git a/mash/config.py b/mash/config.py
index 2b12034..3292359 100644
--- a/mash/config.py
+++ b/mash/config.py
@@ -40,6 +40,7 @@ class MashConfig(config.BaseConfig):
repodir = config.Option('/mnt/koji')
compsfile = config.Option()
use_sqlite = config.BoolOption(True)
+ compress_type = config.Option('xz')
use_repoview = config.BoolOption(False)
hash = config.Option('sha256')
repoviewurl = config.Option('http://localhost/%(arch)s')
@@ -79,6 +80,7 @@ class MashDistroConfig(config.BaseConfig):
cachedir = config.Inherit(MashConfig.cachedir)
compsfile = config.Inherit(MashConfig.compsfile)
use_sqlite = config.Inherit(MashConfig.use_sqlite)
+ compress_type = config.Inherit(MashConfig.compress_type)
hash = config.Inherit(MashConfig.hash)
use_repoview = config.Inherit(MashConfig.use_repoview)
repoviewurl = config.Inherit(MashConfig.repoviewurl)
diff --git a/mash/metadata.py b/mash/metadata.py
index 3158086..b3e33ed 100644
--- a/mash/metadata.py
+++ b/mash/metadata.py
@@ -59,6 +59,10 @@ class MetadataOld:
def set_database(self, db):
self.args.append('-d')
+ def set_compress_type(self, compress_type):
+ self.args.append('--compress-type')
+ self.args.append(compress_type
+
def set_hash(self, hashtype):
# Sorry, can't do that here.
pass
@@ -123,6 +127,9 @@ class MetadataNew:
def set_database(self, db):
self.conf.database = db
+ def set_compress_type(self, compress_type):
+ self.conf.compress_type = compress_type
+
def set_hash(self, hashtype):
self.conf.sumtype = hashtype
--
1.9.0
9 years, 4 months
[PATCH] Add configurable compression type to pungi (default to xz)
by Ralph Bean
This is for https://fedorahosted.org/rel-eng/ticket/5362#comment:17
---
src/pypungi/__init__.py | 13 ++++++++++---
src/pypungi/config.py | 1 +
2 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/src/pypungi/__init__.py b/src/pypungi/__init__.py
index e719f1a..7595b4e 100644
--- a/src/pypungi/__init__.py
+++ b/src/pypungi/__init__.py
@@ -1202,7 +1202,8 @@ class Pungi(pypungi.PungiBase):
return subfile.replace(basedir + os.path.sep, '')
def _makeMetadata(self, path, cachedir, comps=False, repoview=False, repoviewtitle=False,
- baseurl=False, output=False, basedir=False, update=True):
+ baseurl=False, output=False, basedir=False, update=True,
+ compress_type=None):
"""Create repodata and repoview."""
conf = createrepo.MetaDataConfig()
@@ -1221,6 +1222,8 @@ class Pungi(pypungi.PungiBase):
conf.basedir = basedir
if baseurl:
conf.baseurl = baseurl
+ if compress_type:
+ conf.compress_type = compress_type
repomatic = createrepo.MetaDataGenerator(conf)
self.logger.info('Making repodata')
repomatic.doPkgMetadata()
@@ -1264,9 +1267,12 @@ class Pungi(pypungi.PungiBase):
self.tree_arch)
cachedir = self.config.get('pungi', 'cachedir')
+ compress_type = self.config.get('pungi', 'compress_type')
# setup the createrepo call
- self._makeMetadata(self.topdir, cachedir, compsfile, repoview=True, repoviewtitle=repoviewtitle)
+ self._makeMetadata(self.topdir, cachedir, compsfile,
+ repoview=True, repoviewtitle=repoviewtitle,
+ compress_type=compress_type)
# create repodata for debuginfo
if self.config.getboolean('pungi', 'debuginfo'):
@@ -1274,7 +1280,8 @@ class Pungi(pypungi.PungiBase):
if not os.path.isdir(path):
self.logger.debug("No debuginfo for %s" % self.tree_arch)
return
- self._makeMetadata(path, cachedir, repoview=False)
+ self._makeMetadata(path, cachedir, repoview=False,
+ compress_type=compress_type)
def doBuildinstall(self):
"""Run lorax on the tree."""
diff --git a/src/pypungi/config.py b/src/pypungi/config.py
index f35e1c6..68759a8 100644
--- a/src/pypungi/config.py
+++ b/src/pypungi/config.py
@@ -33,6 +33,7 @@ class Config(SafeConfigParser):
self.set('pungi', 'relnotepkgs', 'fedora-release fedora-release-notes')
self.set('pungi', 'product_path', 'Packages')
self.set('pungi', 'cachedir', '/var/cache/pungi')
+ self.set('pungi', 'compress_type', 'xz')
self.set('pungi', 'arch', yum.rpmUtils.arch.getBaseArch())
self.set('pungi', 'name', 'Fedora')
self.set('pungi', 'iso_basename', 'Fedora')
--
1.9.0
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
Generate spec file with `make sources`
by Dustin C. Hatch
Hello,
I have a private Koji instance set up that builds RPMs of our internally
developed software. Everything is working well, and we have several
packages building wonderfully, directly from Git.
Recently, I've wanted to change some of our build scripts to support
other packagers, so I thought I'd move some of the hard-coded info out
of the spec files and have them be generated by the build script.
Unfortunately, it seems Koji doesn't allow this, as it looks for the
spec file before calling `make sources`.
I see there is a patch to support this at
https://fedorahosted.org/koji/ticket/201, but it's pretty old and has no
comments. Are there any plans for rebasing this patch, or adding a
similar one to Koji at some point?
Thanks, and thanks for Koji!
--
Dustin C. Hatch
9 years, 5 months
ARM builds
by Mátyás Selmeci
Hi,
Can you tell me what kind of systems you use for building for the armhfp
architecture, and where to buy them? My group would like to start
supporting that architecture but I can't find anything concrete. Or is
emulation the way to go here?
Thanks,
-Mat
9 years, 5 months