Personal tools
     DOCUMENTATION

FAQ:Build Groups Using a Specific Version of rPath Linux

From rPath Wiki

Jump to: navigation, search
FAQ
Question: How can I build an appliance group using a specific version of rPath Linux?


Answer: Appliance developers can build groups defining an appliance to always use specific versions of certain packages or groups by using the setSearchPath method defined for building groups in Conary. Developers can make use of this to ensure the appliance uses a specific version of rPath Linux.

Appliances that include group-core are using the minimal rPath Linux operating system. The group group-core is a subgroup of group-dist, and group-dist is part of group-os which defines the entire rPath Linux distribution. Developers can use the group-core corresponding to a specific group-os using r.setSearchPath in the group recipe.

   If setSearchPath is in a group recipe, the group will only resolve dependencies on the labels and groups specified. Developers should include all the labels from which packages or groups should resolve dependencies.

In this example, the setSearchPath line in the group recipe for a project on the label example.rpath.org@rpl:1 keeps the appliance using rPath Linux 1 and allows updates to rPL 1:

setSearchPath('example.rpath.org@rpl:1', 'group-os=conary.rpath.com@rpl:1')

Use additional parts of the version string for group-os to lock in to a particular build of the distribution. In this example, the setSearchPath line in the group recipe for a project on the label example.rpath.org@rpl:1 keeps the appliance using rPath Linux 1 and locks it in to only build 1.0.5-0.9-1:

setSearchPath('example.rpath.org@rpl:1', 'group-os=/conary.rpath.com@rpl:1/1.0.5-0.9-1')
Image:Bulbgraph.png   If you have setLabelPath in the group recipe, rPath recommends removing that line if you are adding setSearchPath to the recipe. Note that rBuilder's Group Builder creates a group recipe with the setLabelPath, in case you are modifying a group recipe originally created by Group Builder.