summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/cups/cups.inc
diff options
context:
space:
mode:
authorRoss Burton <ross@burtonini.com>2021-07-13 12:56:30 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-07-19 13:34:26 +0100
commit494e73fbc9b974d23f70572cfe780b4b7030189a (patch)
tree8b59bbb67e146ac2c10683d43b05c2dbb3111a33 /meta/recipes-extended/cups/cups.inc
parent28d3fe177c913eaba68d6172598eced98576f005 (diff)
downloadpoky-494e73fbc9b974d23f70572cfe780b4b7030189a.tar.gz
cups: update to 2.3.3op2
Apple are no longer maintaining CUPS, and future development is now happening under the OpenPrinting project: https://ftp.pwg.org/pub/pwg/liaison/openprinting/presentations/cups-plenary-may-2021.pdf Also stop disabling the manpage installation as manpages are useful, and remove some patch chunks that are not required. The CVE-2020-10001 patch is dropped as this is incorporated into 2.3.3op2. (From OE-Core rev: 53bd9a96a003a7103b8475f9c1ad7ef999e34f87) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/cups/cups.inc')
-rw-r--r--meta/recipes-extended/cups/cups.inc28
1 files changed, 7 insertions, 21 deletions
diff --git a/meta/recipes-extended/cups/cups.inc b/meta/recipes-extended/cups/cups.inc
index be5a11c944..df23825466 100644
--- a/meta/recipes-extended/cups/cups.inc
+++ b/meta/recipes-extended/cups/cups.inc
@@ -8,18 +8,17 @@ SECTION = "console/utils"
8LICENSE = "Apache-2.0" 8LICENSE = "Apache-2.0"
9DEPENDS = "libpng jpeg dbus zlib libusb1" 9DEPENDS = "libpng jpeg dbus zlib libusb1"
10 10
11SRC_URI = "https://github.com/apple/cups/releases/download/v${PV}/${BP}-source.tar.gz \ 11SRC_URI = "https://github.com/OpenPrinting/cups/releases/download/v${PV}/cups-${PV}-source.tar.gz \
12 file://0001-use-echo-only-in-init.patch \ 12 file://0001-use-echo-only-in-init.patch \
13 file://0002-don-t-try-to-run-generated-binaries.patch \ 13 file://0002-don-t-try-to-run-generated-binaries.patch \
14 file://0003-cups_1.4.6.bb-Fix-build-on-ppc64.patch \ 14 file://libexecdir.patch \
15 file://0004-cups-fix-multilib-install-file-conflicts.patch \ 15 file://0004-cups-fix-multilib-install-file-conflicts.patch \
16 file://volatiles.99_cups \ 16 file://volatiles.99_cups \
17 file://cups-volatiles.conf \ 17 file://cups-volatiles.conf \
18 file://CVE-2020-10001.patch \
19 " 18 "
20 19
21UPSTREAM_CHECK_URI = "https://github.com/apple/cups/releases" 20UPSTREAM_CHECK_URI = "https://github.com/OpenPrinting/cups/releases"
22UPSTREAM_CHECK_REGEX = "cups-(?P<pver>\d+\.\d+(\.\d+)?)-source.tar" 21UPSTREAM_CHECK_REGEX = "cups-(?P<pver>.+)-source.tar"
23 22
24# Issue only applies to MacOS 23# Issue only applies to MacOS
25CVE_CHECK_WHITELIST += "CVE-2008-1033" 24CVE_CHECK_WHITELIST += "CVE-2008-1033"
@@ -37,7 +36,7 @@ inherit autotools-brokensep binconfig useradd systemd pkgconfig multilib_script
37USERADD_PACKAGES = "${PN}" 36USERADD_PACKAGES = "${PN}"
38GROUPADD_PARAM_${PN} = "--system lpadmin" 37GROUPADD_PARAM_${PN} = "--system lpadmin"
39 38
40SYSTEMD_SERVICE_${PN} = "org.cups.cupsd.socket org.cups.cupsd.path org.cups.cupsd.service org.cups.cups-lpd.socket" 39SYSTEMD_SERVICE_${PN} = "cups.socket cups.path cups.service cups-lpd.socket"
41 40
42PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'zeroconf', 'avahi', '', d)} \ 41PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'zeroconf', 'avahi', '', d)} \
43 ${@bb.utils.filter('DISTRO_FEATURES', 'pam systemd', d)}" 42 ${@bb.utils.filter('DISTRO_FEATURES', 'pam systemd', d)}"
@@ -63,20 +62,8 @@ EXTRA_OECONF = " \
63 62
64EXTRA_AUTORECONF += "--exclude=autoheader" 63EXTRA_AUTORECONF += "--exclude=autoheader"
65 64
66do_compile () {
67 echo "all:" > man/Makefile
68 echo "libs:" >> man/Makefile
69 echo "install:" >> man/Makefile
70 echo "install-data:" >> man/Makefile
71 echo "install-exec:" >> man/Makefile
72 echo "install-headers:" >> man/Makefile
73 echo "install-libs:" >> man/Makefile
74
75 oe_runmake
76}
77
78do_install () { 65do_install () {
79 oe_runmake "DSTROOT=${D}" install 66 oe_runmake "DESTDIR=${D}" install
80 67
81 # Remove /var/run from package as cupsd will populate it on startup 68 # Remove /var/run from package as cupsd will populate it on startup
82 rm -fr ${D}/${localstatedir}/run 69 rm -fr ${D}/${localstatedir}/run
@@ -105,8 +92,7 @@ do_install () {
105PACKAGES =+ "${PN}-lib ${PN}-libimage" 92PACKAGES =+ "${PN}-lib ${PN}-libimage"
106 93
107RDEPENDS_${PN} += "${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'procps', '', d)}" 94RDEPENDS_${PN} += "${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'procps', '', d)}"
108FILES_${PN} += "${libexecdir}/cups/ \ 95FILES_${PN} += "${libexecdir}/cups/"
109 "
110 96
111FILES_${PN}-lib = "${libdir}/libcups.so.*" 97FILES_${PN}-lib = "${libdir}/libcups.so.*"
112 98