Skip to contentSkip to conversation

Dockerfile: Include python3-tk for FATtools

PATCH Superseded Tom Rini 2 participants 3 messages Nov 13, 2025

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 Dockerfile: Include python3-tk for FATtools

In some cases our tests for exFAT don't run because we fail to be able to create the underlying image. This is in turn because while creation of the image succeeds, it seems that some way of how we invoke FATtools wants to import tkinter, that fails and so the test stops there. Having tkinter available (and then presumably a fallback to non-GUI because it's not available) leads to the tests running as expected.

---
Cc: Marek Vasut <[email protected]>

---
 tools/docker/Dockerfile | 1 +
 1 file changed, 1 insertion(+)
tools/docker/Dockerfile +1 -0
index d2384219c06a..f62513b86b2c 100644
@@ -127,6 +127,7 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
 	python3-pyelftools \
 	python3-sphinx \
 	python3-tomli \
+	python3-tk \
 	python3-venv \
 	rpm2cpio \
 	sbsigntool \
Signature · 1 line
2.43.0
#1 lore raw
Quoted 19 lines · Tom Rini

In some cases our tests for exFAT don't run because we fail to be able to create the underlying image. This is in turn because while creation of the image succeeds, it seems that some way of how we invoke FATtools wants to import tkinter, that fails and so the test stops there. Having tkinter available (and then presumably a fallback to non-GUI because it's not available) leads to the tests running as expected.

---
Cc: Marek Vasut <[email protected]>

---
  tools/docker/Dockerfile | 1 +
  1 file changed, 1 insertion(+)
tools/docker/Dockerfile +0 -0
index d2384219c06a..f62513b86b2c 100644

tools/docker/Dockerfile RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \ · line 130

Quoted 4 lines
tools/docker/Dockerfile +1 -0
@@ -127,6 +127,7 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
  	python3-pyelftools \
  	python3-sphinx \
  	python3-tomli \
+	python3-tk \

Keep the list sorted please.

author
#2 lore raw
Quoted 15 lines · Marek Vasut
Quoted 14 lines · Tom Rini

In some cases our tests for exFAT don't run because we fail to be able to create the underlying image. This is in turn because while creation of the image succeeds, it seems that some way of how we invoke FATtools wants to import tkinter, that fails and so the test stops there. Having tkinter available (and then presumably a fallback to non-GUI because it's not available) leads to the tests running as expected.

---
Cc: Marek Vasut <[email protected]>

---
  tools/docker/Dockerfile | 1 +
  1 file changed, 1 insertion(+)
Quoted 10 lines

tools/docker/Dockerfile RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \ · line 130

Quoted 9 lines
tools/docker/Dockerfile +1 -0
index d2384219c06a..f62513b86b2c 100644
@@ -127,6 +127,7 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
  	python3-pyelftools \
  	python3-sphinx \
  	python3-tomli \
+	python3-tk \

Keep the list sorted please.

Ah whoops, k does come before o.

Signature · 1 line
Tom