Re: [Fwbuilder-discussion] Do we need Fedora Core 9 binary rpms?
Brought to you by:
mikehorn
From: Tom D. <td...@ro...> - 2009-02-04 14:47:08
|
On Tue, 3 Feb 2009, Vadim Kurland ✎ wrote: > > On Feb 3, 2009, at 6:46 AM, Tom Diehl wrote: > >> >> I agree koji is way over kill. Mock however, is simple. Once you install it >> and >> do the initial configuration, you can run something like >> "mock -r epel-5-i386 /home/mock/SRPMS/hobbit-4.2.0-1.el5.1.mtd.src.rpm" and >> if >> all goes well you get the rpms and srpms in a short period of time. >> >> Mock uses yum to pull in all of the required packages for doing the build. >> So >> you have to have the rpms available for it to pull in. Maybe that makes >> sense >> for your use case and maybe it does not. Obviously only you know. >> > > mock works fine if I build just one libfwbuilder rpm. However when I try to > build fwbuilder rpm, which requires libfwbuilder rpm, mock can't do it > because of the unsatisfied dependency. Do you know any way to work around > this ? What I do is make a local yum repo by putting the rpms somewhere where mock can find them and running "createrepo path_to_the_repo". You need to tell mock where they are by adding a yum configuration stanza to /etc/mock/whatever_the_config_file_is_called. That way yum can just pull the required deps in. The config file is pretty simple but if you have questions feel free to ask. Keep in mind that mock is written in python so a lot of the time usage of whitespace makes the difference between a program running and failing. I have thought about putting a wrapper around mock so that it would move the newly built rpms to the correct place and then rebuild the repodata. The way less human intervention is required. I just need the time to do it. I do not think it would be hard. FYI, the EPEL people have mock config files for building RHEL/Centos on mock. I do not remember the url for them but if you want them and cannot find them let me know and I will see if I can remember where I got them. Also, I just loaded the FC10 rpms onto my laptop. They loaded without error and fwbuilder starts up and loads the data file. So far that is all of the testing I have done. Ver is 754 if it matters. I need to do some modifications to that firewall later today. I will let you know how it goes. Regards, -- Tom Diehl td...@ro... Spamtrap address mt...@ro... |