Comment 22 for bug 932882

Revision history for this message
Christoph Fischer (kristovizer) wrote : Re: [Bug 932882] Re: Update of a printer driver package does not update the PPD files of the existing queues for this driver

Am Dienstag, den 19.06.2012, 18:55 +0000 schrieb Till Kamppeter:

> Uploaded a fixed gutenprint package for Precise to -proposed. As soon as
> the package gets approved we post instructions for installing and
> testing it here. Please do the test and give us feedback as this is
> required to make the package an official update for Precise.
>
> To SRU team: debdiff attached.
>
> To reproduce: Upgrade from Gutenprint 5.2.7 to 5.2.8~pre1-0ubuntu2 does
> not update the PPD files of existing queues. To test, create a
> Gutenprint-based print queue on a system with 5.2.7 then run
>
> grep -i gutenprint /etc/cups/ppd/*.ppd
>
> and see that the PPD files are of Gutenprint version 5.2.7. Update to
> 5.2.8~pre1-0ubuntu2 and run
>
> grep -i gutenprint /etc/cups/ppd/*.ppd
>
> The PPDs are still not upgraded. Update from 5.2.7 or
> 5.2.8~pre1-0ubuntu2 to 5.2.8~pre1-0ubuntu2.1 and your PPD files get
> updated to 5.2.8pre1.
>
>
> ** Patch added: "gutenprint_5.2.8~pre1-0ubuntu2_5.2.8~pre1-0ubuntu2.1.debdiff"
> https://bugs.launchpad.net/ubuntu/+source/cups/+bug/932882/+attachment/3196394/+files/gutenprint_5.2.8%7Epre1-0ubuntu2_5.2.8%7Epre1-0ubuntu2.1.debdiff

dies ist das Ergebnis:

> christoph@christoph-desktop:~$ diff -Nru gutenprint-5.2.8~pre1/debian/changelog gutenprint-5.2.8~pre1/debian/changelog

diff: gutenprint-5.2.8~pre1/debian/changelog: Datei oder Verzeichnis
nicht gefunden
diff: gutenprint-5.2.8~pre1/debian/changelog: Datei oder Verzeichnis
nicht gefunden
christoph@christoph-desktop:~$ ---
gutenprint-5.2.8~pre1/debian/changelog2012-03-22 15:01:04.000000000
+0100
---: command not found
christoph@christoph-desktop:~$ +++
gutenprint-5.2.8~pre1/debian/changelog2012-06-19 20:33:13.000000000
+0200
No command '+++' found, did you mean:
 Command 'c++' from package 'clang' (universe)
 Command 'c++' from package 'g++' (main)
 Command 'c++' from package 'pentium-builder' (universe)
 Command 'g++' from package 'g++' (main)
 Command 'g++' from package 'pentium-builder' (universe)
+++: command not found
christoph@christoph-desktop:~$ @@ -1,3 +1,12 @@
@@: command not found
christoph@christoph-desktop:~$ +gutenprint (5.2.8~pre1-0ubuntu2.1)
precise-proposed; urgency=low
bash: Syntaxfehler beim unerwarteten Wort `5.2.8~pre1-0ubuntu2.1'
christoph@christoph-desktop:~$ +
+: command not found
christoph@christoph-desktop:~$ + * debian/rules: Touch ppd-updater
file(s) so that they have the time stamp
bash: Syntaxfehler beim unerwarteten Wort `('
christoph@christoph-desktop:~$ + of the build of this package The
time stamp of the ppd-updater files tells
+: command not found
christoph@christoph-desktop:~$ + CUPS' trigger script whether they
come from different package versions or
> + not (LP: #932882).
> +
> + -- Till Kamppeter <email address hidden> Tue, 19 Jun 2012
20:32:48 +0200
> +
> gutenprint (5.2.8~pre1-0ubuntu2) precise; urgency=low
>
> * debian/printer-driver-gutenprint.postinst: Use old method to
update the
> diff -Nru gutenprint-5.2.8~pre1/debian/rules
gutenprint-5.2.8~pre1/debian/rules
> --- gutenprint-5.2.8~pre1/debian/rules2012-02-14 21:48:48.000000000
+0100
> +++ gutenprint-5.2.8~pre1/debian/rules2012-06-19 20:32:06.000000000
+0200
> @@ -86,6 +86,10 @@
> fi
> endif
> dh_install
> +# Touch ppd-updater file(s) so that they have the time stamp of the
build
> +# of this package. The time stamp of the ppd-updater files tells
CUPS' trigger
+: command not found
christoph@christoph-desktop:~$ +# script whether they come from
different package versions or not.
+#: command not found
christoph@christoph-desktop:~$ +touch
debian/*/usr/share/cups/ppd-updaters/*.ppd-updater
No command '+touch' found, did you mean:
 Command 'ktouch' from package 'ktouch' (main)
 Command 'touch' from package 'coreutils' (main)
+touch: command not found
christoph@christoph-desktop:~$ # Remove rpath
christoph@christoph-desktop:~$ find
debian/printer-driver-gutenprint/usr/lib -type f -perm +0111 -print0 |
xargs -0 chrpath --delete
find: "debian/printer-driver-gutenprint/usr/lib": Datei oder Verzeichnis
nicht gefunden
xargs: chrpath: Datei oder Verzeichnis nicht gefunden
christoph@christoph-desktop:~$ # Documentation fixup
christoph@christoph-desktop:~$ sudo diff -Nru
gutenprint-5.2.8~pre1/debian/changelog
gutenprint-5.2.8~pre1/debian/changelog
[sudo] password for christoph:
Sorry, try again.
[sudo] password for christoph:
diff: gutenprint-5.2.8~pre1/debian/changelog: Datei oder Verzeichnis
nicht gefunden
diff: gutenprint-5.2.8~pre1/debian/changelog: Datei oder Verzeichnis
nicht gefunden
christoph@christoph-desktop:~$