diff mbox series

[meta-oe,v2] smolkit: Add low-footprint partial replacement for polkit

Message ID 20260918055108.3637556-1-tillmann.severin@bmw.de
State New
Headers show
Series [meta-oe,v2] smolkit: Add low-footprint partial replacement for polkit | expand

Commit Message

Tillmann Severin Sept. 18, 2026, 5:51 a.m. UTC
smolkit is a replacement for a subset of
polkit's interface, which is low-footprint in the
sense of not needing to have a javascript engine
available to do its job. polkit has this disadvantage
and even with a small javascript engine like duktape,
it is not worth to have turing-complete configuration
where you could also use static JSON on some embedded
devices.

Signed-off-by: Tillmann Severin <tillmann.severin@bmw.de>
---
changes in v2:
- smolkit PROVIDES polkit instead of conflicting a distro feature
- Drop line setting `S`
- Tags are now available upstream
---
---
 meta-oe/recipes-extended/smolkit/smolkit.bb | 24 +++++++++++++++++++++
 1 file changed, 24 insertions(+)
 create mode 100644 meta-oe/recipes-extended/smolkit/smolkit.bb

Comments

Marko, Peter Sept. 18, 2026, 6:04 a.m. UTC | #1
> -----Original Message-----
> From: openembedded-devel@lists.openembedded.org <openembedded-
> devel@lists.openembedded.org> On Behalf Of Severin Tillmann, DE-862 via
> lists.openembedded.org
> Sent: Friday, September 18, 2026 7:51 AM
> To: openembedded-devel@lists.openembedded.org
> Cc: ross.burton@arm.com; Tillmann Severin <tillmann.severin@bmw.de>
> Subject: [oe] [meta-oe][PATCH v2] smolkit: Add low-footprint partial replacement
> for polkit
> 
> smolkit is a replacement for a subset of
> polkit's interface, which is low-footprint in the
> sense of not needing to have a javascript engine
> available to do its job. polkit has this disadvantage
> and even with a small javascript engine like duktape,
> it is not worth to have turing-complete configuration
> where you could also use static JSON on some embedded
> devices.
> 
> Signed-off-by: Tillmann Severin <tillmann.severin@bmw.de>
> ---
> changes in v2:
> - smolkit PROVIDES polkit instead of conflicting a distro feature
> - Drop line setting `S`
> - Tags are now available upstream
> ---
> ---
>  meta-oe/recipes-extended/smolkit/smolkit.bb | 24 +++++++++++++++++++++
>  1 file changed, 24 insertions(+)
>  create mode 100644 meta-oe/recipes-extended/smolkit/smolkit.bb
> 
> diff --git a/meta-oe/recipes-extended/smolkit/smolkit.bb b/meta-oe/recipes-
> extended/smolkit/smolkit.bb
> new file mode 100644
> index 0000000000..47ca0c3740
> --- /dev/null
> +++ b/meta-oe/recipes-extended/smolkit/smolkit.bb
> @@ -0,0 +1,24 @@
> +SUMMARY = "low-footprint polkit replacement"
> +HOMEPAGE = "https://github.com/bmwcarit/smolkit"
> +DESCRIPTION = "\
> +  Service that implements a subset of polkit's D-Bus interface with a static
> configuration language. \
> +"
> +
> +LICENSE = "Apache-2.0"
> +LIC_FILES_CHKSUM =
> "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
> +
> +inherit cmake features_check pkgconfig
> +
> +DEPENDS = "\
> +  rapidjson \
> +  sdbus-c++ \
> +"
> +
> +PROVIDES = "polkit"

Doesn't this cause warnings when something in the build depends on polkit?
I think there is a need for defining PREFERRED_PROVIDER definitions in layer.conf

And you maybe also need to add RPROVIDES:${PN} for cases when something RDEPENDS on polkit.

> +
> +PV = "0.2.0+git"
> +
> +SRC_URI = "\
> +    git://github.com/bmwcarit/${BPN}.git;protocol=https;branch=main \

Please add ;tag=v${PV} to SRC_URI

> +"
> +SRCREV = "46bbfd5c922a8d03a534398ee129ded822dfcafe"
> --
> 2.43.0
Khem Raj Sept. 19, 2026, 10:34 p.m. UTC | #2
I have accepted v1, so please send a new incremental patch addressing the
diff between v1 and v2 as well as Peter's feedback.

On Thu, Sep 17, 2026 at 11:04 PM Peter Marko via lists.openembedded.org
<peter.marko=siemens.com@lists.openembedded.org> wrote:

