Personal tools
     DOCUMENTATION

User:Uk jamster

From rPath Wiki

Jump to: navigation, search

Hello!

I'm Chris James, from http://www.mademedia.co.uk/

We're having some fun building a little application. More details to follow.

Conary looks like the ideal tool to help us manage the codebase across different servers. However I'm new to Conary and quite new to packaging in general so there's a bit of a learning curve.

I'm going to type my questions below in the hope that some helpful people will lend me a hand. They'll start off elementary and hopefully get more sophisticated as my knowledge grows.


Contents

Some pages on this wiki that I'm finding useful

Elementary notes

Getting Conary going on a new install

conary update --resolve conary{,-build,-repository,-policy}
conary updateall --resolve

Should I use AutoResolve to avoid resolution problems?

<smithj> uk_jamster: you can also put "autoResolve True" in /etc/conaryrc to avoid this problem all together
<uk_jamster> smithj: is adding autoResolve True recommended?
<smithj> uk_jamster: depends on what you're doing. i recomend it for development and home machines. i do not  recommend it for appliances

A: Checking out a trove

This is the equivalent of installing an rpm source package I think.

From your default repository

cvc co postfix

From another repository

cvc co ClamAV:source=/port25.rpath.org@rpl:devel/0.88.2-1-1

Shadowing looks helpful here but I need to learn some more about that! jforbes on IRC helpfully gave me this command:

cvc shadow yourrepo.rpath.org@your:label troveyouwant:source=port25.rpath.org@rpl:devel

A: Writing a package for programs that don't unpack to the right directory

If we look at ftp://ftp.kiarchive.ru/pub/unix/arcers/arc521e.pl8.tar.Z we find that it unpacks to the directory (.) ie the one you run tar -xzvf in rather than the usual convention of ./arc521e.pl8/

We need to add the dir= argument to addArchive function:

class arc(AutoPackageRecipe):
   name = 'arc'
   version = '521e.pl8'
   def unpack(r):
       r.addArchive('http://ftp.kiarchive.ru/'
                    'pub/unix/arcers/'
                    'arc%(version)s.tar.Z',
                    dir='arc%(version)s')

See the documentation here: http://cvs.rpath.com/conary-docs/public/conary.build.build-module.html

Note arc doesn't actually compile using AutoPackageRecipe.