On 2/22/21 12:51 AM, Oleksandr Kravchuk wrote:
Kai -

Could you please verify and confirm the fix is correct?

OK. I'll test the v2 patch.

Regards,
Kai


On 21/02/2021 17:49, Oleksandr Kravchuk wrote:
When running under systemd, cups needs to be configured with
'--with-rundir=/run/cups', as systemd takes an exception to the
activation socket being under /var/run and relocates it.

This leads to fd duplication in cupsd and an inadvertent closure of the
activation socket when the daemon exits due to inactivity, so that the
daemon cannot be activated again.

[YOCTO #14152]

Signed-off-by: Oleksandr Kravchuk <[email protected]>
---
  meta/recipes-extended/cups/cups.inc | 5 +++++
  1 file changed, 5 insertions(+)

diff --git a/meta/recipes-extended/cups/cups.inc b/meta/recipes-extended/cups/cups.inc
index e7a704134c..a8e8d115da 100644
--- a/meta/recipes-extended/cups/cups.inc
+++ b/meta/recipes-extended/cups/cups.inc
@@ -56,8 +56,11 @@ EXTRA_OECONF = " \
                 --enable-libusb \
                 --with-domainsocket=/run/cups/cups.sock \
                 DSOFLAGS='${LDFLAGS}' \
+               ${EXTRA_OECONF_SYSTEMD} \
                 "
  +EXTRA_OECONF_SYSTEMD = "${@bb.utils.contains('DISTRO_FEATURES','systemd','--with-rundir=/run/cups','',d)}"
+
  EXTRA_AUTORECONF += "--exclude=autoheader"
    do_compile () {
@@ -105,6 +108,8 @@ RDEPENDS_${PN} += "${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'procps',
  FILES_${PN} += "${libexecdir}/cups/ \
             "
  +FILES_${PN} += "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '/run/cups/certs', '', d)}"
+
  FILES_${PN}-lib = "${libdir}/libcups.so.*"
    FILES_${PN}-libimage = "${libdir}/libcupsimage.so.*"


--
Kai Kang
Wind River Linux

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#148417): 
https://lists.openembedded.org/g/openembedded-core/message/148417
Mute This Topic: https://lists.openembedded.org/mt/80803907/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to