[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#700961: marked as done ([cups] AirPrint doesn't work on iOS 6 device)



Your message dated Wed, 27 Feb 2013 12:32:50 +0000
with message-id <E1UAgBm-0004Sb-Uw@franck.debian.org>
and subject line Bug#700961: fixed in cups 1.5.3-2.15
has caused the Debian Bug report #700961,
regarding [cups] AirPrint doesn't work on iOS 6 device
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
700961: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=700961
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: cups
Version: 1.5.3-2.14
Severity: important
Tags: patch

As a ubuntu bugreport[1] describes the problem perfectly (and has also
the fix for the problem), I'm copying it just over, I just replaced the
release names:

--

After iOS 6 update on my iPad2 device Airprin doesn't work on my Debian
wheezy machine.
On my iPhone with iOS 5.1.1 still works fine.

[IMPACT]

Everyone with iOS 6 on his iPhone/iPad/iPod Touch, independent whether
iOS 6 was installed from the beginning or by an update, is not able to
print from his iOS device any more, as there are changes in the AirPrint
implementation. Due to Apple's updates this affects Apple hardware of
the last three years.

[TESTCASE]

Print from an Apple iOS device with iOS 6 or newer. The print queues of
your shared printers on your wheezy machine do not appear. After
applying the fixed package the queues will appear and printing will work.

[Regression Potential]

The changes are very simple (see attached debdiff) and so there are no
regressions expected.

--

As this fixes the problem with our local installation and seems
perfectly integrated in ubuntu 12.04 (which uses the same upstream
version) since 2 month, this should not end into a hassle.
Depending on configuration of cupsd, this allows to provide airprint
without any additional modifications[2]

Could we integrate this fix possibly into wheezy?

Thanks Didier Raboud for help in tracing this problem down.

Many thanks, Jan.
[1] https://bugs.launchpad.net/bugs/1054495
[2] https://github.com/cainscou/airprint-generate
-- 
Never write mail to <waja@spamfalle.info>, you have been warned!
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GIT d-- s+: a C+++ UL++++ P+ L+++ E--- W+++ N+++ o++ K++ w--- O M V- PS
PE Y++
PGP++ t-- 5 X R tv- b+ DI D+ G++ e++ h---- r+++ y++++
------END GEEK CODE BLOCK------
diff -Nru cups-1.5.3/debian/changelog cups-1.5.3/debian/changelog
--- cups-1.5.3/debian/changelog	2013-01-20 17:20:15.000000000 +0100
+++ cups-1.5.3/debian/changelog	2013-02-19 14:06:37.000000000 +0100
@@ -1,3 +1,11 @@
+cups (1.5.3-2.15~jw0) unstable; urgency=low
+
+  [ Jan Wagner ]
+  * debian/patches/airprint-support.patch: Made AirPrint support also working
+    for iOS 6 (LP: #1054495), synched from ubuntu precise.
+
+ -- Didier Raboud <odyx@debian.org>  Tue, 19 Feb 2013 14:06:21 +0100
+
 cups (1.5.3-2.14) unstable; urgency=low
 
   * Add upstream patch to avoid using Kerberos over the local socket.
diff -Nru cups-1.5.3/debian/patches/airprint-support.patch cups-1.5.3/debian/patches/airprint-support.patch
--- cups-1.5.3/debian/patches/airprint-support.patch	2013-01-20 17:20:11.000000000 +0100
+++ cups-1.5.3/debian/patches/airprint-support.patch	2013-02-19 13:46:42.000000000 +0100
@@ -15,13 +15,53 @@
    cupsdSetString(&LPDConfigFile, CUPS_DEFAULT_LPD_CONFIG_FILE);
 --- a/scheduler/dirsvc.c
 +++ b/scheduler/dirsvc.c
-@@ -2522,6 +2522,9 @@
+@@ -2522,6 +2522,12 @@
    keyvalue[i  ][0] = "pdl";
    keyvalue[i++][1] = p->pdl ? p->pdl : "application/postscript";
  
++  /* iOS 6 does not accept this printer as AirPrint printer if there is
++     no URF txt record or "URF=none", "DM3" is the minimum needed found
++     by try and error */
 +  keyvalue[i  ][0] = "URF";
-+  keyvalue[i++][1] = "none";
++  keyvalue[i++][1] = "DM3";
 +
    if (get_auth_info_required(p, air_str, sizeof(air_str)))
    {
      keyvalue[i  ][0] = "air";
+--- a/conf/mime.convs.in
++++ b/conf/mime.convs.in
+@@ -86,6 +86,9 @@
+ # PWG Raster filter for IPP Everywhere...
+ application/vnd.cups-raster	image/pwg-raster		100	rastertopwg
+ 
++# Needed for printing from iOS (AirPrint) clients
++image/urf    	      	       application/pdf			100	-
++
+ ########################################################################
+ #
+ # Raw filter...
+--- a/conf/mime.types
++++ b/conf/mime.types
+@@ -110,6 +110,9 @@
+ image/x-bitmap			bmp string(0,BM) + !printable(2,14)
+ image/x-icon			ico
+ 
++# Needed for printing from iOS (AirPrint) clients
++image/urf			urf string(0,UNIRAST<00>)
++
+ ########################################################################
+ #
+ # Text files...
+--- a/scheduler/printers.c
++++ b/scheduler/printers.c
+@@ -3908,7 +3908,9 @@
+       }
+       else if (!_cups_strcasecmp(type->super, "image"))
+       {
+-        if (!_cups_strcasecmp(type->type, "jpeg"))
++        if (!_cups_strcasecmp(type->type, "urf"))
++	  strlcat(pdl, "image/urf,", sizeof(pdl));
++	else if (!_cups_strcasecmp(type->type, "jpeg"))
+ 	  strlcat(pdl, "image/jpeg,", sizeof(pdl));
+ 	else if (!_cups_strcasecmp(type->type, "png"))
+ 	  strlcat(pdl, "image/png,", sizeof(pdl));
diff -Nru cups-1.5.3/debian/patches/debian-changes-1.5.3-2.15~jw0 cups-1.5.3/debian/patches/debian-changes-1.5.3-2.15~jw0
--- cups-1.5.3/debian/patches/debian-changes-1.5.3-2.15~jw0	1970-01-01 01:00:00.000000000 +0100
+++ cups-1.5.3/debian/patches/debian-changes-1.5.3-2.15~jw0	2013-02-19 14:11:23.000000000 +0100
@@ -0,0 +1,46 @@
+Description: Upstream changes introduced in version 1.5.3-2.15~jw0
+ This patch has been created by dpkg-source during the package build.
+ Here's the last changelog entry, hopefully it gives details on why
+ those changes were made:
+ .
+ cups (1.5.3-2.15~jw0) unstable; urgency=low
+ .
+   [ Jan Wagner ]
+   * debian/patches/airprint-support.patch: Made AirPrint support also working
+     for iOS 6 (LP: #1054495), synched from ubuntu precise.
+ .
+ The person named in the Author field signed this changelog entry.
+Author: Didier Raboud <odyx@debian.org>
+Bug-Ubuntu: https://bugs.launchpad.net/bugs/1054495
+
+---
+The information above should follow the Patch Tagging Guidelines, please
+checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
+are templates for supplementary fields that you might want to add:
+
+Origin: <vendor|upstream|other>, <url of original patch>
+Bug: <url in upstream bugtracker>
+Bug-Debian: http://bugs.debian.org/<bugnumber>
+Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
+Forwarded: <no|not-needed|url proving that it has been forwarded>
+Reviewed-By: <name and email of someone who approved the patch>
+Last-Update: <YYYY-MM-DD>
+
+--- /dev/null
++++ cups-1.5.3/scheduler/conf.c.rej
+@@ -0,0 +1,15 @@
++--- scheduler/conf.c
+++++ scheduler/conf.c
++@@ -1056,10 +1056,12 @@
++ 			     Group, 1, 1) < 0 ||
++        cupsdCheckPermissions(ServerRoot, "ssl", 0700, RunUser,
++ 			     Group, 1, 0) < 0 ||
+++       /* Never alter permissions of central conffiles
++        cupsdCheckPermissions(ConfigurationFile, NULL, ConfigFilePerm, RunUser,
++ 			     Group, 0, 0) < 0 ||
++        cupsdCheckPermissions(CupsFilesFile, NULL, ConfigFilePerm, RunUser
++ 			     Group, 0, 0) < 0 ||
+++       */
++        cupsdCheckPermissions(ServerRoot, "classes.conf", 0600, RunUser,
++ 			     Group, 0, 0) < 0 ||
++        cupsdCheckPermissions(ServerRoot, "printers.conf", 0600, RunUser,
diff -Nru cups-1.5.3/debian/patches/series cups-1.5.3/debian/patches/series
--- cups-1.5.3/debian/patches/series	2013-01-20 17:20:15.000000000 +0100
+++ cups-1.5.3/debian/patches/series	2013-02-19 14:11:23.000000000 +0100
@@ -51,3 +51,4 @@
 tests-slow-lpstat.patch
 tests-fix-ppdLocalize-on-unclean-env.patch
 fix_kerberos_auth_local.patch
+debian-changes-1.5.3-2.15~jw0

Attachment: signature.asc
Description: OpenPGP digital signature


--- End Message ---
--- Begin Message ---
Source: cups
Source-Version: 1.5.3-2.15

We believe that the bug you reported is fixed in the latest version of
cups, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 700961@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Didier Raboud <odyx@debian.org> (supplier of updated cups package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Wed, 27 Feb 2013 12:59:30 +0100
Source: cups
Binary: libcups2 libcupsimage2 libcupscgi1 libcupsdriver1 libcupsmime1 libcupsppdc1 cups cups-client libcups2-dev libcupsimage2-dev libcupscgi1-dev libcupsdriver1-dev libcupsmime1-dev libcupsppdc1-dev cups-bsd cups-common cups-ppdc cups-dbg cupsddk
Architecture: source all amd64
Version: 1.5.3-2.15
Distribution: unstable
Urgency: low
Maintainer: Debian Printing Team <debian-printing@lists.debian.org>
Changed-By: Didier Raboud <odyx@debian.org>
Description: 
 cups       - Common UNIX Printing System(tm) - server
 cups-bsd   - Common UNIX Printing System(tm) - BSD commands
 cups-client - Common UNIX Printing System(tm) - client programs (SysV)
 cups-common - Common UNIX Printing System(tm) - common files
 cups-dbg   - Common UNIX Printing System(tm) - debugging symbols
 cups-ppdc  - Common UNIX Printing System(tm) - PPD manipulation utilities
 cupsddk    - Common UNIX Printing System (transitional package)
 libcups2   - Common UNIX Printing System(tm) - Core library
 libcups2-dev - Common UNIX Printing System(tm) - Development files CUPS library
 libcupscgi1 - Common UNIX Printing System(tm) - CGI library
 libcupscgi1-dev - Common UNIX Printing System(tm) - Development files for CGI libra
 libcupsdriver1 - Common UNIX Printing System(tm) - Driver library
 libcupsdriver1-dev - Common UNIX Printing System(tm) - Development files driver librar
 libcupsimage2 - Common UNIX Printing System(tm) - Raster image library
 libcupsimage2-dev - Common UNIX Printing System(tm) - Development files CUPS image li
 libcupsmime1 - Common UNIX Printing System(tm) - MIME library
 libcupsmime1-dev - Common UNIX Printing System(tm) - Development files MIME library
 libcupsppdc1 - Common UNIX Printing System(tm) - PPD manipulation library
 libcupsppdc1-dev - Common UNIX Printing System(tm) - Development files PPD library
Closes: 697970 700961
Changes: 
 cups (1.5.3-2.15) unstable; urgency=low
 .
   [ Till Kamppeter ]
   * Update airprint-support.patch to make AirPrint support also work for
     iOS 6. (Closes: #700961, LP: #1054495) - thanks to Jan Wagner.
 .
   [ Didier Raboud ]
   * Add usb-backend quirk for Epson Stylus Photo 750 (Closes: #697970)
Checksums-Sha1: 
 78b70c5c25eed26ae9462de5bcd9e9f7829ebf83 3260 cups_1.5.3-2.15.dsc
 f2b12353b21928ae07f0accfd54fea4d2bdc7ed3 373234 cups_1.5.3-2.15.debian.tar.gz
 081df30354a6af9ccebb51e4402fe7fdcc9ba60e 902872 cups-common_1.5.3-2.15_all.deb
 52fa8d972c3458c44e7874389b94a5f3d180b3a1 86532 cupsddk_1.5.3-2.15_all.deb
 5b9b06e07db571f25d6ff8eddd9545d8f632f3d8 255368 libcups2_1.5.3-2.15_amd64.deb
 52d6b0662257a545ca02af57f7f7a053c9d61c15 137354 libcupsimage2_1.5.3-2.15_amd64.deb
 329bae790d18b4e80e3383d3aa118ebe6b2bf165 115774 libcupscgi1_1.5.3-2.15_amd64.deb
 a79706c737d3ff29ee481a70474d3175f71d16bf 103882 libcupsdriver1_1.5.3-2.15_amd64.deb
 52fc2904b1e7d1816648e606953a969127e9b669 98770 libcupsmime1_1.5.3-2.15_amd64.deb
 9fc72f6e0e216e55d45e926b6ed905b2fd0a3d11 138836 libcupsppdc1_1.5.3-2.15_amd64.deb
 9b62da4918fb41e0c2c6d51b07eba96fb7d46f5d 1387632 cups_1.5.3-2.15_amd64.deb
 0a2f6b70bd26dea42421f89c1f80e98359e45b47 180098 cups-client_1.5.3-2.15_amd64.deb
 9e44144feb5cd729d8b6238aa35c6967faed9275 327106 libcups2-dev_1.5.3-2.15_amd64.deb
 eedbc3dddf8f706cb68493c1b9971fe09c06de6d 65306 libcupsimage2-dev_1.5.3-2.15_amd64.deb
 542f2bd2e99a1fc00f26f1b04fd28c302b2a7891 121670 libcupscgi1-dev_1.5.3-2.15_amd64.deb
 46733e62826be53c38ec4978c9b38d8413e72751 106614 libcupsdriver1-dev_1.5.3-2.15_amd64.deb
 efcd6442d71859c777e0c4a42afa647e87eade0f 99600 libcupsmime1-dev_1.5.3-2.15_amd64.deb
 468a70c5c4d615aeaae99ff0d3e1492880a2a68c 156080 libcupsppdc1-dev_1.5.3-2.15_amd64.deb
 10684833f23c3ce7fd88abd53dacbf9eb1f24b85 45608 cups-bsd_1.5.3-2.15_amd64.deb
 e52fff6b8dd70e3a18731ab4b382440b9139062a 116166 cups-ppdc_1.5.3-2.15_amd64.deb
 66e05c84b76a96bae681fed1a5aeb0fde5981fc0 2213770 cups-dbg_1.5.3-2.15_amd64.deb
Checksums-Sha256: 
 bfd8a7a359284f26ccdc3df2ec2a4988bf7cb3c41f2e64d81b27b76482fac221 3260 cups_1.5.3-2.15.dsc
 208191d0e67bccb0b1a88602e32b2ea643b63ce3032b1b649ace39c4163e03c6 373234 cups_1.5.3-2.15.debian.tar.gz
 19f7cfaa8e6fdf6830f07376ded1e368f886aedc0915ad93bd1a99661401862e 902872 cups-common_1.5.3-2.15_all.deb
 33a1ec8b8184baf1c944081fbb7b2a8668624765181e8cbb56e6d8e48d5cdd0c 86532 cupsddk_1.5.3-2.15_all.deb
 83dc229485441e94da8bcea47999e4b89a525298c4d9fffef986500d572d9dfb 255368 libcups2_1.5.3-2.15_amd64.deb
 cd78ff5e64d0aabc420cc5926f0616bb503049eff88d421a84a6941de37c2d00 137354 libcupsimage2_1.5.3-2.15_amd64.deb
 ad9fb9b00ba9ef92e21d4a824dbcd4cbd07714e91700604a76339a9ac6d43dfe 115774 libcupscgi1_1.5.3-2.15_amd64.deb
 5eebe6288274065014935e04e082d82ff183bd2eab45efca2b3a55de3b61b884 103882 libcupsdriver1_1.5.3-2.15_amd64.deb
 2638dd16a16b6825d4aa7d6ad581dbfb1daa307e91919ddb17605b7fe07d10ef 98770 libcupsmime1_1.5.3-2.15_amd64.deb
 47b7dd98d02729856d2aa5d7bf8bba0fba8a8793b289729a4753668a652b2d4e 138836 libcupsppdc1_1.5.3-2.15_amd64.deb
 97d9761bba560436fb6fd1a4d7202b23d1b4809c5eaa6569ef1fd2d9dc0de324 1387632 cups_1.5.3-2.15_amd64.deb
 e8c9fec8c844bb7c7f88cd35ef2b953177ecbb3e4aaf7d220b840730e5fd64b5 180098 cups-client_1.5.3-2.15_amd64.deb
 9f8f6c078097354d7cbe79f167e7f17c90ec245ab97f1b4dfdddc476d15c6a00 327106 libcups2-dev_1.5.3-2.15_amd64.deb
 f08888b9d4cb08d6bf15894e3a3015f1e6b60f8727997f721b3d2a04fed8b4a8 65306 libcupsimage2-dev_1.5.3-2.15_amd64.deb
 837540c9304a4ce53f4bad33cb455d6445f3c247cf316a2818e8f3f9ffbf324d 121670 libcupscgi1-dev_1.5.3-2.15_amd64.deb
 f805e61a426896ef5ee7be8fe9e39a708e54786a558208fac6e150399e8f8505 106614 libcupsdriver1-dev_1.5.3-2.15_amd64.deb
 ddebc7368af0c9d3c6447d2014a0d64686423b5f6e5656fa4991f12fa134ca38 99600 libcupsmime1-dev_1.5.3-2.15_amd64.deb
 d79f662748ceb93630d96f707cc1cc89b62619702f37b905b7e34bb95d2d6a81 156080 libcupsppdc1-dev_1.5.3-2.15_amd64.deb
 0719bcf03c1e6e860652e233a5f0cd80cf2ea99350d106dba71d374df43684b0 45608 cups-bsd_1.5.3-2.15_amd64.deb
 571bd43fcafe4f665a54191d26d7e7f70c1504e75b21ae19a685e94eef8a9f24 116166 cups-ppdc_1.5.3-2.15_amd64.deb
 0c520adc97eac3d00d0d09264e10ce18a0887c2f780f094909837eba488020f5 2213770 cups-dbg_1.5.3-2.15_amd64.deb
Files: 
 36d0d6b118b37c6e54aceb583ff17179 3260 net optional cups_1.5.3-2.15.dsc
 df32b8ed272e110919872003b675ca11 373234 net optional cups_1.5.3-2.15.debian.tar.gz
 be51e29b90ac8f36ef3627d2531c08eb 902872 net optional cups-common_1.5.3-2.15_all.deb
 a94d7c3b0bfc3d442b8d811d6b35e1d3 86532 oldlibs extra cupsddk_1.5.3-2.15_all.deb
 bd45e2e99ae8d3d627343be74395163d 255368 libs optional libcups2_1.5.3-2.15_amd64.deb
 b07ae53bca058f6972a9c8703ee7d184 137354 libs optional libcupsimage2_1.5.3-2.15_amd64.deb
 ab37cc958381dc26b558b6e0a4fa39d4 115774 libs optional libcupscgi1_1.5.3-2.15_amd64.deb
 8ac910f9a9aeaa9aa77ff1b21cc27a39 103882 libs optional libcupsdriver1_1.5.3-2.15_amd64.deb
 60f4686b390cf69df8bad12cec672ff0 98770 libs optional libcupsmime1_1.5.3-2.15_amd64.deb
 9122dd26cb238640e88b048e0160d5bb 138836 libs optional libcupsppdc1_1.5.3-2.15_amd64.deb
 4f08c13bdf79fd8d3c3ab5a537d4be61 1387632 net optional cups_1.5.3-2.15_amd64.deb
 88fe10e598c1e3f8c2c03896c81ebedb 180098 net optional cups-client_1.5.3-2.15_amd64.deb
 f80be8bef168696671a1cfb1c5b14615 327106 libdevel optional libcups2-dev_1.5.3-2.15_amd64.deb
 9d4071f0434f8b9f5246e90324aeda12 65306 libdevel optional libcupsimage2-dev_1.5.3-2.15_amd64.deb
 7c6f01ddae0aae65b3f9a1dacaca29a8 121670 libdevel optional libcupscgi1-dev_1.5.3-2.15_amd64.deb
 cddb1d4ba3d2bea3b4060685df0a4430 106614 libdevel optional libcupsdriver1-dev_1.5.3-2.15_amd64.deb
 2561ca00a3b8ae4186f12cbf90993f57 99600 libdevel optional libcupsmime1-dev_1.5.3-2.15_amd64.deb
 277a72f877549d7a8f3f000bca835a7f 156080 libdevel optional libcupsppdc1-dev_1.5.3-2.15_amd64.deb
 1255f1788e7b708f131947006068bfd8 45608 net extra cups-bsd_1.5.3-2.15_amd64.deb
 fbad34e214eeb3d706a2f4145182dc19 116166 utils optional cups-ppdc_1.5.3-2.15_amd64.deb
 e8f2d532a11b3401247d2d7a4d5f0e3f 2213770 debug extra cups-dbg_1.5.3-2.15_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQGcBAEBCAAGBQJRLfqbAAoJEIvPpx7KFjRVqUoMAITQStWdX62DgTKQu3aocx/r
SsNDbC30eUHNGY3F1EY88YQMS3IYFu6ga+IgEKUvU3xEm8bqL0K84AvTNWGv4cbP
w+noabCwkHG/n4bK+cjlagiChY+ivf8gD5zwRxKuwYcK4knO9fXZ0CCF3IwqUW1A
1qEdFhw+C7WvvmZFswr/03swO5UyWikh5eQEACq65d7I3jdMlvT8vDkj7lL8AFv+
xq+YnuIr6tbh9HnhCVwXV8Ot4U54mpFi0sMTBMBVAyGk5cks1qZ71VAJYAeUTsy/
0tppLYZ9G2BCa7yNboTUVEQUPVn7yzyErUloFa90jxTDnp9GjDXxsWNPpFKtUXvg
HhR9vQYbhH5h+JGhLY4g8BIog1LV+Py+viziCMXgdk5GI6s3Z2LeEk6CTFGcJrfJ
nWfnwYdkDQ0ABHnt3qD1rQ3TIzIE9r0wRQLiB/OqsTGw4RsMcm+irT93rrrCHL0k
ykERGnMjy+MiE/JgxiInJQSsoR8bAbmGZB8hq3PIwQ==
=k/YB
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: