diff mbox series

tests/docker: Install tools to cross-debug and build Linux kernels

Message ID 20200212202738.12986-1-philmd@redhat.com (mailing list archive)
State New, archived
Headers show
Series tests/docker: Install tools to cross-debug and build Linux kernels | expand

Commit Message

Philippe Mathieu-Daudé Feb. 12, 2020, 8:27 p.m. UTC
From: Philippe Mathieu-Daudé <f4bug@amsat.org>

We often run Linux kernels to test QEMU. We sometimes need
to build them manually to use non-default features. We only
miss the tiny 'bc' tool.

The ncurses library is helpful to run 'make menuconfig'.

Finally, gdb-multiarch allow us to debug a TCG guest when its
architecture is different than the host.

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
 tests/docker/dockerfiles/debian10.docker | 3 +++
 tests/docker/dockerfiles/debian9.docker  | 3 +++
 2 files changed, 6 insertions(+)

Comments

Philippe Mathieu-Daudé Feb. 24, 2020, 12:20 p.m. UTC | #1
On 2/12/20 9:27 PM, Philippe Mathieu-Daudé wrote:
> From: Philippe Mathieu-Daudé <f4bug@amsat.org>
> 
> We often run Linux kernels to test QEMU. We sometimes need
> to build them manually to use non-default features. We only
> miss the tiny 'bc' tool.
> 
> The ncurses library is helpful to run 'make menuconfig'.
> 
> Finally, gdb-multiarch allow us to debug a TCG guest when its
> architecture is different than the host.
> 
> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
> ---
>   tests/docker/dockerfiles/debian10.docker | 3 +++
>   tests/docker/dockerfiles/debian9.docker  | 3 +++
>   2 files changed, 6 insertions(+)
> 
> diff --git a/tests/docker/dockerfiles/debian10.docker b/tests/docker/dockerfiles/debian10.docker
> index 5de79ae552..2fcdc406e8 100644
> --- a/tests/docker/dockerfiles/debian10.docker
> +++ b/tests/docker/dockerfiles/debian10.docker
> @@ -17,14 +17,17 @@ RUN apt update && \
>       DEBIAN_FRONTEND=noninteractive apt install -yy eatmydata && \
>       DEBIAN_FRONTEND=noninteractive eatmydata \
>       apt install -y --no-install-recommends \
> +        bc \
>           bison \
>           build-essential \
>           ca-certificates \
>           clang \
>           dbus \
>           flex \
> +        gdb-multiarch \
>           gettext \
>           git \
> +        libncurses5-dev \
>           pkg-config \
>           psmisc \
>           python3 \
> diff --git a/tests/docker/dockerfiles/debian9.docker b/tests/docker/dockerfiles/debian9.docker
> index 8cbd742bb5..92edbbf0f4 100644
> --- a/tests/docker/dockerfiles/debian9.docker
> +++ b/tests/docker/dockerfiles/debian9.docker
> @@ -17,13 +17,16 @@ RUN apt update && \
>       DEBIAN_FRONTEND=noninteractive apt install -yy eatmydata && \
>       DEBIAN_FRONTEND=noninteractive eatmydata \
>       apt install -y --no-install-recommends \
> +        bc \
>           bison \
>           build-essential \
>           ca-certificates \
>           clang \
>           flex \
> +        gdb-multiarch \
>           gettext \
>           git \
> +        libncurses5-dev \
>           pkg-config \
>           psmisc \
>           python3 \
> 

ping?
Philippe Mathieu-Daudé March 5, 2020, 10:30 a.m. UTC | #2
ping ping?

