Skip to contentSkip to conversation

docker: Install python2 explicitly in docker image

PATCH Applied Fam Zheng 3 participants 5 messages Feb 22, 2017 – Feb 24, 2017

lore
Share & tools
lore

Fam Zheng

author
#0 lore raw

PATCH 1/1 docker: Install python2 explicitly in docker image

Python is no longer installed implicitly, but the QEMU build system requires it. List it in PACKAGES.

---
 tests/docker/dockerfiles/fedora.docker | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/docker/dockerfiles/fedora.docker +1 -1
index 478163b..c4f80ad 100644
@@ -1,6 +1,6 @@
 FROM fedora:latest
 ENV PACKAGES \
-    ccache git tar PyYAML sparse flex bison \
+    ccache git tar PyYAML sparse flex bison python2 \
     glib2-devel pixman-devel zlib-devel SDL-devel libfdt-devel \
     gcc gcc-c++ clang make perl which bc findutils \
     mingw32-pixman mingw32-glib2 mingw32-gmp mingw32-SDL mingw32-pkg-config \
Signature · 1 line
2.9.3
Tested-by on v1 1/1
#1 lore raw

Hi Fam,

Quoted 5 lines · Fam Zheng

Python is no longer installed implicitly, but the QEMU build system requires it. List it in PACKAGES.

Thanks!

Eric

Quoted 17 lines
---
 tests/docker/dockerfiles/fedora.docker | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/docker/dockerfiles/fedora.docker +1 -1
index 478163b..c4f80ad 100644
@@ -1,6 +1,6 @@
 FROM fedora:latest
 ENV PACKAGES \
-    ccache git tar PyYAML sparse flex bison \
+    ccache git tar PyYAML sparse flex bison python2 \
     glib2-devel pixman-devel zlib-devel SDL-devel libfdt-devel \
     gcc gcc-c++ clang make perl which bc findutils \
     mingw32-pixman mingw32-glib2 mingw32-gmp mingw32-SDL mingw32-pkg-config \
#2 lore raw
In reply to Fam Zheng
Quoted 2 lines · Fam Zheng

Python is no longer installed implicitly, but the QEMU build system requires it. List it in PACKAGES.

Doesn't fedora have a similar system to dpkg's build-deps that we should use to install dependencies?

Quoted 12 lines
---
 tests/docker/dockerfiles/fedora.docker | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/docker/dockerfiles/fedora.docker +0 -0
index 478163b..c4f80ad 100644

tests/docker/dockerfiles/fedora.docker line 6

Quoted 7 lines
tests/docker/dockerfiles/fedora.docker +1 -1
@@ -1,6 +1,6 @@
 FROM fedora:latest
 ENV PACKAGES \
-    ccache git tar PyYAML sparse flex bison \
+    ccache git tar PyYAML sparse flex bison python2 \
     glib2-devel pixman-devel zlib-devel SDL-devel libfdt-devel \
     gcc gcc-c++ clang make perl which bc findutils \
     mingw32-pixman mingw32-glib2 mingw32-gmp mingw32-SDL mingw32-pkg-config \

--
Alex Bennée

author
#3 lore raw
Quoted 8 lines · Alex Bennée
Quoted 2 lines · Fam Zheng

Python is no longer installed implicitly, but the QEMU build system requires it. List it in PACKAGES.

Doesn't fedora have a similar system to dpkg's build-deps that we should use to install dependencies?

It does, but I'm not sure how to generate PACKAGES out of that, for the SHOW_ENV feature.

Fam

author Applied
#4 lore raw
In reply to Fam Zheng
Quoted 24 lines · Fam Zheng

Python is no longer installed implicitly, but the QEMU build system requires it. List it in PACKAGES.

---
 tests/docker/dockerfiles/fedora.docker | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/docker/dockerfiles/fedora.docker +1 -1
index 478163b..c4f80ad 100644
@@ -1,6 +1,6 @@
 FROM fedora:latest
 ENV PACKAGES \
-    ccache git tar PyYAML sparse flex bison \
+    ccache git tar PyYAML sparse flex bison python2 \
     glib2-devel pixman-devel zlib-devel SDL-devel libfdt-devel \
     gcc gcc-c++ clang make perl which bc findutils \
     mingw32-pixman mingw32-glib2 mingw32-gmp mingw32-SDL mingw32-pkg-config \
Signature · 1 line
2.9.3

Applied to my staging tree.

Fam