Package: cruft-ng Version: 0.9.63 Severity: normal Tags: patch User: ubuntu-de...@lists.ubuntu.com Usertags: origin-ubuntu oracular ubuntu-patch
Dear Maintainer, The autopkgtests in Ubuntu were failing with: 111s autopkgtest [07:19:39]: test ncdu: [----------------------- 113s /usr/libexec/cruft/fontconfig-config: 5: CRUFT_ROOT: parameter not set 113s 329097671 apt 113s 66890630 linux-image-6.8.0-31-generic 113s 33804730 systemd 113s 12586699 udev 113s 7536125 grub-efi-amd64-bin 113s 4835818 grub-common 113s 4785066 debconf 113s 3701912 command-not-found 113s 3065352 locales 113s 2786167 shared-mime-info 114s /usr/libexec/cruft/fontconfig-config: 5: CRUFT_ROOT: parameter not set 114s autopkgtest [07:19:42]: test ncdu: -----------------------] It seems that when $CRUFT_ROOT was added to explain/fontconfig-config, the `set -u` was not considered. We applied the attached patch in Ubuntu: * explain/fontconfig-config: fix CRUFT_ROOT: parameter not set (LP: #2079840) Thanks for considering the patch. [1] https://bugs.launchpad.net/ubuntu/+source/cruft-ng/+bug/2079840
diff -Nru cruft-ng-0.9.63/explain/fontconfig-config cruft-ng-0.9.63ubuntu1/explain/fontconfig-config --- cruft-ng-0.9.63/explain/fontconfig-config 2024-06-17 10:09:49.000000000 -0400 +++ cruft-ng-0.9.63ubuntu1/explain/fontconfig-config 2024-09-06 11:09:48.000000000 -0400 @@ -2,6 +2,8 @@ set -e set -u +CRUFT_ROOT="${CRUFT_ROOT:-""}" + test -d "$CRUFT_ROOT/usr/share/fontconfig/conf.avail" || exit 0 find "$CRUFT_ROOT/usr/share/fontconfig/conf.avail/" -maxdepth 1 -type f -printf "%f\n" | while read -r file