Skip to content

Dont generate fw pattern file if DEP11 is set to 0

Arnaud Rebillout requested to merge arnaudr/debian-cd:dep11-optional into master

Background: in commit 8c497447, dep11 metadata became mandatory, making it a hard failure if it doesn't exist.

Therefore in Kali Linux, we now have a hard failure when we try to build images with debian-cd 3.2:

2023-03-07 16:14:37,729 DEBUG build/debian-cd stderr: missing metadata file /srv/kali-iso-builder/tmp/live-3WzFHg/simple-cdd/tmp/mirror/dists/kali-last-snapshot/main/dep11/Components-amd64.yml.gz at /srv/kali-iso-builder/tmp/live-3WzFHg/simple-cdd/debian-cd/tools/generate_firmware_patterns line 172.
2023-03-07 16:14:37,730 DEBUG build/debian-cd stderr: generate_firmware_patterns failed: 512 at /srv/kali-iso-builder/tmp/live-3WzFHg/simple-cdd/debian-cd/tools/make_disc_trees.pl line 1257.
2023-03-07 16:14:37,732 DEBUG build/debian-cd stderr: make: *** [Makefile:487: image-trees] Error 2

In Kali we don't have dep11 metadata in our repo. The reason is that we build the Kali repository with reprepro, and reprepro has no support for DEP11. There has been no activity on that front since it was reported 7 years ago: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=824521.

Hence this merge request:

  • add support for a DEP11 env variable, which defaults to 1
  • if set to 0, don't try to generate fw pattern file out of dep11 metadata

Therefore derivatives which have no dep11 metadata can opt out.

Edited by Arnaud Rebillout

Merge request reports

Loading