Skip to contentSkip to conversation

pcsc-lite: install systemd system units

PATCH Superseded Wang Mingyu 2 participants 6 messages Aug 3 – Aug 13

v2 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 pcsc-lite: install systemd system units

From: Wang Mingyu <[email protected]>

pcsc-lite 2.5.0 defaults to installing systemd user units, which leaves the package without a system-level pcscd.service while SYSTEMD_SERVICE still enables pcscd.socket. On target systems this makes systemctl status pcscd fail, and systemctl --user start pcscd can fail because the user unit requires polkit.service from the user manager.

Select upstream Meson systemdunit=system so pcscd.service and pcscd.socket are installed as system units. Keep upstream sysusers.d packaging so systemd-sysusers can create the pcscd system user required by the generated service and socket units.

---
 meta-oe/recipes-support/pcsc-lite/pcsc-lite_2.5.1.bb | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)
meta-oe/recipes-support/pcsc-lite/pcsc-lite_2.5.1.bb +5 -7
index ae20447050..bf0b45dd14 100644
@@ -18,6 +18,7 @@ inherit meson systemd pkgconfig perlnative
 
 EXTRA_OEMESON = " \
     -Dlibusb=false \
+    -Dsystemdunit=system \
     -Dusbdropdir=${libdir}/pcsc/drivers \
 "
 
@@ -38,7 +39,10 @@ RPROVIDES:${PN}:append:class-native = " pcsc-lite-lib-native"
 
 FILES:${PN} = "${sbindir}/pcscd \
                ${datadir}/polkit-1 \
-               ${nonarch_libdir}/systemd/user \
+               ${systemd_system_unitdir}/pcscd.service \
+               ${systemd_system_unitdir}/pcscd.socket \
+               ${libdir}/sysusers.d \
+               ${exec_prefix}/sysusers.d \
                ${sysconfdir}/default/pcscd"
 FILES:${PN}-lib = "${libdir}/libpcsclite*${SOLIBS}"
 FILES:${PN}-dev = "${includedir} \
@@ -54,12 +58,6 @@ FILES:${PN}-spy-dev = "${libdir}/libpcscspy.la \
 
 do_install:append() {
     rm -rf ${D}${datadir}/metainfo
-    # pcsc-lite installs pcscd-sysusers.conf into systemd's sysusersdir when
-    # the systemd pkg-config variable is available (${libdir}/sysusers.d),
-    # and falls back to ${exec_prefix}/sysusers.d otherwise. Drop both so the
-    # file is not left unpackaged (installed-vs-shipped QA).
-    rm -rf ${D}${libdir}/sysusers.d
-    rm -rf ${D}${exec_prefix}/sysusers.d
 }
 
 RPROVIDES:${PN} += "${PN}-systemd"
Signature · 1 line
2.43.0
#1 lore raw

seeing this now

ERROR: pcsc-lite-2.5.1-r0 do_package: QA Issue: pcsc-lite:
Files/directories were installed but not shipped in any package:
/usr/lib/systemd
/usr/lib/systemd/system /usr/lib/systemd/system/pcscd.service /usr/lib/systemd/system/pcscd.socket
Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.
pcsc-lite: 4 installed and not shipped files. [installed-vs-shipped]

Quoted 74 lines · wangmy via lists.openembedded.org

From: Wang Mingyu <[email protected]>

pcsc-lite 2.5.0 defaults to installing systemd user units, which leaves the package without a system-level pcscd.service while SYSTEMD_SERVICE still enables pcscd.socket. On target systems this makes systemctl status pcscd fail, and systemctl --user start pcscd can fail because the user unit requires polkit.service from the user manager.

Select upstream Meson systemdunit=system so pcscd.service and pcscd.socket are installed as system units. Keep upstream sysusers.d packaging so systemd-sysusers can create the pcscd system user required by the generated service and socket units.

---
 meta-oe/recipes-support/pcsc-lite/pcsc-lite_2.5.1.bb | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)
meta-oe/recipes-support/pcsc-lite/pcsc-lite_2.5.1.bb +1 -0
index ae20447050..bf0b45dd14 100644
@@ -18,6 +18,7 @@ inherit meson systemd pkgconfig perlnative
 
 EXTRA_OEMESON = " \
     -Dlibusb=false \
+    -Dsystemdunit=system \
     -Dusbdropdir=${libdir}/pcsc/drivers \
 "
 
