[ELGIS] Getting started with mock..

Volker Fröhlich volker27 at gmx.at
Thu Nov 10 16:57:29 EST 2011


Do you have a mirrorlist in the configuration file /etc/mock/yourtarget-
arch.cfg?

Volker

Am Donnerstag, 10. November 2011, 22:45:09 schrieben Sie:
> Awesome Volker, thanks.
> I feel on the right track as I learned spectool last night too!  Whew :)
> 
> One problem I had running mock was that yum wouldn't seem to
> connect to any mirrors when running through my special mock
> user - does it need special access to yum db?
> 
> I have to review the last few emails on this list again to make
> sure I didn't miss anything, but thought I'd mention it in case it rings
> a bell.  More later and thanks!
> 
> Tyler
> 
> On 2011-11-10, at 1:21 PM, Volker Fröhlich wrote:
> > I'd like to point out on spectool, which makes downloading sources more
> > pleasent:
> > 
> > spectool -g -S bla.spec
> > 
> > That tries to downloads all sources mentioned in the spec file.
> > 
> > Mathieu, why do you create the SRPM in Mock instead of straight with
> > rpmbuild?
> > 
> > Volker
> > 
> > Am Donnerstag, 10. November 2011, 08:56:52 schrieb Mathieu Baudier:
> >>> Thanks a lot for the thorough response Mathieu!  I have the rpmbuild
> >>> side of things running well now, and have focused on mock tonight with
> >>> some success.  I'll give your el6 testing config a try and see how it
> >>> goes. I've got SL6 running fine, so should be good to go.
> >> 
> >> To make sure that you are up and running, try rebuilding an ELGIS
> >> package: - checkout the sources
> >> svn co https://projects.argeo.org/elgis/svn/factory/trunk elgis-testing
> >> - go to, say, the 'geos' directory
> >> cd elgis-testing/rpmbuild/elgis/geos
> >> - download geos sources to SOURCES/
> >> wget -P SOURCES http://download.osgeo.org/geos/geos-3.3.1.tar.bz2
> >> - rebuild the SRPM
> >> mock -r elgis-6-testing-x86_64 --buildsrpm --spec SPECS/geos.spec
> >> --sources SOURCES/
> >> - save the SRPM
> >> cp -v /var/lib/mock/elgis-6-testing-x86_64/result/*.src.rpm
> >> ~/rpmbuild/SRPMS/ - rebuild
> >> mock -r elgis-6-testing-x86_64 --rebuild
> >> ~/rpmbuild/SRPMS/geos-3.3.1-2.el6.src.rpm
> >> 
> >> If you want to try a bigger one, do the same for GDAL.
> >> 
> >> Please test these instructions and with your feedback I'll put it on the
> >> wiki. _______________________________________________
> >> el mailing list
> >> el at lists.osgeo.org
> >> http://lists.osgeo.org/mailman/listinfo/el
> > 
> > _______________________________________________
> > el mailing list
> > el at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/el



More information about the el mailing list