On 2015-01-18 18:48, Niko Tyni wrote: > a) - make xfonts-traditional 'postinst triggered' survive missing dependencies > - make perl-base+perl-modules+perl Break xfonts-traditional older than that
What about this rather simple solution: Package: perl-modules Breaks: xfonts-traditional (<< 1.7~) The action to achieve is: before the new perl-modules is unpacked (which would break xfonts-traditional.postinst due to missing (or better: relocated) File/Find.pm, ensure xfonts-traditional is either upgraded first or deconfigured - this should be sufficient for any old dpkg not to do trigger processing any more (as long as it is not in a configured state). I tested this, and it seems to work: Preparing to replace xfonts-traditional 1.6 (using .../xfonts-traditional_1.7.1_all.deb) ... Checking configuration... Unpacking replacement xfonts-traditional ... Preparing to replace perl-modules 5.14.2-21+deb7u2 (using .../perl-modules_5.20.1-4.1_all.deb) ... Unpacking replacement perl-modules ... Selecting previously unselected package libdb5.3:amd64. Unpacking libdb5.3:amd64 (from .../libdb5.3_5.3.28-7~deb8u1_amd64.deb) ... Setting up libdb5.3:amd64 (5.3.28-7~deb8u1) ... Processing triggers for libc-bin ... (Reading database ... 8476 files and directories currently installed.) Preparing to replace perl 5.14.2-21+deb7u2 (using .../pl/./perl_5.20.1-4.1_amd64.deb) ... Unpacking replacement perl ... Preparing to replace libsys-cpu-perl 0.52-3 (using .../libsys-cpu-perl_0.61-1+b1_amd64.deb) ... Unpacking replacement libsys-cpu-perl ... Preparing to replace libtext-iconv-perl 1.7-5 (using .../libtext-iconv-perl_1.7-5+b2_amd64.deb) ... Unpacking replacement libtext-iconv-perl ... Preparing to replace perl-base 5.14.2-21+deb7u2 (using .../perl-base_5.20.1-4.1_amd64.deb) ... Unpacking replacement perl-base ... Setting up perl-base (5.20.1-4.1) ... (Reading database ... 7806 files and directories currently installed.) Preparing to replace liblocale-gettext-perl 1.05-7+b1 (using .../liblocale-gettext-perl_1.05-8+b1_amd64.deb) ... Unpacking replacement liblocale-gettext-perl ... Preparing to replace libgdbm3:amd64 1.8.3-11 (using .../libgdbm3_1.8.3-13.1_amd64.deb) ... Unpacking replacement libgdbm3:amd64 ... Preparing to replace dpkg 1.16.15 (using .../dpkg_1.17.23_amd64.deb) ... Unpacking replacement dpkg ... Setting up dpkg (1.17.23) ... Installing new version of config file /etc/cron.daily/dpkg ... (Reading database ... 7794 files and directories currently installed.) No Pre-Depends or any other fancy stuff needed :-) Andreas
xfonts-traditional_with_perl-modules-breaks.log.gz
Description: application/gzip