@@ -38,7 +39,10 @@ RPROVIDES:${PN}:append:class-native = "

pcsc-lite-lib-native"

 FILES:${PN} = "${sbindir}/pcscd \
                ${datadir}/polkit-1 \
meta-oe/recipes-support/pcsc-lite/pcsc-lite_2.5.1.bb +4 -2
-               ${nonarch_libdir}/systemd/user \
+               ${systemd_system_unitdir}/pcscd.service \
+               ${systemd_system_unitdir}/pcscd.socket \
+               ${libdir}/sysusers.d \
+               ${exec_prefix}/sysusers.d \
                ${sysconfdir}/default/pcscd"
 FILES:${PN}-lib = "${libdir}/libpcsclite*${SOLIBS}"
 FILES:${PN}-dev = "${includedir} \
@@ -54,12 +58,6 @@ FILES:${PN}-spy-dev = "${libdir}/libpcscspy.la \
 
 do_install:append() {
     rm -rf ${D}${datadir}/metainfo
-    # pcsc-lite installs pcscd-sysusers.conf into systemd's sysusersdir

when

meta-oe/recipes-support/pcsc-lite/pcsc-lite_2.5.1.bb +0 -2
-    # the systemd pkg-config variable is available (${libdir}/sysusers.d),
-    # and falls back to ${exec_prefix}/sysusers.d otherwise. Drop both so

the

meta-oe/recipes-support/pcsc-lite/pcsc-lite_2.5.1.bb +0 -4
-    # file is not left unpackaged (installed-vs-shipped QA).
-    rm -rf ${D}${libdir}/sysusers.d
-    rm -rf ${D}${exec_prefix}/sysusers.d
 }
 
 RPROVIDES:${PN} += "${PN}-systemd"
--

2.43.0

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

#2 lore raw

Hello,
Thank you for reporting this issue.
I have been trying to reproduce the installed-vs-shipped error for pcsc-lite on my side, but unfortunately I cannot trigger it on either aarch64 or x86_64 builds with my current configuration. The patch I submitted seems to work fine in my environment. To help me understand what is the problem, could you please provide the test details?

--
Best Regards
---------------------------------------------------
Wang Mingyu
FUJITSU NANJING SOFTWARE TECHNOLOGY CO., LTD. (FNST) No.6 Wenzhu Road, Nanjing, 210012, China TEL:+86+25-86630566--8568
COINS: 79988548
FAX: +86+25-83317685
MAIL: [email protected]<mailto:[email protected]>

From: Khem Raj <[email protected]>
Sent: Monday, August 3, 2026 11:51 PM
To: Wang, Mingyu/王 鸣瑜 <[email protected]>
Cc: [email protected]
Subject: Re: [oe] [meta-oe] [PATCH v2] pcsc-lite: install systemd system units

seeing this now

ERROR: pcsc-lite-2.5.1-r0 do_package: QA Issue: pcsc-lite: Files/directories were installed but not shipped in any package:

/usr/lib/systemd

/usr/lib/systemd/system

/usr/lib/systemd/system/pcscd.service

/usr/lib/systemd/system/pcscd.socket

Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.

pcsc-lite: 4 installed and not shipped files. [installed-vs-shipped]

On Sun, Aug 2, 2026 at 8:14 PM wangmy via lists.openembedded.org<http://lists.openembedded.org> <[email protected]<mailto:[email protected]>> wrote:
From: Wang Mingyu <[email protected]<mailto:[email protected]>>

pcsc-lite 2.5.0 defaults to installing systemd user units, which leaves the package without a system-level pcscd.service while SYSTEMD_SERVICE still enables pcscd.socket. On target systems this makes systemctl status pcscd fail, and systemctl --user start pcscd can fail because the user unit requires polkit.service from the user manager.

Select upstream Meson systemdunit=system so pcscd.service and pcscd.socket are installed as system units. Keep upstream sysusers.d packaging so systemd-sysusers can create the pcscd system user required by the generated service and socket units.

