Version in base suite: 1.2-2 Base version: x4d-icons_1.2-2 Target version: x4d-icons_1.2-2+deb11u1 Base file: /srv/ftp-master.debian.org/ftp/pool/main/x/x4d-icons/x4d-icons_1.2-2.dsc Target file: /srv/ftp-master.debian.org/policy/pool/main/x/x4d-icons/x4d-icons_1.2-2+deb11u1.dsc changelog | 9 +++++++++ compat | 1 - control | 2 +- patches/020_fix_policy.patch | 29 +++++++++++++++++++++++++++++ patches/series | 1 + 5 files changed, 40 insertions(+), 2 deletions(-) gpgv: Signature made Tue Mar 12 04:38:16 2019 UTC gpgv: using RSA key E1C748CAF7C23CB13C2CAA86E8E84908F903AFB5 gpgv: issuer "xnox@ubuntu.com" gpgv: Can't check signature: No public key dpkg-source: warning: failed to verify signature on /srv/release.debian.org/tmp/tmpaq4dlwsy/x4d-icons_1.2-2.dsc diff -Nru x4d-icons-1.2/debian/changelog x4d-icons-1.2/debian/changelog --- x4d-icons-1.2/debian/changelog 2019-03-12 04:38:09.000000000 +0000 +++ x4d-icons-1.2/debian/changelog 2023-03-21 12:50:00.000000000 +0000 @@ -1,3 +1,12 @@ +x4d-icons (1.2-2+deb11u1) bullseye; urgency=medium + + * QA upload. + * Fix FTBFS problem with new imagemagick. The fix is the same which was + already applied in bookworm. Closes: #991067. + * The above patch requires raising debhelper compatibility level to 13. + + -- Santiago Vila Tue, 21 Mar 2023 13:50:00 +0100 + x4d-icons (1.2-2) unstable; urgency=medium * QA upload. diff -Nru x4d-icons-1.2/debian/compat x4d-icons-1.2/debian/compat --- x4d-icons-1.2/debian/compat 2014-05-03 05:01:56.000000000 +0000 +++ x4d-icons-1.2/debian/compat 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -9 diff -Nru x4d-icons-1.2/debian/control x4d-icons-1.2/debian/control --- x4d-icons-1.2/debian/control 2019-03-12 04:37:54.000000000 +0000 +++ x4d-icons-1.2/debian/control 2023-03-21 12:48:49.000000000 +0000 @@ -2,7 +2,7 @@ Section: graphics Priority: optional Maintainer: Debian QA Group -Build-Depends: debhelper (>= 9), imagemagick, faketime, librsvg2-bin, fonts-dejavu-core +Build-Depends: debhelper-compat (= 13), imagemagick, faketime, librsvg2-bin, fonts-dejavu-core Standards-Version: 3.9.5 Homepage: http://x4d.surgut.co.uk Vcs-Git: https://github.com/xnox/x4d.git diff -Nru x4d-icons-1.2/debian/patches/020_fix_policy.patch x4d-icons-1.2/debian/patches/020_fix_policy.patch --- x4d-icons-1.2/debian/patches/020_fix_policy.patch 1970-01-01 00:00:00.000000000 +0000 +++ x4d-icons-1.2/debian/patches/020_fix_policy.patch 2023-03-21 12:48:49.000000000 +0000 @@ -0,0 +1,29 @@ +Description: Override overly strict ImageMagick coder policy (#987504) + This creates a more permissive version of + /etc/ImageMagick-6/policy.xml and ensures it gets loaded after the + one from /etc. + . + It is done by means of a patch to make use of the debhelper-provided + $HOME visible by dh_auto_*. + . + The relevant code is at: + https://sources.debian.org/src/imagemagick/8:6.9.11.60+dfsg-1.3/magick/configure.c/#L860 +Author: Dennis Filder +Last-Updated: 2022-12-06 + +--- a/generate.sh ++++ b/generate.sh +@@ -33,6 +33,13 @@ + generate XML '1.0' xml10 + generate XML '1.1' xml11 + ++# this relies on debhelper providing a $HOME directory for us to write to ++imversion=$(convert -version|sed -n '/^Version: /s@Version: ImageMagick \([[:digit:]]\+\)\..*@ImageMagick-\1@p') ++polfile="/etc/${imversion}/policy.xml" ++mkdir "$HOME"/.magick ++sed -e '//s@"none"@"read|write"@' "$polfile" \ ++ > "$HOME"/.magick/policy.xml ++ + /bin/ls Icons/*.svg | sed 's/-v\.svg//' | xargs -L1 -I{} convert -background none {}-v.svg {}.png + /bin/ls Icons/*.svg | sed 's/-v\.svg//' | xargs -L1 -I{} convert -background none {}-v.svg {}.gif + /bin/ls Icons/*.svg | sed 's/-v\.svg//' | xargs -L1 -I{} convert -background none {}-v.svg {}-v.eps diff -Nru x4d-icons-1.2/debian/patches/series x4d-icons-1.2/debian/patches/series --- x4d-icons-1.2/debian/patches/series 1970-01-01 00:00:00.000000000 +0000 +++ x4d-icons-1.2/debian/patches/series 2023-03-21 12:48:49.000000000 +0000 @@ -0,0 +1 @@ +020_fix_policy.patch