summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/cups
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2025-11-07 13:31:53 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-11-07 13:31:53 +0000
commit8c22ff0d8b70d9b12f0487ef696a7e915b9e3173 (patch)
treeefdc32587159d0050a69009bdf2330a531727d95 /meta/recipes-extended/cups
parentd412d2747595c1cc4a5e3ca975e3adc31b2f7891 (diff)
downloadpoky-8c22ff0d8b70d9b12f0487ef696a7e915b9e3173.tar.gz
The poky repository master branch is no longer being updated.
You can either: a) switch to individual clones of bitbake, openembedded-core, meta-yocto and yocto-docs b) use the new bitbake-setup You can find information about either approach in our documentation: https://docs.yoctoproject.org/ Note that "poky" the distro setting is still available in meta-yocto as before and we continue to use and maintain that. Long live Poky! Some further information on the background of this change can be found in: https://lists.openembedded.org/g/openembedded-architecture/message/2179 Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/cups')
-rw-r--r--meta/recipes-extended/cups/cups.inc117
-rw-r--r--meta/recipes-extended/cups/cups/0001-use-echo-only-in-init.patch24
-rw-r--r--meta/recipes-extended/cups/cups/0002-don-t-try-to-run-generated-binaries.patch27
-rw-r--r--meta/recipes-extended/cups/cups/0004-cups-fix-multilib-install-file-conflicts.patch29
-rw-r--r--meta/recipes-extended/cups/cups/cups-volatiles.conf1
-rw-r--r--meta/recipes-extended/cups/cups/libexecdir.patch34
-rw-r--r--meta/recipes-extended/cups/cups/volatiles.99_cups2
-rw-r--r--meta/recipes-extended/cups/cups_2.4.14.bb5
8 files changed, 0 insertions, 239 deletions
diff --git a/meta/recipes-extended/cups/cups.inc b/meta/recipes-extended/cups/cups.inc
deleted file mode 100644
index 24ebcc4aae..0000000000
--- a/meta/recipes-extended/cups/cups.inc
+++ /dev/null
@@ -1,117 +0,0 @@
1SUMMARY = "An Internet printing system for Unix"
2DESCRIPTION = "The Common UNIX Printing System is a printing system and \
3general replacement for lpd and the like. It supports the Internet Printing \
4Protocol (IPP), and has its own filtering driver model for handling various \
5document types."
6HOMEPAGE = "https://www.cups.org/"
7SECTION = "console/utils"
8LICENSE = "Apache-2.0"
9DEPENDS = "libpng jpeg dbus zlib libusb1"
10
11SRC_URI = "${GITHUB_BASE_URI}/download/v${PV}/cups-${PV}-source.tar.gz \
12 file://0001-use-echo-only-in-init.patch \
13 file://0002-don-t-try-to-run-generated-binaries.patch \
14 file://libexecdir.patch \
15 file://0004-cups-fix-multilib-install-file-conflicts.patch \
16 file://volatiles.99_cups \
17 file://cups-volatiles.conf \
18 "
19
20GITHUB_BASE_URI = "https://github.com/OpenPrinting/cups/releases"
21
22CVE_STATUS[CVE-2008-1033] = "not-applicable-platform: Issue only applies to MacOS"
23CVE_STATUS[CVE-2009-0032] = "cpe-incorrect: Issue affects pdfdistiller plugin used with but not part of cups"
24CVE_STATUS[CVE-2018-6553] = "not-applicable-platform: This is an Ubuntu only issue"
25CVE_STATUS[CVE-2022-26691] = "fixed-version: This is fixed in 2.4.2 but the cve-check class still reports it"
26
27LEAD_SONAME = "libcupsdriver.so"
28
29CLEANBROKEN = "1"
30
31inherit autotools-brokensep binconfig useradd systemd pkgconfig multilib_script github-releases
32
33USERADD_PACKAGES = "${PN}"
34GROUPADD_PARAM:${PN} = "--system lpadmin"
35
36SYSTEMD_SERVICE:${PN} = "cups.socket cups.path cups.service cups-lpd.socket"
37
38PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'zeroconf', 'avahi', '', d)} \
39 ${@bb.utils.filter('DISTRO_FEATURES', 'pam systemd', d)} \
40 openssl \
41"
42PACKAGECONFIG[avahi] = "--with-dnssd=avahi,--with-dnssd=no,avahi"
43PACKAGECONFIG[acl] = "--enable-acl,--disable-acl,acl"
44PACKAGECONFIG[gnutls] = "--with-tls=gnutls,,gnutls,,,openssl"
45PACKAGECONFIG[openssl] = "--with-tls=openssl,,openssl,,,gnutls"
46PACKAGECONFIG[pam] = "--enable-pam --with-pam-module=unix, --disable-pam, libpam"
47PACKAGECONFIG[systemd] = "--with-systemd=${systemd_system_unitdir},--without-systemd,systemd"
48PACKAGECONFIG[xinetd] = "--with-xinetd=${sysconfdir}/xinetd.d,--without-xinetd,xinetd"
49PACKAGECONFIG[webif] = "--enable-webif,--disable-webif"
50
51EXTRA_OECONF = " \
52 --enable-dbus \
53 --with-dbusdir=${sysconfdir}/dbus-1 \
54 --enable-browsing \
55 --disable-gssapi \
56 --enable-debug \
57 --disable-relro \
58 --enable-libusb \
59 --with-system-groups=lpadmin,root,sys,wheel \
60 --with-cups-group=lp \
61 --with-domainsocket=/run/cups/cups.sock \
62 --with-pkgconfpath=${libdir}/pkgconfig \
63 DSOFLAGS='${LDFLAGS}' \
64 "
65
66EXTRA_AUTORECONF += "--exclude=autoheader"
67
68do_install () {
69 oe_runmake "BUILDROOT=${D}" install
70
71 # Remove /var/run from package as cupsd will populate it on startup
72 rm -fr ${D}/${localstatedir}/run
73 rm -fr ${D}/${localstatedir}/log
74 rmdir ${D}/${libexecdir}/${BPN}/driver
75
76 # Fix the pam configuration file permissions
77 if ${@bb.utils.contains('PACKAGECONFIG', 'pam', 'true', 'false', d)}; then
78 chmod 0644 ${D}${sysconfdir}/pam.d/cups
79 fi
80
81 # Remove sysinit script and symlinks if sysvinit is not in DISTRO_FEATURES
82 if ${@bb.utils.contains('DISTRO_FEATURES','sysvinit','false','true',d)}; then
83 rm -rf ${D}${sysconfdir}/init.d/
84 rm -rf ${D}${sysconfdir}/rc*
85 install -d ${D}${sysconfdir}/tmpfiles.d
86 install -m 0644 ${UNPACKDIR}/cups-volatiles.conf \
87 ${D}${sysconfdir}/tmpfiles.d/cups.conf
88 else
89 install -d ${D}${sysconfdir}/default/volatiles
90 install -m 0644 ${UNPACKDIR}/volatiles.99_cups \
91 ${D}${sysconfdir}/default/volatiles/99_cups
92 fi
93}
94
95PACKAGES =+ "${PN}-lib ${PN}-libimage ${PN}-webif"
96
97RDEPENDS:${PN} += "${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'procps', '', d)}"
98FILES:${PN} += "${libexecdir}/cups/ ${systemd_system_unitdir}/system-cups.slice"
99
100FILES:${PN}-lib = "${libdir}/libcups.so.*"
101
102FILES:${PN}-libimage = "${libdir}/libcupsimage.so.*"
103
104# put the html for the web interface into its own PACKAGE
105FILES:${PN}-webif += "${datadir}/doc/cups/ ${datadir}/icons/"
106RRECOMMENDS:${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'webif', '${PN}-webif', '', d)}"
107
108CONFFILES:${PN} += "${sysconfdir}/cups/cupsd.conf"
109
110MULTILIB_SCRIPTS = "${PN}-dev:${bindir}/cups-config"
111
112LOCALE_PATHS += "${datadir}/cups/templates"
113
114SYSROOT_PREPROCESS_FUNCS += "cups_sysroot_preprocess"
115cups_sysroot_preprocess () {
116 sed -i ${SYSROOT_DESTDIR}${bindir_crossscripts}/cups-config -e 's:cups_datadir=.*:cups_datadir=${datadir}/cups:' -e 's:cups_serverbin=.*:cups_serverbin=${libexecdir}/cups:'
117}
diff --git a/meta/recipes-extended/cups/cups/0001-use-echo-only-in-init.patch b/meta/recipes-extended/cups/cups/0001-use-echo-only-in-init.patch
deleted file mode 100644
index c0cb7df581..0000000000
--- a/meta/recipes-extended/cups/cups/0001-use-echo-only-in-init.patch
+++ /dev/null
@@ -1,24 +0,0 @@
1From c5f943b1ac6e1c86ae64686e29e178fedf933e96 Mon Sep 17 00:00:00 2001
2From: Saul Wold <sgw@linux.intel.com>
3Date: Thu, 13 Dec 2012 19:03:52 -0800
4Subject: [PATCH] use echo only in init
5
6Upstream-Status: Inappropriate [embedded specific]
7Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
8---
9 scheduler/cups.sh.in | 2 +-
10 1 file changed, 1 insertion(+), 1 deletion(-)
11
12diff --git a/scheduler/cups.sh.in b/scheduler/cups.sh.in
13index 74cce18..c57f0db 100644
14--- a/scheduler/cups.sh.in
15+++ b/scheduler/cups.sh.in
16@@ -51,7 +51,7 @@ case "`uname`" in
17 ECHO_ERROR=:
18 ;;
19
20- Linux*)
21+ DisableLinux*)
22 IS_ON=/bin/true
23 if test -f /etc/init.d/functions; then
24 . /etc/init.d/functions
diff --git a/meta/recipes-extended/cups/cups/0002-don-t-try-to-run-generated-binaries.patch b/meta/recipes-extended/cups/cups/0002-don-t-try-to-run-generated-binaries.patch
deleted file mode 100644
index cf2f1a6747..0000000000
--- a/meta/recipes-extended/cups/cups/0002-don-t-try-to-run-generated-binaries.patch
+++ /dev/null
@@ -1,27 +0,0 @@
1From da9a313ae5a2d1da683dd58572df0d7a660eb922 Mon Sep 17 00:00:00 2001
2From: Koen Kooi <koen@dominion.thruhere.net>
3Date: Sun, 30 Jan 2011 16:37:27 +0100
4Subject: [PATCH] don't try to run generated binaries
5
6Upstream-Status: Inappropriate [embedded specific]
7
8Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
9---
10 ppdc/Makefile | 4 ++--
11 1 file changed, 2 insertions(+), 2 deletions(-)
12
13diff --git a/ppdc/Makefile b/ppdc/Makefile
14index e36ed11..3fe97e1 100644
15--- a/ppdc/Makefile
16+++ b/ppdc/Makefile
17@@ -187,8 +187,8 @@ genstrings: genstrings.o libcupsppdc.a ../cups/$(LIBCUPSSTATIC) \
18 $(LD_CXX) $(ARCHFLAGS) $(ALL_LDFLAGS) -o genstrings genstrings.o \
19 libcupsppdc.a $(LINKCUPSSTATIC)
20 $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@
21- echo Generating localization strings...
22- ./genstrings >sample.c
23+# echo Generating localization strings...
24+# ./genstrings >sample.c
25
26
27 #
diff --git a/meta/recipes-extended/cups/cups/0004-cups-fix-multilib-install-file-conflicts.patch b/meta/recipes-extended/cups/cups/0004-cups-fix-multilib-install-file-conflicts.patch
deleted file mode 100644
index 31338822e6..0000000000
--- a/meta/recipes-extended/cups/cups/0004-cups-fix-multilib-install-file-conflicts.patch
+++ /dev/null
@@ -1,29 +0,0 @@
1From 880bad2c6b08afd2e2e303bc3ceea559edbe76d2 Mon Sep 17 00:00:00 2001
2From: Kai Kang <kai.kang@windriver.com>
3Date: Wed, 3 Oct 2018 00:27:11 +0800
4Subject: [PATCH] cups: fix multilib install file conflicts
5
6@CUPS_SERVERBIN@ is ${libdir} related that causes multilib install file
7conflict. Remove @CUPS_SERVERBIN@ from the comment line of cups-files.conf to
8avoid the conflict.
9
10Upstream-Status: Inappropriate [OE specific]
11
12Signed-off-by: Kai Kang <kai.kang@windriver.com>
13---
14 conf/cups-files.conf.in | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
16
17diff --git a/conf/cups-files.conf.in b/conf/cups-files.conf.in
18index f96f745..27d8be9 100644
19--- a/conf/cups-files.conf.in
20+++ b/conf/cups-files.conf.in
21@@ -70,7 +70,7 @@ PageLog @CUPS_LOGDIR@/page_log
22 #RequestRoot @CUPS_REQUESTS@
23
24 # Location of helper programs...
25-#ServerBin @CUPS_SERVERBIN@
26+#ServerBin
27
28 # SSL/TLS keychain for the scheduler...
29 #ServerKeychain @CUPS_SERVERKEYCHAIN@
diff --git a/meta/recipes-extended/cups/cups/cups-volatiles.conf b/meta/recipes-extended/cups/cups/cups-volatiles.conf
deleted file mode 100644
index 0ede78e1c8..0000000000
--- a/meta/recipes-extended/cups/cups/cups-volatiles.conf
+++ /dev/null
@@ -1 +0,0 @@
1d /var/log/cups 0755 root root -
diff --git a/meta/recipes-extended/cups/cups/libexecdir.patch b/meta/recipes-extended/cups/cups/libexecdir.patch
deleted file mode 100644
index 493c7970ea..0000000000
--- a/meta/recipes-extended/cups/cups/libexecdir.patch
+++ /dev/null
@@ -1,34 +0,0 @@
1From 4ae7ad87aa022f5128be222dffbf0c50ec6e846e Mon Sep 17 00:00:00 2001
2From: Ross Burton <ross.burton@arm.com>
3Date: Tue, 13 Jul 2021 12:56:30 +0100
4Subject: [PATCH] Use $libexecdir instead of hardcoding $prefix/lib as this
5 breaks multilib builds.
6
7Upstream-Status: Pending
8Signed-off-by: Ross Burton <ross.burton@arm.com>
9---
10 config-scripts/cups-directories.m4 | 4 ++--
11 1 file changed, 2 insertions(+), 2 deletions(-)
12
13diff --git a/config-scripts/cups-directories.m4 b/config-scripts/cups-directories.m4
14index 069ee7b..2f67e5b 100644
15--- a/config-scripts/cups-directories.m4
16+++ b/config-scripts/cups-directories.m4
17@@ -239,7 +239,7 @@ AC_SUBST([CUPS_REQUESTS])
18 AS_CASE(["$host_os_name"], [*-gnu], [
19 # GNUs
20 INSTALL_SYSV="install-sysv"
21- CUPS_SERVERBIN="$exec_prefix/lib/cups"
22+ CUPS_SERVERBIN="$libexecdir/cups"
23 ], [*bsd* | darwin*], [
24 # *BSD and Darwin (macOS)
25 INSTALL_SYSV=""
26@@ -247,7 +247,7 @@ AS_CASE(["$host_os_name"], [*-gnu], [
27 ], [*], [
28 # All others
29 INSTALL_SYSV="install-sysv"
30- CUPS_SERVERBIN="$exec_prefix/lib/cups"
31+ CUPS_SERVERBIN="$libexecdir/cups"
32 ])
33
34 AC_DEFINE_UNQUOTED([CUPS_SERVERBIN], ["$CUPS_SERVERBIN"], [Location of server programs.])
diff --git a/meta/recipes-extended/cups/cups/volatiles.99_cups b/meta/recipes-extended/cups/cups/volatiles.99_cups
deleted file mode 100644
index cc0e19e4c8..0000000000
--- a/meta/recipes-extended/cups/cups/volatiles.99_cups
+++ /dev/null
@@ -1,2 +0,0 @@
1# <type> <owner> <group> <mode> <path> <linksource>
2d root root 0755 /var/log/cups none
diff --git a/meta/recipes-extended/cups/cups_2.4.14.bb b/meta/recipes-extended/cups/cups_2.4.14.bb
deleted file mode 100644
index 5d5a1dc97f..0000000000
--- a/meta/recipes-extended/cups/cups_2.4.14.bb
+++ /dev/null
@@ -1,5 +0,0 @@
1require cups.inc
2
3LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
4
5SRC_URI[sha256sum] = "660288020dd6f79caf799811c4c1a3207a48689899ac2093959d70a3bdcb7699"