---
 meta-oe/recipes-support/pcsc-lite/pcsc-lite_2.5.1.bb<http://pcsc-lite_2.5.1.bb> | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)
meta-oe/recipes-support/pcsc-lite/pcsc-lite_2.5.1.bb<http://pcsc-lite_2.5.1.bb> +5 -7
index ae20447050..bf0b45dd14 100644
@@ -18,6 +18,7 @@ inherit meson systemd pkgconfig perlnative
 
 EXTRA_OEMESON = " \
     -Dlibusb=false \
+    -Dsystemdunit=system \
     -Dusbdropdir=${libdir}/pcsc/drivers \
 "
 
@@ -38,7 +39,10 @@ RPROVIDES:${PN}:append:class-native = " pcsc-lite-lib-native"
 
 FILES:${PN} = "${sbindir}/pcscd \
                ${datadir}/polkit-1 \
-               ${nonarch_libdir}/systemd/user \
+               ${systemd_system_unitdir}/pcscd.service \
+               ${systemd_system_unitdir}/pcscd.socket \
+               ${libdir}/sysusers.d \
+               ${exec_prefix}/sysusers.d \
                ${sysconfdir}/default/pcscd"
 FILES:${PN}-lib = "${libdir}/libpcsclite*${SOLIBS}"
 FILES:${PN}-dev = "${includedir} \
@@ -54,12 +58,6 @@ FILES:${PN}-spy-dev = "${libdir}/libpcscspy.la<http://libpcscspy.la> \
 
 do_install:append() {
     rm -rf ${D}${datadir}/metainfo
-    # pcsc-lite installs pcscd-sysusers.conf into systemd's sysusersdir when
-    # the systemd pkg-config variable is available (${libdir}/sysusers.d),
-    # and falls back to ${exec_prefix}/sysusers.d otherwise. Drop both so the
-    # file is not left unpackaged (installed-vs-shipped QA).
-    rm -rf ${D}${libdir}/sysusers.d
-    rm -rf ${D}${exec_prefix}/sysusers.d
 }
 
 RPROVIDES:${PN} += "${PN}-systemd"

--
2.43.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#128672): https://lists.openembedded.org/g/openembedded-devel/message/128672
Mute This Topic: https://lists.openembedded.org/mt/120572332/1997914
Group Owner: [email protected]<mailto:openembedded-devel%[email protected]>
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]<mailto:[email protected]>]
-=-=-=-=-=-=-=-=-=-=-=-

#3 lore raw

It happens when init system is sysvinit not systemd

Quoted 143 lines · Mingyu Wang (Fujitsu)

Hello,

Thank you for reporting this issue.

I have been trying to reproduce the installed-vs-shipped error for pcsc-lite on my side, but unfortunately I cannot trigger it on either aarch64 or x86_64 builds with my current configuration. The patch I submitted seems to work fine in my environment.

To help me understand what is the problem, could you please provide the test details?

--

Best Regards

---------------------------------------------------

Wang Mingyu

FUJITSU NANJING SOFTWARE TECHNOLOGY CO., LTD. (FNST)

No.6 Wenzhu Road, Nanjing, 210012, China
<https://www.google.com/maps/search/No.6+Wenzhu+Road,+Nanjing,+210012,+China?entry=gmail&source=g>

TEL:+86+25-86630566--8568

COINS: 79988548

FAX: +86+25-83317685

MAIL: [email protected]

*From:* Khem Raj <[email protected]>
*Sent:* Monday, August 3, 2026 11:51 PM
*To:* Wang, Mingyu/王 鸣瑜 <[email protected]>
*Cc:* [email protected] *Subject:* Re: [oe] [meta-oe] [PATCH v2] pcsc-lite: install systemd system units

seeing this now

ERROR: pcsc-lite-2.5.1-r0 do_package: QA Issue: pcsc-lite: Files/directories were installed but not shipped in any package:

/usr/lib/systemd

/usr/lib/systemd/system

/usr/lib/systemd/system/pcscd.service

/usr/lib/systemd/system/pcscd.socket

Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.

pcsc-lite: 4 installed and not shipped files. [installed-vs-shipped]

