Skip to contentSkip to conversation

smolkit: Add low-footprint partial replacement for polkit

PATCH In review Tillmann Severin 3 participants 3 messages Sep 18 – Sep 19

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 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.

---
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
meta-oe/recipes-extended/smolkit/smolkit.bb new file +24 -0
new file mode 100644
index 0000000000..47ca0c3740
@@ -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"
Signature · 1 line
2.43.0
#1 lore raw
Quoted 50 lines

-----Original Message-----
From: [email protected] <openembedded- [email protected]> On Behalf Of Severin Tillmann, DE-862 via lists.openembedded.org
Sent: Friday, September 18, 2026 7:51 AM
To: [email protected]
Cc: [email protected]; Tillmann Severin <[email protected]>
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.

---
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
meta-oe/recipes- renamed from meta-oe/recipes-extended/smolkit/smolkit.bb +0 -0

extended/smolkit/smolkit.bb
new file mode 100644
index 0000000000..47ca0c3740

meta-oe/recipes-extended/smolkit/smolkit.bb new file +4 -0
@@ -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. \
+"

meta-oe/recipes-extended/smolkit/smolkit.bb new file +3 -0
+
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM =

"file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"

meta-oe/recipes-extended/smolkit/smolkit.bb line 17

Quoted 9 lines
meta-oe/recipes-extended/smolkit/smolkit.bb new file +9 -0
+
+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.

meta-oe/recipes-extended/smolkit/smolkit.bb line 22

Quoted 5 lines
meta-oe/recipes-extended/smolkit/smolkit.bb new file +5 -0
+
+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

Quoted 4 lines

+"
+SRCREV = "46bbfd5c922a8d03a534398ee129ded822dfcafe" --
2.43.0

#2 lore raw

I have accepted v1, so please send a new incremental patch addressing the diff between v1 and v2 as well as Peter's feedback.

Quoted 96 lines · Peter Marko via lists.openembedded.org
Quoted 10 lines

-----Original Message-----
From: [email protected] <openembedded- [email protected]> On Behalf Of Severin Tillmann, DE-862 via lists.openembedded.org
Sent: Friday, September 18, 2026 7:51 AM
To: [email protected]
Cc: [email protected]; Tillmann Severin <[email protected]>
Subject: [oe] [meta-oe][PATCH v2] smolkit: Add low-footprint partial

replacement

Quoted 18 lines

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.

---
changes in v2:
- smolkit PROVIDES polkit instead of conflicting a distro feature
- Drop line setting S
- Tags are now available upstream
---

Review

Quoted 6 lines
---
 meta-oe/recipes-extended/smolkit/smolkit.bb | 24 +++++++++++++++++++++
 1 file changed, 24 insertions(+)
 create mode 100644 meta-oe/recipes-extended/smolkit/smolkit.bb
(quoted diff) +0 -0

b/meta-oe/recipes-

meta-oe/recipes-extended/smolkit/smolkit.bb line 4

Quoted 10 lines

extended/smolkit/smolkit.bb
new file mode 100644
index 0000000000..47ca0c3740

meta-oe/recipes-extended/smolkit/smolkit.bb new file +4 -0
@@ -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

Quoted 6 lines

configuration language. \
+"

meta-oe/recipes-extended/smolkit/smolkit.bb new file +3 -0
+
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM =

"file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"

meta-oe/recipes-extended/smolkit/smolkit.bb line 17

Quoted 9 lines
meta-oe/recipes-extended/smolkit/smolkit.bb new file +9 -0
+
+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.

meta-oe/recipes-extended/smolkit/smolkit.bb

Quoted 5 lines
meta-oe/recipes-extended/smolkit/smolkit.bb new file +5 -0
+
+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

Quoted 4 lines

+"
+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: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-