[buildd-tools-devel] [GIT] schroot annotated tag distribution/schroot-1.6.8 created. distribution/schroot-1.6.8
Roger Leigh
rleigh at moszumanska.debian.org
Sat Jan 4 11:48:05 UTC 2014
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 "schroot".
The annotated tag, distribution/schroot-1.6.8 has been created
at 6837b79683056866bb3aada30efde5ebb00be179 (tag)
tagging 6a60026f2565d71efc7c75e84277ec4320314cbd (commit)
tagged by Roger Leigh
on Sat Jan 4 11:10:51 2014 +0000
- Log -----------------------------------------------------------------
Distribution of schroot-1.6.8
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.15 (GNU/Linux)
iQIcBAABCgAGBQJSx+w7AAoJEAezyLxAg+gAlygQAJUhPVh7x5CO7mhJJ6ogeiWk
20ipxfnAPD4Ce22RiOgocODNvvH7ghk3eyXFjVWnIkii/pEH2vbXcrKVnQ7WMySx
DA4Wn8JOvXkf2enFfO7DpFGXIMjDBwktLKjcIeoNRKBij8Yw3ygDcINpiHOaFKLn
Pde5u5gNisMqhqDmNiv32IKhlUkpLAOgAFaNNcUt/ENaDUeXKXNRebIS1TpQ236+
cLRyRHkfmZuFlgOVMO+n0W1/4B7GsDP91SETVnjt7VXn1RoL1HDbnE92PbQvgfIY
0W6zl78pSqrjeDRJaIx6rQ7dvwgU4KdIZ+XMJaFTEDxhKC3Y+RCw8KNH/OpayLi2
/ltHfkHG3A+1Z3EPcwTD8lVwQBiJbteHiHtLSlZN+tGyqsJtLqcUy/8skJNApELQ
06LSd4Q+zI4yOez2goKz/gcWc10KMdpyld1EOpzJbitKDA/cZ2Vcyk9ksRggRI/i
6jVJIkNlaG7robV8gJsS3AOOQqKoQiSKIE1mx/+EKMb+b0o5GcqW3yDMa0N1UTmy
K783qwIsDAiLiKQw6EYeUqu3hz/a57/89X8LUnFKkLFtx+1fXsbKaqH63cLrap+b
vjLBBU4pZV4dyHNP9KtWmSrBdF6EecyKPPZbngRfF+Y/9XGMH0ao472JZkA9FPXy
pBVqYucqGqbkXfXpqv1Q
=Fm/I
-----END PGP SIGNATURE-----
Anders Kaseorg (1):
setup.d: 15killprocs: Don’t run /bin/readlink for every process
Bastian Blank (2):
setup.d: 20nssdatabases: Cope with database not existing in chroot
setup.d: 20nssdatabases: Cope with database not existing in chroot
Chris Leick (1):
man: Update de translation
Clytie Siddall (2):
[po] Update vi translation
po: Update vi translation
David Prévot (1):
man: Add initial support for po4a translations
Evan Broder (1):
sbuild::chroot_facet_union: Add support for overlayfs
Geoffrey Thomas (4):
build: Only use silent-rules if it's available
scripts/git-version: Ask git for date differently
build: Auto-detect whether -mt is needed for Boost libs
etc/setup.d/00check: Permit union chroots on the root directory
Greg Price (2):
setup: 10mount: Use flock to prevent race reading /proc/mounts
setup: 10mount: Use flock to prevent race reading /proc/mounts
Helge Kreutzmann (2):
po: Update de translation
po: Add missing space to de translation
Holger Wansing (10):
po: Update de translation
po: Update de translation
po: Update de translation
po: Update de translation
po: Update de translation
po: Update de translation
po: Update de translation
po: Update de translation
po: Update de translation
po: Update de translation
Iñaki Larrañaga Murgoitio (1):
po: Update eu translation
Jan-Marek Glogowski (43):
[build] Just link schroot-mount to boost filesystem lib
[.gitignore] debian: Simplify ignore rules
[debian] schroot-dbg: Add debug symbols package
[debian] libsbuild-doc: Fix build-deps and dependencies
[debian] rules: Run check before install when building packages
[debian] rules: Use "$(MAKE) -C" in place of explicit "cd && make"
[build] Adapt boostrap from libtoolize suggestions
[build] Use $(mkinstalldirs) to create directories
[sbuild-error] Add third error detail parameter
[sbuild] chroot: Drop mount_device member
[test] Add chroot_directory test data
[sbuild] setup: Use CHROOT_DIRECTORY
[sbuild::chroot_directory] Inherit from chroot_plain
[sbuild::chroot_directory] Inherit from chroot_plain
[sbuild::chroot_fs_union] New class to add filesysten union support
[sbuild::chroot_directory] Add filesystem union support
[sbuild::chroot_loopback] Add union filesystem support
[sbuild::chroot_block_device] Add union filesystem support
[build] Add missing whitespace
[test] Add test for chroot_loopback
[build] Remove config.h.in~ when bootstrapping
[setup] Remove plain chroot type
[sbuild] Move getcwd from sbuild-session.cc to sbuild-util.cc
[sbuild::chroot_loopback] Add locking
[sbuild::chroot] set_session_id sets session ID
test: Use sbuild::getcwd to get abs_testdata_dir
test: Add set_run_setup_scripts tests
test: Unify environment tests
etc/setup.d: Cleanup union handling in scripts
build: Use $(mkinstalldirs)
sbuild: Some cleanup for directory and union chroots
etc/setup.d/10mount: Reuse loopback device
sbuild::chroot Convert facets from vector to list
debian: control: Add better schroot-dbg package dependencies
sbuild::chroot: Don't write 'active' key
etc/setup.d: Cleanup union handling in scripts
sbuild::chroot_facet_union: Really use own error messages
.gitignore: Add VERSION and .gdb_history
sbuild::chroot_block_device_base: Don't lock union block devices
test: Print key and value for keyfile and env
test: Cleanup keyfile and environment tests
schroot: Document session usage relating to --chroot
doc: Fix some doxygen class headers
Ji ZhengYu (8):
[po] Update zh_CN translation
po: Update zh_CN translation
po: Update zh_CN translation
po: Update zh_CN translation
po: Update zh_CN translation
po: Update zh_CN translation
po: Update zh_CN translation
po: Update zh_CN translation
Joe Hansen (9):
po: Add Danish translation
po: Update da translation
po: Add Danish translation
po: Update da translation
po: Update da translation
po: Update da translation
po: Update da translation
po: Update da translation
po: Update da translation
Jonathan Callen (2):
sbuild::chroot_block_device: Build correctly when LVM snapshot support is not available
schroot-base: fix build with --enable-debug
Julian Andres Klode (1):
contrib: Add setup script for qemu
Julien Viard de Galbert (1):
setup: 15killprocs kills processes under CHROOT_PATH rather than CHROOT_MOUNT_LOCATION
LI Daobing (李道兵) (1):
[po] Add zh_CN translation
Loïc Minier (1):
[man] Fix typos in schroot-script-config.5.in and schroot-setup.5.in
Luk Claes (11):
Updated Swedish translation
updated po/vi.po
Updated Swedish translation
Updated po/vi.po
Add po/cs.po
Update po/cs.po.
Updated po/sv.po
Updated po/sv.po for schroot
Updated po/vi.po
Updated po/cs.po
Fix some whitespaces, document bugnumber for po/fr.po in debian/changelog
Martin F. Krafft (4):
contrib: Add 09fsck setup script
contrib: Add 09fsck setup script
contrib: Add 09fsck setup script
contrib: Add 09fsck setup script
Miroslav Kure (1):
po: Update cs translation
Nathaniel W. Turner (2):
sbuild::session: Add SIGINT handler
sbuild::session: Add SIGINT handler
Nelson Elhage (1):
setup.d: 10mount: Make all mountable chroots respect mount options from configuration
Nick Fortino (1):
[build] Use LIBS rather than LDFLAGS in library checks
Nicolas François (2):
[po] Update fr translation
[po] Encoding is UTF-8, not ISO-8859-1
Patrick Ohly (1):
15killprocs: Warn about race condition when killing processes
Pedro Ribeiro (4):
[po] Update pt translation
po: Update pt translation
po: Update pt translation
po: Update pt translation
Petr Salinger (1):
[sbuild] Order of "struct flock" members is not assumed.
Ralf Corsépius (1):
sbuild: Fix name lookup issue with GCC 4.7
Roger Leigh (1959):
Summary: Initial import Revision: schroot--mainline--0.1.0--base-0
Summary: Add autotools framework Revision: schroot--mainline--0.1.0--patch-1
Summary: Add PAM configuration file Revision: schroot--mainline--0.1.0--patch-2
Summary: Split PAM calls into separate functions Revision: schroot--mainline--0.1.0--patch-3
Summary: Improve session error handling and authorisation Revision: schroot--mainline--0.1.0--patch-4
Summary: Add manual pages and TODO Revision: schroot--mainline--0.1.0--patch-5
Summary: Tighten up root access Revision: schroot--mainline--0.1.0--patch-6
Summary: Add session properties and PAM debugging statements Revision: schroot--mainline--0.1.0--patch-7
Summary: Improve syslog support Revision: schroot--mainline--0.1.0--patch-8
Summary: Add gtk-doc framework Revision: schroot--mainline--0.1.0--patch-9
Summary: Document all user-visible symbols. Revision: schroot--mainline--0.1.0--patch-10
Summary: Fix const correctness Revision: schroot--mainline--0.1.0--patch-11
Summary: Update TODO Revision: schroot--mainline--0.1.0--patch-12
Summary: Document internal API Revision: schroot--mainline--0.1.0--patch-13
Summary: Return child exit status Revision: schroot--mainline--0.1.0--patch-14
Summary: Enable preservation of user environment Revision: schroot--mainline--0.1.0--patch-15
Summary: Add --enable-debug configure option Revision: schroot--mainline--0.1.0--patch-16
Summary: Implement --quiet option Revision: schroot--mainline--0.1.0--patch-17
Summary: Run a real login shell Revision: schroot--mainline--0.1.0--patch-18
Summary: Add initial Debian packaging Revision: schroot--mainline--0.1.0--patch-19
Summary: Update configuration file Revision: schroot--mainline--0.1.0--patch-20
Summary: 0.1.0 released. Revision: schroot--mainline--0.1.0--version-0
Summary: Add strict pointer checks and bump version Revision: schroot--mainline--0.1.1--patch-1
* Add ChangeLog to CVS * No longer generate ChangeLog with "tla changelog". It must now be edited manually.
* Add .cvsignore files to replace lost .arch-inventory files.
* debian/copyright: - Update the postal address of the FSF. - Refer to /usr/share/common-licenses/GPL. - Add new download location. * Makefile.am: Remove CVS directories from the generated tarball. * schroot/schroot.conf.5.in: Correct .TH section from 1 to 5. * Remove debian/conffiles, which is not required by debhelper. * debian/control: Add buildd-tools developers to Uploaders, and remove unused ${misc:Depends}. * debian/changelog: Update.
* Change all GPL boilerplate to use the new FSF postal address.
* Version 0.1.1. * schroot/sbuild-config.c (sbuild_config_validate_chroots): use g_return_val_if_fail, not g_return_if_fail. * configure.ac: Remove the automake "tar-pax" option, because the Debian build infrastructure can't cope with it yet.
* Remove UCS characters from string literals. For the time being, gettext will have to handle this. * Update .cvsignore files. * TODO: Remove gettext item. * po/en.po: Add an English translation, to make use of UTF-8 characters. * schroot/Makefile.am, schroot/*.c: Mark up strings for translation with gettext, and add gettext and locale initialisation code to main(). * Add po/POTFILES.in with all C source files included. * Add additional options to po/Makevars, to make xgettext read the source as UTF-8. * bootstrap, configure.ac, Makefile.am: add GNU gettext support.
* configure.ac, NEWS, debian/changelog: Increase version number to 0.1.2.
* debian/control (Standards-Version): Upgrade to Standards-Version 3.6.2.
* Updated README (translation and usage examples). * po/en_GB.po: Add British English translation. * po/en.po: Remove.
* README: Remove usage examples. * schroot/schroot.conf.5.in: Don't indent example. * schroot/schroot.1.in: Add usage examples.
* Version 0.1.2. * schroot/sbuild-session.c (sbuild_session_pam_setupenv): If no environment was specified, create an initial environment containing PATH and TERM. (sbuild_session_run_chroot): Search PATH for the specified command, in case the user didn't use an absolute path.
* configure.ac, NEWS, debian/changelog: Increase version number to 0.1.3.
* doc/schroot/schroot-docs.sgml: Include marshallers section. * doc/schroot/schroot-sections.txt: Add marshallers section. * schroot/schroot.h: New header. This includes all other headers, and is used by glib-mkenums. * schroot/sbuild-marshallers.list: New file. Generate a marshaller returning an enum and taking no arguments (sbuild_cclosure_marshal_ENUM__VOID). * schroot/Makefile.am: Generate GObject closure marshallers and GType typebuiltins. Distribute the generated code.
* po/.cvsignore: Ignore generated files.
* schroot/sbuild-error.c, schroot/sbuild-error.h: Wrap GError as a GType (SBUILD_TYPE_ERROR and SBUILD_TYPE_ERROR_POINTER) for use with signals (GError * may be used as an "out" argument).
* schroot/schroot.c (entries): Make entries const, to fix compiliation with gcc-4.0. (parse_options): Check for parse errors, and exit on error.
* schroot/sbuild-session.h, schroot/sbuild-config.h: Make error quark functions publicly visible.
* schroot/schroot.h: Add sbuild-auth.[ch]. * schroot/sbuild-marshallers.list: Add new marshaller (sbuild_cclosure_marshal_BOOLEAN__BOXED). * Split SbuildSession PAM functionality into a separate SbuildAuth class, from which SbuildSession is derived. SbuildAuth handles authentication and authorisation using PAM, with hooks for customising its behaviour.
* TODO: Update. * schroot/schroot.c (main): Use new SBUILD_AUTH casts and methods, to replace the corresponding SBUILD_SESSION types and methods. * SbuildSession derives from SbuildAuth. - The duplicated functionality has been removed from SbuildSession. - SbuildSession overrides the SbuildAuth virtual functions require_auth and session_run.
* schroot/schroot.c (parse_options): Move the option entries[] array into the function as a static const variable. Make sure the array is terminated by a null option entry, to prevent a segfault when parsing the options.
* schroot/schroot.c (main): Abort earlier if no chroots are defined in schroot.conf.
* TODO: Update. * Update gtk-doc documentation.
* schroot/sbuild-session.c (sbuild_session_run_chroot): Split into two separate functions, sbuild_session_run_child() and sbuild_session_wait_for_child(). (sbuild_session_wait_for_child): Notify the "child-status" property on change.
* schroot/sbuild-auth.c (sbuild_auth_get_home): Add home directory property and get function for the session user. (sbuild_auth_setupenv): Add HOME to the list of environment variables to set if not preserving the old environment.
* schroot/sbuild-auth.c (sbuild_auth_setupenv): Add USER and LOGNAME to the list of environment variables to set if not preserving the old environment.
* Version 0.1.3. * NEWS: Update for 0.1.3.
* debian/control (Build-Depends): Add gettext. * Bump version numbers to 0.1.4.
* schroot/schroot.c (parse_options): Fix typo in documentation. * schroot/sbuild-session.c (sbuild_session_require_auth): Simplify by removing all redundant checks.
* schroot/schroot.1.in: Include priority in the examples. * schroot/schroot.conf.5.in: Document new priority option and include it in the examples. * schroot/sbuild-chroot.h (struct _SbuildChroot): Add priority member. * schroot/sbuild-chroot.c (sbuild_chroot_get_priority): New function (sbuild_chroot_set_priority): New function (sbuild_chroot_new_from_keyfile): Parse priority
* schroot/schroot.c (main): Set the service name to "schroot". * schroot/sbuild-session.c (sbuild_session_new): Set the SbuildAuth "service" construction property. * schroot/sbuild-auth.h (struct _SbuildAuth): Add service member. * schroot/sbuild-auth.c: Don't hardcode the PAM service name: (sbuild_auth_get_service): New function. (sbuild_auth_set_service): New function. (sbuild_auth_start): Use the service member when initialising PAM.
* schroot/sbuild-session.c (sbuild_session_run_child): Alter the message printed to stderr or logged with syslog, depending on whether the environment is being preserved (no login shell) or not (login shell).
* Version 0.1.4. * NEWS: Update for 0.1.4. * po/en_GB.po: Update translation.
* schroot/Makefile.am: Added new source files. * schroot/schroot.c (main): Add support for SbuildAuthConv timeouts. * schroot/schroot.h: Added new headers. * schroot/sbuild-marshallers.list: Added new marshaller BOOLEAN:UINT,BOXED. * configure.ac: Remove check for libpam_misc. Bump version to 0.1.5 * schroot/sbuild-auth.c: Add support for the conv member as a GObject property: (sbuild_auth_get_conv): New function. (sbuild_auth_set_conv): New function. (sbuild_auth_conv): New function; glue to interface PAM to SbuildAuthConv. (sbuild_auth_start): Create a custom pam_conv which uses sbuild_auth_conv to hook back into SbuildAuthConv from PAM. * schroot/sbuild-auth.h: Add conv member to _SbuildAuthConv and sbuild_auth_get_conv and sbuild_auth_set_conv getters and setters, used to get and set the SbuildAuthConv interface used. * schroot/sbuild-auth-conv-tty.[ch]: New files, adding the SbuildAuthConvTty implementation of SbuildAuthConv. * schroot/sbuild-auth-conv.[ch]: New files, adding the SbuildAuthConv GInterface. * schroot/sbuild-auth-message.[ch] New files, adding the SbuildAuthMessagea and SbuildAuthMessageVector structures (registered as GBoxed types).
* schroot/sbuild-auth.c (sbuild_auth_require_auth_impl): Remove special root priveleges. * schroot/sbuild-session.c (sbuild_session_require_auth): Remove special root priveleges.
* schroot/schroot.c (main): Replace SCHROOT_CONFIG_FILE with SCHROOT_CONF. * schroot/Makefile.am (DEFS): Remove SCHROOT_CONFIG_FILE. * schroot/schroot.conf.5.in: Use @SCHROOT_CONF@, rather than the incorrect @prefix@/etc/schroot.conf. * schroot/schroot.1.in: Use @SCHROOT_CONF@, rather than the incorrect @prefix@/etc/schroot.conf. * configure.ac (PACKAGE_SYSCONF_DIR): Compute the final value of $sysconfdir before configure ends, and substitute and define SCHROOT_CONF with the location of schroot.conf.
* configure.ac: - Check for run-parts. - Define $PACKAGE_SYSCONF_DIR as the location for configuration files. - Define $SCHROOT_CONF_SETUP_D as the location for setup scripts. * schroot/Makefile.am (pkgsysconfdir): Install schroot.conf into $(PACKAGE_SYSCONF_DIR). * schroot/schroot.conf.5.in: Update date. * schroot/schroot.1.in: Add setup.d to FILES. Update date. * schroot/setup/Makefile.am: Distribute and install 20network, 30passwd and 50chrootname into $sysconfdir/schroot/setup.d. * schroot/setup/50chrootname: New file to set up chroot name in /etc/debian_chroot. * schroot/setup/30passwd: New file to set up passwd, shadow and group. * schroot/setup/20network: New file to set up resolv.conf. * schroot/sbuild-session.h: Add SBUILD_SESSION_ERROR_CHROOT_SETUP GError enum. * schroot/sbuild-session.c (sbuild_session_setup_chroot): New function to call run-parts(8). (sbuild_session_run): Call sbuild_session_setup_chroot before and after running the session command or shell.
* schroot/Makefile.am (EXTRA_DIST): Correctly distribute schroot.conf. * debian/copyright (License): Update the FSF address.
* debian/rules: Install the lintian override. * debian/schroot.lintian-overrides: New file to override setuid-binary lintian warning.
* Version 0.1.5. * po/en_GB.po: Update. * debian/changelog: Update.
* Update API reference. * schroot/schroot.1.in: Document new option, and the AUTH_VERBOSITY environment variable used in setup scripts. * schroot/schroot.c (parse_options): Add a new --verbose option. (main): Set requested verbosity level. * schroot/sbuild-session.c (sbuild_session_setup_chroot): Check verbosity level to set in the environment, and to pass to run-parts. (sbuild_session_run_child): Check verbosity level when printing information about the command being run. * schroot/sbuild-auth.c (sbuild_auth_get_verbosity): Replacement for sbuild_auth_get_quiet. (sbuild_auth_set_verbosity): Replacement for sbuild_auth_set_quiet. (sbuild_auth_class_init): Replace "quiet" property with "verbosity" property. * schroot/sbuild-auth.h: Add SbuildAuthVerbosity enum to specify message verbosity. (struct _SbuildAuth): Replace quiet member with verbosity member.
* schroot/sbuild-session.c (sbuild_session_setup_chroot): Set AUTH_VERBOSITY, not AUTH_VERBOSE. * schroot/setup/50chrootname: Use $AUTH_VERBOSITY. * schroot/setup/30passwd: Use $AUTH_VERBOSITY. * schroot/setup/20network: Use $AUTH_VERBOSITY. * schroot/schroot.c (main): Fix pointer type warning.
* Fixed minor typos in API reference. * Updated TODO.
* schroot/sbuild-session.c (sbuild_session_setup_chroot): Call sbuild_chroot_setup to get chroot environment variables, and add additional auth environment variables to the same linked list. Convert the linked list into a vector. * schroot/sbuild-chroot.c (sbuild_chroot_print_details): Call print_details vfunc. (sbuild_chroot_setup): New function, used to set the environment in setup scripts. It calls the setup vfunc to allow derived classes to set additional environment variables. * schroot/sbuild-chroot.h: (struct _SbuildChrootClass): New print_details and setup virtual functions.
* Translate g_warning messages. * schroot/schroot.c (main): When printing detailed chroot information, add a blank line between chroots. * schroot/sbuild-chroot.c (sbuild_chroot_new_from_keyfile): Parse options automatically by introspecting the GObject properties for a given chroot GType. This will allow for automatic extension of the file format as new chroot types are added.
* Updated documentation. * schroot/setup/30passwd: Use $CHROOT_MOUNT_LOCATION. * schroot/setup/20network: Use $CHROOT_MOUNT_LOCATION. * schroot/setup/10mount: New script to mount block devices. * schroot/setup/00check: New script to do sanity checking before other scripts are run, and print the environment when run in verbose mode. * schroot/sbuild-session.c (sbuild_session_setup_chroot): Fall back to "/mnt" if no mount location is available. This is temporary. (sbuild_session_setup_chroot): Set the environment correctly for subclassed SbuildChroot objects. (sbuild_session_setup_chroot_child_setup): New helper function to ensure that the setup scripts run as real and effective user and group root. * schroot/sbuild-chroot.c (sbuild_chroot_get_chroot_type): New function, which calls the get_type vfunc. (sbuild_chroot_class_init): Renamed "location" property to "mount-location", and updated all methods accordingly. "location" is now implemented only in SbuildChrootPlain. (sbuild_chroot_new_from_keyfile): Check the GKeyFile "type" key to check which SbuildChroot subclass to instantiate. Add stricter checking of GKeyFile keys, by validating names and types against the registered properties for the GObjectClass, as well as checking if the properties are constructible and writable. * schroot/sbuild-chroot.h (struct _SbuildChrootClass): Added new get_type vfunc, for getting the type name of the chroot. * schroot/sbuild-chroot-block-device.[ch]: New files, implementing SbuildChrootBlockDevice, an object representing a chroot on a block device mounted on demand, derived from SbuildChroot. * schroot/sbuild-chroot-plain.[ch]: New files, implementing SbuildChrootPlain, an object representing a simple filesystem chroot, derived from SbuildChroot. * NEWS: Bump version to 0.1.6. * configure.ac: Bump version to 0.1.6. * schroot/sbuild-chroot.c (sbuild_chroot_new_from_keyfile): Warn if not constructible or writable types are used.
* schroot/schroot.conf.5.in: Document "mount-options". * schroot/setup/00check: Report $CHROOT_MOUNT_OPTIONS. * schroot/sbuild-chroot-block-device.c (sbuild_chroot_block_device_class_init): Added a "mount-options" property and associated accessors. * schroot/sbuild-chroot-block-device.h (struct _SbuildChrootBlockDevice): Added a mount_options member.
* schroot/setup/50chrootname: Use ${CHROOT_MOUNT_LOCATION}.
* schroot/setup/10mount: Use $CHROOT_MOUNT_DEVICE. * schroot/setup/00check: Report $CHROOT_MOUNT_DEVICE. * schroot/sbuild-chroot-plain.c: Minor indentation fixes. * schroot/sbuild-chroot-block-device.c (sbuild_chroot_block_device_set_mount_device): New function to slave the "device" property to the parent class "mount-device" property. Minor indentation fixes. * schroot/sbuild-chroot.c (sbuild_chroot_class_init): Added "mount-location" property and associated accessors. * schroot/sbuild-chroot.h (struct _SbuildChroot): Added mount_location member.
* schroot/setup/Makefile.am (setup_SCRIPTS): Distribute 00check and 10mount.
* TODO: Update.
* schroot/sbuild-chroot.c (sbuild_chroot_new_from_keyfile): Require settable properties to be both constructible and writable.
* schroot/sbuild-session.c (sbuild_session_class_init): Add a new session-id property and associated accessors, which handle conversions between a string and uuid_t. * schroot/sbuild-session.h (struct _SbuildSession): Add a new session_id member containing the session UUID. * schroot/sbuild-config.c (sbuild_config_new_from_file): New function to replace sbuild_config_new. (sbuild_config_new_from_directory): New function to load a set of configuration files from a directory. (sbuild_config_class_init): config-file property is no longer readable. Added new contruct only and write-only config-directory property. (sbuild_config_set_config_directory): New function to read a directory and load config files. (sbuild_config_load): Pass back the chroot list as an OUT parameter rather than a return value, to allow reusing the same list. (sbuild_config_set_config_file): Remove the restriction on loading a single config file. * schroot/sbuild-chroot-lvm-snapshot.c (sbuild_chroot_lvm_snapshot_print_config): New virtual function to print additional configuration details. * schroot/sbuild-chroot-block-device.c (sbuild_chroot_block_device_print_config): New virtual function to print additional configuration details. * schroot/sbuild-chroot-plain.c (sbuild_chroot_plain_print_config): New virtual function to print additional configuration details. * schroot/sbuild-chroot.c (sbuild_chroot_class_init): Added current-users, max-users and active properties, and associated accessors. (sbuild_chroot_new_from_keyfile): Add additional active parameter which is TRUE if reloading an existing session configuration. This relaxes permissions checks to allow setting of writable but not construction parameters. (sbuild_chroot_print_details): Print new properties. (sbuild_chroot_print_config): New function to write out current session state to a a configuration file for later restoration. (sbuild_chroot_setup): Set new properties as environment variables, except for active, since this is implicit in running a session). * schroot/sbuild-chroot.h (struct _SbuildChroot): Add current_users, max_users and active members. (struct _SbuildChrootClass): Add print_config vfunc. * debian/control (Build-Depends): Build-depend upon uuid-dev * schroot/Makefile.am (schroot_LDADD): Link with libuuid. (install-data-hook): Make SCHROOT_LOCK_DIR and SCHROOT_SESSION_DIR. * configure.ac: Check for libuuid and add UUID_CFLAGS to SCHROOT_CFLAGS. Add substitutions and defines for SCHROOT_LOCK_DIR and SCHROOT_SESSION_DIR.
* schroot/sbuild-chroot.c (sbuild_chroot_new_from_keyfile): Fix a memory leak during chroot type identification. Reorganise code to make layout more logical. (sbuild_chroot_print_details): Format detail listing to make it more readable, in the same style as used by the LVM tools. * schroot/sbuild-config.c (sbuild_config_load): Only add chroots to the SbuildConfig if they were successfully constructed.
* debian/changelog: Bump version to 0.1.6. Document run-setup changes for Debian Bug #329403. * schroot/schroot.conf.5.in: Document "run-setup" configuration option. * schroot/sbuild-session.c (sbuild_session_run): Only run setup scripts if enabled in the chroot configuration. * schroot/sbuild-chroot.c (sbuild_chroot_class_init): Add "run-setup" property, and associated accessors. (sbuild_chroot_new_from_keyfile): Add support for G_TYPE_BOOLEAN properties as configuration options. * schroot/sbuild-chroot.h (struct _SbuildChroot): Add run_setup member.
* schroot/sbuild-session.c (sbuild_session_run): Move chroot mount location fallback from sbuild_session_setup_chroot. * schroot/schroot.conf.5.in: Add additional "run-setup" notes.
* debian/preinst, debian/postinst: Preserve schroot.conf changes correctly when moving to /etc/schroot/schroot.conf, by checking the md5sum to detect local modifictions. If not modified, delete and replace with the package version.
* schroot/sbuild-chroot.c (sbuild_chroot_set_properties_from_keyfile): Split keyfile property code out from sbuild_chroot_new_from_keyfile. This will allow re-reading chroot configuration from disk for session handling.
* schroot/schroot.1.in: Document new setup script parameters.
* debian/rules (config.status): Set $localstatedir when running configure.
* Update API reference. * schroot/schroot.1.in: Document new command-line options. * schroot/schroot.c: Add new session_opt struct, with operation, id and force members. (parse_options): Add new command line options: -b/--begin-session, -r/--run-session, -e/--end-session and --force in a new "session" option group. These options do not currently have any effect. (parse_session_options): New helper function to parse session options. (main): Set session operation when creating a new session. Set additional session properties (session-id, force) after construction. * schroot/sbuild-session.c (sbuild_session_class_init): Added new "operation" and "force" properties, and associated accessors. (sbuild_session_new): Add operation argument, and set the operation contruction property. * schroot/sbuild-session.h: Added SbuildSessionOperation enum to specify session operations. (struct _SbuildSession): Added new operation and force members. * schroot/sbuild-chroot-lvm-snapshot.c (sbuild_chroot_lvm_snapshot_get_session_flags): New virtual function to get session flags. * schroot/sbuild-chroot-block-device.c (sbuild_chroot_block_device_get_session_flags): New virtual function to get session flags. * schroot/sbuild-chroot-plain.c (sbuild_chroot_plain_get_session_flags): New virtual function to get session flags. * schroot/sbuild-chroot.c (sbuild_chroot_get_session_flags): New function. Calls get_session_flags vfunc. (sbuild_chroot_class_init): get_session_flags is pure virtual, so must be implemented in derived classes. * schroot/sbuild-chroot.h: Add SbuildChrootSessionFlags enum to specify chroot session behaviour. (struct _SbuildChrootClass): Added get_session_flags vfunc.
* schroot/schroot.1.in: Document new session.d directory. * schroot/schroot.conf.5.in: Document run-setup-scripts and run-session-scripts options. * schroot/sbuild-chroot.c (sbuild_chroot_class_init): Replace run-setup property and associated accessors with two new properties, run-setup-scripts and run-session-scripts and associated accessors. Setup script are not run by default, whereas session scripts are. * schroot/sbuild-chroot.h (struct _SbuildChroot): Replace run_setup with two members, run_setup_scripts and run_session_scripts. * schroot/Makefile.am (SUBDIRS): Add session. * schroot/session/00check: New session script. * schroot/session/Makefile.am: New file for installing session scripts. * configure.ac (SCHROOT_CONF_SETUP_D): New define and substitution variable.
* schroot/setup/00check: Remove "session-start" check. * schroot/session/00check: Remove duplicate "session-start" check. * schroot/session/50sbuild: New script to set up sbuild build directory and fix its ownership and permissions.
* Update documentation.
* schroot/schroot.conf.5.in: Update documentation. * schroot/sbuild-chroot.c (sbuild_chroot_class_init): The run-session-scripts property defaults to FALSE, for compatibility with dchroot out-of-the-box.
* schroot/sbuild-config.c (sbuild_config_load): Report GError messages propagated by locking failure. * schroot/sbuild-lock.c (sbuild_lock_set_lock): Return errors as a GError, rather than aborting. Don't run fcntl in a while loop now that timeouts are implemented with an itimer. (sbuild_lock_unset_lock): Return errors as a GError. (sbuild_lock_error_quark): New function. * schroot/sbuild-lock.h (SBUILD_LOCK_ERROR): Add error domain. Add locking errors as SbuildLockError enum.
* schroot/sbuild-lock.c: Minor documentation and error message tidying.
* schroot/setup/Makefile.am: Distribute 05lvm. * schroot/setup/10mount: Use new LVM variables, so snapshot names and mount locations are as set by the session. Remove mount directory after unmounting, but only if it's under $MOUNT_DIR. * schroot/setup/05lvm: Use new LVM variables, so snapshot names and mount locations are as set by the session. * schroot/setup/00check, schroot/session/00check: Add MOUNT_DIR, SESSION_ID, CHROOT_LVM_SNAPSHOT_NAME and CHROOT_LVM_SNAPSHOT_DEVICE. * schroot/schroot.c (parse_options): Free the option context after use. (main): If a session ID was not specified, generate a UUID for the session. (main): Free the chroot list to make valgrind happy. * schroot/schroot.1.in: Document MOUNT_DIR, SESSION_ID, CHROOT_LVM_SNAPSHOT_NAME and CHROOT_LVM_SNAPSHOT_DEVICE environment variables. * schroot/sbuild-session.c (sbuild_session_get_session_id): session-id is no longer required to be a UUID. (sbuild_session_set_session_id): session-id is no longer required to be a UUID. Allow setting of arbitrary strings. (sbuild_session_setup_chroot): Export MOUNT_DIR and SESSION_ID in the environment. (sbuild_session_run): Set the chroot mount location if the chroot did not already do so. (sbuild_session_run): For LVM snapshot chroots, set the snapshot name to the session ID. (sbuild_session_run): Cascade error handling properly on failure. (sbuild_session_class_init): Update session-id documentation now it is no longer a strict UUID. * schroot/sbuild-session.h (struct _SbuildSession): Change session_id type from uuid_t to gchar *. * schroot/sbuild-config.c (sbuild_config_load): Free GIOChannel, file data buffer and GKeyFile structure after use. * schroot/sbuild-chroot-lvm-snapshot.c (sbuild_chroot_lvm_snapshot_print_config): Don't print NULL values. (sbuild_chroot_lvm_snapshot_setup): Don't set NULL values. Set snapshot device name (path stripped) as CHROOT_LVM_SNAPSHOT_NAME. (sbuild_chroot_lvm_snapshot_get_setup_name): Implement get_setup_name vfunc. This is of the form block-major-minor, obtained by stat()ing the block device. For setup-start, this is the source LV, but for all other cases is the snapshot LV. (sbuild_chroot_lvm_snapshot_class_init): Added new "snapshot-device" property. The "device" property is slaved to this value, and indirectly, the "device" property is also slaved. * schroot/sbuild-chroot-lvm-snapshot.h (struct _SbuildChrootLvmSnapshot): New snapshot_device member. * schroot/sbuild-chroot-block-device.c (sbuild_chroot_block_device_print_details): Don't print NULL values. (sbuild_chroot_block_device_print_config): Don't print NULL values. (sbuild_chroot_block_device_setup): Don't set NULL values. (sbuild_chroot_block_device_get_setup_name): Implement get_setup_name vfunc. This is of the form block-major-minor, obtained by stat()ing the block device. * schroot/sbuild-chroot-plain.c (sbuild_chroot_plain_print_details): Don't print NULL values. (sbuild_chroot_plain_print_config): Don't print NULL values. (sbuild_chroot_plain_setup): Don't set NULL values. (sbuild_chroot_plain_get_setup_name): Implement get_setup_name vfunc. This is of the form directory-major-minor-inode, obtained by stat()ing the mount location. * schroot/sbuild-chroot.c (sbuild_chroot_set_properties_from_keyfile): Don't leak GKeyFile string and string vector values. (sbuild_chroot_get_setup_name): New function. Get the name for e.g. locking during setup. (sbuild_chroot_print_details): Don't print NULL values. (sbuild_chroot_print_config): Don't print NULL values. (setup_env_string): New helper function to build environment list. (setup_env_unsigned): New helper function to build environment list. * schroot/sbuild-chroot.h (struct _SbuildChrootClass): Add get_setup_name vfunc. * schroot/sbuild-auth.c (sbuild_auth_setupenv): Don't leak new environment. * schroot/Makefile.am (install-data-hook): Create mount directory. * configure.ac (SCHROOT_MOUNT_DIR): Add mount directory.
* configure.ac: Output schroot-setup.5 * schroot/Makefile.am (man_MANS): Add schroot-setup.5 * schroot/schroot.1.in: Remove setup script documentation. * schroot/schroot-setup.5.in: New file, documenting setup script environment.
* debian/changelog: Manual pages say "schroot" rather than "sbuild". Closes Debian Bug #331550. * schroot/schroot.conf.5.in: Use "schroot" rather than "sbuild".
* schroot/sbuild-session.c (sbuild_session_setup_chroot): Use new function names. * schroot/sbuild-chroot-lvm-snapshot.c: Use new vfunc names. (sbuild_chroot_lvm_snapshot_setup_lock): stat devices, but still needs liblockdev support for full locking. * schroot/sbuild-chroot-block-device.c: Use new vfunc names. (sbuild_chroot_block_device_setup_lock): stat devices, but still needs liblockdev support for full locking. * schroot/sbuild-chroot-plain.c: Use new vfunc names. (sbuild_chroot_plain_setup_lock): Do no locking by default. * schroot/sbuild-chroot.c (sbuild_chroot_setup_lock): Renamed from setup_chroot_get_setup_name. (sbuild_chroot_setup_env): Renamed from sbuild_chroot_setup. (sbuild_chroot_class_init): Use new vfunc names. * schroot/sbuild-chroot.h (struct _SbuildChrootClass): Rename setup to setup_env and get_setup_name to setup_lock, which now returns gboolean on lock failure.
* All manpages updated to document the new names and directory locations.
* Version 0.1.6. * debian/changelog: Update * TODO: Update. * NEWS: Update. * schroot/schroot.1.in: Remove unused session options. * schroot/schroot.c: Disable unused session options.
* schroot/schroot.1.in: Restore session options. * schroot/schroot.c (parse_options): Restore session options.
* debian/changelog: Bump version to 0.1.7. * debian/control (Build-Depends): Add liblockdev1-dev. * schroot/Makefile.am (schroot_LDADD): Add $(LOCKDEV_LIBS). * configure.ac: Check for liblockdev. * Bump version to 0.1.7.
* schroot/sbuild-chroot-lvm-snapshot.c (sbuild_chroot_lvm_snapshot_setup_lock): The device lock is held on the source device during snapshotting (setup start), and on the snapshot device from run start to run stop and then during setup stop while the chroot is destroyed. * schroot/sbuild-chroot-block-device.c (sbuild_chroot_block_device_setup_lock): The device lock is held throughout the entire session. It is acquired at setup start and released at setup stop. This uses the new sbuild-lock device locking primitives. * schroot/sbuild-chroot.h: SbuildChrootSetupLockFunc uses a mutable chroot object. All implementations of the setup_lock vfunc have been changed accordingly. * schroot/sbuild-lock.c (sbuild_lock_set_device_lock): New function. Lock a device using liblockdev. (sbuild_lock_unset_device_lock): New function. Unlock a device using liblockdev.
* Update documentation. * schroot/sbuild-chroot.c (sbuild_chroot_class_init): Remove the "current-users" and "max-users" properties, and associated object members and methods.
* schroot/sbuild-lock.c (sbuild_lock_set_device_lock): Remove debugging print and sleep statements.
* debian/rules (config.status): Add --libexecdir option to configure.
* schroot/sbuild-session.c (sbuild_session_run): For LVM snapshots, set the chroot name to the session name. * schroot/sbuild-chroot-lvm-snapshot.c (sbuild_chroot_lvm_snapshot_setup_lock): Write out a session file on session startup, and remove it when stopping the session.
* schroot/sbuild-session.c (sbuild_session_run): If a chroot sets SBUILD_CHROOT_SESSION_CREATE, update the chroot name with the session name. * schroot/sbuild-chroot.h (SbuildChrootSessionFlags) Removed unused session flags, and renamed SBUILD_CHROOT_SESSION_PERSISTENT to SBUILD_CHROOT_SESSION_CREATE. All chroot types updated to reflect the change.
* schroot/sbuild-session.c (sbuild_session_run): Set and unset the chroot "active" property before and after running a session. * schroot/sbuild-config.c (sbuild_config_load): Remove active argument from sbuild_chroot_new_from_keyfile call. * schroot/sbuild-chroot.c (sbuild_chroot_class_init): Make "active" property writable, and add methods to get and set the active property. (sbuild_chroot_new_from_keyfile): Remove active argument.
* po/en_GB.po: Updated translation. * TODO: Update. All locking and session items removed now that they are implemented. * schroot/schroot.1.in: Document new "--all-chroots" and "--all-sessions" options. * schroot/schroot.c: Add "--all-chroots" and "--all-sessions" command-line options. (get_chroot_options): Use new "--all" options. (get_chroot_options): Print a list of invalid chroots found during chroot validation. (main): Create the configuration using sbuild_config_new(), and add the approprate configuration and session configuration depending on the command-line options used. * schroot/sbuild-session.c (sbuild_session_run): When restoring a session, set the session ID from the chroot name. (sbuild_session_run): The session operations are only run if specified in the session operations. * schroot/sbuild-config.c (sbuild_config_new): New function. This does not load any configuration files. (sbuild_config_add_config_file): New function, renamed from sbuild_config_set_config_file. This now exported. (sbuild_config_add_config_directory): New function, renamed from sbuild_config_set_config_directory. This now exported. (sbuild_config_find_generic): Cope with the case that no chroots exist. (sbuild_config_get_chroot_list): Cope with the case that no chroots exist. (sbuild_config_validate_chroots): Return a list of invalid chroot names, rather than FALSE. (sbuild_config_class_init): "config-file" and "config-directory" are no longer construct-only. Both properties are now completely virtual, with no corresponding member data (a single filename no longer makes sense when multiple configuration files may be added at any time). * schroot/sbuild-config.h (struct _SbuildConfig): Removed file member. * schroot/sbuild-chroot.h: Fix function misordering. * schroot/sbuild-chroot.c (sbuild_chroot_print_config): Print "active" property, don't translate any option names, and format "mount-device" correctly. (sbuild_chroot_set_property): Add the PROP_ACTIVE property. (sbuild_chroot_class_init): Make "active" a construction property; this is not documented, as it is not intended for use by users; it is for session recovery. * schroot/sbuild-chroot-lvm-snapshot.c (sbuild_chroot_lvm_snapshot_print_config): Chain up using the print_config vfunc. (sbuild_chroot_lvm_snapshot_setup_lock): Use sbuild_chroot_print_config rather than sbuild_chroot_print_details.
* TODO: Remove chroot default item. * schroot/schroot.1.in: Document default fallback. * schroot/schroot.c (get_chroot_options): Fall back to "default" chroot if no chroot was specified.
* schroot/sbuild-config.c (sbuild_config_clear_chroot_list): New helper function to clear stored chroot list. (sbuild_config_clear): New function; uses sbuild_config_clear_chroot_list. (sbuild_config_finalize): Use sbuild_config_clear_chroot_list.
* schroot/sbuild-session.c (sbuild_session_setup_chroot): Propagate GError from sbuild_chroot_setup_lock. * schroot/sbuild-chroot-lvm-snapshot.c (sbuild_chroot_lvm_snapshot_setup_lock): Use GError. Refactor to propagate GError on failure, and reduce the number of return points. (sbuild_chroot_lvm_snapshot_setup_session_info): New function, split out from sbuild_chroot_lvm_snapshot_setup_lock to increase readability. * schroot/sbuild-chroot-block-device.c (sbuild_chroot_block_device_setup_lock): Use GError. Refactor to propagate GError on failure, and reduce the number of return points. * schroot/sbuild-chroot-plain.c (sbuild_chroot_plain_setup_lock): Use GError. * schroot/sbuild-chroot.c (sbuild_chroot_error_quark): New function. * schroot/sbuild-chroot.h (SbuildChrootError): Add error enum. (SbuildChrootSetupLockFunc): Add a GError.
* schroot/schroot.c (parse_options): Remove unused "UUID" argument description for running and ending sessions. (main): Don't set the session id. * schroot/sbuild-session.c (sbuild_session_run): If not running or ending a session, generate a session ID in the form "chroot_name-uuid".
* schroot/schroot.c (main): Abort if more than one chroot is specified when starting a session.
* schroot/schroot.c (main): Allow selection of non-session chroots as sessions, in order to allow session-like behaviour for all chroots, even those that can't natively support sessions. * schroot/sbuild-session.c (sbuild_session_run): Don't append a UUID to the session ID if the chroot does not support session creation.
* schroot/schroot.1.in: Document --recover-session. * schroot/setup/*: Add support to setup scripts for "setup-recover" option. In particular, filesystems are all remounted, and all "setup-start" tasks are performed, except for snapshotting. * schroot/schroot.c (parse_options): Add "--recover-session" session option. (parse_session_options): Parse "--recover-session". (main): Update configuration file loading to account for recovery. * schroot/sbuild-session.c (sbuild_session_setup_chroot): Add support for "setup-recover" argument in scripts. (sbuild_session_run): Add support for session recovery option. * schroot/sbuild-session.h (SbuildSessionOperation): Add SBUILD_SESSION_OPERATION_RECOVER. * schroot/sbuild-chroot.h (SbuildChrootSetupType): Add SBUILD_CHROOT_SETUP_RECOVER.
* Updated documentation. * schroot/schroot.c: Update to use the new SchrootOptions option parsing: (get_chroot_options): An SchrootOptions struct is passed as an argument, since the options are no longer global. (main): Create and free an SchrootOptions struct. * schroot/schroot-options.[ch]: New files. The command-line option parsing has been split out of schroot.c, with an new SchrootOptions struct to contain the parsed options.
* schroot/schroot.c (main): Delegate the decision about which chroot configuration files to load to schroot_options_parse. Use sbuild_config_print_chroot_info to print chroot information. * schroot/schroot-options.h (struct _SchrootOptions): Add load_chroots and load_sessions members. * schroot/schroot-options.c (schroot_options_parse): Determine which chroot configuration files to load more accurately. * schroot/sbuild-config.c (sbuild_config_print_chroot_info): New function, split out from main() in schroot.c.
* schroot/schroot-options.c (schroot_options_parse): Don't load all chroot configurations when in list mode.
* schroot/sbuild-session.c (sbuild_session_run): Ensure child exit status is set to EXIT_FAILURE on session failure. (sbuild_session_init): Set child exit status to EXIT_SUCCESS by default. * debian/changelog: Document changes. * debian/rules (binary-arch): Use dh_installinit to install init script. * debian/schroot.init (NAME): New init script to perform session recovery at system startup.
* debian/schroot.init: Use --quiet option to suppress an unnecessary error message. * schroot/schroot.c (main): If --quiet is used, don't print an error message if no chroots are defined. Remove check for --quiet and --verbose, now moved to schroot_options_parse. * schroot/schroot-options.c (schroot_options_parse): Check if both --quiet and --verbose have been specified.
* TODO: Remove completed items, and update new items. * README: Document new build dependencies. * schroot/schroot.conf.5.in: Add new chroot options to the examples. * schroot/schroot.conf: Add new chroot options to the examples. * schroot/schroot-setup.5.in: Document the setup and run scripts.
* Version 0.1.7. * debian/changelog: Update date. * NEWS: Update.
* debian/changelog: Update for 0.1.8. * NEWS: Update for 0.1.8. * configure.ac: Update version to 0.1.8.
* schroot/sbuild-session.c (is_group_member): Don't fail if the supplementary group count is 0. Also check the process' GID in addition to the supplementary groups.
* debian/changelog: Update. * debian/rules (config.status): Use /usr/lib rather than ${prefix}/lib for libexecdir, to avoid unexpanded shell vars in config.h.
* debian/changelog: Update. * debian/schroot.init: Remove "function" bashism.
* Convert all sources from GObject-based C to ISO C++. This conversion is not yet complete, but builds without error.
* schroot/sbuild-config.cc (load): Add GKeyFile error checking. * schroot/sbuild-chroot-lvm-snapshot.cc (read_keyfile): New private method to read a GKeyFile. * schroot/sbuild-chroot-block-device.cc (read_keyfile): New private method to read a GKeyFile. * schroot/sbuild-chroot-plain.cc (read_keyfile): New private method to read a GKeyFile. * schroot/sbuild-chroot.cc (read_keyfile): New private method to read a GKeyFile. * schroot/sbuild-keyfile.h: New file. Simple wrapper funtions for interfacing with GKeyFile.
* All typedefs and enums have been moved into the class declarations, with the Sbuild and Object prefixes removed. * GError error propagation has been replaced with sbuild::Exception<> in all code. The catch blocks are still local, simply replacing GError, but this will be fixed up later. * All Sbuild objects are in the "sbuild" namespace, and Schroot object are in the "schroot" namespace, with the prefix removed from the class names. * schroot/sbuild-error.h: Remove GError/GType glue, and replace with a simple templated exception class derived from std::runtime_error, initially to replace GError in a compatible manner.
* Remove GLib types (gboolean, gchar, gint), and replace with standard C++ types.
* schroot/sbuild-auth-conv-tty.cc, sbuild-auth.cc: Add support for iostream. * Replace most uses of g_strdup_printf with format_string. * schroot/sbuild-util.cc (format_string): New function to create a std::string from a C-style format string.
* Replace all use of glib/gi18n.h with sbuild-i18n.h. * schroot/sbuild-i18n.h: New file: gettext macros.
* schroot/Makefile.am: Replace $(GOBJECT_LIBS) with $(GLIB_LIBS). * configure.ac: Replace check for GObject with a check for GLib, and adjust $SCHROOT_CFLAGS accordingly. * Remove GObject support.
* schroot/sbuild-chroot.h (sbuild::Chroot::format_detail): template helper class to simplify streaming outout of chroot details. Used by all derived chroot classes. * All Glib string functions have been replaced with the C++ or C99 equivalent. * All uses of g_return[_val]_if_fail have been replaced with conditionals or static assertions. * All Glib logging and message functions have been replaced with the new logging functions and standard C++ streams. * All Glib types have been completely removed, with the exception of one instance of GError, and two uses of GOption. * Support for gtk-doc has been disabled and partially removed. * The dependency upon libsigc++ has been removed. Virtual functions are used instead, which will provide more safety and security. * schroot/sbuild-keyfile.(cc|h): New class sbuild::keyfile, a replacement for GKeyFile. Unlike GKeyFile, it uses templated methods to allow its use with any streamable type, in a type-safe manner. The existing GKeyFile helper functions have been removed. * schroot/sbuild-log.(cc|h): New file: logging functions to replace the Glib print and logging utility functions. Unlike the Glib types, these are based around ostreams. * schroot/sbuild-nostream.(cc|h): New class sbuild::basic_nostream with nostream and wnostream typedefs. This is a "null ostream", which is a bit-bucket stream which discards all input. * schroot/sbuild-types.h: New file: commonly-used types. * Continue purge of Glib.
* schroot/sbuild-session.cc: (sbuild_session_setup_chroot_child_setup): Remove. (setup_chroot): Replace g_spawn_sync with fork(), exec() and wait(). The uid, gid and group list are set prior to calling exec, as with sbuild_session_setup_chroot_child_setup previously. (run_child): Replace g_get_current_dir with GNU libc getcwd, and replace g_find_program_in_path with find_program_in_path. (wait_for_child): The variable to store the child exit status is passed in by reference, rather than being fixed. * schroot/sbuild-keyfile.h (keyfile::get_list_value): Use split_string instead of get_list_items. * schroot/sbuild-keyfile.cc (get_list_items): remove. * schroot/sbuild-util.cc (split_string): New function to split a string into a string_list, based upon sbuild::keyfile::get_list_value, but allows specification of a custom split character. * (find_program_in_path): New function to search for an executable in $PATH. A replacement for g_find_program_in_path.
* debian/control (Build-Depends): Add libboost-dev and libboost-program-options. * schroot/Makefile.am (libsbuild_la_LIBADD): Add BOOST_LIBS. * configure.ac: Add checks for Boost.Format and Boost.Program_options headers and shared libraries.
* schroot/sbuild-util.cc: Remove format_string. * Convert all uses of sbuild::format_string to boost::format. * schroot/sbuild-error.h (sbuild): Add a constructor which gets its message from a boost::format, rather than a std::string.
* configure.ac: Remove checks for Glib. Glib is now completely removed from the sources. * schroot/Makefile.am (libsbuild_la_LIBADD): Remove Glib library. * schroot/schroot-releaselock.cc: Convert from GOption to Boost.Program_options.
* schroot/sbuild-session.cc (is_group_member): Use new rather than C99 VLAs. (setup_chroot): setup_type_string is a std::string, rather than a char *. * schroot/sbuild-config.cc (validate_chroots): Return bad_chroots. * schroot/sbuild-chroot.cc (read_keyfile): Initialise bool values to quell compiler warning. * schroot/sbuild-auth.h (ErrorCode): Remove trailing comma. * schroot/sbuild-auth.cc (auth_conv): Use signed rather than unsigned int in for loops. (Auth::Auth): Correct member initialisation order. * schroot/Makefile.am (AM_CXXFLAGS): Add additional flags: -Wall -Wcast-align -Wwrite-strings -pedantic -Wcast-qual -Wredundant-decls.
* Remove typedef'd enums in favour of plain enums.
* schroot/sbuild-session.c: (run_impl, setup_chroot): Add mising format strings.
* Convert all classes to use runtime_error_custom, and remove all error code enums. * schroot/sbuild-error.h: Remove Exception class, and replace with a runtime_error base class, and runtime_error_custom<> template class (templated on class using it), which no longer has an error code member (the error code was a GError holdover which was not used).
Remove gtk-doc data.
* Convert all inline gtk-doc documentation to Doxygen format, and move it from the sources into the headers.
* Document remaining undocumented functions and typedefs. Implementations of pure virtual functions are not documented (a doxygen bug, Debian bug #324117).
* schroot/sbuild-auth-conv-tty.h: (sbuild::AuthConvTty): Rename conversation_impl to conversation. * schroot/sbuild-auth-conv.h (sbuild::AuthConv): Remove conversation_impl method, replacing it with conversation.
* schroot/schroot-options.cc: Always qualify string_list with sbuild::.
* Add doxygen support to configure and doc/Makefile.am, and distribute the doxygen-generated documentation.
Add schroot-stamp.
* configure.ac: Bump version to 0.2.0, following the C++ and doxygen work.
* schroot/sbuild-nostream.h: Rename m_sbuf to nbuf.
* doc/schroot.dox.in (PROJECT_NUMBER): Use @VERSION at . (WARN_LOGFILE): Log to schroot.log.
* NEWS: Bump version to 2.0
* schroot/sbuild-chroot-plain.cc (read_keyfile): Use keyfile priorities. * schroot/sbuild-chroot-block-device.cc (read_keyfile): Use keyfile priorities. * schroot/sbuild-chroot.cc (read_keyfile): Set chroot name from group name, and use keyfile priorities. * schroot/sbuild-keyfile.h (parse_value): New templated method to parse a key value and set the value of the specified value type. (get_value): Use parse_value, and add debugging messages. Add overloaded method to check key priority. (get_list_value): Use parse_value. Add overloaded method to check key priority. (set_list, set_list_value): Use std::boolalpha to get text representation of bool. (operator >>): Correct off-by-one errors with substring lengths. * schroot/sbuild-keyfile.cc (check_priority): New method to check if a key is required, optional, deprecated or obsolete. Log a warning or error message if a key is missing or present when it should not be. * schroot/sbuild-config.cc (Config): Throw error if construction fails. (add_config_directory): Correct error message. (load): Chroot type defaults to "plain". Log a warning if the chroot type is incorrect. * schroot/sbuild-log.cc (log_debug): Report the debug level when printing messages. * schroot/schroot.cc (main): Set the default debugging level to DEBUG_NOTICE.
* schroot/sbuild-config.cc (load): Insert chroot name into alias map in addition to alias names.
* schroot/sbuild-chroot.h (format_detail::operator <<): Fix justification. * schroot/sbuild-chroot.cc (read_keyfile): Set chroot priority.
* All code updated to use Chroot::chroot_ptr. * schroot/sbuild-config.cc (load): Create chroots from keyfile using Chroot::create. * schroot/sbuild-chroot.h: Chroots are created by a factory function returning a shared_ptr (chroot_ptr). All chroot types have protected constructors, and must be created using the static create methods.
* Replace all format_detail_* typedef usage with format_details. * schroot/sbuild-chroot.h (format_details): Templated member function to construct the correct format_details class template. This replaces all the format_detail_* typedefs.
* schroot/schroot-options.h: Fix include guard naming scheme. * schroot/schroot-releaselock-options.(cc|h): New class for schroot-releaselock options parsing. The options structure has been split out from schroot-releaselock.cc to create this new class.
* schroot/schroot.cc (main): Use actions rather than old bool values. Compute the session operation using the action type. Surround the entire function in a try/catch block, so that exceptions thrown during program execution are reported nicely. * schroot/schroot-options.cc (set_action): Only allow one action to be specified. (Options): Set the appropriate actions when parsing. Session operations are represented within the action member. * schroot/schroot-options.h (schroot): Add action_type enum. This is used to represent all actions the user may specify, rather than using a separate bool for each. Remove the session operation member.
* schroot/sbuild-chroot-lvm-snapshot.cc (setup_session_info): Imbue ostream with "C" locale. * schroot/sbuild-config.cc (load): Imbue istream with "C" locale. * schroot/sbuild-keyfile.cc (keyfile): Imbue ifstream with "C" locale. * schroot/sbuild-chroot.h (setup_env_var): Imbue stringstream with "C" locale. * schroot/sbuild-keyfile.h: All stringstreams are imbued with the "C" locale for locale-independent formatting. * schroot/schroot-releaselock.cc (main): Use C++ locale setup. * schroot/schroot.cc (main): Use C++ locale setup.
* Change all instances of "const T&" to "T const&" for consistency.
* schroot/Makefile.am (AM_CXXFLAGS): Add additional warning flags. * schroot/sbuild-auth.cc (run): Use a static_cast instead of a C-style cast. * schroot/sbuild-lock.cc (set_lock): Initialise the l_pid member of struct flock.
* schroot/sbuild-auth.cc (run): Fix casting to "const void **".
* Updated copyright notices to include 2006 changes. * schroot/Makefile.am: Generate a sbuild.gch precompiled header, and include sbuild.h in all sources which previously included an sbuild header. This should improve compilation speed. * Rename schroot.h to sbuild.h, and include all sbuild-*.h headers. * schroot/sbuild-auth.cc (run): Fix casting to "const void **".
Ignore precompiled headers (.gch). Remove GObject generated sources (typebuiltins and marshallers).
* schroot/sbuild-types.h: Remove env and env_list typedefs. * schroot/sbuild-session.cc: Remove env_list_to_strv helper, replaced by environment::get_strv(). Replace setup_env_var helper with environment add method. * schroot/sbuild-chroot.h: Chroot::setup_env() uses environment rather than env_list; derived classes also changed. Removed setup_env_var helper. * schroot/sbuild-auth.h: Replace env_list with environment. Rename Auth::environment member to user_environment. * schroot/sbuild-auth.cc: Remove env_string helper. * schroot/sbuild-environment.(cc|h): New class sbuild::environment to replace sbuild::env_list and its associated helpers in a number of classes. This is a collection of environment variables.
* schroot/schroot-options.cc (Options): Rewrite the checks which decide which chroot configuration files should be read, depending upon the action specified. * schroot/schroot-options.h (all_used): new method to detect if any of the --all* options are in effect. * schroot/schroot.cc (main): If no chroots are available, warn rather than exiting with an error, since for several commands there may well not be any chroots defined. * schroot/sbuild-config.cc (validate_chroots): Correct inverse match which treated all correctly named chroots as being invalid.
* Actually commit the new environment class.
* schroot/sbuild-auth.cc: Log a warning if construction fails. Correct buggy user assertions.
* schroot/sbuild-session.cc (unnamed namespace): Add child_wait variable to allow debugging of child processes. (get_auth_status): Correct checks for null chroot. (run_impl): Correct checks for null chroot. (setup_chroot): Call closelog in child before exec. (run_child): Remove mount_location assertion, since for some chroot types this will fail. (run_child): Use command[0] rather than command[1], which may not exist. Call closelog in before exec. (run_chroot): Loop on child_wait to allow a debugger to be attached to the child, if debugging is enabled. * schroot/sbuild-environment.cc (add): Use char ** for iterator type, and add additional checks for null. (add): Add stricter substring range checks (remove): Add stricter substring range checks. * schroot/sbuild-chroot.cc * schroot/sbuild-chroot-plain.cc (ChrootPlain): Move read_keyfile code into the constructor. * schroot/sbuild-chroot-lvm-snapshot.cc (ChrootLvmSnapshot): Move read_keyfile code into the constructor. * schroot/sbuild-chroot-block-device.cc (ChrootBlockDevice): Move read_keyfile code into the constructor. * schroot/sbuild-chroot.cc (Chroot): Move read_keyfile code into the constructor. (print_details): Print mount_location and mount_device if set for both session and non-session chroots.
* debian/rules: Build and run the testsuite in the build target. * debian/control (Build-Depends): Add libcppunit-dev. * schroot/sbuild-util.cc (find_program_in_path): Split PATH on ':' characters. * test/sbuild-util.cc: New file: tests for sbuild-util functions. * test/testmain.cc: New file: test runner for all tests. * configure.ac: Add check and conditinal for CppUnit. * Makefile.am (SUBDIRS): Add test directory.
* doc/Makefile.am (all-local): Don't rebuild doxygen documentation when not in maintainer mode. * configure.ac: Enable maintainer mode.
* Add copyright and GPL boilerplate to all testcase code. * test/sbuild-chroot.cc: New testcase for sbuild::Chroot. * schroot/sbuild-environment.cc (remove): For the "char **" overloaded method, use the correct iterator type (the same as the equivalent add function). * schroot/sbuild-environment.h (add): Specialise templated method for strings. * schroot/sbuild-environment.h (get): New templated method to retrieve the value of an environment variable by its name.
* po/sv.po: Add Swedish translation.
* Update API reference. * test/sbuild-chroot-lvm-snapshot.cc: New file. Tests for ChrootLvmSnapshot. * test/sbuild-chroot-block-device.cc: New file. Tests for ChrootBlockDevice. * test/sbuild-chroot-plain.cc: New file. Tests for ChrootPlain. * test/test-sbuild-chroot.h: New file. Base class for all chroot tests. * test/test-helpers.h (test_list): New file of test helper functions. The initial function is a templated test for testing string_list getters and setters. * test/Makefile.am (noinst_LTLIBRARIES): Add libtest.la, a generic test library that contains the generic test runner and links with CppUnit. * schroot/sbuild-keyfile.h: Remove parse_value. * schroot/sbuild-environment.h (get): Use parse_value to parse values. * schroot/sbuild-parse-value.(cc|h): New files. Split value parsing out from sbuild-keyfile to allow reuse.
* Remove completed and obsolete TODO items. * test/sbuild-util.cc: Update testcase with fixed path. * schroot/sbuild-session.cc (run_child): Use new find_program_in_path syntax. * schroot/sbuild-util.cc (find_program_in_path): Add path argument, to allow use of paths other than $PATH.
* test/sbuild-environment.cc: New file. Tests for environment. * test/testmain.cc (main): Add debugging checks. * test/Makefile.am (libtest_la_LIBADD): Add libsbuild.la, and remove from all binary LDADD lines. * schroot/sbuild-util.cc (strv_delete): New function moved from sbuild-session.cc, with the iterator type corrected. * schroot/sbuild-session.cc: Remove strv_delete. * schroot/sbuild-environment.h: Fix constness of overloaded operators, and correct use of lvalue in binary operators.
* test/sbuild-keyfile.cc: New file. Tests for keyfile. * schroot/sbuild-keyfile.h (set_value): Insert stringstream value, rather than templated value. (set_list_value): Fix bug with iterator by using binary operator + rather than +=. (operator <<): Print newline after key-value pairs. * schroot/sbuild-keyfile.cc (keyfile): Add constructor taking no arguments. (print_comment: Turn into static member function.
* test/sbuild-lock.cc: New file. Tests for locking. * schroot/sbuild-lock.cc (set_lock): If the current process doesn't own the lock, unlocking always succeeds.
* test/sbuild-nostream.cc: New file. Test for nostream. * test/sbuild-environment.cc (add_simple_examples): Correct assertion.
* test/sbuild-log.cc: New file. Test logging with stringbufs. * test/sbuild-nostream.cc (test_nostream): Fix whitespace.
* po/vi.po: Add Vietnamese translation.
* schroot/sbuild-keyfile.cc (check_priority): Add support for PRIORITY_DISALLOWED. * schroot/sbuild-config.cc: Convert to throw exception instead of immediately terminating with an error. This makes unit testing possible, and errors are all caught correctly at the top-level. * schroot/sbuild-chroot-lvm-snapshot.cc: When reading a keyfile, only allow reading "lvm-snapshot-device" when restoring an active chroot. * configure.ac (AM_INIT_AUTOMAKE): Quote argument. * test/sbuild-config.cc: New file. Test for sbuild::Config.
* schroot/sbuild-auth.cc (~Auth): Shut down PAM if currently active.
* schroot/schroot.cc (main): Only allow preservation of the user environment if not switching users. * schroot/sbuild-auth.cc (Auth, set_user): Throw exceptions rather than exiting on failure. (setupenv): Tidy up setting the environment.
* schroot/sbuild-auth-conv-tty.cc: Move static data and functions into the unnamed namespace.
* schroot/sbuild-environment.h: Remove completed TODO item about recommending strv_delete().
* test/sbuild-config.cc (class test_config): Update to use active argument. * schroot/schroot.cc (main): When loading chroot configuration, specify if they are active sessions or not. * schroot/sbuild-config.cc: All methods taking a file or directory name also take an "active" argument to specify if the chroots being loaded are active sessions or not.
* configure.ac: Update maintainer email address. * schroot/sbuild-config.h: Remove completed TODO item.
* schroot/sbuild-config.cc (load): Catch and handle exceptions if chroot creation fails. * schroot/sbuild-chroot.cc (create): Throw an exception if creation fails.
* schroot/sbuild-session.cc (run_child): Search for the program to run inside the chroot, rather than on the root filesystem. * schroot/sbuild-util.cc (find_program_in_path): Add a prefix argument, to allow searching in non-root paths, for example inside a chroot.
* test/sbuild-parse-value.cc: New file. Tests for parse_value. * schroot/sbuild-parse-value.h (parse_value): Check failbit rather than badbit to catch parse errors. * schroot/sbuild-parse-value.cc (parse_value): Correctly parse false boolean values.
* Update documentation. * schroot/setup/10mount: Add special cases for file chroots. * schroot/setup/05file: New file for unpacking and deleting file-based chroots. * schroot/sbuild-chroot-file.(cc|h): New file implementing file-based chroots. * schroot/sbuild-chroot.cc (setup_session_info): Add setup_session_info from ChrootLvmSnapshot. * schroot/sbuild-chroot-lvm-snapshot.cc: Remove setup_session_info.
* schroot/setup/05file: Filetype checks are now quiet.
* schroot/sbuild-chroot.h: setup_session_info is protected and virtual. * test/Makefile.am: Distribute test data.
* configure.ac: Remove check for stdbool.h.
* po/en_GB.po: Updated British English translation.
* debian/changelog: Update for 0.2.0. * debian/control: Suggest unzip. * NEWS: Update for 0.2.0.
* schroot/schroot-options.cc: Store positional arguments correctly using positional_options_description.
* debian/rules: Don't run the testsuite.
* schroot/sbuild-util.cc (find_program_in_path): Return the program name without the absolute prefix. * schroot/sbuild-session.cc (run_child): Don't prefix the program search path (find_program_in_path), because it's already running inside the chroot. * schroot/Makefile.am (DEFS): Remove G_LOG_DOMAIN. * schroot/schroot-options.cc: Remove debugging messages.
* schroot/sbuild-chroot.cc (create): Add support for "file" type chroots. * schroot/setup/05file: Split file type checking and unpacking into shell functions. * schroot/run/00check: Add support for file chroots. * schroot/setup/00check: Add support for file chroots. * schroot/setup/Makefile.am (setup_SCRIPTS): Add 05file. * schroot/schroot.1.in: Update help options.
* test/sbuild-chroot-file.cc: New file. Unit test for ChrootFile. * schroot/sbuild-util.cc (string_list_to_strv): New function, moved from sbuild-session.cc. * schroot/sbuild-session.cc: Remove string functions.
* schroot/schroot-options.cc: Beginning a session only works with normal chroots. Session operations on active sessions load all chroots, not just session chroots. * schroot/sbuild-session.cc (run_impl): For persistent sessions, remove aliases prior to writing out the session data, to prevent duplicate aliases. (run_impl): Only run a command when performing the appropriate operations, rather than all the time. (setup_chroot): Correct bug in automatic operation which would potentially prevent correct cleanup. * schroot/sbuild-keyfile.h: Add TODO item for duplicate keys. * schroot/sbuild-config.cc (load): Add warnings when chroots and aliases names are duplicated.
* Version 0.2.0. * schroot/schroot.conf.5.in: Add example for file chroot. * test/config.ex2/config: Removed (duplicated in test/config.ex2/sarge). * test/config.ex2/file: New file. Test data for file chroots.
* Version 0.2.1. * debian/changelog: Update for 0.2.1. * schroot/sbuild-session.cc (wait_for_child): Set child_status to EXIT_FAILURE, rather than this->child_status. This prevents a non-zero exit status being returned at all times by child processes. * NEWS: Update for 0.2.1. * configure.ac: Update version to 0.2.1.
Fix email address.
* schroot/sbuild-chroot.cc (Chroot): Get "mount-location" and "mount-device" from session keyfiles. (print_details): Use the correct virtual functions to get "Mount Location" and "Mount Device". (print_config): Use the correct virtual functions to get "mount-location" and "mount-device".
* debian/changelog: Update version to 0.2.2. * NEWS: Update version to 0.2.2. * configure.ac: Update version to 0.2.2.
* Simplify rethrow in catch blocks. * schroot/sbuild-session.cc (run_impl): Remove unneeded else block, to simplify the code.
* Update TODO list. * Update testcases. * schroot/sbuild-config.cc (load): Use the new Chroot keyfile streaming functionality to initialise chroots. * Implement all new virtual functions in Chroot in derived classes. * Remove all functions removed from Chroot in derived classes. * schroot/sbuild-chroot.(cc|h) (Chroot): Remove overloaded construction to initialise with a keyfile. (create): Remove overloaded method for creating from a keyfile. (print_config): Remove. (get_keyfile): New protected virtual method to serialise a chroot to a keyfile. (set_keyfile): New protected virtual method to initialise a chroot from a keyfile. (operator >>): New friend function to stream from a keyfile. (operator <<): New friend function to stream to a keyfile.
* debian/changelog: Update. * debian/control (Build-Depends): Remove GLib. * README: Update build-dependencies.
* Update testcases. * schroot/sbuild-config.cc (print_chroot_info): Use new chroot streaming to output details to an ostream. * print_details is protected in all derived classes. * schroot/sbuild-chroot.h (print_details): Make protected. (operator <<): New friend function to output chroot details to an ostream.
* schroot/schroot.1.in: Document new "--config" option. * schroot/schroot.cc (main): Print configuration if "--config" is specified. * schroot/schroot-options.cc: Add "--config" option to set ACTION_CONFIG. * schroot/schroot-options.h: New action_type enum ACTION_CONFIG. * schroot/sbuild-config.cc (print_chroot_config): New function to print chroot configuration (keyfile format).
* NEWS: Update.
* test/sbuild-keyfile.cc: Update. * schroot/sbuild-keyfile.h (set_value): Overload to provide an optional comment. Call set_group to create nonexistent groups on the fly. (set_list_value): Overload to provide an optional comment. (operator >>): Parse comments. * schroot/sbuild-keyfile.cc (set_group): New function to add a group with a comment. (get_comment): An overloaded function to get group and item comments. (print_comment): Split string to print on '\n', and correctly reproduce whitespace.
* schroot/schroot.1.in: Add better description for the use of "--config". * schroot/schroot.conf.5.in: Document localised strings. * schroot/sbuild-config.cc (load): Exceptions thrown by keyfile parsing are not caught and treated as warnings; they are fatal. * schroot/sbuild-chroot.cc (set_keyfile): Get a localised value for the "description" key. * schroot/sbuild-keyfile.cc (get_locale_string): Add a set of overloaded functions to get localised string values.
* schroot/sbuild-keyfile.h (operator >>): Linecounting counts from line 1, rather than 0. Fix error message capitalisation. All parsed groups and keys are added to a temporary keyfile, which is then assigned to the current keyfile, to allow the correct catching of duplicate groups and keys. * schroot/sbuild-keyfile.cc (operator +=): New function. Add all of the keys in one keyfile to another, overwriting keys on the lhs if already present. Comments are carried across. (operator +): New function. Add two keyfiles together.
* schroot/sbuild-auth-conv.h: Add an error exception typedef. * schroot/sbuild-auth-conv-tty.cc (get_delay): Throw an exception on fatal timeout. Log a warning rather than using std::cerr. (read_string): Return a string rather than a pointer to an allocated string. Throw an exception on failure. (read_string): Don't print a newline after the prompt message. (conversation): Remove all string cleanup code and replace with a single exception handler.
* Rename sbuild::Chroot to sbuild::chroot. * test/config.ex2/sarge (run-session-scripts): Remove duplicate line.
* Rename sbuild::ChrootLvmSnapshot to sbuild::chroot_lvm_snapshot. * Rename sbuild::ChrootBlockDevice to sbuild::chroot_block_device. * Rename sbuild::ChrootFile to sbuild::chroot_file. * Rename sbuild::ChrootPlain to sbuild::chroot_plain.
* Rename sbuild-config.(cc|h) to sbuild-chroot-config.(cc|h). * Rename sbuild::Config to sbuild::chroot_config.
* Rename Sbuild::Lock to sbuild::lock, Sbuild::FileLock to sbuild::file_lock, and Sbuild::DeviceLock to sbuild::device_lock.
* Rename sbuild::Auth to sbuild::auth.
* Rename sbuild::AuthMessage to sbuild::auth_message.
* Rename sbuild::AuthConvTty to sbuild::auth_conv_tty. * Rename sbuild::AuthConv to sbuild::auth_conv.
* Rename sbuild::Session to sbuild::session.
* Rename schroot::Options to schroot::options.
* Rename sbuild::chroot::chroot_ptr to sbuild::chroot::ptr, sbuild::chroot::SetupType to sbuild::chroot::setup_type, and sbuild::chroot::SessionFlags to sbuild::chroot::session_flags.
* doc/schroot.dox.in: Strip the build directory from file pathnames, use built-in STL support, and sort classes by namespace.
* Remove all keyfile constructors from sbuild::chroot and derived classes.
* debian/control: Add versioned depends on libpam0g-dev >= 0.79-3.1, because earlier versions have broken headers, due to redefining internal glibc/libstdc++ types.
* NEWS: Document updated defaults. * schroot/schroot.conf.5.in: Document updated defaults. * schroot/sbuild-chroot-lvm-snapshot.cc (chroot_lvm_snapshot): Default to running setup and session scripts. * schroot/sbuild-chroot-file.cc (chroot_file): Default to running setup and session scripts.
* Use the same indentation style for all function prototypes.
* Remove static qualifer from functions in the unnamed namespace. * schroot/sbuild-chroot-config.cc (chroot_alphashort): Move to unnamed namespace. * Update doxygen documentation for file members.
* po/en_GB.po: Update. * po/POTFILES.in: Update file list. * Minor cosmetic cleanups.
* Version 0.2.2. * debian/changelog: Update for 0.2.2.
* schroot/schroot-options.cc (options): Fix typo (begining). Thanks to Clytie Siddall at the Free Translation Project for spotting it.
* schroot/schroot-setup.5.in: Document setup/05file. * schroot/schroot.1.in: Fix typo in macro.
* debian/changelog: Bump version to 0.2.3. * debian/control (Build-Depends): Add pkg-config build dependency. * NEWS: Bump version to 0.2.3. * configure.ac: Bump version to 0.2.3.
* schroot/sbuild-session.cc (run_child): If it is not possible to change into the correct directory inside the chroot, print a warning rather than an error.
* schroot/schroot.cc (main): If --quiet is specified, don't log an error if the session fails. A non-zero exit status is still returned.
Regenerated translations.
* test/sbuild-chroot-config.cc: Update tests. * schroot/schroot.cc (main): Use new chroot_config typedef, and use chroot_config::add instead of add_config_file and add_config_directory. * schroot/sbuild-chroot-config.h (ptr): New typedef for a shared_ptr to a chroot_config. (add_config_file: Now private. (add_config_directory): Now private. * schroot/sbuild-chroot-config.cc (add): New method. This replaces the file/directory detection in the constructor, and then calls add_config_file or add_config_directory as required. (load_data): New function, renamed from load. (parse_data): New virtual function, called from load_data. This parses the loaded data, and is split out from load.
* schroot/sbuild-chroot-config.h: Fix include guard naming. * schroot/sbuild-chroot-config.cc (add): New overloaded protected method to add a chroot, including checking for duplicates. Split out from parse_data.
* Updated sv.po and vi.po from the Free Translation Project.
* po/Makevars (XGETTEXT_OPTIONS): Add --boost so boost-format strings are correctly extracted.
* schroot/sbuild-chroot-config.cc (print_chroot_list_simple): New function to print the chroot list on a single line, in the same style as dchroot (comma-separated, with aliases in square brackets). (print_chroot_location): New function to print the mount location of the specified chroots.
* schroot/schroot.cc (main): Use the new session::ptr typedef. * schroot/sbuild-session.h: Add a ptr typedef, a shared_ptr to a session.
* configure.ac: Add --enable-dchroot check to enable dchroot compatibility.
* schroot/dchroot-session.(cc|h): New class, dchroot::session, derived from sbuild::session. This disables user authentication (but not authorisation), and disables user switching. * schroot/dchroot-chroot-config.(cc|h): New class, dchroot::chroot_config, derived from sbuild::chroot_config. This parses the dchroot.conf configuration file.
* schroot/schroot-options.cc (options): Set dchroot_compat if SBUILD_DCHROOT_COMPAT is defined. (options): If dchroot_compat is set, use dchroot compatible options, otherwise schroot options. * schroot/schroot-options.h (action_type): New action ACTION_LOCATION to print chroot location. (chroot_path): New member; chroot to print path. (dchroot_compat): New member; dchroot compatibility mode.
* schroot/schroot.cc: If SBUILD_DCHROOT_COMPAT is defined, run in dchroot compatibility mode, using the alternate dchroot::chroot_config and dchroot::session classes for reading the configuration and session handling.
* schroot/dchroot.1.in: Add manual page for dchroot.
* schroot/sbuild-session.h (session): The contructor chroots argument is a const reference rather than a value.
* TODO: Add dchroot. * configure.ac: Create schroot/dchroot.1. * schroot/Makefile.am: If --enable-dchroot was used, build and install dchroot and dchroot.1.
* schroot/schroot.1.in: Document new --location option.
* NEWS: Add dchroot.
* debian/changelog: Update for version 0.2.3-1. * debian/README.Debian: Update dchroot notes. * debian/rules (config.status): Add --enable-dchroot to configure, to package the dchroot + wrapper. * debian/control (schroot): Provide, Conflict and Replace dchroot. Enhances sbuild. Suggest lvm-common for LVM support. Update description.
* schroot/schroot.cc (main): Use ACTION_LOCATION, not ACTION_INFO_LOCATION.
* .cvsignore: Update for dchroot.
* Update po files. * po/POTFILES.in: Add dchroot files.
* schroot/dchroot-session.cc (run_impl): Use boost::format rather than printf specifiers.
Updated translations.
* schroot/dchroot.1.in: Document reasons why schroot.conf should be used in preference to dchroot.conf.
* schroot/dchroot.1.in: Document how to remove dchroot.conf.
* NEWS: Document automatic block-device creation for lvm-snapshot chroots. * TODO: Remove completed item. * schroot/schroot.conf.5.in: Document automatic block-device creation for lvm-snapshot chroots. * schroot/sbuild-chroot-config.cc (parse_data): Create a corresponding block-device chroot for each lvm-snapshot chroot. "-source" is appended to the chroot name and its aliases.
* test/sbuild-chroot-config.cc: Account for additional -source chroots.
* schroot/sbuild-chroot.cc (print_details): Add a "Session Managed" line if SESSION_CREATE is used.
* Version 0.2.3. * debian/changelog: Update for 0.2.3. * NEWS: Document changed "--info" output. * TODO: Update.
Update translations.
* debian/changelog: Update * debian/rules: dchroot must be installed setuid root. * debian/schroot.lintian-overrides: Add dchroot.
* schroot/Makefile.am: Install dchroot setuid.
* schroot/schroot.conf.5.in: Fix typo. * schroot/dchroot.1.in: Fix syntax error.
* debian/changelog: Bump version to 0.2.4. * NEWS: Bump version to 0.2.4. * configure.ac: Bump version to 0.2.4.
* po/en_GB.po: Add missing space.
* schroot/schroot.conf.5.in: Document "location" for block-device chroots. * schroot/schroot-setup.5.in: Document CHROOT_LOCATION and CHROOT_PATH. * Update tests to check CHROOT_LOCATION and CHROOT_PATH. * schroot/setup/50chrootname: Replace CHROOT_MOUNT_LOCATION with CHROOT_PATH. * schroot/setup/30passwd: Replace CHROOT_MOUNT_LOCATION with CHROOT_PATH. * schroot/setup/20network: Replace CHROOT_MOUNT_LOCATION with CHROOT_PATH. * schroot/setup/10mount: Replace CHROOT_MOUNT_LOCATION with CHROOT_PATH. * schroot/setup/00check: Add CHROOT_LOCATION and CHROOT_PATH. Replace CHROOT_MOUNT_LOCATION with CHROOT_PATH. * schroot/run/50sbuild: Replace CHROOT_MOUNT_LOCATION with CHROOT_PATH. * schroot/run/00check: Add CHROOT_LOCATION and CHROOT_PATH. * schroot/sbuild-chroot-config.cc (print_chroot_location): Use get_path() instead of get_mount_location(). * schroot/sbuild-session.cc (run_child): Use get_path() instead of get_mount_location(). * schroot/sbuild-chroot-plain.cc (get_location): Chain up to base class implementation. (set_location): Chain up to base class implementation. (print_details): Remove printing of location detail. * schroot/sbuild-chroot-plain.h (get_location): Make virtual. (set_location): Make virtual. (get_mount_location): Remove virtual function. (location): Remove member. * schroot/sbuild-chroot-block-device.cc (get_location): New method. Get the location of a chroot on the device filesystem. (set_location): New method. Set the location of a chroot on the device filesystem. (get_keyfile): Set location in keyfile. (set_keyfile): Get optional location from keyfile. * schroot/sbuild-chroot.cc (get_location): New virtual method. (set_location): New virtual method. (get_path): New virtual method. The default implementation concatenates and returns the mount_location and the location. (setup_env): Add CHROOT_LOCATION and CHROOT_PATH to the environment. (print_details): print Location and Path. * schroot/sbuild-chroot.h: (location): New member.
* debian/changelog: Update. * NEWS: Update. * Update tests. * schroot/schroot.conf.5.in: Document "run-setup-scripts" behaviour for plain chroots. * schroot/setup/10mount: Allow plain chroots to run the mount script. For plain chroots, bind mount LOCATION on MOUNT_LOCATION. * schroot/setup/00check: For plain chroots, verify CHROOT_LOCATION, rather than CHROOT_PATH (because CHROOT_PATH does not exist at this point). * schroot/sbuild-session.cc (run_impl): In addition to all other chroot types, if chroot is a chroot_plain chroot with setup scripts enabled, set the mount location to the session id. * schroot/sbuild-chroot-plain.cc (get_path): New virtual method to override base class implementation. When setup scripts are enabled, return the mount location, or else the location. (setup_lock): When setup scripts are enabled, write out a session metadata. (get_session_flags): When setup scripts are enabled, enable SESSION_CREATE, or else 0.
* schroot/sbuild-chroot-config.h: Fix Doxygen warnings. * schroot/sbuild-parse-value.cc: Fix Doxygen warnings. * schroot/sbuild-parse-value.h: Fix Doxygen warnings.
* Version 0.2.4. * debian/changelog: Update for 0.2.4. * TODO: Update.
* debian/changelog: Add acknowledgement for #354257.
* schroot/schroot.1.in: Correct the --help options. Thanks to Clint Adams for this patch.
* debian/changelog: Update. * schroot/run/50sbuild: Create ${CHROOT_PATH}/var/lib/sbuild/srcdep-lock and set ownership and permissions of all files under ${CHROOT_PATH}/var/lib/sbuild to root:sbuild and 02775, respectively. Thanks to Adeodato Sim�� for this patch.
* debian/changelog: Update to close the --help options (Bug #354477).
* Version 0.2.5. * configure.ac: Update for 0.2.5. * debian/changelog: Update for 0.2.5. * NEWS: Document "Path" line. Update for 0.2.5. * schroot/sbuild-chroot.cc (print_details): Output path information if available.
* Remove bashisms in all setup and run shell scripts (test "-o" and "function" in shell functions). Thanks to Clint Adams for this patch.
* NEWS: Document "command-prefix" option. * schroot/schroot.conf.5.in: Document "command-prefix" option. * schroot/sbuild-session.cc (run_child): Concatenate command_prefix and command to get the command to run in the chroot. * schroot/sbuild-chroot.cc (get_command_prefix): New method to get command prefix. (set_command_prefix): New method to set command prefix. (print_details): Display command_prefix if set. (get_keyfile): Set command-prefix in keyfile. (set_keyfile): Get command-prefix from keyfile. * schroot/sbuild-chroot.h: New member command_prefix.
* configure.ac: Bump version to 0.2.6.
* debian/postinst: Move /etc/schroot/run.d/50sbuild to /etc/schroot/setup.d/50sbuild if modified locally. * debian/preinst: Remove /etc/schroot/run.d/50sbuild if not modified locally. * schroot/schroot-setup.5.in: Update location of 50sbuild. * Move 50sbuild from schroot/run.d to schroot/setup.d. * schroot/setup/50sbuild: Move from schroot/run/50sbuild.
* debian/changelog: Update. * debian/postinst: Move /etc/schroot/run.d/00check to /etc/schroot/exec.d/00check if modified locally. * debian/preinst: Remove /etc/schroot/run.d/00check if not modified locally. * Update tests. * schroot/schroot.conf: Rename run-session-scripts to run-exec-scripts. * schroot/schroot.conf.5.in: Document new configuration parameters, and deprecated parameters. * schroot/schroot.1.in: Document new setup script locations. * schroot/schroot-setup.5.in: Document new setup script locations and parameters. * schroot/Makefile.am (SUBDIRS): Rename run to exec. * configure.ac: Rename SCHROOT_CONF_RUN_D to SCHROOT_CONF_EXEC_D. Rename schroot/run/Makefile to schroot/exec/Makefile. Tidy comments. * schroot/sbuild-session.cc: Use new chroot functions and enums. Also use SCHROOT_CONF_EXEC_D rather than SCHROOT_CONF_RUN_D. Execution scripts are called with "exec-start" and "exec-stop", rather than "run-start: and "run-stop", respectively. * Use new functions and enums in all derived chroot types. * schroot/sbuild-chroot.cc (get_run_exec_scripts): Rename from get_run_session_scripts. (set_run_exec_scripts): Rename from set_run_session_scripts. (print_details): Print "Run Execution Scripts" rather than "Run Session Scripts". (get_keyfile): Set "run-exec-scripts" in the keyfile. (set_keyfile): Get "run-exec-scripts" in the keyfile. Also get "run-session-scripts" (now deprecated) for backward compatibility. * schroot/sbuild-chroot.h (setup_type): Rename RUN_START and RUN_STOP to EXEC_START and EXEC_STOP. (run_exec_scripts): Rename member from run_session_scripts. * Rename schroot/run to schroot/exec.
* NEWS: Document exec.d and run-exec-scripts changes.
* schroot/sbuild-chroot-config.cc (parse_data): Don't create a "-source" chroot for LVM snapshots if the chroot is active.
* NEWS: Document changed behaviour of session operations. * schroot/schroot-options.cc (options): Allow session recovery, session running and session ending to be performed upon multiple chroots, rather than one at once.
* debian/changelog: Update. * debian/schroot.init: Rename $DAEMON to $SCHROOT. Don't exit with an error if session recovery for an individual chroot fails.
* Makefile.am: Add sbuild-chroot-source.(cc|h). * schroot/sbuild.h: Include sbuild-chroot-source.h. * schroot/sbuild-chroot-source.(cc|h): New file. This is an interface class, to be implemented by chroots providing source chroots in addition to normal chroots.
* All classes derived from sbuild::chroot use virtual public inheritance (to allow for the use of sbuild::chroot_source).
* schroot/sbuild-chroot-config.cc (parse_data): Remove special case for lvm-snapshot chroots. Instead, create and add a source chroot for any inactive chroot implementing chroot_source. * schroot/sbuild-chroot-lvm-snapshot.cc (clone_source): Create a chroot_block_device source chroot. (setup_env): Chain up to chroot_source method. (print_details): Chain up to chroot_source method. (get_keyfile): Chain up to chroot_source method. (set_keyfile): Chain up to chroot_source method. * schroot/sbuild-chroot-lvm-snapshot.h: Derive from sbuild::chroot_source, and implement sbuild::chroot_source::clone_source.
* schroot/exec/00check: Add check for CHROOT_FILE_REPACK. * schroot/setup/00check: Add check for CHROOT_FILE_REPACK. * schroot/sbuild-chroot-file.cc: (chroot_file): repack member is false by default. (clone_source): Create a chroot_block_device source chroot. Set repack to true. (setup_env): Chain up to chroot_source method. Add a CHROOT_FILE_REPACK environment variable. (print_details): Chain up to chroot_source method. (get_keyfile): Chain up to chroot_source method. Set a "file-repack" key. (set_keyfile): Chain up to chroot_source method. Get a "file-repack" key, but only when restoring an active session. * schroot/sbuild-chroot-file.h: Derive from sbuild::chroot_source, and implement sbuild::chroot_source::clone_source. (repack): New member to allow repacking of the chroot on session ending. * schroot/sbuild-chroot-config.cc (parse_data): Remove unneeded dynamic_cast to chroot_lvm_snapshot *. Make sure source chroot is valid before adding it.
* schroot/sbuild-environment.h (add): Use std::boolalpha to correctly represent boolean values.
* schroot/setup/05file: Run check_filetype in all cases. (unpack_file): Correctly unpack tar.bz2 files. (repack_file): New function to pack up the chroot tree back into an archive file.
* schroot/setup/05file: Fix incorrect comment.
* schroot/setup/05file: Fix incorrect comment.
* schroot/setup/05file: (check_filetype): Correctly escape '.'.
* schroot/setup/05file: (unpack_file): Use a temporary file to prevent data loss, and use trap to clean up on failure.
* NEWS: Document new source chroots and file repacking. * schroot/schroot-setup.5.in: Document CHROOT_FILE_REPACK. * schroot/schroot.conf.5.in: Document source chroot options.
* debian/changelog: Close #354780. * schroot/setup/05file: If the chroot status is not "ok", don't repack the file archive. * schroot/schroot-setup.5.in: Document second argument to setup and exec scripts (chroot status). * schroot/schroot.cc (main): Save and restore termios, so that abnormal session termination leaves the terminal in a usable state. * schroot/sbuild-session.cc (sighup_called): New variable to flag SIGHUP. (sighup_handler): New function to handle SIGHUP. (run_impl): Enable and disable handler for SIGHUP. Switch chroot::SETUP_STOP action to after the catch block, to prevent it being run twice on failure. (setup_chroot): Set chroot_status to false on failure. Use this as the second argument to setup and exec scripts. If chroot locking fails, immediately unlock to ensure that any session metadata files are unlinked. (wait_for_child): If SIGHUP is caught, kill any child process and throw an error. (set_sighup_handler): Set a handler for SIGHUP. (clear_sighup_handler): Restore the previous handler for SIGHUP. * schroot/sbuild-session.h (chroot_status): New member to track the state of the chroot. (saved_signals): New member used to save and restore signals handlers.
* po/sv.po: Updated translated from the Free Translation Project.
* schroot/schroot.1.in: Document environment sanitising. * schroot/schroot.cc (main): Allow the environment to be preserved even if changing users. * schroot/sbuild-auth.cc (setupenv): Add SHELL to default environment. Sanitise the environment by removing dangerous variables (the same set used by sudo).
* TODO: Update. * schroot/schroot.conf.5.in: Document required ownership and permissions for file archives. * schroot/sbuild-chroot-file.cc (setup_lock): Check ownership and permissions of file archive. * schroot/sbuild-chroot-config.cc (check_security): Tidy error message formatting. * schroot/setup/10mount: (do_umount): Only umount if the mountpoint exists. * schroot/setup/05file: (repack_file): Preserve ownership and permissions of the original archive file.
* po/en_GB.po: Update translation.
* Version 0.2.6. * debian/changelog: Update for 0.2.6.
* debian/changelog: Bump version to 0.2.7. * NEWS: Bump version to 0.2.7. * configure.ac: Bump version to 0.2.7. * po/en_GB.po: Update translation. * schroot/sbuild-auth.cc (setupenv): For security, PATH is always set to a sane state for root, but only set in other cases if not preserving the environment. * schroot/sbuild-session.cc (run_child): When "command-prefix" has been specified, correctly set the filename to pass to execve. Mark four strings for translation.
* Version 0.2.7. * debian/changelog: Update for 0.2.7. * NEWS: Update for 0.2.7.
* debian/changelog: Version 0.2.7-2, released to fix a dchroot crash. * schroot/dchroot-session.cc (run_impl): Correctly chain up to the base class.
* schroot/sbuild-session.cc (run_child): Don't fix up argv for a login shell if using a command-prefix, since this will not be a valid command for command-prefix to execute.
Update.
* po/vi.po: Update. * po/sv.po: Update.
* configure.ac: Bump version to 0.2.8. * NEWS: Bump version to 0.2.8. * debian/changelog: Bump version to 0.2.8-1.
* Version 0.2.8. * debian/changelog: Update for 0.2.8.
* po/vi.po: Update.
* po/vi.po: Update.
* configure.ac: Bump version to 0.2.9. * NEWS: Bump version to 0.2.9. * debian/changelog: Bump version to 0.2.9-1.
* debian/changelog: Close #361108. * debian/README.Debian: Move chroot safety advice to README.
* schroot/sbuild-keyfile.h: Use Boost if TR1 is not available. * schroot/sbuild-chroot.h: Use Boost if TR1 is not available. * schroot/sbuild-auth.h: Use Boost if TR1 is not available. * schroot/Makefile.am: (AM_CXXFLAGS): Remove -Wextra. (BUILT_SOURCES): Don't build sbuild.gch. (#CLEANFILES): Don't clean sbuild.gch. (nodist_libsbuild_la_SOURCES): Add sbuild-config.h. * configure.ac: Add a new header, schroot/sbuild-config.h. Add header checks for tr1/memory, boost/shared_ptr.hpp, tr1/tuple and boost/tuple/tuple.hpp.
* schroot/Makefile.am (sbuild_public_h_sources): Add sbuild-format-detail.h * schroot/sbuild.h: Include sbuild-format-detail.h. * schroot/sbuild-chroot.h: Remove sbuild::chroot::format_detail. * schroot/sbuild-format-detail.h: New class, sbuild::format_detail, moved from sbuild::chroot::format_detail.
* GCC 4.2 compatibility fixes. * test/sbuild-keyfile.cc (test_set_value): Use iterator ranges, rather than whole containers, when calling keyfile::set_list_value. * schroot/sbuild-chroot-source.cc (get_keyfile): Use iterator ranges, rather than whole containers, when calling keyfile::set_list_value. (set_keyfile): Reindent. * schroot/sbuild-chroot.cc (get_keyfile): Use iterator ranges, rather than whole containers, when calling keyfile::set_list_value. (set_keyfile): Reindent. * schroot/sbuild-keyfile.h (get_list_value): Templated on container type only; the value_type is no longer a template parameter. generic_value is used for the type conversion. (set_list_value: A range specified by iterators is used, rather than the whole container. * schroot/sbuild-parse-value.h: Add a new generic_value class to wrap type conversions from strings. * schroot/sbuild-format-detail.h: Move templated operator<< methods outside the class definition. Make format_details inline.
po/POTFILES.in: Add schroot/sbuild-format-detail.h
* schroot/setup/10mount (do_mount) : Create directories for mounting filesystems onto if they don't exist.
Update translations.
* NEWS: Document GCC portability. * test/Makefile.am (AM_CXXFLAGS): Remove -Wextra, for GCC 3.3/3.4 portability. * schroot/sbuild-chroot-config.cc (load_data): Construct __gnu_cxx::stdio_filebuf appropriately, depending on the required construction semantics. * schroot/sbuild-chroot.cc (setup_session_info): Construct __gnu_cxx::stdio_filebuf appropriately, depending on the required construction semantics. * configure.ac: Check whether the old (GCC < 3.4) or new (GCC >= 3.4) __gnu_cxx::stdio_filebuf construction semantics are required, for portability to older GCC versions.
* test/sbuild-chroot-file.cc (chroot_file>): Check for CHROOT_FILE_REPACK in the environment.
* TODO: Remove completed file repack item.
* schroot/sbuild-keyfile.h: Update documentation.
* test/sbuild-parse-value.cc: Update tests. * schroot/sbuild-keyfile.h (get_value): Catch exceptions thrown by parse errors and log a warning. * schroot/sbuild-environment.h (get): Catch exceptions thrown by parse errors and log a warning. * schroot/sbuild-parse-value.cc (parse_value): Add class constructor and destructor. (parse): Parse functions use this->value rather than a string value argument. * schroot/sbuild-parse-value.h: Move parse_value functions into the generic_value class as private parse methods; the string value is taken directly from this->value, rather than passed as an argument. generic_value class renamed to parse_value. On parse failure, an exception is thrown.
* NEWS: Document directory behaviour. * schroot/sbuild-session.cc (run_child): If the current working directory does not exist inside the chroot, change to the home directory (for login shells), or fail with an error (for commands) where the behaviour must be deterministic.
* Version 0.2.9. * debian/changelog: Update for 0.2.9. * po/en_GB.po: Updated British English translation. * README: Document new compiler requirements.
* Makefile.am (dist-hook): Don't distribute .svn directories.
* configure.ac: Bump version to 0.2.10. * NEWS: Bump version to 0.2.10. * debian/changelog: Bump version to 0.2.10-1.
* debian/control (Standards-Version): Upgrade to 3.7.0.
* schroot/schroot.cc: Update documentation. * schroot/schroot-releaselock.cc: Update documentation.
* Remove unused .cvsignore files.
Ignore stamp-h2 and sbuild-config.h.
* schroot/sbuild-chroot-config.cc (add): If a chroot alias is the same as the chroot name, don't warn about it, because the effect is still unambiguous.
* po/sv.po: Updated translated from the Free Translation Project.
* schroot/setup/50chrootname: Strip session UUID when writing /etc/debian_chroot.
* Version 0.2.10. * debian/changelog: Update for 0.2.10.
* debian/changelog: Bump version to 0.2.11. * NEWS: Bump version to 0.2.11. * configure.ac: Bump version to 0.2.11.
* debian/changelog: Update. * debian/control (Standards-Version): Update to 3.7.2.
* debian/changelog: Close #369633. * AUTHORS: Add Andreas Bombe. * schroot/schroot.conf.5.in: Correct typo. * schroot/schroot.1.in: Correct ambiguity and mistakes in the documentation relating to specifying session IDs.
* po/en_GB.po: Update translation. * po/POTFILES.in: Add schroot-listmounts sources. * debian/changelog: Close #369626. * NEWS: Document 05file and 10mount changes. * schroot/setup/05file: Use schroot-listmounts to check if there are any mounted filesystems before purging the chroot. * schroot/setup/10mount: Use schroot-listmounts to unmount all filesystems in a chroot. Exit with an error if unmounting fails. * test/sbuild-chroot.cc: Implement the new form of sbuild::chroot::setup_lock(). * schroot/schroot-listmounts-options.(cc|h): New files. These are the command-line option parser for schroot-listmounts. * schroot/schroot-listmounts.cc: New file. This is a program to list all of the mounts under a given mountpoint. * schroot/sbuild-session.cc (setup_chroot): Use the chroot lock and unlock methods, in place of setup_lock. * schroot/sbuild-chroot-plain.cc, schroot/sbuild-chroot-file.cc, schroot/sbuild-chroot-block-device.cc, schroot/sbuild-chroot-lvm-snapshot.cc: setup_lock only removes the session (using setup_session_info) if the setup scripts succeeded. * schroot/sbuild-chroot-plain.h, schroot/sbuild-chroot-file.h, schroot/sbuild-chroot-block-device.h, schroot/sbuild-chroot-lvm-snapshot.h: setup_lock is protected and has an additional status argument. * schroot/sbuild-chroot.cc (lock): New function; calls setup_lock. (unlock): New function; calls setup_lock. * schroot/sbuild-chroot.h: Replace setup_lock with lock and unlock methods. Unlock takes a status argument which indicates if the setup scripts failed or not. setup_lock is now a protected virtual method used by lock and unlock.
* NEWS: Document that scripts may now fail. * schroot/schroot-setup.5.in: Document that scripts must be idempotent.
* debian/changelog: Don't package libsbuild.la.
* schroot/schroot-listmounts-options.h (schroot_listmounts): Fix typo.
* Version 0.2.11. * debian/changelog: Update for 0.2.11.
* debian/changelog: Bump version to 0.99.0. * NEWS: Bump version to 0.99.0. * configure.ac: Bump version to 0.99.0.
* NEWS: Document new "personality" option. * po/POTFILES.in: Add schroot/sbuild-personality.(cc|h). * test/Makefile.am: Add sbuild-personality.cc. * test/sbuild-personality.cc: Tests for sbuild::personality. * schroot/schroot.conf.5.in: Document new "personality" key. * schroot/Makefile.am: Add sbuild-personality.(cc|h). * schroot/sbuild.h: Include sbuild-personality.h. * schroot/sbuild-session.cc (run_child): Set the personality before chrooting. * schroot/sbuild-chroot.cc: (chroot) When constructing a chroot, the persona defaults to "linux" on Linux systems, and "undefined" on all other systems. (get_persona): New method to get the persona. (set_persona): New method to set the persona. (print_details): Print the persona. (get_keyfile): Set "personality" key. (set_keyfile): Get "personality" key. * schroot/sbuild-chroot.h: Include personality as a persona member, and provide a getter and setter for it. * schroot/sbuild-personality.(cc|h): New files. This is a class wrapping the functionality of personality(2) for changing the process execution domain. It includes a mapping from names to personality enumarations, to allow user specification of personalities.
* THANKS: New file. Add Ben Hutchings.
* debian/changelog: Close #354344. * schroot/setup/10mount: Mount plain chroots with --rbind rather than --bind. This is safe now schroot-listmounts is used to unmount all filesystems in the chroot.
* debian/changelog: Close #372569. * NEWS: Document changed authorisation behaviour. * schroot/sbuild-session.cc (get_auth_status): If no groups are specified, root can still gain access (but still requires authentication).
Back out accidentally committed changes.
* debian/changelog: Close #372874. * NEWS: Document dchroot.conf change. * schroot/dchroot.1.in: Document the new personality field in dchroot.conf. * schroot/dchroot-chroot-config.cc (parse_data): Parse a third optional "personality" field, and if present, set the chroot personality.
* schroot/Makefile.am (install-data-hook): Don't create $(SCHROOT_LOCK_DIR). * configure.ac: Remove SCHROOT_LOCK_DIR, which is no longer used now we use lockdev and fcntl locking.
* schroot/schroot.cc (main): Output configuration file with a help message in comments, to help migrating dchroot.conf.
* debian/changelog: Split dchroot into a separate package.
* Update translations.
Update en_GB strings.
* schroot/dchroot.1.in: Document incompatibilities with DSA dchroot, and a few minor cleanups.
* debian/changelog: dchroot doesn't need to Replace schroot.
* schroot/sbuild-personality.cc (personality): On Linux, default to initialising with the current process' personality, otherwise initialise to "undefined". (get_name): New method. Return the current personality. * schroot/sbuild-personality.h: Document constructors fully, and add a get method to get the personality type.
* schroot/Makefile.am" Add sbuild-parse-error.(cc|h). * schroot/sbuild-keyfile.cc (keyfile, check_priority) Use parse_error instead of runtime_error_custom for throwing on parse failures. * schroot/sbuild-keyfile.h: Use parse_error instead of runtime_error_custom for throwing on parse failures, and also for logging warnings. Additionally, be stricter when parsing by throwing a parse error when an empty group is specified, or a key before a group definition. * schroot/sbuild-parse-value.h: Throw a parse_error when parsing fails. * schroot/sbuild-parse-error.(cc|h): New files, providing an exception class for reporting parse errors.
* TODO: Remove completed items (translatable strings removed from headers, and root no longer needs to be in groups or root groups). * schroot/Makefile.am: Add sbuild-format-detail.cc. * schroot/sbuild-format-detail.h: Remove ostream operator << format_detail<bool> specialisation. * schroot/sbuild-format-detail.cc: New file. Move ostream operator << format_detail<bool> specialisation from the headers, so translatable strings are not used in the header.
* po/POTFILES.in: Update list of source files. Remove all headers.
* po/en_GB.po: Update British English translation.
* ChangeLog: Fix two typos.
* schroot/schroot.conf.5.in: Remove command-prefix example of using linux32, now that the personality option is the recommended method of changing personality.
* debian/schroot.README.Debian: Move from debian/README.Debian. Remove outdated dchroot bits. * debian/schroot.NEWS: New file. Document the splitting out of dchroot.
* debian/control: Add Luk Claes as a co-maintainer.
* Update translations.
* debian/changelog: Tidy up changes for release. * debian/schroot.postinst: If upgrading from a version less than 0.99.0-1, remove the rc.d symlinks, because rcS is used instead of the normal runlevels
* Version 0.99.0. * debian/changelog: Finalise for 0.99.0. * NEWS: Document init script changes.
* debian/changelog: Bump version to 0.99.1. * NEWS: Bump version to 0.99.1. * configure.ac: Bump version to 0.99.1.
* debian/changelog: Bump version to 0.99.1. * NEWS: Bump version to 0.99.1. * configure.ac: Bump version to 0.99.1.
* schroot/setup/10mount: Only remove the mount location if it exists (to quell a warning).
* schroot/setup/00check: Make sanity check errors more descriptive. Fix check for using / as a chroot location.
* schroot/dchroot-session.cc (run_impl): Throw a session_error in place of a runtime_error_custom. * schroot/sbuild-session.cc: Throw a session_error in place of a runtime_error_custom. Correct capitalisation of error messages. Don't throw an exception when a child exits with a nonzero exit status. * schroot/sbuild-session.h: Use session_error as the error type. * schroot/sbuild-auth.cc: Throw an auth_error in place of a runtime_error_custom. (pam_strerror): New private method to get a PAM error message. * schroot/sbuild-auth.h: Use auth_error as the error type. * schroot/Makefile.am: Add sbuild-auth-error.(cc|h) and sbuild-session-error.(cc|h). * schroot/sbuild-session-error.(cc|h): New files, providing an exception class for reporting session errors. * schroot/sbuild-auth-error.(cc|h): New files, providing an exception class for reporting authentication errors.
* schroot/sbuild-auth.(cc|h), schroot/sbuild-session.(cc|h), schroot/dchroot-session.cc (run_impl): Use new templated exception type. * schroot/sbuild-session-error.(cc|h): Remove. * schroot/sbuild-auth-error.(cc|h): Remove. * schroot/sbuild-custom-error.(cc|h): New files, providing an exception class templated on an error code enum. It replaces the auth_error and session_error exception classes.
* schroot/sbuild-chroot.(cc|h), schroot/sbuild-chroot-file.cc, schroot/sbuild-chroot-block-device.cc, schroot/sbuild-chroot-lvm-snapshot.cc: Use the custom_error exception class.
* schroot/sbuild-session.h: Reindent error codes. * schroot/sbuild-lock.(cc|h):Use the custom_error exception class.
* schroot/sbuild-personality.(cc|h): Use the custom_error exception class.
* schroot/sbuild-custom-error.tcc (format_error): detail and error arguments were used in the wrong order in the two argument case. * schroot/dchroot-chroot-config.cc (parse_data): Use the parse_error class. * schroot/sbuild-chroot-config.(cc|h): Use the custom_error exception class. Merge check_security with load_data. (load_data): Report filename when throwing a parse error.
* schroot/sbuild-auth-conv.h: Remove error typedef. * schroot/sbuild-auth-conv-tty.(cc|h): Use the custom_error exception class.
* schroot/sbuild-error.h: Remove runtime_error_custom. * schroot/sbuild-custom-error.h: Add virtual destructor.
* Update translations.
* schroot/Makefile.am: Add rules for dchroot-dsa. * configure.ac: Add enable option for dchroot-dsa.
* configure.ac: Define and substiture DCHROOT_CONF. Generate dchroot-dsa man page. * schroot/Makefile.am: Add dchroot-dsa man page. * schroot/dchroot-dsa.1.in: New file. Document dchroot-dsa. * schroot/dchroot.1.in: Update documentation now dchroot is the official dchroot package, and fix up minor formatting errors. Document the --chroot option. Use @DCHROOT_CONF@ in place of /etc/dchroot.conf. * schroot/schroot.cc: Don't hard-code DCHROOT_CONF. (program_name): New function to get program name. (print_version): Use program_name. (main): Use new options::compat. Add support for dchroot-dsa. * schroot/dchroot-chroot-config.cc (parse_data): When used by dchroot-dsa, extend the available whitespace characters to " \t:;,", parse the third field as a user list, and add to the chroot group list. dchroot-dsa chroots don't set the "default" chroot alias. * schroot/dchroot-session.cc (get_auth_status): Add user checks for dchroot-dsa. * schroot/schroot-options.cc: Use compat to adapt to selected compatibility mode, in place of dchroot_compat. Add specialisations for dchroot-dsa. * schroot/schroot-options.h: Add compatibility_type enum (for schroot, dchroot and dchroot-dsa). Add compat member to store current compatibility mode, in place of dchroot_compat. * schroot/sbuild-session.h: get_config returns a const reference. * test/sbuild-util.cc: Update test for split_string. * schroot/sbuild-keyfile.h: Use new split_string argument type. * schroot/sbuild-util.h: split_string uses a string as a list of separators, instead of a single character.
* debian/changelog: Add dchroot-dsa package.
* schroot/Makefile.am: Install dchroot-dsa setuid root.
* debian/rules: Enable dchroot-dsa when running configure. * debian/dchroot-dsa.lintian-overrides: Use correct package name.
* schroot/schroot.1.in: Document users and root-users. * schroot/schroot.conf.5.in: Document "users", "root-users", "source-users" and "source-root-users" keys. * schroot/schroot.cc (main): Fix generated schroot.conf header to document users and root-users. * schroot/dchroot-session.cc (get_chroot_auth_status): New method to replace get_auth_status. This overrides the sbuild::session implementation to provide the correct authorisation checks for dchroot and dchroot-dsa. * schroot/dchroot-chroot-config.cc (parse_data): Set users rather than groups for dchroot-dsa allowed user list. * schroot/sbuild-chroot-source.cc: Save and restore source-users and source-root-users keyfile keys. * schroot/sbuild-chroot-source.h: Add source_users and source_root_users members and methods. * schroot/sbuild-chroot.cc: Save and restore source-users and source-root-users keyfile keys. * schroot/sbuild-chroot.h: Add users and root_users members and methods. * schroot/sbuild-session.cc (get_chroot_auth_status): New protected virtual function. The chroot authorisation checks have been split out from get_auth_status for reuse in derived classes.
* schroot/schroot.cc (program_name): For safety, return a string if the enum is invalid. * schroot/sbuild-chroot-config.cc, schroot/sbuild-parse-error.cc: Reindent and capitalise translatable error strings. * schroot/sbuild-chroot.cc, schroot/sbuild-chroot-source.cc, schroot/schroot-options.cc, schroot/schroot-listmounts-options.cc schroot/schroot-releaselock-options.cc: Remove whitespace from translatable strings. * schroot/sbuild-format-detail.h: Ensure that some whitespace always separates name and value, even when the name is over 21 characters.
* schroot/sbuild-chroot-file.h: Remove dangerous TODO item. * schroot/sbuild-keyfile.h: Remove completed TODO item. * NEWS: Document dchroot-dsa and new user access controls.
* schroot/schroot-options.cc: dchroot and dchroot-dsa only permit a single command option. * schroot/dchroot-session.cc (get_login_directories): New virtual method. For dchroot, use the home directory and then / if not preserving the environment, otherwise use the current working directory and /. For dchroot-dsa, always use the home directory and then /. (get_command_directories): New virtual method. This simply wraps get_login_directories; dchroot and dchroot-dsa do not distinguish between these two use cases. (get_command): When running a login shell, this behaves similarly to sbuild::session::get_command. When running a command, dchroot runs "sh -c command", and dchroot-dsa runs "command". * schroot/sbuild-session.cc (getcwd): New utility function, split out from run_child. (get_login_directories): New protected virtual method. Get a list of directories to use (including fallbacks) when running a login shell. Use the current working directory, $HOME, passwd pw_dir and / in that order. (get_command_directories): New protected virtual method. Get a list of directories to use (including fallbacks) when running a command. This is currently only the current working directory; there are no fallbacks. (get_shell): New protected virtual method. Get the program to run as a shell, falling back to /bin/sh if unavailable. (get_command): New protected virtual method. Get the parameters for calling exec with (file and argv). (run_child): Use the new functions and methods getcwd, get_login_directories, get_command_directories, get_shell and get_command. Handle directory fallbacks when changing directory inside the chroot. (run_chroot): If debugging is enabled, automatically set the debug level to DEBUG_NOTICE. * schroot/sbuild-session.h (sbuild): New protected member cwd, to hold the current directory before entering the chroot.
* schroot/schroot-options.cc: Add a --debug option to enable debugging messages. * schroot/Makefile.am (dchroot_SOURCES): Add dchroot-session-base.(cc|h). (dchroot_dsa_SOURCES): Add dchroot-session-base.(cc|h). Use dchroot-dsa-session.(cc|h) instead of dchroot-session.(cc|h). * schroot/dchroot-dsa-session.(cc|h): New class, based upon dchroot::session and derived from dchroot::session_base. Remove specialisations for dchroot. * schroot/dchroot-session.(cc|h): Derive from dchroot::session_base. Remove specialisations for dchroot-dsa. * schroot/dchroot-session-base.(cc|h): New class, split from dchroot::session. It includes functionality common to dchroot and dchroot-dsa sessions, as well as recording a compatibility state which influences session behaviour depending on whether dchroot.conf or schroot.conf are used. * schroot/schroot.cc: When building for dchroot-dsa, include the dchroot-dsa-session.h header. (main): When building for dchroot-dsa, create a dchroot_dsa::session session. dchroot-dsa and dchroot sessions include a compatibility mode as a fifth argument. * schroot/sbuild-session.cc (get_login_command, get_user_command): Split the two parts of get_command into separate protected virtual methods, so that they may be independently overridden and chained up to by derived session types. (run_child): When reporting an exec error, use filename rather than argv[0], which may differ for login shells.
* schroot/schroot.1.in, schroot/dchroot.1.in, schroot/dchroot-dsa.1.in: Document differences in command arguments and chdir behaviour.
* Update API reference.
* schroot/Makefile.am: Build with new headers. * schroot/dchroot-session.h: Update API documentation. * schroot/schroot.cc: Include the new options headers. The options object is now a tr1::shared_ptr to the base_options options base class. * schroot/dchroot-dsa-options.(cc|h): dchroot-dsa-specific options and parsing logic. * schroot/dchroot-options.(cc|h): dchroot-specific options and parsing logic. * schroot/schroot-options.(cc|h): schroot-specific options and parsing logic. * schroot/schroot-options-base.(cc|h): New files. Base class containing generic options parsing functionality and common options.
* schroot/schroot.cc (main): When running dchroot-dsa, use dchroot_dsa::chroot_config instead or dchroot::chroot_config. * schroot/dchroot-chroot-config.(cc|h): New class. Remove dchroot-dsa specific parts. * schroot/dchroot-dsa-chroot-config.(cc|h): New class. Split dchroot-dsa specific parts from dchroot::chroot_config.
* schroot/Makefile.am: Add new files. Additionally, build schroot.la and dchroot.la static libraries to ease linking. * schroot/dchroot-options.cc, schroot/dchroot-dsa-options.cc, schroot/schroot-options.cc: Remove compatibility setup. * schroot/schroot-options-base.(cc|h): Remove compatibility_type and compat member. * schroot/dchroot-main.(cc|h), schroot/dchroot-dsa-main.(cc|h): New files. These two classes derive from schroot::main, and override its virtual methods to customise it for dchroot and dchroot-dsa respectively. * schroot/schroot-main.(cc|h): New files. This new class contains all the functionality of schroot.cc, but is separated into separate methods, which may be overridden in other implementations. * dchroot.cc, dchroot-dsa.cc, schroot.cc: These files (two new) are stubs to instantiate an appropriate main object and run it. * schroot.cc: Move all functionality into schroot-main.cc. * schroot/schroot.cc, schroot/schroot-listmounts.cc, schroot/schroot-releaselock.cc (main): Don't disable debugging messages if debugging is disabled. It defaults to disabled anyway, and this prevents --debug from working.
* API documentation additions. * Add @RELEASE_DATE@ in place of hard-coded date in all manual pages. * configure.ac: Use SCHROOT_RELEASE_DATE. * bootstrap: Generate autoconf macro with embedded release date. * scripts/schroot_release.m4.in: New file. Autoconf macro template to define release date.
* test/Makefile.am (TESTS): Remove sbuild-lock, because it can fail randomly on slow or heavily loaded systems due to timing constraints. * bootstrap: Create m4 directory if it doesn't exist. * Makefile.am (dist-hook): Remove junk from distdir such as temorary files. (EXTRA_DIST): Distribute bootstrap and m4 macros and templates. * configure.ac: Add checks for find and xargs.
* debian/changelog: Update rules.
* schroot/schroot-main.cc, schroot/schroot-listmounts.cc, schroot/schroot-releaselock.cc: Add date to version output. * schroot/sbuild-types.h: Define a date class to format dates for output. * bootstrap: Generate m4/schroot_release.m4 with a unix time. * scripts/schroot_release.m4.in: Define RELEASE_DATE as a unix time. * debian/changelog: Update rules.
* NEWS: Document dchroot compatibility fixes.
* The include order of all includes has been reviewed. Local headers are included first to detect missing includes. C++ headers are used instead of C headers. * All sources include only the headers they need, rather than using sbuild.h. * schroot/sbuild.h: Remove. * schroot/sbuild-types.h: date operator << uses "%b" rather than "%B" in the date format string.
* Move sbuild sources into an sbuild subdirectory, dchroot sources into a dchroot subdirectory and dchroot-dsa sources into a dchroot-dsa subdirectory.
* sbuild/sbuild-session.(cc|h): Use error codes for logging in addition to thrown exceptions. * sbuild/sbuild-chroot-config.(cc|h): Use error codes for logging in addition to thrown exceptions.
* sbuild/sbuild-chroot-config.(cc|h): Fix typos.
* dchroot/Makefile.am (libdchroot_la_SOURCES): Add dchroot-main-base.(cc|h). * dchroot-dsa/dchroot-dsa-main.(cc|h): Derive from dchroot::main_base, and remove functionality shared with dchroot contained in main_base. * dchroot/dchroot-main.(cc|h): Derive from main_base, and remove functionality shared with dchroot-dsa contained in main_base. * dchroot/dchroot-main-base.(cc|h): New files. A class containing functionality common to the main class of dchroot and dchroot-dsa.
* sbuild/sbuild-session.cc (run_chroot): Log error and exit with failure status if run_child throws an exception. (run_child): Throw exception on failure, rather than exiting, which simplifies the error handling.
* debian/changelog: Close #374713 and #374887.
* README: Add dchroot and dchroot-dsa. * schroot/schroot.1.in: Add troubleshooting section. * dchroot/dchroot.1.in: Add troubleshooting section. * dchroot-dsa/dchroot-dsa.1.in: Add troubleshooting section.
* sbuild/sbuild-format-detail.h: Use a wide string to get consistent alignment when using a UTF-8 locale. * sbuild/sbuild-util.cc (widen_string): New function. Convert a narrow string to a wide string. (narrow_string): New function. Convert a wide string to a narrow string.
* sbuild/sbuild-util.cc (widen_string, narrow_string): Fix bug in conditional which could cause an infinite loop in the C locale.
* All derived chroot types: Replace print_details with get_details. * sbuild/sbuild-chroot.cc (get_details): New method to insert the chroot details into a format_detail object. (print_details): Create, fill and output a format_detail object. * sbuild/sbuild-format-detail.(cc|h): Change the class from a simple formatting wrapper into a container of key-value pairs for formatting. This uses wide stringstreams to align the output for translated UTF-8 text.
* NEWS: Document strict absolute path checks. * sbuild/sbuild-chroot-config.cc (parse_data): Catch and report chroot deserialisation errors. * sbuild/sbuild-chroot-plain.cc (set_keyfile): "location" must be absolute. * sbuild/sbuild-chroot-file.cc (set_keyfile): "file" must be absolute. * sbuild/sbuild-chroot.cc (set_keyfile): "mount-device" and "mount-location" must be absolute. * sbuild/sbuild-chroot-lvm-snapshot.cc (set_keyfile): "lvm-snapshot-device" must be absolute. * sbuild/sbuild-chroot-block-device.cc (get_location): Remove unused function (set_location): Remove unused function (get_keyfile): Remove "location". (set_keyfile): Obsolete "location". "device" must be absolute. * sbuild/sbuild-chroot.h (sbuild): Add DEVICE_ABS, FILE_ABS and LOCATION_ABS error codes. * sbuild/sbuild-keyfile.cc (check_priority): Add missing break in switch. * dchroot-dsa/dchroot-dsa-session.cc (get_user_command): Throw a COMMAND_ABS error if the command is not absolute. * sbuild/sbuild-session.(cc|h): Add a COMMAND_ABS error code. * dchroot-dsa/dchroot-dsa-options.cc (check_options): Throw an error if the command is not an absolute path. This optimisation means a session is not set up if it is already known it will fail. * sbuild/sbuild-util.cc (is_absname): New function. This checks if a path is absolute.
* sbuild/sbuild-chroot-block-device.cc (get_location): Restore (set_location): Restore (get_keyfile): Restore "location". (set_keyfile): Restore "location". "location" (if specified) must be absolute. * sbuild/sbuild-chroot-config.cc (print_chroot_config): Don't output generated chroots. * sbuild/sbuild-chroot-source.cc (clone_source_setup): Set the chroot originality to false when cloning. * sbuild/sbuild-chroot.(cc|h): Add "original" member, plus getter and setter. This records if the chroot was automatically generated or not. Don't check of "mount-device" is absolute if it's empty, since this is optional.
* sbuild/sbuild-chroot-lvm-snapshot.cc (get_keyfile): Don't save the "lvm-snapshot-device" attribute unless the chroot is active. * sbuild/sbuild-chroot-file.cc (get_keyfile): Don't save the "file-repack" attribute unless the chroot is active.
* README: Document non-standard configure options.
* THANKS: Add adeodato, aeb, tbm and vorlon.
* Remove redundant includes from all headers.
* schroot/schroot-releaselock.cc (print_version): Use gmdate. * schroot/schroot-listmounts.cc (print_version): Use gmdate. * dchroot/dchroot-main-base.cc (action_config): Add current date to header comment. Print help comments only if using dchroot.conf. * schroot/schroot-main.cc (action_version): Use gmdate. (action_config): Add current date to header comment. * sbuild/sbuild-types.h (sbuild): Split date into gmdate and date clases for UTC and local dates respectively, with a date_base class to handle common formatting.
* sbuild/sbuild-session.cc (wait_for_child): pid is a pid_t, not int.
* All headers using tr1::shared_ptr or tr1::tuple include sbuild-tr1types.h. * sbuild/sbuild-tr1types.h: New header. Include tr1 or boost shared_ptr and tuple headers into the tr1 namespace.
* schroot/schroot.cc, dchroot/dchroot.cc, dchroot-dsa/dchroot-dsa.cc: On an options parsing error, recommend the user use --help.
* debian/changelog: Close #373943.
* Update API reference, fixing a few undocumented members and updating the doxygen config file.
* dchroot-dsa/dchroot-dsa-options.cc (check_options): Add check to ensure a chroot must be specified, to prevent use of the "default" fallback.
* dchroot-dsa/dchroot-dsa-options.cc (check_options): Add check to ensure a chroot must be specified, to prevent use of the "default" fallback.
* Version 0.99.1 * debian/changelog: Finalise for 0.99.1. * sbuild/sbuild-session.cc: Document CHDIR_FB. * dchroot-dsa/dchroot-dsa.1.in: Document original dchroot-dsa authors.
* TODO: Add TODO items for 1.0. * test/sbuild-keyfile.cc: Update testcases. * test/sbuild-parse-value.cc: Update testcases. * sbuild/sbuild-environment.h: Use new parse_value syntax. * sbuild/sbuild-keyfile.h: Use new parse_value syntax. get_list_value now correctly reports parse errors in list values. * sbuild/sbuild-parse-value.(cc|h): Convert from a class back into separate functions. This gets rid of annoying uninitialised value errors.
* debian/changelog: Bump version to 0.99.2. * NEWS: Bump version to 0.99.2. * configure.ac: Bump version to 0.99.2.
* scripts/setperms: New file. Helper to set binaries setuid root for testing.
* debian/schroot.docs: Add. Include THANKS.
* sbuild/sbuild-session.cc (is_group_member): Rather than exiting with failure status, warn and return false, or throw an exception.
* dchroot-dsa/dchroot-dsa-main.cc: Use new constructor argmuments, and chain up to the new parent class. * dchroot-dsa/dchroot-dsa-options.cc: Remove help check, which is handled in the base class. Handle help action in sanity checks. * dchroot/dchroot-main.cc: Use new constructor argmuments, and chain up to the new parent class. * dchroot/dchroot-main-base.(cc|h): Derive from schroot::main_base. * dchroot/dchroot-options.cc: Remove help check, which is handled in the base class. * schroot/schroot-main.(cc|h): Derive from main_base. Remove functionality moved to the base class. * schroot/schroot-options-base.(cc|h): Derive from schroot_base::options. Remove functionality moved to the base class. Add help action. * schroot/schroot-options.cc: Remove help check, which is handled in the base class. * schroot/schroot-listmounts.cc: Move functionality into schroot_listmounts::main. * schroot/schroot-listmounts-options.(cc|h): Derive from schroot_base::options and implement actions. * schroot/schroot-releaselock.cc: Move functionality into schroot_releaselock::main. * schroot/schroot-releaselock-options.(cc.h): Derive from schroot_base::options and implement actions. * schroot/Makefile.am: Add schroot_base::main and schroot_base::options to a new libschroot-base.la library. libschroot and the helper binaries use this base library. * schroot/schroot-main-base.(cc|h): New files. This class contains functionality common to all schroot programs (schroot, dchroot, dchroot-dsa), split out from schroot/schroot-main.cc. It is derived from schroot_base::main. * schroot/schroot-listmounts-main.(cc|h): New files. This class implements the frontend for schroot-listmounts. It contains logic moved from schroot/schroot-listmounts.cc. It is derived from schroot_base::main. * schroot/schroot-releaselock-main.(cc|h): New files. This class implements the frontend for schroot-releaselock. It contains logic moved from schroot/schroot-releaselock.cc. It is derived from schroot_base::main. * schroot/schroot-base-options.(cc|h): New files. This class implements the functionality common to all options parsing classes. * schroot/schroot-base-main.(cc|h): New files. Frontend base for schroot programs. This class is used to "run" schroot programs. It contains functionality common to all * programs, such as help and version output.
* schroot/schroot-listmounts-options.cc: Add set_action method to ensure only one action is specified. * schroot/schroot-releaselock-options.cc: Add set_action method to ensure only one action is specified.
* TODO: Remove completed items. * schroot/schroot-base-main.cc (run): This method takes argc and argv arguments, and calls the option class parse method. It also catches and handles parse exceptions. * schroot/schroot-base-option.cc (parse): Renamed from parse_options, this method now takes argc and argv as arguments and calls all the other class virtual methods to set up and process the options. (add_option_group): New virtual method. The addition of option groups is split out from the parse method. * All option parsing classes have removed the argc and argv arguments from their constructors. The constructors now no longer call any of the virtual methods.
* Clean up locale and exception handling in all main stub routines.
* schroot/schroot.1.in, dchroot/dchroot.1.in, dchroot-dsa/dchroot-dsa.1.in: Document debug levels. * schroot/schroot-base-options.(cc|h) (check_options): Check the debug level given with --debug.
* Clean up locale and exception handling in all main stub routines.
* sbuild/sbuild-auth.cc: Fix switched authentication and authorisation messages.
* TODO: Remove completed item. * sbuild/sbuild-util.cc (narrow_string, widen_string): Throw a runtime_error on conversion failure.
* test/sbuild-keyfile.cc: Add test for getting line numbers. * sbuild/sbuild-keyfile.h: (item_type, group_type): Add line number to both tuples. (set_value): Add overloaded private method which adds a line number to its arguments. (operator >>): Set line numbers when deserialising. * sbuild/sbuild-keyfile.cc (get_line): New methods for getting the line numbers of groups and keys. (set_group): Add overloaded private method which adds a line number to its arguments.
* test/sbuild-keyfile.cc: Add test for getting line numbers. * sbuild/sbuild-keyfile.h: (item_type, group_type): Add line number to both tuples. (set_value): Add overloaded private method which adds a line number to its arguments. (operator >>): Set line numbers when deserialising. * sbuild/sbuild-keyfile.cc (get_line): New methods for getting the line numbers of groups and keys. (set_group): Add overloaded private method which adds a line number to its arguments.
* TODO: Remove completed item. * sbuild/sbuild-chroot-config.cc (parse_data): Remove exception wrapper, now that sbuild::keyfile throws exceptions containing more detailed information. * sbuild/sbuild-chroot-file.cc (get_file_repack, set_file_repack): New methods to get and set file repack status. * All chroot get_keyfile and set_keyfile methods are implemented in terms of the new keyfile::[gs]et_object_(list_)value methods. * sbuild/sbuild-keyfile.h: Add templated static methods for getting and setting key values and list values using pointers to methods of other objects.
* test/sbuild-dirstream.cc: New file. Tests for sbuild::dirstream. * sbuild/sbuild-dirstream.(cc.h): New files. This class provides a "directory stream" interface to the SUS directory functions.
* test/sbuild-personality.cc: Sync tests with current personality behaviour. * test/sbuild-dirstream.cc: Remove unused environment members, and an unused header. * test/Makefile.am (sbuild_personality_SOURCES): Correct sources.
* test/sbuild-run-parts.cc: Add run-parts tests. * test/run-parts.ex?: Add run-parts test scripts. * configure.ac: Add check for libboost_regex. * sbuild/Makefile.am: Add sbuild-run-parts sources. * sbuild/sbuild-run-parts.(cc|h): New files. This class reproduces the functionality of run-parts(8). * sbuild/sbuild-util.cc (exec): Add (moved from sbuild-session). * sbuild/sbuild-session.cc (exec): Remove.
* README: Document new Boost build dependency. * TODO: Remove completed item. * sbuild/sbuild-session.cc (setup_chroot): Use sbuild::run_parts in place of run-parts(8). * configure.ac: Remove run-parts(8) checks.
* debian/changelog: Update build dependencies.
* test/*.cc: Replace SRCDIR with TESTDATADIR. * test/Makefile.am (AM_CXXFLAGS): Replace SRCDIR with TESTDATADIR. (TESTS): Run setup-test-data and cleanup-test-data at the start and end of testing, respectively. (EXTRA_DIST): Distribute setup-test-data and cleanup-test-data. (clean-local): Run cleanup-test-data. * test/cleanup-test-data: New file. Remove testdata directory. * test/setup-test-data: New file. Copy test data to testdata directory and change the ownership to root.
* NEWS: Document new features.
* Update translations.
* README: Update build dependencies.
* Version 0.99.2 * debian/changelog: Finalise for 0.99.2.
* debian/changelog: Bump version to 0.99.3. * NEWS: Bump version to 0.99.3. * configure.ac: Bump version to 0.99.3.
* test/sbuild-personality.cc: Update test to cope with Linux systems building with a personality other than PER_LINUX.
* sbuild/sbuild-dirstream.h: The dirstream extraction operator is declared outside the class, in addition to the friend declaration. This fixes a compilation error with GCC 4.2. Thanks to Martin Michlmayr for reporting this. * debian/changelog: Close #377433.
* NEWS: Document the new "directory" chroot type. * schroot/schroot.conf.5.in, schroot/schroot-setup.5.in: Document new "directory" chroot type. * schroot/setup/00check, schroot/setup/10mount, schroot/setup/00check: Add logic for "directory" CHROOT_TYPE. The "directory" type will mount the chroot location with --rbind, like "plain", but will additionally mount filesystems like all other chroot types. * sbuild/Makefile.am: Add sbuild-chroot-directory.(cc|h). * sbuild/sbuild-chroot.cc (create): Add support for the "directory" chroot type. * sbuild/sbuild-chroot-plain.(cc|h): chroot_plain derives from chroot_directory. It is exactly the same as directory except for the chroot name. * sbuild/sbuild-chroot-directory.(cc|h): New files. The directory class is based upon the "plain" chroot type.
* debian/schroot.docs: Add the contents of debian/docs. * debian/docs: Remove. * debian/rules: The /usr/share/doc directories for dchroot and dchroot-dsa are symlinks to schroot. * debian/dchroot.preinst: New file. Remove /usr/share/doc/dchroot. * debian/dchroot-dsa.preinst: New file. Remove /usr/share/doc/dchroot-dsa. * debian/changelog: Update.
* debian/rules: Install upstream changelog.
* schroot/schroot-main-base.cc (run_impl): Remove code duplicated in schroot_base::main::run (termios saving and restoring, and exception handling).
* Don't include <syslog.h> in sources not using syslog.
* All Makefile.ams: include global.mk. * scripts/global.mk: New file. Global Makefile options.
* All Makefile.ams: include global.mk. * scripts/global.mk: New file. Global Makefile options.
* debian/rules: Build in debian/build using VPATH. * debian/changelog: Add VPATH build.
* All sources use strerror(errno) in place of errno when creating a custom_error<>. * sbuild/sbuild-custom-error.h: Remove all constructors with integer errno arguments.
* sbuild/sbuild-chroot-config.cc (load_data): Use new error contructor. * sbuild/sbuild-session.cc (wait_for_child): Use new error contructor. * sbuild/sbuild-custom-error.tcc (format_error): Replace all overloaded functions with two variants, one for an error_type enum, one for an exception (for rethrowing an exception of a different type). * sbuild/sbuild-custom-error.h: Add new custom_error<>::null class, used to represent an absent context or detail item in an error. Add two new constructors for rethrowing exceptions.
* sbuild/sbuild-custom-error.tcc (format_error): Never pass more arguments than the format string specifies.
* sbuild/sbuild-custom-error.tcc (format_error): Add a third context argument, for use with keyfile errors.
* All sources defining a custom_error<>::error_strings map define a custom_error_base<>::error_strings map instead. * sbuild/sbuild-custom-error.h: Split custom_error formatting functions, typedefs and static members into a custom_error_base class.
* debian/changelog: Close #378028. * dchroot/dchroot.1.in: Document command option syntax. * NEWS: Document dchroot command option syntax. * dchroot/dchroot-session.cc (get_user_command): Concatenate all command options into a single command, separated by spaces. * dchroot/dchroot-options.cc (check_options): Allow any number of command options.
* test/sbuild-parse-value.cc: Use sbuild::parse_value_error in place of sbuild::parse_error. * dchroot/dchroot-chroot-config.cc, dchroot-dsa/dchroot-dsa-chroot-config.cc: Use sbuild::keyfile::error in place of sbuild::parse_error. * sbuild/sbuild-environment.cc: Use parse_value_error in place of parse_error. * sbuild/sbuild-keyfile.cc: Add error strings. Use error in place of parse_error. * sbuild/sbuild-keyfile.h: Add error_code enum and error typedef specialisation of parse_error<>. Use error and parse_value_error in place of parse_error. Include line numbers in all exceptions where a line number is available. * sbuild/sbuild-parse-value.cc: Add parse_value_error error strings. Use parse_value_error in place of parse_error. * sbuild/sbuild-parse-value.h: Add parse_value_error_code enum and parse_value_error typedef specialisation of parse_error<>. Use parse_value_error in place of parse_error. * sbuild/sbuild-custom-error.tcc: format_error methods are inline. * sbuild/sbuild-custom-error.h: format_error methods are static. Remove commented-out typedef. * sbuild/sbuild-parse-error.cc: Remove. * sbuild/sbuild-parse-error.h: parse_error is now a templated class, derived from custom_error_base<>. custom_error_base<>::format_error is used for all formatting. Methods for passing through exceptions of different types have been added.
* All sources use error<> in place of custom_error_base<>, and std::runtime_error in place of runtime_error. * sbuild/sbuild-error.tcc: Renamed from sbuild-custom-error.tcc. * sbuild/sbuild-error.h: Remove runtime_error. Move custom_error_base from sbuild/custom-error.h and rename to error.
* sbuild/sbuild-chroot.h: API documentation corrections. * sbuild/sbuild-chroot.cc (set_persona): New overloaded function to set the personality by name. (set_keyfile): Set the personality using keyfile::get_object_value.
* TODO: Remove completed error string markup item. * Add boost::format markup to error strings. * sbuild/sbuild-custom-error.h: All constructor detail arguments are now templated. Add additional constructors for multiple detail arguments.
* Update sources to use new header. * sbuild/Makefile.am: Add sbuild-null.(cc|h). * sbuild/sbuild-null.(cc|h): New file. Split out null class from sbuild/sbuild-error.h
* Update all documentation to use the style guidelines. * Makefile.am: Distribute HACKING. * HACKING: New file. Document manual page style guidelines.
* HACKING: Document how to build the printed documentation. * Makefile.am: Add ps and pdf phony targets. * doc/Makefile.am: Add rules to make PS and PDF manuals.
* schroot/schroot.conf.5.in: Minor whitespace cleanup. * TODO: Remove completed item. * Updated British English translation. * Apply quoting style to all sources. * HACKING: Document quoting style for format strings.
* sbuild/sbuild-chroot-directory.cc (setup_env): Remove. CHROOT_LOCATION is already set in the parent class.
* debian/changelog: Close #378152. * Having a single exit point now means terminal settings are always restored correctly. * sbuild/sbuild-run-parts.cc: Use _exit rather than exit when terminating a child process when execve has failed. * sbuild/sbuild-session.cc: Use _exit rather than exit when terminating a child process when execve has failed. * schroot/schroot-releaselock-main.(cc|h): Add error_code enum and error typedef for sbuild::custom_error. Throw error in place of exiting with EXIT_FAILURE. * schroot/schroot-main-base.(cc|h): Add error_code enum and error typedef for sbuild::custom_error. Throw error in place of exiting with EXIT_FAILURE. Don't ever exit successfully; return a success status. * schroot/schroot-base-main.cc (run): Don't catch "..."; it's handled by the main() stubs.
* schroot/schroot-base-main.cc (run): Return rather than calling exit.
* TODO: Remove completed item. * Update doxygen API reference.
* TODO: Remove completed item. * THANKS: Add Simon Richter. * sbuild/sbuild-session.cc (run_impl): Move session opening and closing here. The session is opened and closed outside the chroot as root.
* TODO: Remove completed item. * schroot/schroot.conf.5.in: Add undocumented features. * schroot/schroot.conf: Add undocumented features.
* sbuild/sbuild-null.h: Remove completed TODO item.
* TODO: Add remaining items for 1.0.
* HACKING: Document manual chroot fallback testing.
* Version 0.99.3 * debian/changelog: Finalise for 0.99.3. * schroot/schroot-releaselock-main.cc: Fix typo.
* debian/changelog: Bump version to 0.99.4. * NEWS: Bump version to 0.99.4. * configure.ac: Bump version to 0.99.4.
* debian/changelog, debian/rules: Fix problem in config.status rule.
* schroot/schroot.1.in, dchroot/dchroot.1.in, dchroot-dsa/dchroot-dsa.1.in: Add all options to the synopsis section.
* TODO: Remove completed items. * All code logging exceptions with log_error() and e.what() use log_exception. * sbuild/sbuild-auth.cc (auth_conv_hook): In the PAM conversation hook, catch and handle any exception thrown by a conversation handler. * sbuild/sbuild-auth-conv-tty.cc (conversation): Rather than returning false on error, throw an exception. Remove exception catching logic; it's now handled in sbuild::auth. * sbuild/sbuild-auth-conv.h (conversation): Rather than returning false on error, throw an exception. * sbuild/sbuild-log.(cc|h) (log_exception): New function. This helper function outputs an exception using log_error(), and exception reasons using log_info(). * sbuild/sbuild-parse-error.h: All constructors add a call for format_reason in addition to format_detail. All detail arguments are templated rather than strings (to allow use of exceptions as detail). * sbuild/sbuild-custom-error.h: All constructors add a call for format_reason in addition to format_detail. * sbuild/sbuild-error.h, sbuild/sbuild-error.tcc: Add error_base class. This contains a reason string with a why() method in addition to the what() method provided by std::exception. error<> derives from error_base, and provides a format_reason helper with similar behaviour to format_detail. Both format_detail and format_reason contain templated helper classes to allow conversion of exceptions of any type, and the transfer of their reason (if any). * configure.ac: Add check for boost/type_traits.hpp.
* schroot/schroot.1.in: Use -p rather than -d in the description, and remove incorrect directory fallback description. Thanks to Matthew Foulkes for reporting this.
* dchroot/dchroot-chroot-config.cc, dchroot-dsa/dchroot-dsa-chroot-config.cc (parse_data): Instead of creating a chroot and adding it, create a keyfile and load it. This will allow accurate parse errors, including line numbers. * sbuild/sbuild-chroot-config.cc (load_keyfile): New method, split from parse_data. This allows keyfile loaded in derived classes. * sbuild/sbuild-keyfile.h: Methods to set values with line numbers are now public, for use in dchroot. Added method to set a list value with a line number.
* sbuild/sbuild-chroot-config.cc (add): Clean up error handling, and report config file line number, group and key details. A keyfile is passed as an argument, to provide context for error details. (load_keyfile): Pass keyfile as context when calling add. * sbuild/sbuild-auth.cc (authenticate): Authorisation failure information is set as an exception reason. * sbuild/sbuild-keyfile.cc: Add additional error codes for passthrough, and deprecated and obsolete key warnings. (check_priority): Use error codes and exception reasons rather than hand-formatted error messages. * sbuild/sbuild-session.cc (wait_for_child): Tidy termination message. * sbuild/sbuild-log.cc (log_exception_warning): New method. This behaves exactly the same as log_exception, but uses log_warning rather than log_error.
* dchroot/dchroot.1.in, dchroot-dsa/dchroot-dsa.1.in: Use "users" instead of "user list", so that the user list name matches the keyfile key name used in error messages. * dchroot/dchroot-chroot-config.cc, dchroot-dsa/dchroot-dsa-chroot-config.cc (parse_data): A missing location is no longer an error (it gets reported with greater detail when adding the keyfile). * sbuild/sbuild-keyfile.cc: Add additional error code for missing required key with no line information. (check_priority): Report line information for missing required key (when available).
* TODO: Remove completed item. * sbuild/sbuild-chroot.cc (set_persona): Remove method overloaded for a string. (get_keyfile): Use keyfile::set_object_value for the personality. (set_keyfile): Use keyfile::get_object_value for the personality. * sbuild/sbuild-personality.cc: Add a BAD error code for when the personality name is invalid. (get_personalities): Renamed from print_personalities. Create a string, rather than printing to an ostream. * sbuild/sbuild-personality.h: Add stream input operator, to set the personality from a stream. * sbuild/sbuild-keyfile.h: Move all logic in get_object_value into the try block, to catch and report parse errors in T parsing.
* Remove redundant emacs local variables use in C++ sources.
* sbuild/sbuild-log.cc (log_exception_error): Rename from log_exception.
* sbuild/sbuild-lock.cc: Rename _RELEASE error codes to _UNLOCK and reword error messages to be uniform with chroot error messages. * sbuild/sbuild-chroot-config.cc: Rename CHROOT error to CHROOT_NOTFOUND, to reduce ambiguity.
* test/sbuild-personality.cc: Add tests for stream operators.
* schroot/schroot-listmounts-main.cc: Add error code enum and string map. (list_mounts): Throw custom exception using new error codes.
* schroot/schroot-listmounts-main.cc: Add error code enum and string map. (list_mounts): Throw custom exception using new error codes.
* schroot/schroot-main-base.cc: Add error code enum and string map. (run_impl): Throw custom exception using new error codes. * configure.ac (PACKAGE_LOCALSTATE_DIR): Remove trailing /.
* NEWS: Document stricter duplicate checking, and improved error reporting. * dchroot/dchroot-chroot-config.cc, dchroot-dsa/dchroot-dsa-chroot-config.cc: Duplicate chroot names are treated as an error. * sbuild/sbuild-keyfile.h: Use log_exception_warning in place of log_warning. (operator >>): Duplicate groups and keys within groups are an error. * dchroot/dchroot-session-base.cc (run_impl): Use arguments with USER_SWITCH. * sbuild/sbuild-session.cc: Add format arguments to USER_SWITCH error code. * sbuild/sbuild-custom-error.h: Add two additional constructors with two context arguments.
* Use log_exception_error and log_exception_error in place of log_error and log_warning.
* TODO: Remove completed item. * po/en_GB.po: Update translation.
* sbuild/sbuild-auth-conv-tty.cc (get_delay): Fix incorrectly named function call.
* Update translation.
* dchroot/dchroot.1.in, dchroot-dsa/dchroot-dsa.1.in: Remove accidentally committed SVN conflict markers.
* po/LINGUAS: Remove vi. * po/vi.po: Remove currently unmaintained translation. * po/en_GB.po: Update * Add translation comments documenting all format string arguments before all translatable strings with %n% format modifers.
* NEWS: Document terminal state save and restore behaviour. * sbuild/sbuild-session.cc (save_termios): New method. Save terminal state. (restore_termios): New method. Restore terminal state. (run_impl): Save and restore terminal state between opening and closing the session. * sbuild/sbuild-session.h: Add saved_termios and termios_ok members. * schroot/schroot-base-main.cc (run): Remove termios save and restore.
* debian/changelog: Close #378469.
* po/en_GB.po: Update. * Add translator comments for ellipsis (...) in translatable strings.
* po/sv.po: Update Swedish translation.
* po/vi.po: Restore unmaintained translation, but leave out of LINGUAS.
* TODO: Remove completed item. * Added a number of debugging messages to important codepaths.
* sbuild/sbuild-log.cc: Add translator comments, and mark up log abbreviations for translation.
* sbuild/sbuild-auth-conv-tty.cc (conversation): Log using standard log functions rather than using std::cerr.
* NEWS: Document SIGTERM behaviour. * sbuild/sbuild-session.cc (set_signal_handler): New method for use by set_sighup_handler and set_sigterm_handler. (clear_signal_handler): New method for use by clear_sighup_handler and clear_sigterm_handler. (set_sighup_handler): Use set_signal_handler. (clear_sighup_handler): Use clear_signal_handler. (set_sigterm_handler): New method. (clear_sigterm_handler): New method. * sbuild/sbuild-session.h: Rename saved_signals member to saved_sighup_signal, and add a saved_sigterm_signal member.
* Sync translations.
* Don't translate program usage messages before the locale and gettext have been initialised.
* sbuild/sbuild-run-parts.cc (run_child): Add child exit status debugging output.
* sbuild/sbuild-session.cc (run_impl): Make sure setup_chroot (for EXEC_STOP and SETUP_STOP), clear_sigterm_handler, and clear sighup_handler are always called, and always called once only. * sbuild/sbuild-auth.cc (run): Make sure cred_delete and stop are always called, and always called once only.
* sbuild/sbuild-auth.h: Remove incorrect comment.
* TODO: Remove completed item (duplictes in conffiles should be an error).
* po/en_GB.po: Update translation.
* Version 0.99.4 * debian/changelog: Update for 0.99.4
* debian/changelog: Bump version to 1.0.0. * NEWS: Bump version to 1.0.0. * configure.ac: Bump version to 1.0.0.
* po/LINGUAS: Add vi.
* debian/changelog: debian/copyright updates.
* debian/changelog: Add missing Debian-specific revisions.
* schroot/schroot-listmounts-main.cc (action_listmounts): mounts is const, to fix a GCC 4.0 compiler bug.
* po/LINGUAS: Add de. * po/de.po: New file. German translation from Jens Seidel.
* po/LINGUAS: Add de. * po/de.po: New file. German translation from Jens Seidel.
* schroot/schroot-releaselock.cc, schroot/schroot.cc, schroot/schroot-listmounts.cc, sbuild/sbuild-parse-error.h, sbuild/sbuild-auth.cc, sbuild/sbuild-auth.h, dchroot/dchroot.cc, dchroot-dsa/dchroot-dsa.cc: Fix typo (occured). Thanks to Jens Seidel <jensseidel at users.sf.net> for reporting this.
* po/de.po: Update German translation.
* sbuild/sbuild-auth.cc (authenticate): Split string definition and appending of additional parts into multiple statements, for GCC 3.3 compatibility. * sbuild/sbuild-tr1types.h: If using boost::shared_ptr, import static_pointer_cast, const_pointer_cast and dynamic_pointer_cast into the std::tr1 namespace for GCC 3.3 and 3.4 compatibility.
* sbuild/sbuild-auth-conv.h: Update API documentation.
* schroot/schroot-base-main.cc (run): Remove locale and gettext setup. * schroot/schroot.cc, schroot/schroot-listmounts.cc, schroot/schroot-releaselock.cc, dchroot/dchroot.cc, dchroot-dsa/dchroot-dsa.cc: Set up locale and gettext message catalogue.
* schroot/schroot.cc, schroot/schroot-listmounts.cc, schroot/schroot-releaselock.cc, dchroot/dchroot.cc, dchroot-dsa/dchroot-dsa.cc: Use schroot_base::run<>. * schroot/schroot-base-run.h: New file. Implement a generic templated main routine.
* sbuild/sbuild-session.cc (save_termios, restore_termios): Close CTTY fd to prevent fd leak.
* sbuild/sbuild-chroot-config.cc (load_data): Fix comment.
* schroot/schroot-listmounts-main.(cc|h), schroot/schroot-releaselock-main.(cc|h): Use opts rather than options as the member name for the options smartpointer; this doesn't conflict with the options class in the same namespace, and fixes a compile error with GCC 3.3.
* po/en_GB.po: Add en- and em-dashes.
* po/LINGUAS: Rename en_GB to en. * po/en.po: Rename from en_GB.po.
* schroot/Makefile.am (libschroot_base_la_SOURCES): Distribute schroot-base-run.h.
* NEWS: Update for 1.0.0.
* Update manual pages. * sbuild/sbuild-lock.h: Add missing virtual specifier from virtual methods in derived lock classes. * sbuild/sbuild-session.cc: Remove use of excess braces when throwing exceptions. (get_shell): Use log_exception_warning. * Remove incorrect and misplaced comments. * Update translator comments. * Update API reference to document all missing and incomplete documentation.
* TODO: Add future items. * All catch blocks catch const references. * sbuild/sbuild-run-parts.cc (run_child): Handle exceptions thrown in child. * sbuild/sbuild-session.cc (setup_chroot): Handle exceptions thrown in child. * Replace all uses std::locale("C") with std::locale::classic(). * Replace all uses of NULL with 0. * sbuild/sbuild-auth.cc (auth): Remove redundant auth_conv_tty dynamic_cast. (~auth): Log an error if an exception is caught. (set_user): Default uid and gid to current uid and gid, rather than 0, for extra safety when an error occurs. (run, start): Use reinterpret_cast instead of static_cast when casting void *. (authenticate): Don't leak hostname array if an exception is thrown.
* Update translations.
* New development series on the main trunk. * debian/changelog: Bump version to 1.1.0. * NEWS: Bump version to 1.1.0. * configure.ac: Bump version to 1.1.0.
* Merge from schroot-1.0 branch. * configure.ac: Fix --enable-dchroot-dsa help string. Thanks to Jens Seidel <jensseidel at users.sf.net> for reporting this. * schroot/schroot-options-base.cc (check_actions): Clarify error message when starting a session, and the number of chroots specified is not 1. Thanks to Jens Seidel <jensseidel at users.sf.net> for reporting this. * schroot/schroot-base-main.cc (action_version): Fix translator comment. Thanks to Jens Seidel <jensseidel at users.sf.net> for reporting this. * sbuild/Makefile.am (sbuild_public_cc_sources): Add sbuild-types.cc. * sbuild/sbuild-types.cc: New file. (get_date_format): Get a localised strftime format string. * sbuild/sbuild-types.h (operator <<): Allow localisation of the std::time_put format string.
* Merge translations from schroot-1.0 branch.
* po/LINGUAS: Add cs.
* Merge from schroot-1.0 branch. * Update translator comments. * Add sbuild/sbuild-types.cc.
* Update translator comments.
* schroot/setup/50chrootname: Name in log message always matches debian_chroot chrootname.
* schroot/schroot.1.in, dchroot/dchroot.1.in: Document mips and mipsel personality bug.
* sbuild/sbuild-chroot-config.cc: Use "by", rather than "with" when referring to chroot name.
* test/Makefile.am (TESTS): Add sbuild-regex. * test/sbuild-regex.cc: New file. sbuild::regex unit tests. * sbuild/Makefile.am (sbuild_public_h_sources): Add sbuild-regex.h. * sbuild/sbuild-regex.h: New file. POSIX extended regular expression class, based on boost::regex. It supports input and output from streams.
* sbuild/sbuild-run-parts.cc (check_filename): Use sbuild::regex in place of boost::regex.
* test/sbuild-environment.cc: Add regex filter tests. * sbuild/sbuild-environment.cc (set_filter): Set filter regex. (get_filter): Get filter regex. (add): Check environment variable name does not match the regex before adding it. * sbuild/sbuild-environment.h: Add filter member, a regular expression to filter the environment. All operators take a const reference as the right-hand side argument.
* test/sbuild-chroot.cc: Add environment_filter test. * sbuild/sbuild-chroot.cc (get_environment_filter): New method. Get the environment filter regex. (set_environment_filter): New method. Set the environment filter regex. (get_details): Add "Environment Filter" line. (get_keyfile): Set "environment-filter" key. (set_keyfile): Get "environment-filter" key. * sbuild/sbuild-chroot.h: Add environment_filter member, a regular expression to filter the environment inside the chroot.
* sbuild/sbuild-session.cc (run_child): Use the chroot environment_filter when setting the chroot execution environment.
* sbuild/sbuild-auth.h (sbuild): Document that the environment sanitisation is no longer performed, and this is the caller's responsibility. * sbuild/sbuild-auth.cc (setupenv): Remove environment sanitisation logic, now this is handled in the session code, using the chroot and environment filter logic.
* sbuild/sbuild-chroot.cc (set_location): Be less strict when validating the location; strict validation is already performed in derived chroot types. This prevents errors when reading the session configuration.
* sbuild/sbuild-run-parts.h, sbuild/sbuild-session.h: Remove completed TODO items. * sbuild/sbuild-session.cc (wait_for_child): Use waitpid in place of wait. * sbuild/sbuild-run-parts.cc (wait_for_child): Use waitpid in place of wait.
* sbuild/sbuild-chroot-config.h (error_code): Remove unused DIR_OPEN enum. * sbuild/sbuild-chroot-config.cc (add_config_directory): Use sbuild::dirstream in place of opendir/readdir/closedir.
* schroot/schroot-releaselock-main.cc (action_releaselock): Capitalise PID.
* All Makefile.am (DEFS): Don't use -DGETTEXT_PACKAGE. * All sources not using the sbuild namespace import sbuild::_ and sbuild::N_ where needed. * schroot/schroot-base-run.h): Use SBUILD_MESSAGE_CATALOGUE in place of GETTEXT_PACKAGE. Use sbuild::log_unknown_exception_error instead of calling log_error directly. * sbuild/sbuild-i18n.h (gettext, _, gettext_noop, N_): These are all inline functions in the sbuild namespace instead of global macros. gettext uses dgettext with SBUILD_MESSAGE_CATALOGUE. Remove completed TODO item. * sbuild/sbuild-config.h.in (SBUILD_MESSAGE_CATALOGUE): New macro, defining the message catalogue name. * sbuild/sbuild-log.cc (log_unknown_exception_error): New function to log an error message for unknown exceptions.
* schroot/schroot-main.cc, schroot/schroot-listmounts-main.cc, schroot/schroot-releaselock-main.cc, dchroot/dchroot-main.cc, dchroot-dsa/dchroot-dsa-main.cc: Translate program usage message in place. * schroot/schroot-base-main.cc (action_help): Don't translate the program usage message. The usage text provided should already be translated.
* schroot/schroot-releaselock-main.h (schroot_releaselock): Remove completed TODO item (PID capitalisation).
* po/POTFILES.in: Add sbuild/sbuild-ctty.cc. * sbuild/Makefile.am: Add sbuild/sbuild-ctty.(cc|h). * sbuild/sbuild-ctty.(cc|h): New files. These implement Controlling TTY (CTTY) file descriptor and iostream functionality.
* po/POTFILES.in: Add sbuild/sbuild-ctty.cc. * sbuild/Makefile.am: Add sbuild/sbuild-ctty.(cc|h). * sbuild/sbuild-ctty.(cc|h): New files. These implement Controlling TTY (CTTY) file descriptor and iostream functionality.
* sbuild/sbuild-log.cc (log_ctty_info): New function. The same as log_info, but log to cctty instead of std::cerr. (log_ctty_warning): New function. The same as log_warning, but log to cctty instead of std::cerr. (log_ctty_error): New function. The same as log_error, but log to cctty instead of std::cerr. (log_ctty_exception_warning): New function. The same as log_exception_warning, but log to cctty instead of std::cerr. (log_ctty_exception_error): New function. The same as log_exception_error, but log to cctty instead of std::cerr.
* sbuild/sbuild-session.cc (save_termios, restore_termios): Use CTTY_FILENO instead of opening and closing /dev/tty. * sbuild/sbuild-auth-conv-tty.cc (read_string): Use CTTY_FILENO in place of STDIN_FILENO, and cctty in place of std::cerr. Unlike std::cerr, cctty doesn't autoflush, so flush by hand. Use log_ctty_exception_warning in place of log_exception_warning. (conversation): Use log_ctty_info and log_ctty_error in place of log_info and log_error. * sbuild/sbuild-auth-conv-tty.h: Add CTTY error code.
* NEWS: Document CTTY changes to authentication.
* sbuild/sbuild-session.cc (get_auth_status): Fix TODO comment markup. * Merge from schroot-1.0 branch. * NEWS: Document changed syslog behaviour. * sbuild/sbuild-session.cc (get_login_command, get_user_command): syslog logging of the command or shell being run in the chroot now only occurs when running as root or switching to another user.
* sbuild/sbuild-ctty.cc: Include <config.h>, to prevent a build failure with GCC 3.3.
* schroot/schroot-base-options.cc, schroot/schroot-options-base.cc, schroot/schroot-listmounts-options.cc, schroot/schroot-releaselock-options.cc (add_option_groups): Add workaround for boost if BOOST_PROGRAM_OPTIONS_DESCRIPTION_OLD is defined. * configure.ac: Add check for boost::program_options::options_description::options(), which does not exist in older versions of boost.
* sbuild/sbuild-auth.cc (get_wd, set_wd): New methods. Get and set the working directory. * sbuild/sbuild-auth.h: Add wd member variable to store the working directory to use.
* sbuild/sbuild-auth.cc (get_wd, set_wd): New methods. Get and set the working directory. * sbuild/sbuild-auth.h: Add wd member variable to store the working directory to use.
* HACKING: Document additional directory fallback checks. * schroot/schroot.1.in, dchroot/dchroot.1.in, dchroot-dsa/dchroot-dsa.1.in: Document directory option. * schroot/schroot-main-base.cc (run_impl): If a directory option was specified, set the auth wd member. * schroot/schroot-options.cc, dchroot/dchroot-options.cc, dchroot-dsa/dchroot-dsa-options.cc: (add_options): Add directory option. * schroot/schroot-options-base.h: Add directory member, used to specify the directory inside the chroot.
* schroot/schroot.1.in, dchroot/dchroot.1.in, dchroot-dsa/dchroot-dsa.1.in: Document directory option.
* NEWS: Document --directory.
* po/schroot.pot: Add.
* Version 1.1.0 * debian/changelog: Update for 1.1.0 * TODO: Remove completed item.
* debian/changelog: Bump version to 1.1.1. * NEWS: Bump version to 1.1.1. * configure.ac: Bump version to 1.1.1.
* NEWS: Document changed syslog behaviour. * dchroot/dchroot-session.cc, dchroot-dsa/dchroot-dsa-session.cc (get_user_command): syslog logging of the command or shell being run in the chroot now only occurs when running as root or switching to another user.
* Translation updates.
* po/de.po: Updated German translation. Thanks to Helge Kreutzmann.
* po/de.po: Update German translation. Thanks to Jens Seidel.
* README, schroot/schroot-setup.5.in, schroot/schroot.conf.5.in: Fix a number of minor typos. Thanks to Jens Seidel.
* dchroot/dchroot-main-base.cc: Add translator comment.
* schroot/schroot.1.in: Fix a number of minor typos. Thanks to Jens Seidel.
* debian/schroot.init: Add LSB init info and use LSB init functions. * debian/changelog: Update.
* schroot/schroot-listmounts-main.cc (list_mounts): Use realpath(3) to ensure the correct mountpoint it checked. This prevents severe dataloss if the user has placed a symbolic link in the SCHROOT_MOUNT_DIR path. * NEWS: Document realpath fix.
* schroot/schroot-listmounts-main.cc (list_mounts): Ensure path returned by realpath(3) is not null. * schroot/schroot-listmounts-main.h: Add FIND error code.
* schroot/schroot-listmounts-main.cc (list_mounts): Ensure path returned by realpath(3) is not null. * schroot/schroot-listmounts-main.h: Add FIND error code.
* sbuild/sbuild-i18n.h: Remove commented-out macro.
* Merge from schroot-1.0 branch. * po/fr.po: Add French translation. Many thanks to Nicolas François <nicolas.francois at centraliens.net>.
* doc/schroot.dox.in: Add csbuild. * Makefile.am: Add csbuild to SUBDIRS. * configure.ac: Add enable check and support for csbuild. * csbuild/csbuild-session-base.cc, csbuild/csbuild-options.cc, csbuild/csbuild-main-base.cc, csbuild/csbuild-options.h, csbuild/csbuild-session-base.h, csbuild/csbuild-main-base.h, csbuild/csbuild.1.in, csbuild/Makefile.am, csbuild/csbuild.cc, csbuild/csbuild-main.cc, csbuild/csbuild-main.h: New files. Initial C++ implementation of sbuild; infrastructure classes copied from dchroot.
* schroot/setup/50sbuild: Create user home directory if it doesn't exist in the chroot and ensure it has the correct permissions.
* debian/changelog: Create new packages sbuild-common, libsbuild1 and libsbuild1-dev. * sbuild/Makefile.am (lib_LTLIBRARIES): Install libsbuild in $(libdir). (pkgincludedir): New variable, header location. (pkginclude_HEADERS): Headers to install. (pkgconfigdatadir): New variable, pkg-config data location. (pkgconfigdata_DATA): pkg-config data to install. (libsbuild_version): New variable, libsbuld versioning. (libsbuild_la_LDFLAGS): libsbuild libtool flags. * sbuild/sbuild.pc.in: New file. pkg-config template for libsbuild. * configure.ac: Add shared library versioning logic (from Gutenprint configure script). AM_INIT_AUTOMAKE: Distribute a POSIX PAX tape archive. Create shared libraries rather than static. Create a pkg-config .pc file for libsbuild.
* Move schroot, dchroot, dchroot and csbuild to a new subdirectory, bin. * bin/*/Makefile.am (LOCAL_CXXFLAGS): Add -I$(top_srcdir)/bin. * bin/Makefile.am: New file. (SUBDIRS): schroot dchroot dchroot-dsa csbuild * configure.ac: Use new file locations. * doc/schroot.dox.in: Use new source locations. Disable call graph.
* AUTHORS: Add Federico Di Gregorio. * debian/changelog: Update init script to use a default file.
* Remove schroot, dchroot, dchroot-dsa and csbuild directories, now they have been moved to /bin.
* bin/schroot-base/Makefile.am: New file, based on bin/schroot/Makefile.am. * configure.ac: Add bin/schroot-base/Makefile. * Move bin/schroot/schroot-base-* to bin/schroot-base. Update all dependent files to use the new path.
* bin/schroot-base/schroot-base-option-action.(cc|h): New class to manage actions specified by command-line options.
* bin/schroot-base/Makefile.am (libschroot_base_la_SOURCES): Add schroot-base-option-action.(cc|h).
* bin/schroot-base/schroot-base-main.h: Add TODO item. * bin/schroot-base/schroot-base-main.cc (run): Add additional information output for caught logic_error exceptions.
* Update all classes derived from schroot_base::main to specify the use_syslog parameter. * bin/schroot-base/schroot-base-main.cc (run): If use_syslog is true, call openlog and closelog with the program name as the identity. * bin/schroot-base/schroot-base-main.h: Add use_syslog as constructor argument and member variable.
* bin/schroot-base/schroot-base-option-action.h: Replace std::string with action_type typedef. Add inline operator ==, !=, and = methods. * bin/schroot-base/schroot-base-option-action.cc: Replace std::string with action_type typedef. (set): If the action is set more than once, throw a validation_error exception. * bin/schroot-base/schroot-base-options.h: Add action_type typedef for option_action::action_type. Add action_type constants for help and version. Add action member (an option_action). * bin/schroot-base/schroot-base-options.cc (add_options): Add help and version actions. (check_options): Check and set help and version actions. * bin/schroot-base/schroot-base-main.cc (run): Remove logic_error checks, since boost program_options errors are also derived from logic_error. * bin/schroot/schroot-options-base.h: Replace action_type enum with separate constants. Remove action member. * bin/schroot/schroot-options-base.cc (add_options): Add actions and set default action. (check_options): Remove help and version checks. Update sanity check. (check_actions): Chain up to base class method. Replace switch with set of if-else blocks. (set_action): Remove. * bin/schroot/schroot-options.cc (check_options): Replace set_action with simple assignment. * bin/schroot/schroot-listmounts-options.h: Replace action_type enum with separate constants. Remove action member. * bin/schroot/schroot-listmounts-options.cc (add_options): Add action and set default action. (check_options): Remove help and version checks. Update sanity check. (set_action): Remove. * bin/schroot/schroot-releaselock-options.h: Replace action_type enum with separate constants. Remove action member. * bin/schroot/schroot-releaselock-options.cc (add_options): Add action and set default action. (check_options): Remove help and version checks. Update sanity check. (set_action): Remove. * bin/csbuild/csbuild-options.cc (check_options): Replace set_action with simple assignment. * bin/dchroot/dchroot-options.cc (check_options): Replace set_action with simple assignment. * bin/dchroot-dsa/dchroot-dsa-options.cc (check_options): Replace set_action with simple assignment.
* test/schroot-base-option-action.cc: New file, unit test for schroot_base::option_action.
* po/POTFILES.in: Updated with new file locations. * Update copyright headers on files for 2007.
* Replace all files in bin/csbuild with schroot-releaselock sources, and customise for csbuild. The standard options are taken from the existing sbuild implementation.
* bin/schroot/setup/50sbuild: Fix syntax error in test.
* bin/schroot-base/schroot-base-options.h: Added actions options group. * bin/schroot-base/schroot-base-options.cc (add_option_groups): Add actions group to the visible and global options groups. * Updated all options code to use the actions group instead of the general group. Added default actions to schroot and csbuild.
* bin/csbuild/csbuild-debian-changes.(cc|h): New class, base class for parsing .changes and .dsc files, based on sbuild::keyfile. * bin/csbuild/Makefile.am (csbuild_SOURCES): Add csbuild-debian-changes.(cc|h).
* bin/csbuild/csbuild-debian-changes.h: Indent method arguments, and tidy. * bin/csbuild/csbuild-debian-changes.cc (get_value): New methods, specialising the generic template for value_type.
* po/POTFILES.in: Updated with new file locations. * Move bin/schroot/schroot-listmounts* to bin/schroot-listmounts. * Move bin/schroot/schroot-releaselock* to bin/schroot-releaselock.
* NEWS: Document the environment-filter key. * bin/schroot/schroot.conf.5.in: Document the environment-filter key. * bin/schroot/schroot.1.in (list): Document environment variables being set, and configuration of environment filtering. * sbuild/sbuild-session.cc (run_child): Set SCHROOT_COMMAND, SCHROOT_USER, SCHROOT_GROUP, SCHROOT_UID and SCHROOT_GID environment variables, equivalent to SUDO_* variables of the same name (except for SUDO_GROUP, which does not exist). * sbuild/sbuild-auth.cc (auth): Initialise rgid and rgroup members from group database. (get_rgid): New member function to get rgid. * sbuild/sbuild-auth.h: Add GROUP error_code and rgid and rgroup class members.
* NEWS: Document the environment-filter key. * bin/schroot/schroot.conf.5.in: Document the environment-filter key. * bin/schroot/schroot.1.in (list): Document environment variables being set, and configuration of environment filtering. * sbuild/sbuild-session.cc (run_child): Set SCHROOT_COMMAND, SCHROOT_USER, SCHROOT_GROUP, SCHROOT_UID and SCHROOT_GID environment variables, equivalent to SUDO_* variables of the same name (except for SUDO_GROUP, which does not exist). * sbuild/sbuild-auth.cc (auth): Initialise rgid and rgroup members from group database. (get_rgid): New member function to get rgid. (get_rgroup): New member function to get rgroup. * sbuild/sbuild-auth.h: Add GROUP error_code and rgid and rgroup class members.
* bin/schroot/schroot-options-base.cc (check_actions): Re-add ACTION_SESSION_END.
* sbuild/sbuild-run-parts.cc (run_parts): Don't consider at "." or "..". * sbuild/sbuild-chroot-config.cc (add_config_directory): Don't consider at "." or "..".
* test/Makefile.am (LOCAL_CXXFLAGS): Use $(top_srcdir) rather than $(top_builddir).
* sbuild/sbuild-environment.cc (add): Replace regex_match with regex_search, to avoid missing partial matches. * sbuild/sbuild-run-parts.cc (check_filename): Replace regex_match with regex_search, to avoid missing partial matches.
* Update translations with new strings (require translation).
* debian/changelog: Document packaging of only a static library.
* Version 1.1.1. * debian/changelog: Update for 1.1.1. * NEWS: Document new environment variables set inside the chroot. * TODO: Remove completed SCHROOT_USER item.
* debian/changelog: Bump version to 1.1.2. * NEWS: Bump version to 1.1.2. * configure.ac: Bump version to 1.1.2.
* debian/changelog: Remove libsbuild1 dependency from libsbuild-dev.
* debian/changelog: Fix issues in debian/control.
* configure.ac: Generate doc/sbuild.dox. * doc/Makefile.am: Generate sbuild documentation. Fix PS_DEPS for new manual page locations. * doc/schroot.dox.in: Remove sbuild input files, and use sbuild tag file. * doc/sbuild.dox.in: Split libsbuild API reference from schroot.dox.in.
* debian/changelog: Add new package, libsbuild-doc.
* Update svn:ignore properties.
* debian/changelog: debian/rules: Split arch-dependendent and arch-independent packages into seprate rules. Remove .map and .md5 files from the Doxygen docs.
* sbuild/sbuild-keyfile.(cc|h): Add typedefs for key, group and comment types.
* sbuild/sbuild-keyfile.(cc|h): Remove code moved into sbuild_keyfile_base, and inherit from sbuild_keyfile_base. * sbuild/Makefile.am (sbuild_public_cc_sources, (sbuild_public_h_sources): Include sbuild/sbuild-keyfile.(cc|h).
* sbuild/sbuild-keyfile.h: Remove keyfile class. Replace with a simple traits structure, keyfile_traits, and a keyfile typedef to specialise basic_keyfile. * sbuild/sbuild-basic-keyfile.(h|tcc): Copy of sbuild-keyfile.(h|cc), converted into a templated class with traits. * sbuild/sbuild-keyfile-base.(cc|h): Copy of sbuild-keyfile.(h|cc), with all but error codes and priority enum removed.
* sbuild/sbuild-keyfile.h: Remove keyfile class. Replace with a simple traits structure, keyfile_traits, and a keyfile typedef to specialise basic_keyfile. * sbuild/sbuild-basic-keyfile.(h|tcc): Copy of sbuild-keyfile.(h|cc), converted into a templated class with traits. * sbuild/sbuild-keyfile-base.(cc|h): Copy of sbuild-keyfile.(h|cc), with all but error codes and priority enum removed.
* sbuild/sbuild-basic-keyfile.tcc: Remove using keywords from global scope, because this is included by sbuild-basic-keyfile.h. All type names now use explicit namespace qualifiers.
* sbuild/sbuild-keyfile.h: Remove comments about GKeyFile, and remove unneeded namespace qualifier.
* test/sbuild-keyfile.cc: Document where warnings are triggered. * sbuild/sbuild-keyfile.h: Add a keyfile_parser class template derived from basic_keyfile_parser. Most of the logic from the basic_keyfile operator << method is moved here. * sbuild/sbuild-basic-keyfile.tcc: Add new template parameter. * sbuild/sbuild-basic-keyfile.h: Add a basic_keyfile_parser class template. The parser is specified by a second template parameter in basic_keyfile. This is used in the operator << method.
* debian/changelog: schroot-common Replaces schroot (<< 1.1.1).
* sbuild/sbuild-ctty.cc (cttybuf_fd): Don't call log_debug, because this is called from a static initialiser, and std::cerr isn't yet initialised. If there is no controlling tty, this will result in a segmentation fault.
* debian/changelog: Document fixing of 10mount. * bin/schroot/setup/10mount (do_umount_all): Don't exec schroot-listmounts in a subshell. This prevents an error (such as a bad exit status) from being noticed by the script, and as a result failure to umount filesystems may result in severe dataloss when stop scripts then "rm -rf" the chroot.
* debian/changelog: Fix typo.
* po/POTFILES.in: Remove sbuild/sbuild-keyfile.cc, and add sbuild/sbuild-keyfile-base.cc
* Version 1.1.2. * debian/changelog: Finalise for 1.1.2.
* debian/changelog: Bump version to 1.1.3. * NEWS: Bump version to 1.1.3. * configure.ac: Bump version to 1.1.3. Checks for Boost libraries add an -st suffix to use the single-threaded version of the library.
* bin/schroot-base/schroot-base-run.h (run): Catch a runtime_error thrown while setting the locale, and fall back to the C locale. * sbuild/sbuild-basic-keyfile.tcc (get_locale_string): Catch a runtime_error thrown while setting the locale, and fall back to the C locale. * debian/changelog: Close Debian bug #425117.
* NEWS: Bump version to 1.1.3.
* po/*: Updated translations.
* Commit changes for previously committed files.
* Version 1.1.3. * debian/changelog: Finalise for 1.1.3.
* debian/changelog: Bump version to 1.1.4. Merge changelog entries from schroot-1.0 branch. * NEWS: Bump version to 1.1.4. Merge NEWS entries from schroot-1.0 branch. * configure.ac: Bump version to 1.1.4.
* debian/control: Change section of libsbuild-doc to "doc".
* bin/schroot/setup/10mount (do_umount_all): Cope with the case schroot-listmounts returns nothing, so that "" is not unmounted.
* debian/changelog: Close #391319. * AUTHORS: Add Kees Cook. * bin/schroot/setup/15killprocs: New file. Kill processes in the chroot before unmounting any filesystems. Many thanks to Kees Cook for implementing this. * bin/schroot/setup/Makefile.am (setup_SCRIPTS): Add 15killprocs
* bin/schroot/setup/*: Add a copyright notice and GPL boilerplate to all shell scripts.
* debian/control: - Update package descriptions. + Add schroot boilerplate description to schroot-common, libsbuild-dev and libsbuild-doc (Closes: #425964). Thanks to Craig Sanders. + Update schroot boilerplate. + Add a list of reasons not to use dchroot and dchroot-dsa instead of schroot.
* Build-Depend on the latest version of Boost, due to the change of library symlinks.
* sbuild/sbuild-run-parts.cc (check_filename): Remove debugging messages added to find a problem with regex match failure.
* bin/schroot/setup/15killprocs: Only run readlink on /proc/pid/exe if doing verbose logging. Thanks to Kees Cook.
* HACKING: Document tests for process termination.
* Version 1.1.4. * NEWS: Document process killing. * debian/changelog: Close #426416. Finalise for 1.1.4.
* debian/changelog: Bump version to 1.1.5. * NEWS: Bump version to 1.1.5. * configure.ac: Bump version to 1.1.5. Update AC_COPYRIGHT. * THANKS: Add Lucas Nussbaum.
* THANKS: Add Raphaël Hertzog. * debian/changelog: Close #428805. * bin/schroot/schroot.conf.5.in: Document use of --bind and --rbind for plain and directory chroots. * bin/schroot/setup/10mount: Use --bind rather than --rbind for directory chroots.
* NEWS: Document "script-config". * bin/schroot/setup/05file, bin/schroot/setup/05lvm, bin/schroot/setup/10mount, bin/schroot/setup/15killprocs, bin/schroot/setup/20network, bin/schroot/setup/30passwd, bin/schroot/setup/50chrootname, bin/schroot/setup/50sbuild: Source $CHROOT_SCRIPT_CONFIG. 50sbuild only runs if SBUILD=true. * bin/schroot/setup/00check, bin/schroot/exec/00check: Source $CHROOT_SCRIPT_CONFIG. Print config file name and settings if verbose. * bin/schroot/schroot.conf.5.in: Document "script-config". * bin/schroot/Makefile.am (pkgsysconf_DATA): Add script-defaults. * bin/schroot/script-defaults: New file. Default script configuration. * sbuild/sbuild-chroot.cc (chroot): Set script_config default to "script-defaults". (get|set_script_config): New methods to get and set script_config. (setup_env): Set CHROOT_SCRIPT_CONFIG. (get_details): Output "Script Configuration". (get_keyfile): Set "script-config". (set_keyfile): Get "script-config". * sbuild/sbuild-chroot.h: Add script_config member. * configure.ac: Fix the definition of PACKAGE_DATA_DIR. Define PACKAGE_SYSCONF_DIR.
* NEWS: Document "script-config". * bin/schroot/setup/05file, bin/schroot/setup/05lvm, bin/schroot/setup/10mount, bin/schroot/setup/15killprocs, bin/schroot/setup/20network, bin/schroot/setup/30passwd, bin/schroot/setup/50chrootname, bin/schroot/setup/50sbuild: Source $CHROOT_SCRIPT_CONFIG. 50sbuild only runs if SBUILD=true. * bin/schroot/setup/00check, bin/schroot/exec/00check: Source $CHROOT_SCRIPT_CONFIG. Print config file name and settings if verbose. * bin/schroot/schroot.conf.5.in: Document "script-config". * bin/schroot/Makefile.am (pkgsysconf_DATA): Add script-defaults. * bin/schroot/script-defaults: New file. Default script configuration. * sbuild/sbuild-chroot.cc (chroot): Set script_config default to "script-defaults". (get|set_script_config): New methods to get and set script_config. (setup_env): Set CHROOT_SCRIPT_CONFIG. (get_details): Output "Script Configuration". (get_keyfile): Set "script-config". (set_keyfile): Get "script-config". * sbuild/sbuild-chroot.h: Add script_config member. * configure.ac: Fix the definition of PACKAGE_DATA_DIR. Define PACKAGE_SYSCONF_DIR.
* sbuild/sbuild-types.cc (isodate::get_date_format): New method to format an ISO-8601 date. * sbuild/sbuild-types.h: All destructors are virtual. get_date_format is a virtual function overridable in derived classes. Added a new isodate class to format ISO-8601 dates.
* sbuild/sbuild-lock.cc: Add error messages for UNLOCK and UNLOCK_TIMEOUT error codes. Rename second DEVICE_UNLOCK error message to DEVICE_UNLOCK_TIMEOUT. The lock types are now exception-safe. (~file_lock): If the file is locked, release the lock. Log a warning on error. (file_lock::set_lock): Set the locked member. On unlock error, throw UNLOCK or UNLOCK_TIMEOUT. (~device_lock): If the device is locked, release the lock. Log a warning on error. (device_lock::set_lock): Set the locked member. * sbuild/sbuild-lock.h: Add UNLOCK and UNLOCK_TIMEOUT error codes. Add locked members to file_lock and device_lock.
* sbuild/sbuild-session.cc: Add error message for SET_SESSION_ID error code. (run_impl): Log a warning message if a chroot does not support setting a session ID. If the system does not support UUIDs, use the ISO-8601 date and PID instead. * sbuild/sbuild-session.h: Add a SET_SESSION_ID error code. * configure.ac: Add a HAVE_UUID macro.
* sbuild/sbuild-session.cc: Add error message for SET_SESSION_ID error code. (run_impl): Log a warning message if a chroot does not support setting a session ID. If the system does not support UUIDs, use the ISO-8601 date and PID instead. * sbuild/sbuild-session.h: Add a SET_SESSION_ID error code. * configure.ac: Add a HAVE_UUID macro.
* bin/schroot/setup/50chrootname: Strip ISO-8601 date and pid from chroot names.
* bin/schroot/schroot-main-base.cc (run_impl): Call session::set_session_id with the session name specified in the user options. * bin/schroot/schroot-options.cc (add_options): Rename session to session_actions. Add "--session-name" and "--force" options to session_options. * bin/schroot/schroot-options-base.cc (add_option_groups): Add separate session_actions and session_options groups in place of session. * bin/schroot/schroot-options-base.h (schroot): Add session_name member. Split the session options_description into separate session_actions and session_options groups.
* bin/schroot/schroot-main-base.cc (run_impl): When no chroots were found and one of the --all options was used, do not treat as a fatal error.
* sbuild/sbuild-session.cc: Initialise lock_status to true. (setup_chroot): Add debugging code to log state on call. If lock_status is false, return without doing anything. If initial lock acquistion or release fails, set lock_status to false. This ensures that no setup script will run on or after lock failure. * sbuild/sbuild-session.h: Add lock_status member.
* TODO: Add permissions check items.
* NEWS: Document --session-name.
* test/sbuild-chroot-block-device.cc, test/sbuild-chroot.cc, test/sbuild-chroot-file.cc, test/sbuild-chroot-lvm-snapshot.cc, test/sbuild-chroot-plain.cc: Add CHROOT_SCRIPT_CONFIG to environment checks.
* bin/dchroot/dchroot-session-base.cc, bin/dchroot/dchroot-session.cc: Don't include unused uuid.h.
* Update translations.
* debian/changelog: Close #398679 and #401159.
* debian/changelog: Close #401158. * bin/schroot/schroot.1.in: Reorder options and group into subsections. Split the examples section into subsections and add a "Sessions" subsection to explain how to use sessions. * bin/schroot/schroot.conf.5.in: Add \: breakpoints for a long regex.
* bin/schroot/schroot.1.in: Add --force and --session-name options to the synopsis.
* bin/schroot/schroot.1.in: Fix typo.
* bin/schroot/schroot.1.in: Add carriage returns on user input lines.
* debian/control: Use ${binary:Version}. * debian/schroot.preinst: In prep_mv_conffile(), use dpkg-query in place of reading /var/lib/dpkg/status directly.
* Version 1.1.5 * debian/changelog: Finalise for 1.1.5.
* Version 1.1.5 * debian/changelog: Finalise for 1.1.5. * bin/schroot/schroot.1.in: Add missing ^ to Environment Filter in examples.
* debian/changelog: Changelog for NMU. * configure.ac: Use the new Boost library names.
* debian/changelog: Bump version to 1.1.6. * NEWS: Bump version to 1.1.6. * configure.ac: Bump version to 1.1.6.
debian/copyright: Update with new git repository location
Convert the entire project to GPLv3
* Add .gitignore files.
* NEWS: Update for GPLv3 change.
* test/run-parts.ex2/.gitignore: Add to force directory creation. * sbuild/sbuild-auth.cc: Fix typo in documentation.
* test/sbuild-chroot-config.cc (class test_config): Use sbuild::error_base in place of sbuild::chroot_config::error, because stat errors throw a less-specific exception type. * sbuild/sbuild-chroot-config.(cc|h) (chroot_config::add, chroot_config::add_config_directory, chroot_config::load_data): Use new stat class. Remove unused FILE_STAT error code. * sbuild/sbuild-session.cc (session::get_shell): Use new stat class. * sbuild/sbuild-chroot.(cc|h): Remove unused DEVICE_STAT and FILE_STAT error codes. * sbuild/sbuild-chroot-lvm-snapshot.cc (chroot_lvm_snapshot::setup_lock): Use new stat class. * sbuild/sbuild-chroot-file.cc (chroot_file::setup_lock): Use new stat class. * sbuild/sbuild-chroot-block-device.cc (chroot_block_device::setup_lock): Use new stat class. * sbuild/sbuild-util.cc (sbuild::basename): Use new stat class. * sbuild/sbuild-util.(cc|h): Add new stat class, to wrap stat(2).
* Update .gitignore for Debian builds.
* Update .gitignore for Debian builds.
* bin/schroot/setup/20network: Copy /etc/hosts into the chroot in addition to /etc/resolv.conf. Done for compatibility with sbuild buildd.chroot chroot setup.
* sbuild/sbuild-chroot-lvm-snapshot.cc (chroot_lvm_snapshot::get_session_flags): Add chroot-source flags. * sbuild/sbuild-chroot-file.cc (chroot_file::get_session_flags): Add chroot-source flags. * sbuild/sbuild-chroot-source.cc (chroot_source::get_session_flags): Set SESSION_CLONE. * sbuild/sbuild-chroot-source.h: Add get_session_flags virtual function. Fix typos in comments. * sbuild/sbuild-chroot.h (sbuild): Add SESSION_CLONE session flag. Add operator | and & operators for session_flags. Fix typos in comments.
* po/POTFILES.in: Add bin/schroot-mount sources. * configure.ac: Output bin/schroot-mount/Makefile * bin/Makefile.am (SUBDIRS): Add schroot-mount. * bin/schroot-mount: Copy schroot-listmounts and search and replace listmounts with mount. This is the starting mount for the schroot-mount utility to parse fstab(5) format files for mounting filessystems inside chroots.
* doc/.gitignore: Ignore *.pdf and *.ps.
* bin/schroot/setup/20network: Copy /etc/hosts into chroot.
Merge branch 'master' of git+ssh://git.debian.org/git/buildd-tools/schroot
* po/POTFILES.in: Add sbuild/sbuild-mntstream.(cc|h). * sbuild/Makefile.am (sbuild_public_h_sources): Add sbuild-mntstream.h (sbuild_public_cc_sources): Add sbuild-mntstream.cc * sbuild/sbuild-mntstream.(cc|h): "Mount stream" interface to SUS mntent functions.
* po/POTFILES.in: Add sbuild/sbuild-mntstream.(cc|h). * sbuild/Makefile.am (sbuild_public_h_sources): Add sbuild-mntstream.h (sbuild_public_cc_sources): Add sbuild-mntstream.cc * sbuild/sbuild-mntstream.(cc|h): "Mount stream" interface to SUS mntent functions.
* bin/schroot-mount/schroot-mount-main.cc: Remove FIND, OPEN and CLOSE error code descriptions. Replace with CHILD_FORK, CHILD_WAIT and EXEC descriptions. (main::main): Update program description. (main::action_mount): Use mntstream to parse fstab. For each mount entry, prefix mountpoint to directory, and fork and exec /bin/mount to mount the filesystem. Pass -v to mount if --verbose was specified. (main::run_child): New function, copied from sbuild/sbuild-run-parts.cc with minor modifications. (main::wait_for_child): New function, copied verbatim from sbuild/sbuild-run-parts.cc. * bin/schroot-mount/schroot-mount-main.h: Remove FIND, OPEN and CLOSE error code. Replace with CHILD_FORK, CHILD_WAIT and EXEC. * bin/schroot-mount/schroot-mount-options.cc (options::options): Initialise dry_run and fstab. (options::add_options): Add --dry-run and --fstab options. (options::check_options): Set dry_run and normalise mountpoint path. * bin/schroot-mount/schroot-mount-options.h: Add dry_run and fstab member variables.
* TODO: Add new items.
* bin/schroot/mount.defaults: New file. Defaults for schroot-mount. To be used in 10mounts and script-defaults.
* bin/schroot/mount-defaults: Renamed from bin/schroot/mount.defaults.
* bin/schroot/Makefile.am: Install and distribute mount-defaults.
* bin/schroot/script-defaults: Add FSTAB variable. * bin/schroot/setup/10mount: Use schroot-mount and mount-defaults in place of hardcoded mounts.
* TODO: Add script item.
* po: Update potfiles.
* .gitignore: Ignore generated files.
* debian/control: Suggest lvm2 instead of lvm-common (Closes: #452263).
* bin/schroot/exec/*: Use set -e to ensure abort on failure. * bin/schroot/setup/*: Use set -e to ensure abort on failure. * bin/schroot/setup/20network, bin/schroot/30passwd: Add copy_file shell function to copy files only if device or inode differ and contents differ. This prevents cp failing if source and destination are the same inode on the same device.
* bin/schroot/setup/20network, bin/schroot/setup/30passwd: For files to copy, compare file device, inode and contents to avoid copying identical files (Closes: #428808).
* TODO: Document string_list issue in basic-keyfile.
* All classes derived from sbuild::chroot updated to use new set_keyfile argument. * sbuild/sbuild-chroot.cc (set_keyfile): sets used_keys for each key used. * sbuild/sbuild-chroot.h (operator >>): Get list of used keys, and pass to keyfile::check_keys to find unused keys. (set_keyfile): Add used_keys parameter. * sbuild/sbuild-basic-keyfile.tcc (check_keys): Use set_difference to compare used and available keys, and print warnings about the differences. * sbuild/sbuild-basic-keyfile.h: Make user-visible types public. Add check_keys method to warn about unused keys. * sbuild/sbuild-keyfile-base.(cc|h): Add UNKNOWN_KEY error code and string. * sbuild/sbuild-types.h: Add string_set typedef.
* Update translations.
* debian/changelog: - If unknown keys are present in the configuration file, print a warning message to alert the user (Closes: #459658). - The filesystems to mount in the chroot may be customised by the system administrator through the use of an fstab file on a per-chroot basis, and a new helper utility, schroot-mount (Closes: #395062, #427047). Thanks for your patience while we took the time to implement this the right way.
* bin/schroot-listmounts/schroot-listmounts-main.cc (main::action_listmounts): Use sbuild::mntstream. * bin/schroot-listmounts/schroot-listmounts-main.h: Remove OPEN and CLOSE error codes. Remove list_mounts helper function.
* bin/schroot/script-defaults: Reorder variables. * bin/schroot/schroot.1.in, bin/schroot/schroot.conf.5.in, bin/schroot/schroot-setup.5.in: Update copyright, hyphenation and references. * doc/Makefile.am (PS_DEPS): Add schroot-script-config.5. * bin/schroot/Makefile.am (man_MANS): Add schroot-script-config.5. * configure.ac: Add bin/schroot/schroot-script-config.5 * bin/schroot/schroot-script-config.5.in: New manual page to document file format of script-config option.
* bin/schroot/script-defaults: Reorder variables. * bin/schroot/schroot.1.in, bin/schroot/schroot.conf.5.in, bin/schroot/schroot-setup.5.in: Update copyright, hyphenation and references. * doc/Makefile.am (PS_DEPS): Add schroot-script-config.5. * bin/schroot/Makefile.am (man_MANS): Add schroot-script-config.5. * configure.ac: Add bin/schroot/schroot-script-config.5 * bin/schroot/schroot-script-config.5.in: New manual page to document file format of script-config option.
* NEWS: Update.
* TODO: Remove mntstream porting; add mount checking.
* bin/schroot/schroot-setup.5.in: Document SCHROOT_SESSION_CREATE, SCHROOT_SESSION_CLONE, and SCHROOT_SESSION_PURGE, * bin/schroot/setup/00check, bin/schroot/exec/00check: Print SCHROOT_SESSION_CREATE, SCHROOT_SESSION_CLONE, SCHROOT_SESSION_PURGE, FSTAB and SBUILD values. * sbuild/sbuild-chroot-block-device.cc, sbuild-chroot-directory.cc: Use SESSION_NOFLAGS. * sbuild/sbuild-chroot-source.cc: (chroot_source::chroot_source): Explicitly initialise all member. (chroot_source::clone_source_setup): Set is_source when cloning a source chroot. (chroot_source::get_session_flags): Set session flags appropriately for source chroots, active cloned chroots and inactive non-cloned chroots. (chroot_source::get_details): Only list extra source chroot configuration options for non-source chroots. (chroot_source::get_keyfile): Only get for non-source chroots. (chroot_source::set_keyfile): Only set for non-source chroots. * sbuild/sbuild-chroot-source.h: Add is_source member. * sbuild/sbuild-chroot.cc (chroot::setup_env): Add SCHROOT_SESSION_CREATE, SCHROOT_SESSION_CLONE, and SCHROOT_SESSION_PURGE to the environment. (chroot::get_details): Display SCHROOT_SESSION_CREATE, SCHROOT_SESSION_CLONE, and SCHROOT_SESSION_PURGE. * sbuild/sbuild-chroot.h: Add SESSION_NOFLAGS and SESSION_PURGE to session_flags.
* sbuild/sbuild-chroot.h: Add missing comma.
* TODO: Remove completed item. * bin/schroot-mount/schroot-mount-main.cc: Ensure fstab fs_dir has a leading /.
* Update translations.
* bin/schroot/setup/05file: Only purge if CHROOT_SESSION_PURGE is set, as an additional extra safety measure.
* bin/schroot/setup/05file: Only purge if CHROOT_SESSION_PURGE is set, as an additional extra safety measure.
* TODO: Add script merge item.
* configure.ac: Generate scripts/po-notify. * scripts/po-notify.in: New script to notify translators.
* po/vi.po: Update Vietnamese translation. Thanks to Clytie Siddall.
* Update Vietnamese translation (Closes: #461531). Thanks to Clytie Siddall.
* bin/schroot-listmounts/schroot-listmounts-main.cc (main::action_listmounts): Output mounts in reverse mount order, i.e. order for unmounting.
* bin/schroot/schroot-setup.5.in: Replace 20network and 30passwd with 20copyfiles. * bin/schroot/setup/Makefile.am (setup_SCRIPTS): Remove 20network and 30passwd, and add 20copyfiles. * bin/schroot/setup/30passwd: Remove. * bin/schroot/setup/20copyfiles: Move from 20network. Read COPYFILES file, and copy files into chroot. * bin/schroot/script-defaults: Add COPYFILES. * bin/schroot/copyfiles-defaults: New file. Files to copy into the chroot. * debian/schroot.preinst: Add rm_conffile function to remove /etc/schroot/setup.d/20network and /etc/schroot/setup.d/30passwd for versions prior to this. These are replaced by /etc/schroot/setup.d/20copyfiles.
* NEWS: Update for 1.1.6.
* debian/schroot.preinst: Use .dpkg-old rather than .dpkg-bak, to work with run-parts.
* bin/schroot/setup/20copyfiles (copy_file): Add checks that source and destination both exist. * bin/schroot/Makefile.am (pkgsysconf_DATA): Add copyfiles-defaults.
* debian/schroot.NEWS: Document conffile changes. * debian/schroot.preinst: Call rm_conffile, not rm_prep_conffile.
* Fix typo.
* test/test-sbuild-chroot.h: Print environment variable names on error. * test/sbuild-chroot*.cc: Update environment and session flags checks.
* sbuild/sbuild-chroot.cc (chroot::setup_env): Cast session flag masks to bool.
* TODO: Add extra chroot checks.
* Update translations.
* bin/schroot/setup/05file: Use "true" rather than 1 in session flag tests, now correctly output as bool, not int.
* bin/schroot-mount/schroot-mount-main.cc: Mount messages go to log_debug() rather than std::cout (which breaks session name output to stdout).
* debian/schroot.preinst: Use dpkg-old rather than dpkg-bak in echoed message.
* sbuild/sbuild-environment.cc (environment::add): Log debugging message on insert.
* test/sbuild-chroot-directory.cc: New file. Tests for chroot_directory. Note: one test is broken; probably a testsuite issue--it works fine in practice.
* test/sbuild-chroot-directory.cc: Ensure mount_location and CHROOT_MOUNT_LOCATION are set correctly.
* configure.ac: Remove hard-coded enableval defaults. These appear to break with current autoconf.
* test/testmain.cc: Include config.h.
Merge branch 'master' of ssh://git.debian.org/git/buildd-tools/schroot
* test/sbuild-chroot-directory.cc: Enable test_setup_env2 test.
* TODO: Remove completed item.
* po: Update translations.
* test/sbuild-dirstream.cc (class test_dirstream): Remove special-case for building in SVN repository.
* Version 1.1.6.
* configure.ac: Add back enableval defaults after option checks.
* Update copyright on all files modified in 2008.
* po/en.po: Update copyright year.
* Update translations. * Fix up gitignore for dchroot.
* configure.ac: Change version to 1.3.0. * debian/changelog: Change version to 1.3.0.
Add eu translation.
* configure.ac: Increase minimum gettext version to 0.16.
* debian/control: libsbuild-dev is in section libdevel.
* TODO: Add logging items.
* bin/schroot/setup/*, bin/schroot/exec/*: All scripts check if $CHROOT_SCRIPT_CONFIG exists, and exit with an error if not (but only if status=ok, in order that the setup-stop task succeeds on failure). Scripts using values from the $CHROOT_SCRIPT_CONFIG check that they are defined and valid before using them, and exit with an error if they are invalid.
Generate ChangeLog automatically.
Ignore ChangeLog.
[po] Update de translation.
[sbuild] Include missing <cstring>, needed by GCC 4.3.
Merge branch 'master' of git+ssh://git.debian.org/git/buildd-tools/schroot
Update translated strings and translator comments.
Only generate ChangeLog if using git
[test] Add parentheses around ambiguous statements
[po] Add pt translation.
[sbuild] chroot_config no longer uses O_NOFOLLOW
[sbuild] Add missing static_cast to stat::check_mode
[schroot] Read additional configuration from /etc/schroot/chroot.d.
[debian] Add GIT repository information to control file.
[schroot] Remove setup/50sbuild
[schroot-mount] schroot-mount-main: Create mountpoint if needed.
[NEWS] Document changes for 1.2.0
[dchroot] dchroot.1.in: Remove short option for --preserve-environment
[debian] changelog: Close bugs for 1.2.0
[man] NAME section uses ASCII hyphen, not em dash
[build] Use MKDIR_P in place of MKINSTALLDIRS
[debian] Build-Depend on libboost-filesystem-dev
[debian] Close #469038
Update copyright and author contributions
[po] Update translations
[debian] control: Bump Standards-Version to 3.7.3
[debian] libsbuild-doc.doc-base: Use section Programming/C++
Bump version to 1.2.1
[po] Update translations
[scripts] Add po-notify script for translation updates
[scripts] Don't ignore po-notify
[schroot] Document /etc/schroot/chroot.d
[schroot] Don't fail if the LVM snapshot device does not exist
[sbuild] Don't fail if LVM snapshot device doesn't exist on SETUP_STOP
[sbuild] Don't fail if block device doesn't exist on SETUP_STOP
[setup] Don't clear mount options for LVM snapshots
[sbuild] Remove redundant include
[sbuild] Add "loopback" chroot type
[debian] Document loopback chroot type
Finalise version 1.2.1
[debian] Correct lintian warnings
[sbuild::auth_conv_tty] Add weak reference to the auth object
[scripts] Remove generated script po-notify
[scripts] .gitignore: Ignore po-notify
[sbuild::session] Don't inherit from sbuild::auth
[sbuild::session] Access authstat via this pointer
[csbuild] Correct variable name in doxygen comment
[schroot.conf] Update distribution names for Squeeze.
[debian] Close #516272
[sbuild::session] Fix memory leak in is_group_member
[debian] Close #517223
[dchroot] Session code uses get_auth to get authentication data
[build] Build against Boost version 1.37
[debian] control: Build-Depend on Boost 1.37
[sbuild] Remove support for GCC < 3.4 __gnu_cxx::stdio_filebuf
[debian] Close #517041
[schroot] setup: Copy NSS databases using getent
[sbuild] sbuild-run-parts: Explicitly close syslog fd
[sbuild] sbuild-util: Add is_valid_filename
[sbuild] sbuild-chroot-config: Use is_valid_filename on directory load
[debian] Close #513307
[.gitignore] Ignore log and substvars files
[debian] control: Remove duplicated word in description
[debian] Use debhelper v7 compatibility mode
[debian] control: Update to Standards Version 3.8.1
[sbuild-session] Export additional auth variables into setup environment
[debian] Close #496629
[build] Add bash completion to build
[debian] Configure and install bash completion
[debian] rules: Split configure invocation onto multiple lines
[sbuild-session] Export SCHROOT_SESSION_ID in user environment
[build] Install SCHROOT_UNPACK_DIR
[sbuild-session] Export SCHROOT_UNPACK_DIR for setup scripts
[build] Install SCHROOT_UNPACK_DIR
[setup] 05file: Use UNPACK_DIR and mount unpacked files
[build] Add checks for POSIX thread support
[build] Compile and link with POSIX thread support
[debian] Close #520713
[test] Fix test to use correct write size
[build] Add configure option to generate doxygen docs
[NEWS] Bump version to 1.3.0
[po] Update translations
[debian] Build-depend on doxygen and configure with --enable-doxygen
[.gitignore] csbuild: Ignore csbuild
[build] doc: Don't require MAINTAINER_MODE to build docs
[debian] libsbuild-doc: Install docs from debian/build
[debian] Document schroot-dbg addition
[build] Use autoreconf in place of separate autotools commands
[sbuild-log] Unify reason logging as a single function
[sbuild-log] Rename DebugLevel to debug_level
Merge branch 'master' of ssh+git://git.debian.org/git/buildd-tools/schroot
Merge branch 'fs-union'
[debian] rules: Only mkdir debian/build if it doesn't already exist
[schroot] Document chroot_directory directory property
[test] Add new chroot_directory tests for directory property
[sbuild::chroot_directory] Add directory property to replace location
Merge branch 'fs-union'
[setup] 15killprocs: Use /bin/kill to remove bashism
[debian] Build-Depend on boost 1.38
[sbuild] chroot_mountable: Add mount_device member
[sbuild] sbuild-chroot-block-device: Update TODO item
Rearrange configuration and manual pages
[build] Remove manpages from bin/schroot/Makefile.am
[build] 05fsunion setup script not yet merged
[etc] Add .d suffix to exec and setup script directories
[sbuild] sbuild-session: Remove support for exec scripts
[man] Document removal of run-exec-scripts
[sbuild] basic_keyfile: Allow NULL method pointers
[sbuild] Remove run_exec_scripts
[schroot-mount] Don't log command being executed
[setup.d] Remove W: message prefix
[sbuild] run_parts: Log script output
[sbuild::chroot] Remove prototypes and member for run_exec_scripts
[sbuild] chroot_mountable: Move location property from chroot
[sbuild] chroot: Remove unused location member
[TODO] Add new items
[setup.d] 20nssdatabases: Make executable
[etc] mount-defaults: Bind mount /dev/shm
[debian] Close #526788
[schroot-mount] Act like mkdir -p rather than mkdir creating mountpoints
[sbuild::chroot_file] Move CHROOT_FILE_UNPACK_DIR from session UNPACK_DIR
[TODO] Add cleanup items for union and file chroots
[sbuild::chroot] All chroots except plain run session scripts
[sbuild::chroot_plain] Split from chroot_directory
[build] Conditionally compile block-device and lvm-snapshot support
[build] Build loopback chroot support conditionally
[build] Include correct lockdev headers for sbuild-lock
[build] Make personality support configurable
[build] Loopback chroot doesn't depend on block-device
[build] Make UUID support configurable
[sbuild] Make PAM support configurable
[sbuild::auth] Split into auth_pam and auth_null
[sbuild] Add pam prefix to all pam auth names
[debian] control: schroot-dbg is in section debug
[po] Add new source files
[po] Update English translation
[build] Make UUID support configurable
[build] Remove duplicated checks for UUID support
[build] Remove last traces of exec.d
[debian] Remove old checks for obsolete versions
[NEWS] Document major changes
[sbuild::auth] Add split auth_null and auth_pam
[sbuild::auth_pam] Add missing prototype
[schroot::main_base] Use new PAM header names
[sbuild::chroot_directory] Remove erroneously added clone_source
[sbuild::basic_keyfile] Replace last std::string usage with traits types
[TODO] Remove completed basic_keyfile string_list removal
[sbuild::chroot] Add session_id property
[test] Update chroot_directory tests
[sbuild::chroot_directory] Include correct header for parent class
Merge branch 'master' of ssh://git.debian.org/git/buildd-tools/schroot
[setup] Simplify conditional to use cleaner syntax
[sbuild] chroot_mountable: Refactor as partial interface
[sbuild::chroot_fs_union] get_path always returns the mount location
[sbuild::chroot_mountable] Don't derive from chroot
[sbuild::chroot_source] Don't inherit from chroot
[sbuild::chroot_fs_union] Add underlay directory in addition to overlay
[sbuild::chroot_union] Rework union mounts
[sbuild::chroot_union] Synchronise with current master branch
[TODO] Add union items
[sbuild::chroot:block_device] Split into block_device_base
[sbuild::chroot_union] Add clone_source_setup
[sbuild::chroot_directory] Make chroot_union support configurable
[sbuild::chroot_source] clone_source_setup is virtual
[sbuild::chroot_directory] Add missing newline
[sbuild::chroot_loopback] Include config header for conditional building
[sbuild::chroot_loopback] Chain up to chroot::setup_env
[sbuild::chroot_directory] Set SESSION_CREATE in all cases
[sbuild::chroot_source] Move SESSION_PURGE into chroot_lvm_snapshot
[sbuild::chroot_union] Don't set SESSION_CREATE unless union in use
[test] Update tests for filesystem unions
[TODO] Add enum |= and &= operators
[man] schroot.conf.5: Document block-device union support
[debian] Close #494481
[sbuild::chroot_union] Simplify conditional logic
[test] Remove deprecated run-setup-scripts from tests
[test] Use dynamic_pointer_cast for shared_ptr types
[sbuild::chroot_union] Use dynamic_pointer_cast for tr1::shared_ptr
[test] Improve environment diagnostic
[test] Remove whitespace
[test] sbuild_chroot_loopback: Update to use current union interface
[build] Fix union configure check
[debian] Remove debian/install after running dh_prep
[sbuild] Reindent sbuild::util operator functions
[sbuild::chroot] Reindent session flags
[test] Make filesystem union tests conditional
[test] Remove obsolete run_setup_scripts checks
[sbuild::chroot_block_device_base] Simplify session flags
[sbuild::chroot_source] Re-unify source member variables and methods
[sbuild::chroot*] Remove duplicated source methods and members
[sbuild::chroot] set_run_setup_scripts is protected
[sbuild::chroot_union] Only print union details if configured
[sbuild::chroot_directory] Always chain up to union methods
[sbuild::session] Correct logic for setting mount location
[man] Disable adjustment on long line to fix groff warning
[debian] Update to Standards-Version 3.8.2
[NEWS] Document filesystem union support
[sbuild::session] Only display command/shell if verbose
[sbuild::util] Add split_string_strict
[sbuild::chroot_union] Only set keyfile keys if union is configured
[sbuild::run_parts] Fix script stream buffering
[setup] Add 99check symlink to 00check to run on setup-stop
[setup] 15killprocs adds sanity check for CHROOT_MOUNT_LOCATION
[setup] Rename 05fsunion to 05union
[setup] 10mount union mounting uses underlay directory
[sbuild::session] Don't special-case handing of union mount location
[po] Update translations
Update copyright message for 2009
[po] Update translations
[sbuild] Split chroot_plain into chroot_plain_base
[sbuild::session] Correct check for plain chroot type
[setup] 05union doesn't abort for non-union supporting chroots
[setup] 15killprocs doesn't abort if there's no mount location set
[sbuild::chroot_mountable] get|set_mount_device are pure virtual
[sbuild::chroot] get_mount_location is not virtual
[sbuild] Rename chroot_plain_base to chroot_directory_base
sbuild/sbuild-config.h.in: Get default environment filter from configure
[sbuild::environment] get method is const
[sbuild::chroot_block_device] Chain up to chroot in copy constructor
[sbuild::chroot_lvm_snapshot] Only inactive sessions serialise lvm-snapshot-options
[sbuild::chroot_source] Replace is_source with source_clonable
[sbuild::chroot] Make some methods public for testing
[test] Test keyfile serialisation
[TODO] Remove virtual inheritance
[test] setup_env_chroot adds common environment
[sbuild::chroot_block_device] Chain up to virtual base in all copy constructors
[sbuild::chroot_union] Display union type
[sbuild] Don't call specific clone_source_setup
[test] Test source environment
[sbuild::chroot_session] New class for session handling
[sbuild] Add support for chroot_session to all session-creating chroot types
[sbuild::chroot_session] Set base chroot active and set source options
[sbuild::chroot_union] Set SESSION_PURGE session flag if a session
[test] Add session checks to sbuild::chroot_loopback
[sbuild] sbuild::chroot inheritance is non-virtual
[sbuild] define copy constructur in classes inheriting chroot_session
[sbuild] clone_ methods satisfy testcases
[sbuild::chroot_file] Purge if active
[sbuild::chroot_file] Reindent conditional statement
[sbuild::chroot_session] set_session_active chains up to base set_active
[sbuild::chroot_session] setup_env is virtual
[test] Add tests for keyfile and environment
[doc] Update doxygen version to 1.5.9
[doc] Use .log files in place of -stamp files
[sbuild] Update doxygen comments to fix missing or broken parts
[sbuild] Enable chroot_session in session
[po] Update translations
[sbuild::chroot] setup_env is const
sbuild::chroot_facet: Add chroot_facet interface and skeleton personality facet
.gitignore: Ignore new separate chroot-* tests
sbuild::session: Search for command-prefix using search path
sbuild::keyfile_parser is a class not a struct
sbuild::basic_keyfile_parser: Constructor explicitly initialises all members
sbuild::chroot_source: Allow setting of source-* properties for non-clonable chroots
sbuild::chroot: Add initial chroot_facet support
sbuild::chroot: setup_env method is const
sbuild::chroot: Session ID detail only printed if session is active
po: Update
sbuild::chroot: Add interface to add, remove, replace and get facets
sbuild::chroot: Pass chroot as parameter to facet functions
sbuild::chroot_facet_personality: Add personality support from sbuild::chroot
sbuild::chroot: Call methods from facets in addition to virtual methods
sbuild::session: Use common name for personality facet pointer
sbuild::chroot: Add const_ptr typedef
sbuild::chroot_facet*: Add ptr typedefs and create and clone methods
sbuild::chroot_facet_session: Add new session facet
sbuild::chroot: Enable session facet
sbuild::chroot: Add clone_source virtual method
sbuild::chroot_source: Reimplement as facets
sbuild::chroot_mountable: Replace with chroot_facet_mountable
sbuild::chroot_union: Replace with chroot_facet_union
sbuild::chroot_facet: Update all facet uses to use ptr and const_ptr types
sbuild::session: Only use session_id property for cloning sessions
etc/setup.d/10mount: Don't quote mount options
build: Add git tagging code
NEWS: Update to 1.3.0-rc1
scripts/git-version: Allow hyphens in version number
po: Update POTFILES.in for new sources
po: Update
etc/mount-defaults: Add /dev and /proc/bus/usb (but commented out)
build: Build static library by default
etc/setup.d/10mount: Comma-separate loop mount option
sbuild::chroot: clone_session is pure virtual and chroots always clone
sbuild::chroot_facet_session: Move deserialisation code from chroot_facet_source
sbuild::basic_keyfile: Ask user to update deprecated keys
sbuild::chroot_facet_mountable: Serialise mount-device to keyfile
sbuild::chroot_facet_session: Use correct class name for null method pointers
sbuild::session: Split UUID generation into support function
TODO: Remove done and add pending changes
etc/setup.d: Set file unpack directory and add extra logging
po: Add .tcc files
po: Update
sbuild::run_parts: Handle EINTR during reads
sbuild::run_parts: Correct poll conditional
man: Document NSSDATABASES
etc: Remove SBUILD script default
sbuild::chroot_facet_session: Split into chroot_facet_session_clonable
test: Add mount-device to keyfile checks
sbuild::chroot_facet_mountable: Only serialise mount-device for sessions
TODO: Distinguish between chroot, source and session
sbuild::chroot_facet_session_clonable: Remove source keyfile deprecation
build: Require automake 1.10 and use silent-rules
sbuild::chroot_facet_source_clonable: Remove source_clonable member
sbuild::session: Default child_status to EXIT_FAILURE
debian: Close #545706
build: Use MKDIR_P in place of mkinstalldirs
csbuild: Add all sbuild options and wrap sbuild
csbuild: Fail following exec failure
csbuild: Update option group description
bin: schroot_base_main: action_version prints configured options
build: Remove -mt suffix from Boost library names
sbuild: Validation of chroot properties allows strings to be empty
sbuild::chroot_facet_session: Remove unused clone_session_setup
sbuild::chroot_facet_session_clonable: Only allow session creator to access session
test: Add root-user preservation check to chroot-directory
sbuild: Add reentrant passwd and group wrappers
sbuild::stat: Support C string constructor
NEWS: Add 1.2.x changes
debian: changelog: Add 1.2.x changelog entries
NEWS: Bump version to 1.3.0
debian: Use Standards-Version 3.8.3 and Boost >= 1.39
po: Update po files and en translation
build: Replace SCHROOT_RELEASE_DATE with m4_esyscmd
po: Update en.po
debian: Remove empty lines from changelog
sbuild::session: When run with --begin-session, exit status must be success
po: Update
test: Fix sbuild-personality to support non-Linux architectures
sbuild::session: Set child_status to EXIT_SUCCESS following authentication
debian: Close #554907
NEWS: Bump version to 1.3.1
scripts: git-version uses version from NEWS
TODO: Remove completed items
NEWS: Document personality fix
Bump version to 1.3.2
debian: Close #560832
sbuild::chroot_block_device: Create session file
debian: Close #557197
20copyfiles: Allow copying of special files
debian: Close #559019
20copyfiles: Remove debug line
po: Update
sbuild::chroot: Remove obsolete EXEC_START and EXEC_STOP
sbuild::chroot_block_device: Create session file when using union
debian: Close #561033
po: Update
sbuild::dirstream: Replace with boost::filesystem
NEWS: Bump version to 1.4.0
debian: Bump version to 1.4.0 and close fixed bugs
.gitignore: Don't ignore test/sbuild-dirstream
sbuild: Remove separator argument from path functions
po: Remove sbuild-dirstream.cc from POTFILES.in
po: Update
debian: Add ${misc:Depends}
sbuild::chroot_facet_session_clonable: Use basename correctly
schroot_base::main: Update copyright notice
po: Update copyright notice
NEWS: Finalise for 1.4.0
debian: Finalise changelog for 1.4.0-1
sbuild::auth_null: Allow authentication skip if local and remote match
sbuild::auth_null: Allow authentication skip if local and remote match
NEWS: Bump version to 1.4.1 and note bug fix
debian: Bump version to 1.4.1 and Close #566879
sbuild::auth_null: Only root can authenticate
sbuild::auth_pam: Remove unneeded header
schroot: dchroot and dchroot-dsa also use PAM
sbuild::session: Use PAM if available
man: Document schroot authentication
Merge branch 'master' into schroot-1.4
sbuild::chroot_config: Only clone sessions for session clonable chroots
Merge branch 'master' into schroot-1.4
debian: Close #568187
debian: Document stricter file naming requirements
Add support for multiple platforms: initial kfreebsd support
build: Install generic files first
setup.d: Add freebsd-specific setup
test: Update for new script-config default
sbuild::chroot: Default script-config to default/config
sbuild::chroot_block_device: kfreebsd uses character devices
etc: Add freebsd-specific fstab
man: Document PLATFORM setup script variable
build: Install generic config
Add AUTH* environment variables storing host triplet
sbuild::auth_pam: Fix logic error in destructor
debian: Move conffiles in pre and postinst
debian: Document conffile movement in README
NEWS: Bump version to 1.5.0 and document recent changes
Merge branch 'master' into schroot-1.4
AUTHORS: Add Aurelien Jarno
build: Correctly distribute platform-specific files
schroot::main_base: Set PAM conversation handler
Merge branch 'master' into schroot-1.4
debian: Close #567416
debian: Close #565625 and #566941
debian: Close #569671
etc/default: Add comments to copyfiles and nssdatabases
NEWS: Document chroot.d naming changes for 1.4.0
Merge branch 'master' into schroot-1.4
debian: Close #567409
man: Document setup script configuration files
man: Update copyright dates
Merge branch 'master' into schroot-1.4
debian: Close #566141
debian: Update README for file renaming
debian: Add missing full stop
NEWS: Document file renaming
po: Update
debian: Update to Standards Version 3.8.4
debian: Remove trailing space
po: Merge schroot-1.4 changes
NEWS: Merge schroot-1.4 changes
debian: Merge schroot-1.4 changes
man: Use RELEASE_DATE_S rather than RELEASE_DATE
build: Use LC_TIME=C for date formatting
debian: Create compatibility symlinks
debian: Add schroot postrm script
debian: Correct version for compat symlink creation
debian: Close #571328
debian: Remove inactive maintainers from uploaders
Merge branch 'master' into schroot-1.4
debian: Close #573869
sbuild::chroot: Obsolete existing deprecated 1.4.x options
man: Remove obsolete options from examples
sbuild::chroot_facet_source_clonable: Fix incorrect key name
sbuild::chroot_facet_source_clonable: Add source-clone option
Merge branch 'master' of ssh+git://git.debian.org/git/buildd-tools/schroot
man: Remove obsolete options from examples
sbuild::chroot_facet_source_clonable: Fix incorrect key name
debian: Close #577554
debian: Close #566513
debian: Remove inactive maintainers from uploaders
bin: Add support for Boost 1.42
contrib: Add directory for user-contributed scripts and other files
bin: Add support for Boost 1.42
contrib: Add directory for user-contributed scripts and other files
Bump version to 1.4.2 and Debian version to 1.4.2-1
po: Update
Merge branch 'master' of ssh+git://git.debian.org/git/buildd-tools/schroot
sbuild::personality: Don't introspect personality
debian: schroot init script requires $syslog
sbuild::personality: Don't introspect personality
debian: schroot init script requires $syslog
debian: Close #580136
sbuild::util: unique_identifier should not contain odd characters
sbuild::util: unique_identifier should not contain odd characters
AUTHORS: Add Nathaniel W. Turner
AUTHORS: Add Nathaniel W. Turner
debian: Close #477770
contrib: Minor tidying of 10mount-ssh
contrib: Minor tidying of 10mount-ssh
debian: Install contrib setup script in schroot package
NEWS: Bump version to 1.4.3
debian: Bump version to 1.4.3-1
20nssdatabases: Check database inodes inside and outside the chroot
20nssdatabases: Check database inodes inside and outside the chroot
debian: Install 09fsck setup script in schroot package
debian: Close #492316
TODO: Document issues with host filesystems in chroot
20nssdatabases: Don't use $db for stat results
schroot-mount: Check mountpoint exists rather than is directory
20nssdatabases: Don't use $db for stat results
schroot-mount: Check mountpoint exists rather than is directory
man: Add overview of schroot and update plain config notes
man: Add overview of schroot and update plain config notes
debian: Use the 3.0 (quilt) source format
po: Update
test: Correct personality checks for non-Linux arches
test: Correct personality checks for non-Linux arches
NEWS: Bump version to 1.4.4
debian: Bump version to 1.4.4-1
build: Add configure checks for BTRFS
sbuild: Add initial Btrfs snapshot support
setup.d: Add btrfs support
sbuild::chroot_btrfs_snapshot: Add snapshot-name property
debian: Merge changes from 1.4 branch
debian: Bump version to 1.5.0-1
NEWS: Merge changes from 1.4 branch
po: Update
sbuild::chroot: Instantiate btrfs-snapshot chroots
sbuild::chroot_btrfs_snapshot: Don't require btrfs-snapshot-name
etc: Add btrfs example to schroot.conf
setup.d: 00check: Add btrfs-snapshot debugging messages
setup.d: 05btrfs: Add debugging messages
setup.d: Fix bugs in btrfs support
debian: schroot suggests btrfs-tools
sbuild::chroot_btrfs_snapshot: Only display set properties
man: Document restrictions of plain chroots
NEWS: Document btrfs-snapshot chroot type
debian: Add schroot.postrm
debian: Use source format v3
debian: Enable btrfs-snapshot and lvm-snapshot only on Linux
debian: Add needed programs to configure
build: Add configure checks for BTRFS
sbuild: Add initial Btrfs snapshot support
setup.d: Add btrfs support
sbuild::chroot_btrfs_snapshot: Add snapshot-name property
sbuild::chroot: Instantiate btrfs-snapshot chroots
sbuild::chroot_btrfs_snapshot: Don't require btrfs-snapshot-name
etc: Add btrfs example to schroot.conf
setup.d: 00check: Add btrfs-snapshot debugging messages
setup.d: 05btrfs: Add debugging messages
setup.d: Fix bugs in btrfs support
debian: schroot suggests btrfs-tools
sbuild::chroot_btrfs_snapshot: Only display set properties
debian: Enable btrfs-snapshot and lvm-snapshot only on Linux
debian: Add needed programs to configure
man: Document restrictions of plain chroots
Bump version to 1.4.5
Merge branch 'schroot-1.4-btrfs' into schroot-1.4
debian: Document btrfs support
Add genprofile tool
Remove old default profile
etc: Genprofile parses all existing file fragments
etc: Install profiles
build: Remove default directory
test: Add btrfs-snapshot checks
test: Add btrfs-snapshot checks
Merge branch 'schroot-1.4-btrfs' into schroot-1.4
.gitignore: Ignore sbuild-chroot-btrfs-snapshot
.gitignore: Ignore sbuild-chroot-btrfs-snapshot
build: Remove generated profiles
.gitignore: Ignore sbuild-chroot-btrfs-snapshot
test: Add btrfs-snapshot checks
genprofile: Set paths from make
etc: Add freebsd and linux profiles
Merge branch 'usage-profiles'
man: Document new profiles
Merge branch 'usage-profiles'
Add genprofile tool
Remove old default profile
etc: Genprofile parses all existing file fragments
etc: Install profiles
build: Remove default directory
build: Remove generated profiles
genprofile: Set paths from make
etc: Add freebsd and linux profiles
man: Document new profiles
Merge branch 'master' of ssh+git://git.debian.org/git/buildd-tools/schroot
Merge branch 'schroot-1.4' of ssh+git://git.debian.org/git/buildd-tools/schroot into schroot-1.4
man: Add schroot-faq(7)
man: Add schroot-faq(7)
debian: schroot: Install schroot-faq.7
debian: schroot: Install schroot-faq.7
sbuild::chroot_facet_source_clonable: Add source-clone option
NEWS: Document source-clone, profiles and schroot-faq(7)
debian: Close #576541, #477788 and #586333
debian: Close #583504
setup.d: 20copyfiles: Copy with files not existing in chroot
po: Update
setup.d: 20copyfiles: Copy with files not existing in chroot
debian: Close #586198
sbuild: Move verbosity from auth to chroot and session
sbuild: Move verbosity from auth to chroot and session
sbuild::session: Retain AUTH_VERBOSITY for 1.4 compatibility
man: Document message-verbosity
man: Document message-verbosity
NEWS: Document message-verbosity
debian: Close #462453
po: Update
po: Update
build: Distribute profile-templates
profile-templates: Use /sys not /sysfs
build: Install profile files with INSTALL_DATA, not INSTALL
profile-templates: Use /sys not /sysfs
build: Install profile files with INSTALL_DATA, not INSTALL
build: Distribute profile-templates
NEWS: Merge changes from 1.4.5
debian: changelog: Merge changes from 1.4.5-1
NEWS: Fix typo
NEWS: Fix typo
Bump version to 1.4.6
sbuild::chroot: Add preserve-environment key
sbuild::chroot: Add preserve-environment key
profile-templates: Bind /var/run/gdm3 rather than /var/run
profile-templates: Bind /var/run/gdm3 rather than /var/run
man: Document desktop setup in schroot.conf
NEWS: Document preserve-environment key
po: Update
man: Document desktop setup in schroot.conf
NEWS: Merge changes from 1.4.6
debian: Document 1.4.6 changes
sbuild::auth and sbuild::session: Improve environment handling
sbuild::auth and sbuild::session: Improve environment handling
po: Update
sbuild::chroot_file: Add location configuration key
sbuild::run_parts: Remove shadowing errdata variable
NEWS: Document file chroot location option
build: Remove maintainer mode and add additional defines
po: Update
setup: Add common-data and common-functions files
debian: Package common-data and common-functions
debian: Include common-data and common-functions
setup.d: Use common data and functions and fix sanity checks
debian: Close #587757 and #587769
sbuild::chroot_loopback: Always create session file
setup.d: Reorganise 10mount mount options setting
setup.d: Move FreeBSD device portability code to common-data
NEWS: Document loopback session changes and setup script work
po: Update
po: Fix fuzzy en strings
sbuild::session: Don't allow running or ending a new session
schroot::main_base: Don't allow session names to duplicate chroot or alias names
debian: Close #588155
dchroot_dsa::session: Correct get_login_directories prototype
sbuild::chroot_config: Initialise aliases in constructor
po: Update
po: Unfuzzy one string
sbuild::chroot_file: Add location configuration key
sbuild::run_parts: Remove shadowing errdata variable
build: Remove maintainer mode and add additional defines
setup: Add common-data and common-functions files
debian: Package common-data and common-functions
debian: Include common-data and common-functions
setup.d: Use common data and functions and fix sanity checks
debian: Close #587757 and #587769
sbuild::chroot_loopback: Always create session file
setup.d: Reorganise 10mount mount options setting
setup.d: Move FreeBSD device portability code to common-data
sbuild::session: Don't allow running or ending a new session
schroot::main_base: Don't allow session names to duplicate chroot or alias names
debian: Close #588155
dchroot_dsa::session: Correct get_login_directories prototype
sbuild::chroot_config: Initialise aliases in constructor
po: Update from schroot-1.4 branch
NEWS: Update from schroot-1.4 branch
NEWS: Document /dev bind mounting
NEWS: Bump version to 1.4.7
debian: Bump version to 1.4.7 and standards version to 3.9.0
Complete change to SCHROOT_SYSCONF_DIR from PACKAGE_SYSCONF_DIR
build: Distribute VERSION
debian: Close #588247
NEWS: Document SCHROOT_SYSCONF_DIR bug
debian: Document translation updates
schroot::options_base: --chroot-name only works with --begin-session
sbuild::chroot_config: Add namespaces
schroot::options_base: --info displays sources by default
sbuild::chroot: Replace use of get_active with facet checking
sbuild: Remove unnecessary use of sbuild namespace qualifiers
dchroot: Use new chroot_config interface
test: Use new chroot_config interface
test::sbuild_chroot_config: Drop old comment
sbuild::chroot_config: Move -source alias handling here
sbuild::session: Use chroot_config::find_alias correctly
sbuild::chroot_config: Add session chroot compatibility alias
sbuild::chroot_config: validate canonicalises namespace
NEWS: Bump version to 1.4.8 and document namespace changes
NEWS: Update descriptions
sbuild::chroot: Deprecate "priority" key
sbuild::chroot: Remove session_id
sbuild: Update doxygen comments
doc: Explicitly list missing documentation
doc: Update doxygen configuration to 1.6.3
sbuild::chroot_facet_session: Remove completed todo item
TODO: Remove completed namespace work
po: Update
po: Remove redundant line numbering
sbuild::session: Don't use sbuild::chroot_config
Document namespaces and undocumented return types
debian: Bump version to 1.4.8-1
etc: Remove priority from schroot.conf examples
man: Document deprecation of priority
schroot::main_base: Use find_alias rather than find_chroot
sbuild::chroot_config: Add get_namespace helper
schroot::main_base: Remove debugging statement
man: Document chroot namespaces
NEWS: Document /dev bind mounting
NEWS: Bump version to 1.4.7
debian: Bump version to 1.4.7 and standards version to 3.9.0
Complete change to SCHROOT_SYSCONF_DIR from PACKAGE_SYSCONF_DIR
build: Distribute VERSION
debian: Close #588247
NEWS: Document SCHROOT_SYSCONF_DIR bug
debian: Document translation updates
schroot::options_base: --chroot-name only works with --begin-session
sbuild::chroot_config: Add namespaces
schroot::options_base: --info displays sources by default
sbuild::chroot: Replace use of get_active with facet checking
sbuild: Remove unnecessary use of sbuild namespace qualifiers
dchroot: Use new chroot_config interface
test: Use new chroot_config interface
test::sbuild_chroot_config: Drop old comment
sbuild::chroot_config: Move -source alias handling here
sbuild::session: Use chroot_config::find_alias correctly
sbuild::chroot_config: Add session chroot compatibility alias
sbuild::chroot_config: validate canonicalises namespace
NEWS: Bump version to 1.4.8 and document namespace changes
NEWS: Update descriptions
sbuild::chroot: Deprecate "priority" key
sbuild::chroot: Remove session_id
sbuild: Update doxygen comments
doc: Explicitly list missing documentation
doc: Update doxygen configuration to 1.6.3
sbuild::chroot_facet_session: Remove completed todo item
TODO: Remove completed namespace work
sbuild::session: Don't use sbuild::chroot_config
Document namespaces and undocumented return types
debian: Bump version to 1.4.8-1
etc: Remove priority from schroot.conf examples
man: Document deprecation of priority
schroot::main_base: Use find_alias rather than find_chroot
sbuild::chroot_config: Add get_namespace helper
schroot::main_base: Remove debugging statement
man: Document chroot namespaces
po: Merge changes from schroot-1.4 branch
sbuild::chroot_config: Remove compatibility names
sbuild::chroot: Obsolete priority
NEWS: Document priority obsoletion and compatibility alias removal
debian: Close #588963
sbuild::auth: Always preserve HOME and SHELL
debian: Close #589830 and #589917
debian: Close #589889
schroot::options_base: Validate session name with is_valid_sessionname
sbuild::chroot: Validate chroot name with is_valid_sessionname
debian: Close #589658
po: Update
debian: Close #589082 and #589079
debian: Close #512131
NEWS: Document environment fixes
debian: Upgrade to Standards Version 3.9.1
build: Add separate doc rule to build API references
sbuild::chroot: Hide priority deprecation warning on session reload
NEWS: Bump version to 1.4.9
debian: Bump version to 1.4.9-1 and close #593256
debian: Split build into build-arch and build-indep rules
po: Update en translation
debian: Update it translation
debian: Update zh_CN translation
debian: Close #593622
README: Update configure options and document "make doc"
build: boost_filesystem depends upon boost_system
debian: Close #593516
debian: rules: Add build rule to call build-indep and build-arch
po: Update
debian: rules: Use -a and -i arguments for dh_prep
debian: rules: Run dh_install separately for install-arch and -indep
build: Conditionally enable features if present
NEWS: Bump version to 1.4.10
debian: Bump version to 1.4.10-1 and don't enable doxygen explicitly
build: Simplify doxygen conditional usage
debian: rules: Explicitly specify LVREMOVE
debian: Close #588963
sbuild::auth: Always preserve HOME and SHELL
debian: Close #589830 and #589917
debian: Close #589889
schroot::options_base: Validate session name with is_valid_sessionname
sbuild::chroot: Validate chroot name with is_valid_sessionname
debian: Close #589658
po: Update
debian: Close #589082 and #589079
debian: Close #512131
NEWS: Document environment fixes
debian: Upgrade to Standards Version 3.9.1
build: Add separate doc rule to build API references
sbuild::chroot: Hide priority deprecation warning on session reload
NEWS: Bump version to 1.4.9
debian: Bump version to 1.4.9-1 and close #593256
debian: Split build into build-arch and build-indep rules
po: Update en translation
debian: Update it translation
debian: Update zh_CN translation
debian: Close #593622
README: Update configure options and document "make doc"
build: boost_filesystem depends upon boost_system
debian: Close #593516
debian: rules: Add build rule to call build-indep and build-arch
po: Update
debian: rules: Use -a and -i arguments for dh_prep
debian: rules: Run dh_install separately for install-arch and -indep
build: Conditionally enable features if present
NEWS: Bump version to 1.4.10
debian: Bump version to 1.4.10-1 and don't enable doxygen explicitly
build: Simplify doxygen conditional usage
debian: rules: Explicitly specify LVREMOVE
debian: Bump version to 1.4.10-2 and close #594024 and #594239
dchroot: dchroot.conf parser uses directory key
dchroot: Use chroot namespace
dchroot: dchroot.conf parser uses directory key
dchroot: Use chroot namespace
NEWS: Bump version to 1.4.11
debian: Bump version to 1.4.11-1 and close #594677
dchroot: dchroot.conf parser uses directory key
dchroot: Use chroot namespace
debian: Bump version to 1.4.10-2 and close #594024 and #594239
NEWS: Bump version to 1.4.11
debian: Bump version to 1.4.11-1 and close #594677
Merge remote branch 'origin/master'
sbuild::chroot: Remove use of format string for invalid chroot name reason
sbuild::chroot: Translate error reasons
sbuild::chroot: Remove use of format string for invalid chroot name reason
sbuild::chroot: Translate error reasons
chroot::file: Remove support for zip archives
debian: schroot no longer suggests unzip
debian: Add Btrfs snapshot support to package description
NEWS: Fix typo
NEWS: Fix typo
scripts: Always send output of git rev-parse to /dev/null
build: Add initial git release distribution infrastructure
po: Update
NEWS: Bump version to 1.4.12
debian: Bump version to 1.4.12-1
sbuild::chroot_config: Use namespace hints correctly
debian: Close #595647
build: git-dist: Correct punctuation and spacing in comments
scripts: Always send output of git rev-parse to /dev/null
build: Add initial git release distribution infrastructure
build: git-dist: Correct punctuation and spacing in comments
debian: Close #594720
Merge branch 'schroot-1.4-merge2'
po: Remove duplicate zh_CN string
build: git-dist.mk: Provide ENABLE_RELEASE_GIT and ENABLE_DIST_GIT to sub-makes
sbuild::chroot_config: Create proxy sessions for plain chroots
schroot::main_base: Only warn about no chroots when verbose
schroot::main_base: Correctly handle errors for source chroots
profiles: Add dbus support to desktop profile
man: Document -- option delimiter
man: Document security implications of profiles in schroot.conf(5)
sbuild::chroot: Validate set_aliases as for set_name
sbuild::util: Relax session name restrictions in is_valid_sessionname
sbuild::chroot_config: Add comments detailing validation check limitations
man: Document chroot naming restrictions
sbuild: is_valid_sessionname: Ignore editor backups
man: Fully document chroot naming restrictions
sbuild::chroot: Make invalid name reason generic
15killprocs: Device and inode do not uniquely identify a chroot
build: Don't link with libpam when PAM is disabled
build: Correct libuuid configuration
debian: Disable UUID support on kfreebsd
build: bootstrap works outside git repository
50chrootname: Strip time/pid from session name in addition to UUID
50chrootname: Use more restrictive regex for time and PID
50chrootname: Make executable again
dchroot::dsa_session: Don't include <uuid/uuid.h>
doc/historical/sbuild-chroot-helper.c: Add oldest available version of schroot
Merge changes from schroot-1.4 branch
NEWS: Document AUTH_VERBOSITY removal
po: Update from schroot-1.4 branch
setup.d: 10mount: Don't special case file chroot purging
debian: Document 1.5.0 changes
schroot::base_main: Update copyright for 2011
po: Update copyright year
sbuild::chroot: Use sbuild:: namespace for all file scope definitions
sbuild: Prefix all chroot type usage with sbuild namespace qualifier
sbuild: Work with boost::filesystem v3
THANKS: Add Zach Carter
sbuild: Replace GCC-specific stdio_filebuf with Boost.Iostreams
debian: Build with Boost 1.46 and remove old versions from build depends
debian: Depend on Boost 1.46 packages
debian: Build-Depend on libboost-iostreams1.46-dev
NEWS: Bump version to 1.5.1 and document GCC-specific feature removal
debian: Bump version to 1.5.1-1 and document Boost changes
debian: Close #609067
sbuild::session: Don't unset argv[0] when command-prefix is invalid
man: Document use of eatmydata with command-prefix for performance
build: Enable large file support by default
build: Add configure checks for unshare system call
NEWS: Document large file support
debian: Build using dh
build: automake uses dist-xz to xz compress the tarball
debian: Use dh v9
etc: sbuild and buildd bind mount scratch space on /build
man: Enhance documentation of source chroots
etc: Enable buildd profile and sync with sbuild
man: Update chroot types implementing extra options
schroot: Preserve original chroot name after session cloning
man: Fix unterminated underline of /proc
etc: profiles don't use rbind
schroot-sbuild: Add wrapper for sbuild
sbuild::session: is_group_member is protected
dchroot_dsa::main: Load dchroot.conf using new interface
build: Add libschroot-all library
sbuild::auth: Allow setting of remote user
sbuild::session: is_group_member is a member function
etc: Add buildd profile-template from sbuild
debian: Merge changelog from schroot-1.4
NEWS: Merge changes from schroot-1.4
sbuild::session: Remove duplicated prototype
debian: Use multiarch paths
debian: Update control relations from schroot-1.4
build: Distribute 99binfmt
debian: Remove generated install files
debian: Use Standards-Version 3.9.2
sbuild::chroot_facet_session: Store alias used as selected_name
build: Move all path specification to global.mk
debian: Build-Depend upon groff-base for soelim
debian: Close #635320
NEWS: Document CHROOT_ALIAS and SCHROOT_ALIAS_NAME
Document directory fallbacks in manual pages
debian: Close #633671
man: Reformat examples and corrections
sbuild::session: Add informative message for nonexisting directory in chroot
debian: Fix missing comma in dependency
dchroot: Drop support for dchroot.conf and alternative security checks
NEWS: Document dchroot.conf support removal
debian: Document dchroot.conf support removal
man: Document dchroot.conf support removal
man: Don't run po4a at top level
man: Add initial po4a potfile
sbuild::feature: Add and use class to register features
sbuild: Support boost::iostreams < 1.44
sbuild: Add sbuild::feature
debian: schroot Breaks sbuild << 0.62.6
po: Update current source files
build: Distribute schroot.conf
man: Search srcdir when running soelim
NEWS: Bump version to 1.5.2
debian: Bump version to 1.5.2-1 and use current Boost libraries
debian: Fix and close #653732
Update all translatable strings to use UTF-8 characters in source code
schroot_base::main: Don't require retranslation for copyright date changes
Incorporate 1.4.24 logs
Merge branch 'po4a'
man: Update po4a copyright and package name and version
debian: Close #588962
debian: Close #648450
NEWS: Document overlayfs addition
schroot: Add --exclude-aliases option
sbuild: Replace TR1 types with C++11 types
sbuild::regex: Use C++11 regex in addition to boost::regex
Correct includes for strict correctness and GCC 4.7 compatibility
sbuild::chroot_config: Fix typo in Doxygen comments
sbuild::chroot: Move keys checking out of operators
sbuild: Add sbuild::chroot_facet_userdata and --option option
Document user options and --option
man: Document profile option in schroot.conf(5)
sbuild::chroot_facet_userdata: Allow bypass of namespace checks
sbuild::chroot: Add profile property
etc/setup.d: Update scripts to use profile and user data
setup: Fix paths for userdata
test: Ensure that userdata reserved namespaces checks fail correctly
sbuild: Add custom chroot type
man: Document deprecation of script-config file with custom keys
contrib: Add 05customdir example
10mount: Mount fstab entries irrespective of chroot type
NEWS: Document custom chroot types
debian: Document NEWS changes and close #477937
debian: Use Boost 1.49
etc: Don't generate config (script-config) files
debian: Update standards version and build dependencies
debian: Delete config (script-config) files in schroot preinst
po: Update
setup: script-config file is now optional
debian: Close #658544
debian: Close #659524
debian: Close #660040
debian: Close #661514
debian: Close #659967
po: Update
Merge schroot-1.4 changelogs
sbuild::chroot: Set profile key correctly
man: Move po4a files up one level
build: Update for po4a changes
man: Correct po4a configuration
man: Update copyright year
man: Update po
man: Add po/LIGUAS
build: Distribute and clean po4a files
build: Generate localised pdf and ps in man/translated
build: po4a.cfg is in the srcdir
debian: schroot.init can end sessions on stop and is in runlevel 2
debian: Close #625202
setup.d: Add 70services
NEWS: Document service startup and shutdown
debian: Close #625205
man: Update schroot(1) overview
debian: Close #670881
debian: Close #666274
bin: Don't use boost validation_error exception
debian: Close #666497
sbuild::session: Set PATH when running setup scripts
debian: Document PATH in setup scripts
man: Update translations
debian: Tidy changelog
debian: Correct schroot init script LSB header
etc: Move gshadow copying to nssdatabases
debian: Document gshadow copying
man: Move script-config key documentation into schroot.conf(5)
man: Update translations
debian: Close #672113
build: groff uses UTF-8 input
build: Correct broken conditional use of po4a
debian: Disable use of po4a for this release
NEWS: Document profile key
debian: Document schroot incompatibilities in schroot.NEWS
.gitignore: Update
Bump version to 1.5.3
Bump version to 1.5.3-1
dchroot: Run command using /bin/sh, not user shell
NEWS: Document dchroot use of /bin/sh
debian: Document dchroot use of /bin/sh
schroot: Add shell fallbacks and chroot and user overrides
sbuild::session: Don't warn about nonexistent groups
sbuild::session:
NEWS: Document shell fallbacks
debian: Document shell fallbacks and close #674040
debian: Close #674041
po: Update
po: Update
etc/setup.d: Provide 15binfmt
debian: Close #604268
10mount: do_mount does not mount on symbolic links
NEWS: Document QEMU support
debian: Fix typo in control
man: Document 15binfmt
po: Update
debian: Finalise for 1.5.3-1
test: Fix path for CHROOT_PROFILE environment variable
NEWS: Bump version to 1.6.0
debian: Bump version to 1.6.0-1
sbuild::chroot: Initialise profile correctly.
Reset version to 1.5.4
debian: Close #675189
debian: Set distribution to unstable
sbuild::chroot: set_script_config calls set_profile
NEWS: Bump version to 1.6.0
debian: Bump version to 1.6.0-1
debian: Correct schroot runlevel and close #677501
sbuild-chroot: Correct script-config serialisation
man: Document setup.services
po: Update
man: Update FAQ for NSSDATABASES
po: Update
common-config: Set backward compatibility vars
sbuild::chroot: Separate script-config and profile
debian: Close #675408
debian: Close #676813
man: Move addendum template to man/add
man: Use correct path for po4a addendum
debian: Close #676416
debian: Close #676413
debian: Close #676380
debian: Close #675398
po: Update
po: Update en translation
po: Update
sbuild::chroot: Only set SCHROOT_SCRIPT_CONFIG when available
common-config: Set defaults before sourcing script-config
sbuild::chroot: Only set CHROOT_PROFILE if profile is set
test: Update testsuite for profile and script-config behaviour
sbuild::chroot: Add CHROOT_PROFILE_DIR
TODO: Document setup variables
NEWS: Document profile and script-config changes
debian: Set distribution to unstable
test: Fix path
Distribution of schroot version 1.6.0
sbuild::auth: Remove /usr/bin/X11 and /usr/games from default PATH
pam.d: Use pam_env
NEWS: Bump version to 1.6.1
debian: Bump version to 1.6.1-1 and document changes
NEWS: Bump version to 1.6.1
debian: Bump version to 1.6.1-1
debian: Remove compatibility symlinks
debian: Close #681931
debian: Automatically upgrade dchroot configuration
debian: Close #681876
debian: Close #677811
HACKING: Document git use and release process
debian: Close #680882
debian: Fix dchroot preinst
debian: Set distribution to unstable
Distribution of schroot version 1.6.1
Merge branch 'master' of ssh+git://git.debian.org/git/buildd-tools/schroot
debian: Set distribution to unstable
Distribution of schroot version 1.6.2
NEWS: Bump version to 1.6.3
debian: Bump version to 1.6.3-1
Revert "pam.d: Use pam_env"
NEWS: Document pam_env revert
debian: Document pam_env revert
debian: Set distribution to unstable
Distribution of schroot version 1.6.3
NEWS: Bump version to 1.6.4
debian: Bump version to 1.6.4-1
debian: NEWS provides instructions for wheezy upgrades for profile key
man: Update schroot.conf(5) to document script-config userkeys replacement
debian: Document schroot.conf(5) changes
schroot-mount: Canonicalise symlinks to avoid host mounts
man: Document symlink mountpoint canonicalisation
debian: Close #686148
15binfmt: Send which error message to null
debian: Close #688304
sbuild::chroot_config: Remove namespace from alias
debian: Close #689078
NEWS: Merge mountpoint item from 1.7
debian: Set distribution to unstable
po: Update
10mount: Use secure subdirectory of /var/lock for lockfile
debian: Create lock directory on upgrade and startup
debian: Document lockfile changes
Revert "sbuild::chroot_config: Remove namespace from alias"
sbuild: Don't call set_mount_device indirectly from ctor
sbuild::chroot_facet_session: strip namespace from selected name
sbuild-mount: Correctly resolve paths with symlinks
sbuild: Correct alias handling
sbuild: Test source session cloning
sbuild: source block-device does not expect to have a union facet
po: Update
schroot-mount: Cope with recursion into single directories
debian: Fix distribution and typo in schroot NEWS
debian: Finalise changelog for 1.6.4-1
schroot-mount: Remove unused variables
Distribution of schroot version 1.6.4
sbuild: Add header missing on non-Linux (LVM) builds
debian: Bump version to 1.6.4-2 and document build fix
schroot-mount: Canonicalise base path
debian: Bump version to 1.6.4-3 and close #691694
etc: Add sbuild fstab template for freebsd
debian: Close #692213
debian: Set distribution to unstable
Replace tabs with spaces in all source code
Merge changes from 1.4.27
NEWS: Bump version to 1.6.5
debian: Bump version to 1.6.5-1
po: Update
Distribution of schroot version 1.6.5
build: Add cmake build infrastructure
doc: Upgrade doxygen files
NEWS: Bump version to 1.6.6
debian: Bump version to 1.6.6-1 and close #683959, #683137
man: Backport de translation
po: Update
debian: Install translated manpages
Merge branch 'cmake-1.6' into schroot-1.6
cmake: Fix typo in man
cmake: Use gtest includes
Revert "cmake: Use gtest includes"
cmake: Don't allow building in the source directory
cmake: Add distdir GitRelease target
cmake: po: Build .gmo files
test: Ensure testdata/run-parts.ex2 is created
cmake: Configure distribution branch name
cmake: po: Don't update schroot.pot automatically by default
cmake: po: Always update timestamps
cmake: po: Don't update POT-Creation-Date for automatic updates
cmake: Split out release settings into GitReleasePolicy
man: Correct groff syntax in fr translation
cmake: Source release policy from source dir
cmake: GitRelease: commit_opts should be commit_options
cmake: Don't retranslate manpages when config.man changes
debian: Close #695313 and #718638
debian: Upgrade to Standards-Version 3.9.4
po: cmake: Correct quoting bug in schroot.pot update
Remove device locking
debian: Remove liblockdev from Build-Depends
README: Remove liblockdev and libuuid
NEWS: Document lockdev removal
build: Create cmake version metadata
test: run-parts.ex2 is automatically created
po: Update
cmake: Ignore generated GitVersion.cmake
build: Distribute cmake files with automake
debian: Close #728227
debian: Close #729319
debian: Close #729317
debian: Close #725608
debian: Close #728021
debian: Set distribution to unstable
NEWS: Tidy
po: Update
.gitignore: Ignore new automake helpers
Distribution of schroot version 1.6.6
cmake: Correct header checks for <memory>
NEWS: Bump version to 1.6.7
debian: Bump version to 1.6.7-1 and don't use C++11
cmake: Don't build personality support conditionally
debian: Set distribution to unstable
build: Distribute cmake/CompilerChecks.cmake
Distribution of schroot version 1.6.7
cmake: Correct transitive linking
NEWS: Bump version to 1.6.8
debian: Bump version to 1.6.8-1 and bump standards version
man: Fix troff formatting errors in the fr translation
debian: Set distribution to unstable
Distribution of schroot version 1.6.8
Sascha Silbe (3):
setup: Allow comments and newlines in copyfiles and nssdatabases
contrib: Add 10mount-ssh script to mount SSH auth socket into chroot
contrib: Add 10mount-ssh script to mount SSH auth socket into chroot
Thomas Blein (14):
po: Update fr translation
po: Update fr translation
po: Update fr translation
po: Update fr translation
po: Update fr translation
po: Update fr translation
po: Update fr translation
po: Update fr translation
po: Update fr translation
man: Add fr translation for po4a
man: Add fr translation for po4a and addendum
po: Update fr translation
po: Update fr translation
man: Update fr translation
Tim Abbott (4):
[schroot] Add bash completion
[setup] 05lvm: Reorder lvm snapshot options to make more flexible
etc/setup.d/10mount: Properly quote do_mount calls in 10mount
etc: Update bash completion for schroot
Vagrant Cascadian (1):
15binfmt: Bind mount to avoid error during remount
Vincenzo Campanella (5):
po: Add it translation
po: Update it translation
po: Update it translation
po: Update it translation
po: Update it translation
Yaroslav Halchenko (4):
NEWS: Correct misspellings
NEWS: Correct misspellings
05lvm: Fix indentation
05lvm: Fix indentation
Zach Carter (4):
sbuild::chroot_config: Replace is_valid_filename with is_valid_sessionname
build: Fix check for boost::program_options::variables_map
sbuild::chroot_config: Replace is_valid_filename with is_valid_sessionname
build: Fix check for boost::program_options::variables_map
-----------------------------------------------------------------------
hooks/post-receive
--
schroot
More information about the Buildd-tools-devel
mailing list