On Sun, Aug 2, 2026 at 8:14 PM wangmy via lists.openembedded.org <wangmy= [email protected]> wrote:

From: Wang Mingyu <[email protected]>

pcsc-lite 2.5.0 defaults to installing systemd user units, which leaves the package without a system-level pcscd.service while SYSTEMD_SERVICE still enables pcscd.socket. On target systems this makes systemctl status pcscd fail, and systemctl --user start pcscd can fail because the user unit requires polkit.service from the user manager.

Select upstream Meson systemdunit=system so pcscd.service and pcscd.socket are installed as system units. Keep upstream sysusers.d packaging so systemd-sysusers can create the pcscd system user required by the generated service and socket units.

---
 meta-oe/recipes-support/pcsc-lite/pcsc-lite_2.5.1.bb | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)
meta-oe/recipes-support/pcsc-lite/pcsc-lite_2.5.1.bb +1 -0
index ae20447050..bf0b45dd14 100644
@@ -18,6 +18,7 @@ inherit meson systemd pkgconfig perlnative
 
 EXTRA_OEMESON = " \
     -Dlibusb=false \
+    -Dsystemdunit=system \
     -Dusbdropdir=${libdir}/pcsc/drivers \
 "
 
@@ -38,7 +39,10 @@ RPROVIDES:${PN}:append:class-native = "

pcsc-lite-lib-native"

 FILES:${PN} = "${sbindir}/pcscd \
                ${datadir}/polkit-1 \
meta-oe/recipes-support/pcsc-lite/pcsc-lite_2.5.1.bb +4 -2
-               ${nonarch_libdir}/systemd/user \
+               ${systemd_system_unitdir}/pcscd.service \
+               ${systemd_system_unitdir}/pcscd.socket \
+               ${libdir}/sysusers.d \
+               ${exec_prefix}/sysusers.d \
                ${sysconfdir}/default/pcscd"
 FILES:${PN}-lib = "${libdir}/libpcsclite*${SOLIBS}"
 FILES:${PN}-dev = "${includedir} \
@@ -54,12 +58,6 @@ FILES:${PN}-spy-dev = "${libdir}/libpcscspy.la \
 
 do_install:append() {
     rm -rf ${D}${datadir}/metainfo
-    # pcsc-lite installs pcscd-sysusers.conf into systemd's sysusersdir

when

meta-oe/recipes-support/pcsc-lite/pcsc-lite_2.5.1.bb +0 -2
-    # the systemd pkg-config variable is available (${libdir}/sysusers.d),
-    # and falls back to ${exec_prefix}/sysusers.d otherwise. Drop both so

the

meta-oe/recipes-support/pcsc-lite/pcsc-lite_2.5.1.bb +0 -4
-    # file is not left unpackaged (installed-vs-shipped QA).
-    rm -rf ${D}${libdir}/sysusers.d
-    rm -rf ${D}${exec_prefix}/sysusers.d
 }
 
 RPROVIDES:${PN} += "${PN}-systemd"
--

2.43.0

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

#4 lore raw

Hello,
Thank you for your patience. I have been trying to reproduce the installed-vs-shipped QA error for pcsc-lite on my side with the sysvinit environment, but unfortunately I am still unable to trigger it. Here is the configuration I am using (in local.conf):

MACHINE ??= "qemux86-64"
DISTRO_FEATURES_OPTED_OUT = "sysvinit"
VIRTUAL-RUNTIME_login_manager = ""
IMAGE_INSTALL:append = " "

Could you please check if there is anything I am missing or if my configuration differs from yours in any other aspect?
--
Best Regards
---------------------------------------------------
Wang Mingyu
FUJITSU NANJING SOFTWARE TECHNOLOGY CO., LTD. (FNST)
No.6 Wenzhu Road, Nanjing, 210012, China
TEL:+86+25-86630566--8568
COINS: 79988548
FAX: +86+25-83317685
MAIL: [email protected]<mailto:[email protected]>

From: Khem Raj <[email protected]>
Sent: Wednesday, August 5, 2026 11:02 PM
To: Wang, Mingyu/王 鸣瑜 <[email protected]>
Cc: OpenEmbedded Devel List <[email protected]>
Subject: Re: [oe] [meta-oe] [PATCH v2] pcsc-lite: install systemd system units

