Skip to content

Commit

Permalink
Merge #362
Browse files Browse the repository at this point in the history
362: fix non-debian builds based on current debian releases r=obbardc a=sjoerdsimons

 Work around new debootstrap behaviour by always excluding the
 usr-is-merged package as this allows derivatives based on older debian
 versions to build again. See #361 for more details


Co-authored-by: Sjoerd Simons <[email protected]>
  • Loading branch information
bors[bot] and sjoerdsimons authored Sep 22, 2022
2 parents a1bf634 + 114028f commit 127c464
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ jobs:
include:
- backend: { name: "qemu", backend: "--fakemachine-backend=qemu" }
test: { name: "partitioning", case: "partitioning" }
- backend: { name: "uml", backend: "--fakemachine-backend=uml" }
test: { name: "apertis", case: "apertis" }
- backend: { name: "uml", backend: "--fakemachine-backend=uml" }
test: { name: "partitioning", case: "partitioning" }
name: ${{matrix.test.name}} on ${{matrix.backend.name}}
Expand Down
1 change: 1 addition & 0 deletions actions/debootstrap_action.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ func (d *DebootstrapAction) Run(context *debos.DebosContext) error {
cmdline = append(cmdline, fmt.Sprintf("--variant=%s", d.Variant))
}

cmdline = append(cmdline, "--exclude=usr-is-merged")
cmdline = append(cmdline, d.Suite)
cmdline = append(cmdline, context.Rootdir)
cmdline = append(cmdline, d.Mirror)
Expand Down
Binary file added tests/apertis/apertis-archive-keyring.gpg
Binary file not shown.
20 changes: 20 additions & 0 deletions tests/apertis/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
# Test building a non-debian distribution such as apertis to ensure
# bootstrapping suites that debootstrap won't internally know about works
{{- $architecture := or .architecture "amd64"}}
architecture: {{$architecture}}

actions:
- action: debootstrap
suite: v2022
components:
- target
mirror: https://repositories.apertis.org/apertis/
variant: minbase
keyring-package: apertis-archive-keyring
keyring-file: apertis-archive-keyring.gpg

- action: apt
description: Install some base packages
packages:
- procps

0 comments on commit 127c464

Please sign in to comment.