On Wed, 19 Mar 2025 19:51:46 +0000 Luca Boccassi <bl...@debian.org> wrote: > Package: fontconfig-config > Version: 2.15.0-2.1 > Severity: serious > Justification: package uninstallable on minimal chroots > > Dear Maintainer(s), > > The NMU for #962420 moved a 'mkdir' in fontconfig-config.postinst out > of an 'if' statement, so now when it fails the postinst aborts and the > package installation fails. > This happens on minimal build systems, like the Open Build Service, > when the package is pulled in as a build dependency, as > /usr/local/share/ is not present on the builder. The fix is trivial, > the mkdir needs to use '-p' so that it creates the parent directories > if missing too. > > I have uploaded an NMU to DELAYED/1 given it's already in testing.
debdiff attached
diff -Nru fontconfig-2.15.0/debian/changelog fontconfig-2.15.0/debian/changelog --- fontconfig-2.15.0/debian/changelog 2025-03-09 09:04:42.000000000 +0000 +++ fontconfig-2.15.0/debian/changelog 2025-03-19 19:50:15.000000000 +0000 @@ -1,3 +1,11 @@ +fontconfig (2.15.0-2.2) unstable; urgency=high + + * Non-maintainer upload. + * Use 'mkdir -p' in fontconfig-config.postinst to avoid package installation + failure on minimal systems without a full directory tree. (Closes: #1100871) + + -- Luca Boccassi <bl...@debian.org> Wed, 19 Mar 2025 19:50:15 +0000 + fontconfig (2.15.0-2.1) unstable; urgency=medium * Non-maintainer upload diff -Nru fontconfig-2.15.0/debian/fontconfig-config.postinst fontconfig-2.15.0/debian/fontconfig-config.postinst --- fontconfig-2.15.0/debian/fontconfig-config.postinst 2025-03-09 08:50:47.000000000 +0000 +++ fontconfig-2.15.0/debian/fontconfig-config.postinst 2025-03-19 19:50:06.000000000 +0000 @@ -160,7 +160,7 @@ # Create /usr/local/share/fonts LOCALDIR=/usr/local/share/fonts if [ ! -d $LOCALDIR ]; then - mkdir $LOCALDIR 2>/dev/null + mkdir -p $LOCALDIR 2>/dev/null fi if [ -f /etc/staff-group-for-usr-local ]; then