You are not logged in.

#1 2016-01-17 01:19:48

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 5,662

CUPS upgrade: should cups-genppdupdate update PPD files?

After updating Arch today, I attempted to follow the usual instructions for post-upgrade maintenance of CUPS

...
[2016-01-16 21:57] [ALPM] upgraded cups-filters (1.5.0-2 -> 1.6.0-1)
...
[2016-01-16 21:57] [ALPM] upgraded gutenprint (5.2.10-1 -> 5.2.11-1)
[2016-01-16 21:57] [ALPM-SCRIPTLET] >>please run /usr/bin/cups-genppdupdate
[2016-01-16 21:57] [ALPM-SCRIPTLET] >>and restart cups deamon
...

However, running cups-genppdupdate returns a message saying that 0 PPD files were updated. I think in the past I've tended to assume that this meant that no files needed to be updated since the exit code returned is zero and nothing like a warning or error is produced.

On the other hand, I have seen my PPD files updated by running this script in the past and I certainly have PPD files which appear to be rather old:

$ ls -l /etc/cups/ppd/

total 1092
-rw-r--r-- 1 root root  20940 Meh  16  2012 CUPS_PDF.ppd
-rw-r--r-- 1 root root  49108 Ion  19  2013 Dell_2330dn.ppd
-rw-r--r-- 1 root root  18094 Meh  25  2014 HP-LaserJet-P3015-HPLIP.ppd
-rw-r--r-- 1 root root  64163 Meh  25  2014 HP-LaserJet-P3015.ppd
-rw-r--r-- 1 root root 179457 Hyd  19  2013 HP-P3005-socket.ppd
-rw-r--r-- 1 root root 152507 Med  12  2012 HP1320.ppd
-rw-r--r-- 1 root root  18146 Meh  11  2012 HP1320_hplip_hpijs.ppd
-rw-r--r-- 1 root root 179457 Hyd   2  2013 HP_LaserJet_P3005.ppd
-rw-r--r-- 1 root root 188658 Med  26  2013 HP_LaserJet_P3010.ppd
-rw-r--r-- 1 root root 227814 Hyd   1  2012 HP_LaserJet_P3010_Series.ppd

$ file /etc/cups/ppd/*

/etc/cups/ppd/CUPS_PDF.ppd:                 PPD file, version "4.3"
/etc/cups/ppd/Dell_2330dn.ppd:              PPD file, version "4.3"
/etc/cups/ppd/HP-LaserJet-P3015-HPLIP.ppd:  PPD file, version "4.3"
/etc/cups/ppd/HP-LaserJet-P3015.ppd:        PPD file, version "4.3"
/etc/cups/ppd/HP-P3005-socket.ppd:          PPD file, version "4.3"
/etc/cups/ppd/HP1320.ppd:                   PPD file, version "4.3"
/etc/cups/ppd/HP1320_hplip_hpijs.ppd:       PPD file, version "4.3"
/etc/cups/ppd/HP_LaserJet_P3005.ppd:        PPD file, version "4.3"
/etc/cups/ppd/HP_LaserJet_P3010.ppd:        PPD file, version "4.3"
/etc/cups/ppd/HP_LaserJet_P3010_Series.ppd: PPD file, version "4.3"

The manual page for cups-genppdupdate tells me that it cannot update PPD files from Gimp-Print 4.2 or earlier, and that it cannot update Foomatic PPD files.

I've looked at the files and all contain multiple version numbers, so it is possible that the 4.3 is not the correct one, though I'm hoping it is.

I did use Foomatic at one point for some printers, so I checked for those:

$ grep -l -i foomatic /etc/cups/ppd/*

/etc/cups/ppd/HP-LaserJet-P3015-HPLIP.ppd
/etc/cups/ppd/HP1320_hplip_hpijs.ppd

So I would not expect those particular PPDs to be updated, but why are none of the other PPDs updated, and what should I investigate or do to update them?


How To Ask Questions The Smart Way | Help Vampires

Arch Linux | x86_64 | GPT | EFI boot | grub2 | systemd | LVM2 on LUKS
Lenovo x121e | Intel(R) Core(TM) i3-2367M CPU @ 1.40GHz GenuineIntel | Intel Centrino Wireless-N 1000 | US keyboard with Euro | 320G 7200 RPM Seagate HDD

Offline

#2 2016-01-17 17:05:31

paulkerry
Member
From: Sheffield, UK
Registered: 2014-10-02
Posts: 256

Re: CUPS upgrade: should cups-genppdupdate update PPD files?

cfr wrote:

So I would not expect those particular PPDs to be updated, but why are none of the other PPDs updated, and what should I investigate or do to update them?

Is it because /usr/bin/cups-genppdupdate is only included in the gutenprint package, so only those printers that use gutenprint need to be updated?

Offline

#3 2016-01-17 21:17:13

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 5,662

Re: CUPS upgrade: should cups-genppdupdate update PPD files?

paulkerry wrote:
cfr wrote:

So I would not expect those particular PPDs to be updated, but why are none of the other PPDs updated, and what should I investigate or do to update them?

Is it because /usr/bin/cups-genppdupdate is only included in the gutenprint package, so only those printers that use gutenprint need to be updated?

Thanks. This sounds plausible, but I don't know how to tell whether it is true or not! Does anything else need to be done for other PPDs? Or is there something special about gutenprint such that its PPDs need updating, but no others?


How To Ask Questions The Smart Way | Help Vampires

Arch Linux | x86_64 | GPT | EFI boot | grub2 | systemd | LVM2 on LUKS
Lenovo x121e | Intel(R) Core(TM) i3-2367M CPU @ 1.40GHz GenuineIntel | Intel Centrino Wireless-N 1000 | US keyboard with Euro | 320G 7200 RPM Seagate HDD

Offline

#4 2016-01-18 14:49:23

paulkerry
Member
From: Sheffield, UK
Registered: 2014-10-02
Posts: 256

Re: CUPS upgrade: should cups-genppdupdate update PPD files?

I've never had to update any of the PPD's for printers on my system (including HP), but I don't use gutenprint. Is there anything in the gutenprint manual pages that explains it - can you do...?

man cups-genppdupdate

Offline

#5 2016-01-18 15:18:22

V1del
Member
Registered: 2012-10-16
Posts: 1,247

Re: CUPS upgrade: should cups-genppdupdate update PPD files?

If you use gutenprint PPD files, the gutenprint PPD files will be updated. I don't think you necessarily NEED to do it if there wasn't any real change in the PPD file of your printer. I do use one and it has been updated, I haven't printed something in the meantime to see what broke though wink (The file is part of gutenprint, if you don't use gutenprint drivers it won't do anything).

And it will only update configured PPD files, as in there's a configured printer in CUPS, the configured PPD file is placed in /etc/cups/ppd and the tool will update said configured PPD file with the new file adding any new options but merging the old configured values in.

Last edited by V1del (2016-01-18 15:27:24)

Offline

Board footer

Powered by FluxBB