It happens when init system is sysvinit not systemd

On Wed, Aug 5, 2026, 1:45 AM Mingyu Wang (Fujitsu) <[email protected]<mailto:[email protected]>> wrote:
Hello,
Thank you for reporting this issue.
I have been trying to reproduce the installed-vs-shipped error for pcsc-lite on my side, but unfortunately I cannot trigger it on either aarch64 or x86_64 builds with my current configuration. The patch I submitted seems to work fine in my environment. To help me understand what is the problem, could you please provide the test details?

--
Best Regards
---------------------------------------------------
Wang Mingyu
FUJITSU NANJING SOFTWARE TECHNOLOGY CO., LTD. (FNST)
No.6 Wenzhu Road, Nanjing, 210012, China<https://www.google.com/maps/search/No.6+Wenzhu+Road,+Nanjing,+210012,+China?entry=gmail&source=g> TEL:+86+25-86630566--8568
COINS: 79988548
FAX: +86+25-83317685
MAIL: [email protected]<mailto:[email protected]>

From: Khem Raj <[email protected]<mailto:[email protected]>>
Sent: Monday, August 3, 2026 11:51 PM
To: Wang, Mingyu/王 鸣瑜 <[email protected]<mailto:[email protected]>>
Cc: [email protected]<mailto:[email protected]>
Subject: Re: [oe] [meta-oe] [PATCH v2] pcsc-lite: install systemd system units

seeing this now

ERROR: pcsc-lite-2.5.1-r0 do_package: QA Issue: pcsc-lite: Files/directories were installed but not shipped in any package:

/usr/lib/systemd

/usr/lib/systemd/system

/usr/lib/systemd/system/pcscd.service

/usr/lib/systemd/system/pcscd.socket

Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.

pcsc-lite: 4 installed and not shipped files. [installed-vs-shipped]

On Sun, Aug 2, 2026 at 8:14 PM wangmy via lists.openembedded.org<http://lists.openembedded.org> <[email protected]<mailto:[email protected]>> wrote:
From: Wang Mingyu <[email protected]<mailto:[email protected]>>

pcsc-lite 2.5.0 defaults to installing systemd user units, which leaves the package without a system-level pcscd.service while SYSTEMD_SERVICE still enables pcscd.socket. On target systems this makes systemctl status pcscd fail, and systemctl --user start pcscd can fail because the user unit requires polkit.service from the user manager.

Select upstream Meson systemdunit=system so pcscd.service and pcscd.socket are installed as system units. Keep upstream sysusers.d packaging so systemd-sysusers can create the pcscd system user required by the generated service and socket units.

---
 meta-oe/recipes-support/pcsc-lite/pcsc-lite_2.5.1.bb<http://pcsc-lite_2.5.1.bb> | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)
meta-oe/recipes-support/pcsc-lite/pcsc-lite_2.5.1.bb<http://pcsc-lite_2.5.1.bb> +5 -7
index ae20447050..bf0b45dd14 100644
@@ -18,6 +18,7 @@ inherit meson systemd pkgconfig perlnative
 
 EXTRA_OEMESON = " \
     -Dlibusb=false \
+    -Dsystemdunit=system \
     -Dusbdropdir=${libdir}/pcsc/drivers \
 "
 
@@ -38,7 +39,10 @@ RPROVIDES:${PN}:append:class-native = " pcsc-lite-lib-native"
 
 FILES:${PN} = "${sbindir}/pcscd \
                ${datadir}/polkit-1 \
-               ${nonarch_libdir}/systemd/user \
+               ${systemd_system_unitdir}/pcscd.service \
+               ${systemd_system_unitdir}/pcscd.socket \
+               ${libdir}/sysusers.d \
+               ${exec_prefix}/sysusers.d \
                ${sysconfdir}/default/pcscd"
 FILES:${PN}-lib = "${libdir}/libpcsclite*${SOLIBS}"
 FILES:${PN}-dev = "${includedir} \
@@ -54,12 +58,6 @@ FILES:${PN}-spy-dev = "${libdir}/libpcscspy.la<http://libpcscspy.la> \
 
 do_install:append() {
     rm -rf ${D}${datadir}/metainfo
-    # pcsc-lite installs pcscd-sysusers.conf into systemd's sysusersdir when
-    # the systemd pkg-config variable is available (${libdir}/sysusers.d),
-    # and falls back to ${exec_prefix}/sysusers.d otherwise. Drop both so the
-    # file is not left unpackaged (installed-vs-shipped QA).
-    rm -rf ${D}${libdir}/sysusers.d
-    rm -rf ${D}${exec_prefix}/sysusers.d
 }
 
 RPROVIDES:${PN} += "${PN}-systemd"

--
2.43.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#128672): https://lists.openembedded.org/g/openembedded-devel/message/128672
Mute This Topic: https://lists.openembedded.org/mt/120572332/1997914
Group Owner: [email protected]<mailto:openembedded-devel%[email protected]>
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]<mailto:[email protected]>]
-=-=-=-=-=-=-=-=-=-=-=-

#5 lore raw

I actually cant reproduce this problem.
Could you please check my configuration I am using (in local.conf):

MACHINE ??= "qemux86-64"
DISTRO_FEATURES_OPTED_OUT = "sysvinit"
VIRTUAL-RUNTIME_login_manager = ""
IMAGE_INSTALL:append = " "

--
Best Regards
---------------------------------------------------
Wang Mingyu
FUJITSU NANJING SOFTWARE TECHNOLOGY CO., LTD. (FNST) No.6 Wenzhu Road, Nanjing, 210012, China TEL:+86+25-86630566--8568
COINS: 79988548
FAX: +86+25-83317685
MAIL: [email protected]<mailto:[email protected]>

From: Wang, Mingyu/王 鸣瑜
Sent: Friday, August 7, 2026 5:45 PM
To: 'Khem Raj' <[email protected]>
Cc: OpenEmbedded Devel List <[email protected]>
Subject: RE: [oe] [meta-oe] [PATCH v2] pcsc-lite: install systemd system units

Hello,
Thank you for your patience. I have been trying to reproduce the installed-vs-shipped QA error for pcsc-lite on my side with the sysvinit environment, but unfortunately I am still unable to trigger it. Here is the configuration I am using (in local.conf):

MACHINE ??= "qemux86-64"
DISTRO_FEATURES_OPTED_OUT = "sysvinit"
VIRTUAL-RUNTIME_login_manager = ""
IMAGE_INSTALL:append = " "

Could you please check if there is anything I am missing or if my configuration differs from yours in any other aspect?
--
Best Regards
---------------------------------------------------
Wang Mingyu
FUJITSU NANJING SOFTWARE TECHNOLOGY CO., LTD. (FNST)
No.6 Wenzhu Road, Nanjing, 210012, China
TEL:+86+25-86630566--8568
COINS: 79988548
FAX: +86+25-83317685
MAIL: [email protected]<mailto:[email protected]>

From: Khem Raj <[email protected]<mailto:[email protected]>>
Sent: Wednesday, August 5, 2026 11:02 PM
To: Wang, Mingyu/王 鸣瑜 <[email protected]<mailto:[email protected]>>
Cc: OpenEmbedded Devel List <[email protected]<mailto:[email protected]>>
Subject: Re: [oe] [meta-oe] [PATCH v2] pcsc-lite: install systemd system units

It happens when init system is sysvinit not systemd

On Wed, Aug 5, 2026, 1:45 AM Mingyu Wang (Fujitsu) <[email protected]<mailto:[email protected]>> wrote:
Hello,
Thank you for reporting this issue.
I have been trying to reproduce the installed-vs-shipped error for pcsc-lite on my side, but unfortunately I cannot trigger it on either aarch64 or x86_64 builds with my current configuration. The patch I submitted seems to work fine in my environment. To help me understand what is the problem, could you please provide the test details?

--
Best Regards
---------------------------------------------------
Wang Mingyu
FUJITSU NANJING SOFTWARE TECHNOLOGY CO., LTD. (FNST)
No.6 Wenzhu Road, Nanjing, 210012, China<https://www.google.com/maps/search/No.6+Wenzhu+Road,+Nanjing,+210012,+China?entry=gmail&source=g> TEL:+86+25-86630566--8568
COINS: 79988548
FAX: +86+25-83317685
MAIL: [email protected]<mailto:[email protected]>

