[buildd-tools-devel] [GIT] sbuild branch master updated. release/sbuild-0.68.0-22-g21a28c2

Johannes Schauer josch at moszumanska.debian.org
Thu Apr 28 05:08:01 UTC 2016


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "sbuild".

The branch, master has been updated
       via  21a28c2a19b5b47c8847aea25ef4ec34f406d0b9 (commit)
       via  c6b228e443bbdc761b9da46524ba1c8aa99df6e2 (commit)
       via  668e86dbfe5d14defe54926cf58dec2dc39d876f (commit)
       via  49dd7ee4bc28fba899fc2b178c2f64f0c136ca59 (commit)
      from  8e91ef0b7e1c99ab2cc354a09235f017e297dc2b (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 21a28c2a19b5b47c8847aea25ef4ec34f406d0b9
Author: Johannes 'josch' Schauer <josch at mister-muffin.de>
Date:   Sun Jan 3 14:33:35 2016 +0100

    make different command line options modifying the same configuration parameter incompatible with each other and remove --arch-all-only in the process (its behaviour can be replicated by using --arch-all --no-arch-any)

commit c6b228e443bbdc761b9da46524ba1c8aa99df6e2
Author: Johannes 'josch' Schauer <josch at mister-muffin.de>
Date:   Fri Jan 15 14:41:51 2016 +0100

    Add new sbuild backend: adt
    
     - New value for CHROOT_MODE config option: adt.
     - Added lib/Sbuild/ChrootADT.pm and lib/Sbuild/ChrootInfoADT.pm.
     - Added new configuration variables:
        - ADT_VIRT_SERVER to select the adt-virt-* backend
        - ADT_VIRT_SERVER_OPTIONS to pass custom options to the backend
     - Add command line options:
        - --chroot-mode to select between schroot, sudo and adt on the
          command line (controls CHROOT_MODE)
        - --adt-virt-server which controls (ADT_VIRT_SERVER)
        - --adt-virt-server-opt which controls (ADT_VIRT_SERVER_OPTIONS)

commit 668e86dbfe5d14defe54926cf58dec2dc39d876f
Author: Johannes 'josch' Schauer <josch at mister-muffin.de>
Date:   Fri Jan 15 14:04:33 2016 +0100

    Decouple chroot from host in terms of filesystem access (closes: #798835)
    
    This is useful to allow sbuild backends where the chroot filesystem
    cannot be directly accessed by the host, either because the host has no
    permission to access the chroot or because the chroot is inside a
    virtual machine, a container or on a remote system accessed via ssh.
    This in turn allows backends like adt-virt-qemu, adt-virt-ssh,
    adt-virt-lxc or backends based on Linux user namespaces to be added.
    
    In course of the decoupling all pieces of code where:
    
     - the test operators (-d, -f, -s) were used
     - perl modules like File::Temp or File::Copy were used
     - perl functions like mkdir, open, close, opendir, readdir were used
     - external commands pointing to paths inside the chroot were used like
       apt-ftparchive
    
    had to be replaced by invocations of a program that knows how to execute
    processes inside the chroot.
    
    To make this easier, many new convenience functions have been added to
    lib/Sbuild/Chroot.pm like:
    
     - mktemp
     - copy_to_chroot
     - copy_from_chroot
     - get_read_file_handle
     - read_file
     - get_write_file_handle
     - read_command
     - write_file
     - write_command
     - rename
     - mkdir
     - test_directory
     - test_regular_file
     - test_regular_file_readable
     - test_symlink
     - unlink
     - chmod
     - chown
    
    Since this also means that nothing in Build.pm or ResolverBase.pm needs
    to know about the chroot path anymore (because all modifications of the
    chroot content have to go through Chroot.pm) the function
    strip_chroot_path is not necessary anymore and with it the 'Location'
    and 'Chroot Dir' configuration variables are only very rarely used.
    
    Another consequence is, that since it cannot be relied upon anymore that
    the root filesystem of the chroot backend is mounted on the machine that
    runs sbuild, that the %SBUILD_CHROOT_DIR percentage escape for external
    commands is not useful anymore for all backends. Thus, this escape is
    now deprecated. Instead, the percentage escape %SBUILD_CHROOT_EXEC
    should be used in external commands. With that escape, the same external
    command script can then be used irrespective of which chroot backend is
    used.
    
    Also, with this commit, we create the Packages, Sources and Release file
    inside the chroot.  We cannot use apt-ftparchive as this is not
    available inside the chroot.  Apt-ftparchive outside the chroot might
    not have access to the files inside the chroot for reasons explained
    above. The only alternative would've been to set up the archive outside
    the chroot using apt-ftparchive and to then copy Packages, Sources and
    Release into the chroot.  We do not do this to avoid copying files from
    and to the chroot.  At the same time doing it like this has the
    advantage to have less dependencies of sbuild itself (no apt-ftparchive
    needed).  The disadvantage of doing it this way is that we now have to
    maintain our own code creating the Release file which might break in the
    future.

commit 49dd7ee4bc28fba899fc2b178c2f64f0c136ca59
Author: Luca Falavigna <dktrkranz at debian.org>
Date:   Thu Apr 28 06:48:58 2016 +0200

    bin/sbuild-createchroot: check for overlayfs support (closes: #813360)

-----------------------------------------------------------------------

Summary of changes:
 bin/sbuild                                     |   1 +
 bin/sbuild-createchroot                        |  14 +-
 lib/Sbuild/Build.pm                            | 595 ++++++++++++++-----------
 lib/Sbuild/Chroot.pm                           | 481 +++++++++++++++++++-
 lib/Sbuild/{ChrootSchroot.pm => ChrootADT.pm}  | 129 +++++-
 lib/Sbuild/{ChrootRoot.pm => ChrootInfoADT.pm} |  40 +-
 lib/Sbuild/ChrootSchroot.pm                    |  38 +-
 lib/Sbuild/Conf.pm                             |  34 +-
 lib/Sbuild/Makefile.am                         |   2 +
 lib/Sbuild/Options.pm                          | 160 ++++++-
 lib/Sbuild/ResolverBase.pm                     | 490 +++++++++++---------
 lib/Sbuild/Utility.pm                          |   2 +
 man/sbuild.1.in                                |  52 ++-
 13 files changed, 1499 insertions(+), 539 deletions(-)
 copy lib/Sbuild/{ChrootSchroot.pm => ChrootADT.pm} (53%)
 copy lib/Sbuild/{ChrootRoot.pm => ChrootInfoADT.pm} (64%)


hooks/post-receive
-- 
sbuild



More information about the Buildd-tools-devel mailing list