Re: [oe] [meta-oe] [PATCH] pcsc-lite: install systemd system units
Khem Raj <[email protected]> Fri, 31 Jul 2026 10:58:34 -0700
| Newsgroups | org.openembedded.lists.openembedded-devel |
|---|---|
| Message-ID | <CAMKF1sqfzZL4eFsKu1zfQJuh-8yUNgRiFYJAWXfHYS14xZtx7A@mail.gmail.com> |
--000000000000b2d2d60657ebf1f0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Please rebase on top of the latest master branch and resend. On Thu, Jul 30, 2026 at 9:36=E2=80=AFPM wangmy via lists.openembedded.org <= wangmy=3D [email protected]> wrote: > From: Wang Mingyu <[email protected]> > > pcsc-lite 2.5.0 defaults to installing systemd user units, which leaves t= he > 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=3Dsystem so pcscd.service and pcscd.soc= ket > 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. > > Signed-off-by: Wang Mingyu <[email protected]> > --- > meta-oe/recipes-support/pcsc-lite/pcsc-lite_2.5.0.bb | 12 +++++------- > 1 file changed, 5 insertions(+), 7 deletions(-) > > diff --git a/meta-oe/recipes-support/pcsc-lite/pcsc-lite_2.5.0.bb > b/meta-oe/recipes-support/pcsc-lite/pcsc-lite_2.5.0.bb > index d6427d2eba..75b0babec3 100644 > --- a/meta-oe/recipes-support/pcsc-lite/pcsc-lite_2.5.0.bb > +++ b/meta-oe/recipes-support/pcsc-lite/pcsc-lite_2.5.0.bb > @@ -18,6 +18,7 @@ inherit meson systemd pkgconfig perlnative > > EXTRA_OEMESON =3D " \ > -Dlibusb=3Dfalse \ > + -Dsystemdunit=3Dsystem \ > -Dusbdropdir=3D${libdir}/pcsc/drivers \ > " > > @@ -38,7 +39,10 @@ RPROVIDES:${PN}:append:class-native =3D " > pcsc-lite-lib-native" > > FILES:${PN} =3D "${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 =3D "${libdir}/libpcsclite*${SOLIBS}" > FILES:${PN}-dev =3D "${includedir} \ > @@ -54,12 +58,6 @@ FILES:${PN}-spy-dev =3D "${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 s= o > 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} +=3D "${PN}-systemd" > -- > 2.43.0 > > > -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- > Links: You receive all messages sent to this group. > View/Reply Online (#128578): > https://lists.openembedded.org/g/openembedded-devel/message/128578 > Mute This Topic: https://lists.openembedded.org/mt/120530364/1997914 > Group Owner: [email protected] > Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [ > [email protected]] > -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- > > --000000000000b2d2d60657ebf1f0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">Please rebase on top of the latest master branch and resen= d.</div><br><div class=3D"gmail_quote gmail_quote_container"><div dir=3D"lt= r" class=3D"gmail_attr">On Thu, Jul 30, 2026 at 9:36=E2=80=AFPM wangmy via = <a href=3D"http://lists.openembedded.org">lists.openembedded.org</a> <wa= ngmy=3D<a href=3D"mailto:[email protected]">fujitsu.com@li= sts.openembedded.org</a>> wrote:<br></div><blockquote class=3D"gmail_quo= te" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204= );padding-left:1ex">From: Wang Mingyu <<a href=3D"mailto:wangmy@fujitsu.= com" target=3D"_blank">[email protected]</a>><br> <br> pcsc-lite 2.5.0 defaults to installing systemd user units, which leaves the= <br> package without a system-level pcscd.service while SYSTEMD_SERVICE still<br= > enables pcscd.socket. On target systems this makes systemctl status pcscd<b= r> fail, and systemctl --user start pcscd can fail because the user unit<br> requires polkit.service from the user manager.<br> <br> Select upstream Meson systemdunit=3Dsystem so pcscd.service and pcscd.socke= t<br> are installed as system units. Keep upstream sysusers.d packaging so<br> systemd-sysusers can create the pcscd system user required by the<br> generated service and socket units.<br> <br> Signed-off-by: Wang Mingyu <<a href=3D"mailto:[email protected]" target= =3D"_blank">[email protected]</a>><br> ---<br> =C2=A0meta-oe/recipes-support/pcsc-lite/<a href=3D"http://pcsc-lite_2.5.0.b= b" rel=3D"noreferrer" target=3D"_blank">pcsc-lite_2.5.0.bb</a> | 12 +++++--= -----<br> =C2=A01 file changed, 5 insertions(+), 7 deletions(-)<br> <br> diff --git a/meta-oe/recipes-support/pcsc-lite/<a href=3D"http://pcsc-lite_= 2.5.0.bb" rel=3D"noreferrer" target=3D"_blank">pcsc-lite_2.5.0.bb</a> b/met= a-oe/recipes-support/pcsc-lite/<a href=3D"http://pcsc-lite_2.5.0.bb" rel=3D= "noreferrer" target=3D"_blank">pcsc-lite_2.5.0.bb</a><br> index d6427d2eba..75b0babec3 100644<br> --- a/meta-oe/recipes-support/pcsc-lite/<a href=3D"http://pcsc-lite_2.5.0.b= b" rel=3D"noreferrer" target=3D"_blank">pcsc-lite_2.5.0.bb</a><br> +++ b/meta-oe/recipes-support/pcsc-lite/<a href=3D"http://pcsc-lite_2.5.0.b= b" rel=3D"noreferrer" target=3D"_blank">pcsc-lite_2.5.0.bb</a><br> @@ -18,6 +18,7 @@ inherit meson systemd pkgconfig perlnative<br> <br> =C2=A0EXTRA_OEMESON =3D " \<br> =C2=A0 =C2=A0 =C2=A0-Dlibusb=3Dfalse \<br> +=C2=A0 =C2=A0 -Dsystemdunit=3Dsystem \<br> =C2=A0 =C2=A0 =C2=A0-Dusbdropdir=3D${libdir}/pcsc/drivers \<br> =C2=A0"<br> <br> @@ -38,7 +39,10 @@ RPROVIDES:${PN}:append:class-native =3D " pcsc-lite= -lib-native"<br> <br> =C2=A0FILES:${PN} =3D "${sbindir}/pcscd \<br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ${datadir}/polkit-1= \<br> -=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0${nonarch_libdir}/s= ystemd/user \<br> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0${systemd_system_un= itdir}/pcscd.service \<br> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0${systemd_system_un= itdir}/pcscd.socket \<br> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0${libdir}/sysusers.= d \<br> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0${exec_prefix}/sysu= sers.d \<br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ${sysconfdir}/defau= lt/pcscd"<br> =C2=A0FILES:${PN}-lib =3D "${libdir}/libpcsclite*${SOLIBS}"<br> =C2=A0FILES:${PN}-dev =3D "${includedir} \<br> @@ -54,12 +58,6 @@ FILES:${PN}-spy-dev =3D "${libdir}/<a href=3D"http:= //libpcscspy.la" rel=3D"noreferrer" target=3D"_blank">libpcscspy.la</a> \<b= r> <br> =C2=A0do_install:append() {<br> =C2=A0 =C2=A0 =C2=A0rm -rf ${D}${datadir}/metainfo<br> -=C2=A0 =C2=A0 # pcsc-lite installs pcscd-sysusers.conf into systemd's = sysusersdir when<br> -=C2=A0 =C2=A0 # the systemd pkg-config variable is available (${libdir}/sy= susers.d),<br> -=C2=A0 =C2=A0 # and falls back to ${exec_prefix}/sysusers.d otherwise. Dro= p both so the<br> -=C2=A0 =C2=A0 # file is not left unpackaged (installed-vs-shipped QA).<br> -=C2=A0 =C2=A0 rm -rf ${D}${libdir}/sysusers.d<br> -=C2=A0 =C2=A0 rm -rf ${D}${exec_prefix}/sysusers.d<br> =C2=A0}<br> <br> =C2=A0RPROVIDES:${PN} +=3D "${PN}-systemd"<br> -- <br> 2.43.0<br> <br> <br> -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-<br> Links: You receive all messages sent to this group.<br> View/Reply Online (#128578): <a href=3D"https://lists.openembedded.org/g/op= enembedded-devel/message/128578" rel=3D"noreferrer" target=3D"_blank">https= ://lists.openembedded.org/g/openembedded-devel/message/128578</a><br> Mute This Topic: <a href=3D"https://lists.openembedded.org/mt/120530364/199= 7914" rel=3D"noreferrer" target=3D"_blank">https://lists.openembedded.org/m= t/120530364/1997914</a><br> Group Owner: <a href=3D"mailto:openembedded-devel%[email protected]= d.org" target=3D"_blank">[email protected]</a= ><br> Unsubscribe: <a href=3D"https://lists.openembedded.org/g/openembedded-devel= /unsub" rel=3D"noreferrer" target=3D"_blank">https://lists.openembedded.org= /g/openembedded-devel/unsub</a> [<a href=3D"mailto:[email protected]" targ= et=3D"_blank">[email protected]</a>]<br> -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-<br> <br> </blockquote></div> --000000000000b2d2d60657ebf1f0--