Results 1 to 3 of 3

Thread: Newbie question: schroot vs. pbuilder? Which is the preferred chroot environment?

  1. #1
    Join Date
    Oct 2009
    Location
    Kolkata, India
    Beans
    31
    Distro
    Ubuntu 11.04 Natty Narwhal

    Question Newbie question: schroot vs. pbuilder? Which is the preferred chroot environment?

    Hi all,

    I am totally new to Ubuntu/Debian packaging (in fact, new to the world of packaging). I've been reading the docs at https://wiki.ubuntu.com/PackagingGuide.

    On my Lucid 64bit server, I've set up Lucid chroots following both https://wiki.ubuntu.com/DebootstrapChroot and https://wiki.ubuntu.com/PbuilderHowto. At the present, I can successfully schroot into Debootstrap's Lucid chroot installation, as well as use the pbuilder for building debs. (I've tried out the tutorial at PbuilderHowto - Rebuilding a package).

    My question is, as the title suggests, which of the two methods are more preferred or reliable as chroot during package building? schroot or pbuilder? Also, I'd be glad to know why they are preferred and whether it is just a matter of personal preference?

    One answer is, as I think, pbuilder satisfies all dependencies on its own while building a package while in schroot, one has to install the dependencies manually. Any further suggestions?

  2. #2
    Join Date
    Sep 2009
    Beans
    1,293

    Re: Newbie question: schroot vs. pbuilder? Which is the preferred chroot environment?

    PBuilder, its designed for the job. It unpacks a clean, minimal base system creating the chroot, and then satisfies build dependencies using your packaging. This checks that your packaging is (likely) correct, and will build properly on a other systems. Obviously schroot alone would not preserve a clean minimal build environment, nor check build dependencies properly

  3. #3
    Join Date
    Oct 2009
    Location
    Kolkata, India
    Beans
    31
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Newbie question: schroot vs. pbuilder? Which is the preferred chroot environment?

    Quote Originally Posted by SevenMachines View Post
    PBuilder, its designed for the job. It unpacks a clean, minimal base system creating the chroot, and then satisfies build dependencies using your packaging. This checks that your packaging is (likely) correct, and will build properly on a other systems. Obviously schroot alone would not preserve a clean minimal build environment, nor check build dependencies properly
    So, pbuilder seems to be a better choice in packaging. Thanks

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •