Tags:
create new tag
view all tags
Here is an example of how to configure the mock component. This creates a number of mock chroot configurations for each platform with different sets of repositories. This makes it possible to ensure that you have built a package for a particular repository which will not have dependencies on packages which are covered by stronger license restrictions. (i.e. something built using a uoe mock chroot will not depend on anything in the inf repository).

/* List of standard repositories */

#define MOCK_SITEPKGS_BASE http://http.pkgs.inf.ed.ac.uk/sites
#define MOCK_PKGS_BASE     http://http.pkgs.inf.ed.ac.uk/rpms/layers
#define MOCK_SL6_GROUPS_BASE file:///var/lib/mock/repositories/sl6/

!mock.repositories          mADD(sl6base)
mock.baseurl_sl6base        MOCK_SITEPKGS_BASE/sl6/6.0/i386/os
mock.priority_sl6base       1

!mock.repositories          mADD(sl6updates)
mock.baseurl_sl6updates     MOCK_SITEPKGS_BASE/sl6/6.0/i386/updates/security
mock.priority_sl6updates    1

!mock.repositories          mADD(sl6epel)
mock.baseurl_sl6epel        MOCK_SITEPKGS_BASE/epel/6/i386
mock.priority_sl6epel       1

!mock.repositories          mADD(sl6groups)
mock.baseurl_sl6groups      MOCK_SL6_GROUPS_BASE
mock.priority_sl6groups     1

!mock.repositories          mADD(sl6lcfg)
mock.baseurl_sl6lcfg        MOCK_PKGS_BASE/lcfg/sl6
mock.priority_sl6lcfg       1

!mock.repositories          mADD(sl6world)
mock.baseurl_sl6world       MOCK_PKGS_BASE/world/sl6
mock.priority_sl6world      1

!mock.repositories          mADD(sl6uoe)
mock.baseurl_sl6uoe         MOCK_PKGS_BASE/uoe/sl6
mock.priority_sl6uoe        1

!mock.repositories          mADD(sl6inf)
mock.baseurl_sl6inf         MOCK_PKGS_BASE/inf/sl6
mock.priority_sl6inf        1

!mock.repositories          mADD(sl6devel)
mock.baseurl_sl6devel       MOCK_PKGS_BASE/devel/sl6
mock.priority_sl6devel      1

/* chroot list */

!mock.chroots                   mADD(sl6)
mock.chrtname_sl6               sl6-i386
mock.basearch_sl6               i686
mock.dist_sl6                   sl6
mock.ccache_sl6                 no
mock.repos_sl6                  sl6base sl6groups sl6updates local
mock.resultdir_sl6              <%mock.basedir%>/results/sl/6/i386
mock.baseurl_sl6_local          file://<%mock.resultdir_sl6%>
mock.priority_sl6_local         1

!mock.chroots                   mADD(sl6_lcfg)
mock.chrtname_sl6_lcfg          sl6-lcfg-i386
mock.basearch_sl6_lcfg          i686
mock.dist_sl6_lcfg              sl6
mock.repos_sl6_lcfg             sl6base sl6groups sl6updates sl6epel sl6lcfg local
mock.resultdir_sl6_lcfg         <%mock.basedir%>/results/lcfg/sl6
mock.baseurl_sl6_lcfg_local     file://<%mock.resultdir_sl6_lcfg%>
mock.priority_sl6_lcfg_local    1

!mock.chroots                   mADD(sl6_world)
mock.chrtname_sl6_world         sl6-world-i386
mock.basearch_sl6_world         i686
mock.dist_sl6_world             sl6
mock.repos_sl6_world            sl6base sl6groups sl6updates sl6epel sl6world sl6lcfg local
mock.resultdir_sl6_world        <%mock.basedir%>/results/world/sl6
mock.baseurl_sl6_world_local    file://<%mock.resultdir_sl6_world%>
mock.priority_sl6_world_local   1

!mock.chroots                   mADD(sl6_uoe)
mock.chrtname_sl6_uoe           sl6-uoe-i386
mock.basearch_sl6_uoe           i686
mock.dist_sl6_uoe               sl6
mock.repos_sl6_uoe              sl6base sl6groups sl6updates sl6epel sl6world sl6uoe sl6lcfg local
mock.resultdir_sl6_uoe          <%mock.basedir%>/results/uoe/sl6
mock.baseurl_sl6_uoe_local      file://<%mock.resultdir_sl6_uoe%>
mock.priority_sl6_uoe_local     1

!mock.chroots                   mADD(sl6_inf)
mock.chrtname_sl6_inf           sl6-inf-i386
mock.basearch_sl6_inf           i686
mock.dist_sl6_inf               sl6
mock.repos_sl6_inf              sl6base sl6groups sl6updates sl6epel sl6world sl6uoe sl6inf sl6lcfg local
mock.resultdir_sl6_inf          <%mock.basedir%>/results/inf/sl6
mock.baseurl_sl6_inf_local      file://<%mock.resultdir_sl6_inf%>
mock.priority_sl6_inf_local     1

!mock.chroots                   mADD(sl6_devel)
mock.chrtname_sl6_devel         sl6-devel-i386
mock.basearch_sl6_devel         i686
mock.dist_sl6_devel             sl6
mock.repos_sl6_devel            sl6base sl6groups sl6updates sl6epel sl6world sl6uoe sl6inf sl6lcfg sl6devel local
mock.resultdir_sl6_devel        <%mock.basedir%>/results/devel/sl6
mock.baseurl_sl6_devel_local    file://<%mock.resultdir_sl6_devel%>
mock.priority_sl6_devel_local   1