>
>
> > -----Original Message-----
> > From: openembedded-devel@lists.openembedded.org <openembedded-
> > devel@lists.openembedded.org> On Behalf Of Severin Tillmann, DE-862 via
> > lists.openembedded.org
> > Sent: Friday, September 18, 2026 7:51 AM
> > To: openembedded-devel@lists.openembedded.org
> > Cc: ross.burton@arm.com; Tillmann Severin <tillmann.severin@bmw.de>
> > Subject: [oe] [meta-oe][PATCH v2] smolkit: Add low-footprint partial
> replacement
> > for polkit
> >
> > smolkit is a replacement for a subset of
> > polkit's interface, which is low-footprint in the
> > sense of not needing to have a javascript engine
> > available to do its job. polkit has this disadvantage
> > and even with a small javascript engine like duktape,
> > it is not worth to have turing-complete configuration
> > where you could also use static JSON on some embedded
> > devices.
> >
> > Signed-off-by: Tillmann Severin <tillmann.severin@bmw.de>
> > ---
> > changes in v2:
> > - smolkit PROVIDES polkit instead of conflicting a distro feature
> > - Drop line setting `S`
> > - Tags are now available upstream
> > ---
> > ---
> >  meta-oe/recipes-extended/smolkit/smolkit.bb | 24 +++++++++++++++++++++
> >  1 file changed, 24 insertions(+)
> >  create mode 100644 meta-oe/recipes-extended/smolkit/smolkit.bb
> >
> > diff --git a/meta-oe/recipes-extended/smolkit/smolkit.bb
> b/meta-oe/recipes-
> > extended/smolkit/smolkit.bb
> > new file mode 100644
> > index 0000000000..47ca0c3740
> > --- /dev/null
> > +++ b/meta-oe/recipes-extended/smolkit/smolkit.bb
> > @@ -0,0 +1,24 @@
> > +SUMMARY = "low-footprint polkit replacement"
> > +HOMEPAGE = "https://github.com/bmwcarit/smolkit"
> > +DESCRIPTION = "\
> > +  Service that implements a subset of polkit's D-Bus interface with a
> static
> > configuration language. \
> > +"
> > +
> > +LICENSE = "Apache-2.0"
> > +LIC_FILES_CHKSUM =
> > "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
> > +
> > +inherit cmake features_check pkgconfig
> > +
> > +DEPENDS = "\
> > +  rapidjson \
> > +  sdbus-c++ \
> > +"
> > +
> > +PROVIDES = "polkit"
>
> Doesn't this cause warnings when something in the build depends on polkit?
> I think there is a need for defining PREFERRED_PROVIDER definitions in
> layer.conf
>
> And you maybe also need to add RPROVIDES:${PN} for cases when something
> RDEPENDS on polkit.
>
> > +
> > +PV = "0.2.0+git"
> > +
> > +SRC_URI = "\
> > +    git://github.com/bmwcarit/${BPN}.git;protocol=https;branch=main
> <http://github.com/bmwcarit/$%7BBPN%7D.git;protocol=https;branch=main> \
>
> Please add ;tag=v${PV} to SRC_URI
>
> > +"
> > +SRCREV = "46bbfd5c922a8d03a534398ee129ded822dfcafe"
> > --
> > 2.43.0
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#130111):
> https://lists.openembedded.org/g/openembedded-devel/message/130111
> Mute This Topic: https://lists.openembedded.org/mt/121310117/1997914
> Group Owner: openembedded-devel+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [
> raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>
diff mbox series

Patch

diff --git a/meta-oe/recipes-extended/smolkit/smolkit.bb b/meta-oe/recipes-extended/smolkit/smolkit.bb
new file mode 100644
index 0000000000..47ca0c3740
--- /dev/null
+++ b/meta-oe/recipes-extended/smolkit/smolkit.bb
@@ -0,0 +1,24 @@ 
+SUMMARY = "low-footprint polkit replacement"
+HOMEPAGE = "https://github.com/bmwcarit/smolkit"
+DESCRIPTION = "\
+  Service that implements a subset of polkit's D-Bus interface with a static configuration language. \
+"
+
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
+
+inherit cmake features_check pkgconfig
+
+DEPENDS = "\
+  rapidjson \
+  sdbus-c++ \
+"
+
+PROVIDES = "polkit"
+
+PV = "0.2.0+git"
+
+SRC_URI = "\
+    git://github.com/bmwcarit/${BPN}.git;protocol=https;branch=main \
+"
+SRCREV = "46bbfd5c922a8d03a534398ee129ded822dfcafe"