On 2/24/20 1:20 PM, Philippe Mathieu-Daudé wrote:
> On 2/12/20 9:27 PM, Philippe Mathieu-Daudé wrote:
>> From: Philippe Mathieu-Daudé <f4bug@amsat.org>
>>
>> We often run Linux kernels to test QEMU. We sometimes need
>> to build them manually to use non-default features. We only
>> miss the tiny 'bc' tool.
>>
>> The ncurses library is helpful to run 'make menuconfig'.
>>
>> Finally, gdb-multiarch allow us to debug a TCG guest when its
>> architecture is different than the host.
>>
>> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
>> ---
>>   tests/docker/dockerfiles/debian10.docker | 3 +++
>>   tests/docker/dockerfiles/debian9.docker  | 3 +++
>>   2 files changed, 6 insertions(+)
>>
>> diff --git a/tests/docker/dockerfiles/debian10.docker 
>> b/tests/docker/dockerfiles/debian10.docker
>> index 5de79ae552..2fcdc406e8 100644
>> --- a/tests/docker/dockerfiles/debian10.docker
>> +++ b/tests/docker/dockerfiles/debian10.docker
>> @@ -17,14 +17,17 @@ RUN apt update && \
>>       DEBIAN_FRONTEND=noninteractive apt install -yy eatmydata && \
>>       DEBIAN_FRONTEND=noninteractive eatmydata \
>>       apt install -y --no-install-recommends \
>> +        bc \
>>           bison \
>>           build-essential \
>>           ca-certificates \
>>           clang \
>>           dbus \
>>           flex \
>> +        gdb-multiarch \
>>           gettext \
>>           git \
>> +        libncurses5-dev \
>>           pkg-config \
>>           psmisc \
>>           python3 \
>> diff --git a/tests/docker/dockerfiles/debian9.docker 
>> b/tests/docker/dockerfiles/debian9.docker
>> index 8cbd742bb5..92edbbf0f4 100644
>> --- a/tests/docker/dockerfiles/debian9.docker
>> +++ b/tests/docker/dockerfiles/debian9.docker
>> @@ -17,13 +17,16 @@ RUN apt update && \
>>       DEBIAN_FRONTEND=noninteractive apt install -yy eatmydata && \
>>       DEBIAN_FRONTEND=noninteractive eatmydata \
>>       apt install -y --no-install-recommends \
>> +        bc \
>>           bison \
>>           build-essential \
>>           ca-certificates \
>>           clang \
>>           flex \
>> +        gdb-multiarch \
>>           gettext \
>>           git \
>> +        libncurses5-dev \
>>           pkg-config \
>>           psmisc \
>>           python3 \
>>
> 
> ping?
Stefano Garzarella March 6, 2020, 8:35 a.m. UTC | #3
On Wed, Feb 12, 2020 at 09:27:38PM +0100, Philippe Mathieu-Daudé wrote:
> From: Philippe Mathieu-Daudé <f4bug@amsat.org>
> 
> We often run Linux kernels to test QEMU. We sometimes need
> to build them manually to use non-default features. We only
> miss the tiny 'bc' tool.
> 
> The ncurses library is helpful to run 'make menuconfig'.
> 
> Finally, gdb-multiarch allow us to debug a TCG guest when its
> architecture is different than the host.
> 
> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
> ---
>  tests/docker/dockerfiles/debian10.docker | 3 +++
>  tests/docker/dockerfiles/debian9.docker  | 3 +++
>  2 files changed, 6 insertions(+)

Make sense to add these packages:

Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>

Thanks,
Stefano

> 
> diff --git a/tests/docker/dockerfiles/debian10.docker b/tests/docker/dockerfiles/debian10.docker
> index 5de79ae552..2fcdc406e8 100644
> --- a/tests/docker/dockerfiles/debian10.docker
> +++ b/tests/docker/dockerfiles/debian10.docker
> @@ -17,14 +17,17 @@ RUN apt update && \
>      DEBIAN_FRONTEND=noninteractive apt install -yy eatmydata && \
>      DEBIAN_FRONTEND=noninteractive eatmydata \
>      apt install -y --no-install-recommends \
> +        bc \
>          bison \
>          build-essential \
>          ca-certificates \
>          clang \
>          dbus \
>          flex \
> +        gdb-multiarch \
>          gettext \
>          git \
> +        libncurses5-dev \
>          pkg-config \
>          psmisc \
>          python3 \
> diff --git a/tests/docker/dockerfiles/debian9.docker b/tests/docker/dockerfiles/debian9.docker
> index 8cbd742bb5..92edbbf0f4 100644
> --- a/tests/docker/dockerfiles/debian9.docker
> +++ b/tests/docker/dockerfiles/debian9.docker
> @@ -17,13 +17,16 @@ RUN apt update && \
>      DEBIAN_FRONTEND=noninteractive apt install -yy eatmydata && \
>      DEBIAN_FRONTEND=noninteractive eatmydata \
>      apt install -y --no-install-recommends \
> +        bc \
>          bison \
>          build-essential \
>          ca-certificates \
>          clang \
>          flex \
> +        gdb-multiarch \
>          gettext \
>          git \
> +        libncurses5-dev \
>          pkg-config \
>          psmisc \
>          python3 \
> -- 
> 2.21.1
> 
>
Alex Bennée March 6, 2020, 11:51 a.m. UTC | #4
Philippe Mathieu-Daudé <philmd@redhat.com> writes:

> ping ping?

Queued to testing/next, thanks. Sorry for the delay.

>
> On 2/24/20 1:20 PM, Philippe Mathieu-Daudé wrote:
>> On 2/12/20 9:27 PM, Philippe Mathieu-Daudé wrote:
>>> From: Philippe Mathieu-Daudé <f4bug@amsat.org>
>>>
>>> We often run Linux kernels to test QEMU. We sometimes need
>>> to build them manually to use non-default features. We only
>>> miss the tiny 'bc' tool.
>>>
>>> The ncurses library is helpful to run 'make menuconfig'.
>>>
>>> Finally, gdb-multiarch allow us to debug a TCG guest when its
>>> architecture is different than the host.
>>>
>>> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
>>> ---
>>>   tests/docker/dockerfiles/debian10.docker | 3 +++
>>>   tests/docker/dockerfiles/debian9.docker  | 3 +++
>>>   2 files changed, 6 insertions(+)
>>>
>>> diff --git a/tests/docker/dockerfiles/debian10.docker
>>> b/tests/docker/dockerfiles/debian10.docker
>>> index 5de79ae552..2fcdc406e8 100644
>>> --- a/tests/docker/dockerfiles/debian10.docker
>>> +++ b/tests/docker/dockerfiles/debian10.docker
>>> @@ -17,14 +17,17 @@ RUN apt update && \
>>>       DEBIAN_FRONTEND=noninteractive apt install -yy eatmydata && \
>>>       DEBIAN_FRONTEND=noninteractive eatmydata \
>>>       apt install -y --no-install-recommends \
>>> +        bc \
>>>           bison \
>>>           build-essential \
>>>           ca-certificates \
>>>           clang \
>>>           dbus \
>>>           flex \
>>> +        gdb-multiarch \
>>>           gettext \
>>>           git \
>>> +        libncurses5-dev \
>>>           pkg-config \
>>>           psmisc \
>>>           python3 \
>>> diff --git a/tests/docker/dockerfiles/debian9.docker
>>> b/tests/docker/dockerfiles/debian9.docker
>>> index 8cbd742bb5..92edbbf0f4 100644
>>> --- a/tests/docker/dockerfiles/debian9.docker
>>> +++ b/tests/docker/dockerfiles/debian9.docker
>>> @@ -17,13 +17,16 @@ RUN apt update && \
>>>       DEBIAN_FRONTEND=noninteractive apt install -yy eatmydata && \
>>>       DEBIAN_FRONTEND=noninteractive eatmydata \
>>>       apt install -y --no-install-recommends \
>>> +        bc \
>>>           bison \
>>>           build-essential \
>>>           ca-certificates \
>>>           clang \
>>>           flex \
>>> +        gdb-multiarch \
>>>           gettext \
>>>           git \
>>> +        libncurses5-dev \
>>>           pkg-config \
>>>           psmisc \
>>>           python3 \
>>>
>> ping?
diff mbox series

Patch

diff --git a/tests/docker/dockerfiles/debian10.docker b/tests/docker/dockerfiles/debian10.docker
index 5de79ae552..2fcdc406e8 100644
--- a/tests/docker/dockerfiles/debian10.docker
+++ b/tests/docker/dockerfiles/debian10.docker
@@ -17,14 +17,17 @@  RUN apt update && \
     DEBIAN_FRONTEND=noninteractive apt install -yy eatmydata && \
     DEBIAN_FRONTEND=noninteractive eatmydata \
     apt install -y --no-install-recommends \
+        bc \
         bison \
         build-essential \
         ca-certificates \
         clang \
         dbus \
         flex \
+        gdb-multiarch \
         gettext \
         git \
+        libncurses5-dev \
         pkg-config \
         psmisc \
         python3 \
diff --git a/tests/docker/dockerfiles/debian9.docker b/tests/docker/dockerfiles/debian9.docker
index 8cbd742bb5..92edbbf0f4 100644
--- a/tests/docker/dockerfiles/debian9.docker
+++ b/tests/docker/dockerfiles/debian9.docker
@@ -17,13 +17,16 @@  RUN apt update && \
     DEBIAN_FRONTEND=noninteractive apt install -yy eatmydata && \
     DEBIAN_FRONTEND=noninteractive eatmydata \
     apt install -y --no-install-recommends \
+        bc \
         bison \
         build-essential \
         ca-certificates \
         clang \
         flex \
+        gdb-multiarch \
         gettext \
         git \
+        libncurses5-dev \
         pkg-config \
         psmisc \
         python3 \