This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --===============0121388021== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig78544B3683CF3196B352537E" This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig78544B3683CF3196B352537E Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 09/27/2011 09:50 AM, Ljubomir Ljubojevic wrote: > =D0=92=D1=80=D0=B5=D0=BC=D0=B5: 09/27/2011 01:52 PM, Patrick Lists =D0=BF= =D0=B8=D1=88=D0=B5: >> On 09/27/2011 01:44 PM, Ljubomir Ljubojevic wrote: >>> Can someone point me in the right direction? How do you compile multi= ple >>> packages continuously with mock? >>> >>> I have some 50 srpms waiting to be recompiled via mock for both i386 = and >>> x86_64 (again). >>> >>> 1. Is there a command I can give so all the packages are compiled in = one go? >>> >>> 2. Do I have to sort them in proper order (dependencies) or can I jus= t >>> command to mock to check and sort them? >>> >>> Any help is appreciated, examples welcomed. >> You need to somehow script the proper order and/or dependencies if you are using mock. You would also need to script something that would add the built packages into a repo if you need to build them "staged" (that is, you build package A and it is needed for Package B later ... you need some kind of script to move the .rpms from A into one of your repos and run createrepo on it before you build package B). There are things that do staging for mock ... one is plague, the other is koji ... I am sure there are others. >> Smock (which uses mock) might help: >> >> "Smock is a thin wrapper around mock to let you build up a whole set o= f >> dependant RPMs against an external distro." >> >> http://git.annexia.org/?p=3Dfedora-mingw.git;a=3Dtree;f=3Dsmock >> > I have not used this ... > That is nice I will try it later today. >=20 > I have another (hopefully last) question. How do you build i686 package= s=20 > in mock (or for that matter in rpmbuild)? Do you just change it's name?= =20 > or use command option or change it in some macro? >=20 You need to use a command like this to build i686 for mock: setarch i686 mock --statedir=3D"{somepath}/state" --resultdir=3D"{some pa= th to put built files}" -r "{some mock config file}" --arch=3D"i686" {SRPM t= o build} Here is some example scripts that I use for building mock packages (this is for the c5 mock we use for centos5 and is in c5 extras ... newer versions for c6 will have different options): http://people.centos.org/hughesjr/buildsystem/ --------------enig78544B3683CF3196B352537E Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk6B7EgACgkQTKkMgmrBY7ORwgCcDuvwJ8fMbcrJKcGuHPTtB5Gg cXIAn1HueK+c8WGBzYD24oE+yNNlbs3Q =w4Bq -----END PGP SIGNATURE----- --------------enig78544B3683CF3196B352537E-- --===============0121388021== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ CentOS-devel mailing list CentOS-devel@centos.org http://lists.centos.org/mailman/listinfo/centos-devel --===============0121388021==--