From: Khem Raj <[email protected]<mailto:[email protected]>>
Sent: Monday, August 3, 2026 11:51 PM
To: Wang, Mingyu/王 鸣瑜 <[email protected]<mailto:[email protected]>>
Cc: [email protected]<mailto:[email protected]>
Subject: Re: [oe] [meta-oe] [PATCH v2] pcsc-lite: install systemd system units

seeing this now

ERROR: pcsc-lite-2.5.1-r0 do_package: QA Issue: pcsc-lite: Files/directories were installed but not shipped in any package:

/usr/lib/systemd

/usr/lib/systemd/system

/usr/lib/systemd/system/pcscd.service

/usr/lib/systemd/system/pcscd.socket

Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.

pcsc-lite: 4 installed and not shipped files. [installed-vs-shipped]

On Sun, Aug 2, 2026 at 8:14 PM wangmy via lists.openembedded.org<http://lists.openembedded.org> <[email protected]<mailto:[email protected]>> wrote:
From: Wang Mingyu <[email protected]<mailto:[email protected]>>

pcsc-lite 2.5.0 defaults to installing systemd user units, which leaves the package without a system-level pcscd.service while SYSTEMD_SERVICE still enables pcscd.socket. On target systems this makes systemctl status pcscd fail, and systemctl --user start pcscd can fail because the user unit requires polkit.service from the user manager.

Select upstream Meson systemdunit=system so pcscd.service and pcscd.socket are installed as system units. Keep upstream sysusers.d packaging so systemd-sysusers can create the pcscd system user required by the generated service and socket units.

---
 meta-oe/recipes-support/pcsc-lite/pcsc-lite_2.5.1.bb<http://pcsc-lite_2.5.1.bb> | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)
meta-oe/recipes-support/pcsc-lite/pcsc-lite_2.5.1.bb<http://pcsc-lite_2.5.1.bb> +5 -7
index ae20447050..bf0b45dd14 100644
@@ -18,6 +18,7 @@ inherit meson systemd pkgconfig perlnative
 
 EXTRA_OEMESON = " \
     -Dlibusb=false \
+    -Dsystemdunit=system \
     -Dusbdropdir=${libdir}/pcsc/drivers \
 "
 
@@ -38,7 +39,10 @@ RPROVIDES:${PN}:append:class-native = " pcsc-lite-lib-native"
 
 FILES:${PN} = "${sbindir}/pcscd \
                ${datadir}/polkit-1 \
-               ${nonarch_libdir}/systemd/user \
+               ${systemd_system_unitdir}/pcscd.service \
+               ${systemd_system_unitdir}/pcscd.socket \
+               ${libdir}/sysusers.d \
+               ${exec_prefix}/sysusers.d \
                ${sysconfdir}/default/pcscd"
 FILES:${PN}-lib = "${libdir}/libpcsclite*${SOLIBS}"
 FILES:${PN}-dev = "${includedir} \
@@ -54,12 +58,6 @@ FILES:${PN}-spy-dev = "${libdir}/libpcscspy.la<http://libpcscspy.la> \
 
 do_install:append() {
     rm -rf ${D}${datadir}/metainfo
-    # pcsc-lite installs pcscd-sysusers.conf into systemd's sysusersdir when
-    # the systemd pkg-config variable is available (${libdir}/sysusers.d),
-    # and falls back to ${exec_prefix}/sysusers.d otherwise. Drop both so the
-    # file is not left unpackaged (installed-vs-shipped QA).
-    rm -rf ${D}${libdir}/sysusers.d
-    rm -rf ${D}${exec_prefix}/sysusers.d
 }
 
 RPROVIDES:${PN} += "${PN}-systemd"

--
2.43.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#128672): https://lists.openembedded.org/g/openembedded-devel/message/128672
Mute This Topic: https://lists.openembedded.org/mt/120572332/1997914
Group Owner: [email protected]<mailto:openembedded-devel%[email protected]>
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]<mailto:[email protected]>]
-=-=-=-=-=-=-=-=-=-=-=-