FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Build System

 
 
LinkBack Thread Tools
 
Old 08-05-2011, 01:21 PM
Anthony Messina
 
Default Kojid unable to regen-repo in Fedora 15

On 08/04/2011 01:35 AM, Paul Howarth wrote:
> On Wed, 03 Aug 2011 20:54:34 -0500
> Anthony Messina <amessina@messinet.com> wrote:
>
>> > On 07/29/2011 04:41 PM, Anthony Messina wrote:
>>> > > Based on Seth's recommendation in
>>> > > https://bugzilla.redhat.com/show_bug.cgi?id=718635
>>> > >
>>> > > upgrading to createrepo-0.9.9-5.fc16.noarch from rawhide seems to
>>> > > resolve this issue.
>> >
>> > Well, while using either createrepo-0.9.9-4.fc15.noarch or
>> > createrepo-0.9.9-5.fc16.noarch, I am able to successfully regenerate a
>> > repo in Koji, but building a package in the resulting repo fails.
>> >
>> > With the new createrepo versions, the repodata files contain sums:
>> > tasks/2898/2898,
>> > ['9b19d6d5388866de3256ccf433020b2675678c74-filelists.xml.gz',
>> > 'da149cf3eedf43067a2409be98f09f6ac59b1d80-primary.xml.gz',
>> > '14f7b241420a4283ebb06d9b5ded53789a52a716-comps.xml',
>> > 'cb4259761f5364bf6203071af4166b237fcdb54b-comps.xml.gz',
>> > '5ddafbf985de1e52f3a4d86d210788dcdf9d12c9-other.sqlite.bz2',
>> > 'repomd.xml',
>> > '0c3c735cacccc61ee33be459ebb534c22428df38-pkgorigins.gz',
>> > '42e1da88ccdfbdf44350fcc0fcdc554495f3f5c8-filelists.sqlite.bz2',
>> > 'a1c6e2a342d4b6d809a50ea2837f6ff8ae2b2c06-primary.sqlite.bz2',
>> > '701919d49a2a98ff685164900e49a1989dfeff1a-other.xml.gz']
>> >
>> > With the older stable f14 version, the repodata files don't:
>> > tasks/2878/2878, ['primary.xml.gz', 'comps.xml', 'other.sqlite.bz2',
>> > 'filelists.sqlite.bz2', 'filelists.xml.gz', 'repomd.xml',
>> > 'primary.sqlite.bz2', 'pkgorigins.gz', 'other.xml.gz', 'comps.xml.gz']
>> >
>> > The builds fail with:
>> > Traceback (most recent call last):
>> > File "/usr/lib/python2.7/site-packages/koji/daemon.py", line 1114,
>> > in runTask
>> > response = (handler.run(),)
>> > File "/usr/lib/python2.7/site-packages/koji/tasks.py", line 146, in
>> > run return self.handler(*self.params,**self.opts)
>> > File "/usr/sbin/kojid", line 2129, in handler
>> > broot.init()
>> > File "/usr/sbin/kojid", line 373, in init
>> > self.session.host.setBuildRootList(self.id,self.ge tPackageList())
>> > File "/usr/sbin/kojid", line 456, in getPackageList
>> > self.markExternalRPMs(ret)
>> > File "/usr/sbin/kojid", line 559, in markExternalRPMs
>> > fo = koji.openRemoteFile(relpath, **opts)
>> > File "/usr/lib/python2.7/site-packages/koji/__init__.py", line 1376,
>> > in openRemoteFile
>> > fo = open(fn)
>> > IOError: [Errno 2] No such file or directory:
>> > '/mnt/koji//repos/dist-f15-build/386/x86_64/repodata/pkgorigins.gz'
>> >
>> > Referring to https://bugzilla.redhat.com/show_bug.cgi?id=718635 (a
>> > createrepo ticket), is this now a Koji issue?
> Can koji be persuaded to use "createrepo --simple-md-filenames"?
>
> Paul.

Ok, I've looked into this a bit and may be going about this in
completely the wrong way, but...

Modifying line 2577
(https://fedorahosted.org/koji/browser/builder/kojid#L2577) does not work.

cmd = ['/usr/bin/createrepo', '-vd', '--simple-md-filenames', '-o',
self.outdir, '-u', self.options.topurl]

However, modifying mergerepos to add the following after line 96
(https://fedorahosted.org/koji/browser/builder/mergerepos#L96) allows
the koji repo to be regenerated AND allows packages to be built from
that repo:

self.mdconf.unique_md_filenames = False

I am not certain that this is THE way to fix it, but it is a workaround
for now.

Thanks for pointing me in the right direction. -A

--
Anthony - http://messinet.com - http://messinet.com/~amessina/gallery
8F89 5E72 8DF0 BCF0 10BE 9967 92DC 35DC B001 4A4E

--
buildsys mailing list
buildsys@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/buildsys
 

Thread Tools




All times are GMT. The time now is 07:27 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org