diff options
| author | Sean Whitton <spwhitton@spwhitton.name> | 2016-08-25 19:12:30 -0700 |
|---|---|---|
| committer | Sean Whitton <spwhitton@spwhitton.name> | 2016-08-25 19:17:13 -0700 |
| commit | 28d684b313a1cb2754ad72ca6f6364dce4b631f6 (patch) | |
| tree | 3d57cc383e34b90c36c632810dbf94f45ac5d5cb /src | |
| parent | b1d7925d1634556439ed5edb8af5e651bf9a1398 (diff) | |
update Sbuild docs again re. building for stretch
Building for stretch requires newer sbuild.
Diffstat (limited to 'src')
| -rw-r--r-- | src/Propellor/Property/Sbuild.hs | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/src/Propellor/Property/Sbuild.hs b/src/Propellor/Property/Sbuild.hs index 16e21f55..b55b6e8c 100644 --- a/src/Propellor/Property/Sbuild.hs +++ b/src/Propellor/Property/Sbuild.hs @@ -7,9 +7,16 @@ Maintainer: Sean Whitton <spwhitton@spwhitton.name> Build and maintain schroots for use with sbuild. For convenience we set up several enhancements, such as ccache and -eatmydata. This means we have to assume that you want to build -packages for a Debian release strictly newer than squeeze, or for -Buntish releases newer than or equal to trusty. +eatmydata. This means we have to make several assumptions: + +1. you want to build for a Debian release strictly newer than squeeze, +or for a Buntish release newer than or equal to trusty + +2. if you want to build for Debian stretch or newer, you have sbuild +0.70.0 or newer (there is a backport to jessie) + +The latter is due to the migration from GnuPG v1 to GnuPG v2.1 in +Debian stretch, which older sbuild can't handle. Suggested usage in @config.hs@: @@ -21,6 +28,10 @@ Suggested usage in @config.hs@: > & Sbuild.shareAptCache > & Schroot.overlaysInTmpfs +If you are using sbuild older than 0.70.0, you also need: + +> & Sbuild.keypairGenerated + In @~/.sbuildrc@ (sbuild 0.71.0 or newer): > $run_piuparts = 1; @@ -46,7 +57,7 @@ Nevertheless, the chroot that @sbuild-createchroot(1)@ creates might not meet your needs. For example, you might need to enable an apt cacher. In that case you can do something like this in @config.hs@: -> & Sbuild.built (System (Debian Unstable) X86_32) `before` mySetup +> & Sbuild.built (System (Debian Linux Unstable) X86_32) `before` mySetup > where > mySetup = Chroot.provisioned myChroot > myChroot = Chroot.debootstrapped @@ -344,6 +355,8 @@ usableBy :: User -> Property DebianLike usableBy u = User.hasGroup u (Group "sbuild") `requires` installed -- | Generate the apt keys needed by sbuild +-- +-- You only need this if you are using sbuild older than 0.70.0. keypairGenerated :: Property DebianLike keypairGenerated = check (not <$> doesFileExist secKeyFile) $ go `requires` installed @@ -369,6 +382,8 @@ secKeyFile = "/var/lib/sbuild/apt-keys/sbuild-key.sec" -- > `onChange` Systemd.started "my-rngd-service" -- -- Useful on throwaway build VMs. +-- +-- You only need this if you are using sbuild older than 0.70.0. keypairInsecurelyGenerated :: Property DebianLike keypairInsecurelyGenerated = check (not <$> doesFileExist secKeyFile) go where |