#ifdef ARCH_X86_64

!mock.repositories            mADD(sl664base)
mock.baseurl_sl664base        MOCK_SITEPKGS_BASE/sl6/6.0/x86_64/os
mock.priority_sl664base       1

!mock.repositories            mADD(sl664updates)
mock.baseurl_sl664updates     MOCK_SITEPKGS_BASE/sl6/6.0/i386/updates/security
mock.priority_sl664updates    1

!mock.repositories            mADD(sl664epel)
mock.baseurl_sl664epel        MOCK_SITEPKGS_BASE/epel/6/x86_64
mock.priority_sl664epel       1

!mock.repositories            mADD(sl664groups)
mock.baseurl_sl664groups      MOCK_SL6_GROUPS_BASE
mock.priority_sl664groups     1

!mock.repositories            mADD(sl664lcfg)
mock.baseurl_sl664lcfg        MOCK_PKGS_BASE/lcfg/sl6_64
mock.priority_sl664lcfg       1

!mock.repositories            mADD(sl664world)
mock.baseurl_sl664world       MOCK_PKGS_BASE/world/sl6_64
mock.priority_sl664world      1

!mock.repositories            mADD(sl664uoe)
mock.baseurl_sl664uoe         MOCK_PKGS_BASE/uoe/sl6_64
mock.priority_sl664uoe        1

!mock.repositories            mADD(sl664inf)
mock.baseurl_sl664inf         MOCK_PKGS_BASE/inf/sl6_64
mock.priority_sl664inf        1

!mock.repositories            mADD(sl664devel)
mock.baseurl_sl664devel       MOCK_PKGS_BASE/devel/sl6_64
mock.priority_sl664devel      1

/* chroot list */

!mock.chroots                     mADD(sl664)
mock.chrtname_sl664               sl6-x86_64
mock.basearch_sl664               x86_64
mock.dist_sl664                   sl6
mock.ccache_sl664                 no
mock.repos_sl664                  sl664base sl664groups sl664updates local
mock.resultdir_sl664              <%mock.basedir%>/results/sl/6/x86_64
mock.baseurl_sl664_local          file://<%mock.resultdir_sl664%>
mock.priority_sl664_local         1

!mock.chroots                     mADD(sl664_lcfg)
mock.chrtname_sl664_lcfg          sl6-lcfg-x86_64
mock.basearch_sl664_lcfg          x86_64
mock.dist_sl664_lcfg              sl6
mock.repos_sl664_lcfg             sl664base sl664groups sl664updates sl664epel sl664lcfg local
mock.resultdir_sl664_lcfg         <%mock.basedir%>/results/lcfg/sl6_64
mock.baseurl_sl664_lcfg_local     file://<%mock.resultdir_sl664_lcfg%>
mock.priority_sl664_lcfg_local    1

!mock.chroots                     mADD(sl664_world)
mock.chrtname_sl664_world         sl6-world-x86_64
mock.basearch_sl664_world         x86_64
mock.dist_sl664_world             sl6
mock.repos_sl664_world            sl664base sl664groups sl664updates sl664epel sl664lcfg sl664world local
mock.resultdir_sl664_world        <%mock.basedir%>/results/world/sl6_64
mock.baseurl_sl664_world_local    file://<%mock.resultdir_sl664_world%>
mock.priority_sl664_world_local   1

!mock.chroots                     mADD(sl664_uoe)
mock.chrtname_sl664_uoe           sl6-uoe-x86_64
mock.basearch_sl664_uoe           x86_64
mock.dist_sl664_uoe               sl6
mock.repos_sl664_uoe              sl664base sl664groups sl664updates sl664epel sl664world sl664uoe sl664lcfg local
mock.resultdir_sl664_uoe          <%mock.basedir%>/results/uoe/sl6_64
mock.baseurl_sl664_uoe_local      file://<%mock.resultdir_sl664_uoe%>
mock.priority_sl664_uoe_local     1

!mock.chroots                     mADD(sl664_inf)
mock.chrtname_sl664_inf           sl6-inf-x86_64
mock.basearch_sl664_inf           x86_64
mock.dist_sl664_inf               sl6
mock.repos_sl664_inf              sl664base sl664groups sl664updates sl664epel sl664world sl664uoe sl664inf sl664lcfg local
mock.resultdir_sl664_inf          <%mock.basedir%>/results/inf/sl6_64
mock.baseurl_sl664_inf_local      file://<%mock.resultdir_sl664_inf%>
mock.priority_sl664_inf_local     1

!mock.chroots                     mADD(sl664_devel)
mock.chrtname_sl664_devel         sl6-devel-x86_64
mock.basearch_sl664_devel         x86_64
mock.dist_sl664_devel             sl6
mock.repos_sl664_devel            sl664base sl664groups sl664updates sl664epel sl664world sl664uoe sl664inf sl664lcfg sl664devel local
mock.resultdir_sl664_devel        <%mock.basedir%>/results/devel/sl6_64
mock.baseurl_sl664_devel_local    file://<%mock.resultdir_sl664_devel%>
mock.priority_sl664_devel_local   1

#endif /* ARCH_X86_64 */
Topic revision: r2 - 2011-02-22 - squinney
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2021 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback