mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
extra/cups to 2.2.12-1
This commit is contained in:
parent
169e18007a
commit
f2cd03d6b0
3 changed files with 6 additions and 58 deletions
|
@ -5,8 +5,8 @@
|
|||
|
||||
pkgbase="cups"
|
||||
pkgname=('libcups' 'cups')
|
||||
pkgver=2.2.11
|
||||
pkgrel=2
|
||||
pkgver=2.2.12
|
||||
pkgrel=1
|
||||
arch=('x86_64')
|
||||
license=('GPL')
|
||||
url="https://www.cups.org/"
|
||||
|
@ -23,9 +23,8 @@ source=(https://github.com/apple/cups/releases/download/v${pkgver}/cups-${pkgver
|
|||
cups-1.6.2-statedir.patch
|
||||
# bugfixes
|
||||
cups-systemd-socket.patch
|
||||
guid.patch
|
||||
samsung-printer-workaround.patch)
|
||||
sha256sums=('f58010813fd6903f690cdb0c0b91e4d1bc9e5b9570c28734229ba3ed2908b76c'
|
||||
guid.patch)
|
||||
sha256sums=('0f61ab449e4748a24c6ab355b481ff7691247a140d327b2b7526fce34b7f9aa8'
|
||||
'SKIP'
|
||||
'd87fa0f0b5ec677aae34668f260333db17ce303aa1a752cba5f8e72623d9acf9'
|
||||
'57dfd072fd7ef0018c6b0a798367aac1abb5979060ff3f9df22d1048bb71c0d5'
|
||||
|
@ -33,9 +32,8 @@ sha256sums=('f58010813fd6903f690cdb0c0b91e4d1bc9e5b9570c28734229ba3ed2908b76c'
|
|||
'ff3eb0782af0405f5dafe89e04b1b4ea7a49afc5496860d724343bd04f375832'
|
||||
'b8fc2e3bc603495f0278410350ea8f0161d9d83719feb64f573b63430cb4800b'
|
||||
'23349c96f2f7aeb7d48e3bcd35a969f5d5ac8f55a032b0cfaa0a03d7e37ea9af'
|
||||
'f909719e2595e016c320afa421cad74ccda285ac59b11749ddac58e707d4330a'
|
||||
'd4537526c1e075866ae22ad263da000fc2a592d36c26b79a459a1cfdade2bb2d'
|
||||
'ae3e154b8382f3412c73d863f4db095e722eb5255e15f0684b2bb9e02e5438af')
|
||||
'9d6e9c46e009c54563e7c9e140484af83874747fe371569a982a082e6877a283'
|
||||
'd4537526c1e075866ae22ad263da000fc2a592d36c26b79a459a1cfdade2bb2d')
|
||||
validpgpkeys=('3737FD0D0E63B30172440D2DDBA3A7AB08D76223') # CUPS.org (CUPS.org PGP key) <security@cups.org>
|
||||
validpgpkeys+=('45D083946E3035282B3CCA9AF434104235DA97EB') # "CUPS.org <security@cups.org>"
|
||||
validpgpkeys+=('845464660B686AAB36540B6F999559A027815955') # "Michael R Sweet <michael.r.sweet@gmail.com>"
|
||||
|
@ -58,9 +56,6 @@ prepare() {
|
|||
# FS#56818 - https://github.com/apple/cups/issues/5236
|
||||
patch -Np1 -i ${srcdir}/guid.patch
|
||||
|
||||
# FS#62360 / https://github.com/apple/cups/issues/5562
|
||||
patch -Np1 -i ${srcdir}/samsung-printer-workaround.patch
|
||||
|
||||
# set MaxLogSize to 0 to prevent using cups internal log rotation
|
||||
sed -i -e '5i\ ' conf/cupsd.conf.in
|
||||
sed -i -e '6i# Disable cups internal logging - use logrotate instead' conf/cupsd.conf.in
|
||||
|
|
|
@ -30,20 +30,3 @@ diff -up cups-2.0.2/scheduler/org.cups.cupsd.path.in.ustTJg cups-2.0.2/scheduler
|
|||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
diff -up cups-2.0.2/scheduler/org.cups.cupsd.service.in.ustTJg cups-2.0.2/scheduler/org.cups.cupsd.service.in
|
||||
--- cups-2.0.2/scheduler/org.cups.cupsd.service.in.ustTJg 2014-10-21 13:55:01.000000000 +0200
|
||||
+++ cups-2.0.2/scheduler/org.cups.cupsd.service.in 2015-02-10 13:40:24.296545049 +0100
|
||||
@@ -1,10 +1,11 @@
|
||||
[Unit]
|
||||
Description=CUPS Scheduler
|
||||
Documentation=man:cupsd(8)
|
||||
+After=network.target
|
||||
|
||||
[Service]
|
||||
ExecStart=@sbindir@/cupsd -l
|
||||
-Type=simple
|
||||
+Type=notify
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
|
||||
|
|
|
@ -1,30 +0,0 @@
|
|||
diff --git a/cups/ppd.c b/cups/ppd.c
|
||||
index 435b992f4..29456d97a 100644
|
||||
--- a/cups/ppd.c
|
||||
+++ b/cups/ppd.c
|
||||
@@ -1182,6 +1182,24 @@ _ppdOpen(
|
||||
else if (!strcmp(string, "Plus90"))
|
||||
ppd->landscape = 90;
|
||||
}
|
||||
+ else if (!strcmp(keyword, "Emulators") && string && ppd->num_emulations == 0)
|
||||
+ {
|
||||
+ /*
|
||||
+ * Issue #5562: Samsung printer drivers incorrectly use Emulators keyword
|
||||
+ * to configure themselves
|
||||
+ *
|
||||
+ * The Emulators keyword was loaded but never used by anything in CUPS,
|
||||
+ * and has no valid purpose in CUPS. The old code was removed due to a
|
||||
+ * memory leak (Issue #5475), so the following (new) code supports a single
|
||||
+ * name for the Emulators keyword, allowing these drivers to work until we
|
||||
+ * remove PPD and driver support entirely in a future version of CUPS.
|
||||
+ */
|
||||
+
|
||||
+ ppd->num_emulations = 1;
|
||||
+ ppd->emulations = calloc(1, sizeof(ppd_emul_t));
|
||||
+
|
||||
+ strlcpy(ppd->emulations[0].name, string, sizeof(ppd->emulations[0].name));
|
||||
+ }
|
||||
else if (!strcmp(keyword, "JobPatchFile"))
|
||||
{
|
||||
/*
|
||||
|
Loading…
Reference in a new issue