[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v1 02/19] tests: run ldconfig after installing e
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: [Qemu-devel] [PATCH v1 02/19] tests: run ldconfig after installing extra software |
Date: |
Thu, 10 Jan 2019 19:12:48 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.1 |
On 1/10/19 6:44 PM, Alex Bennée wrote:
> From: Daniel P. Berrangé <address@hidden>
>
> The docker file builds and installs software into /usr/local but does
> not run ldconfig. As a result QEMU links to libvirglrenderer.so, but
> then crashes in "make check" unable to find the library.
Wow.
>
> Signed-off-by: Daniel P. Berrangé <address@hidden>
> Signed-off-by: Alex Bennée <address@hidden>
> ---
> tests/docker/dockerfiles/debian-amd64.docker | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/tests/docker/dockerfiles/debian-amd64.docker
> b/tests/docker/dockerfiles/debian-amd64.docker
> index 47a30adbdb..954fcf9606 100644
> --- a/tests/docker/dockerfiles/debian-amd64.docker
> +++ b/tests/docker/dockerfiles/debian-amd64.docker
> @@ -36,5 +36,7 @@ RUN git clone https://github.com/luigirizzo/netmap.git
> /usr/src/netmap
> RUN cd /usr/src/netmap/LINUX && ./configure --no-drivers --no-apps
> --kernel-dir=$(ls -d /usr/src/linux-headers-*-amd64) && make install
Daniel do you mind if we call ldconfig after each 'make install'? So if
one takes this as template the 'fix' is include and he won't run into
the same mistake:
RUN ... && make install && ldconfig
-- >8 --
@@ -25,14 +25,14 @@ RUN DEBIAN_FRONTEND=noninteractive eatmydata \
libepoxy-dev \
libgbm-dev
RUN git clone https://anongit.freedesktop.org/git/virglrenderer.git
/usr/src/virglrenderer
-RUN cd /usr/src/virglrenderer && ./autogen.sh && ./configure --with-glx
--disable-tests && make install
+RUN cd /usr/src/virglrenderer && ./autogen.sh && ./configure --with-glx
--disable-tests && make install && ldconfig
# netmap
RUN DEBIAN_FRONTEND=noninteractive eatmydata \
apt-get install -y --no-install-recommends \
linux-headers-amd64
RUN git clone https://github.com/luigirizzo/netmap.git /usr/src/netmap
-RUN cd /usr/src/netmap/LINUX && ./configure --no-drivers --no-apps
--kernel-dir=$(ls -d /usr/src/linux-headers-*-amd64) && make install
+RUN cd /usr/src/netmap/LINUX && ./configure --no-drivers --no-apps
--kernel-dir=$(ls -d /usr/src/linux-headers-*-amd64) && make install &&
ldconfig
ENV QEMU_CONFIGURE_OPTS --enable-netmap
---
Regardless if Dan agree to change:
Reviewed-by: Philippe Mathieu-Daudé <address@hidden>
> ENV QEMU_CONFIGURE_OPTS --enable-netmap
>
> +RUN ldconfig
> +
> # gcrypt
> ENV QEMU_CONFIGURE_OPTS $QEMU_CONFIGURE_OPTS --enable-gcrypt
>
- Re: [Qemu-devel] [PATCH v1 11/19] travis: use homebrew addon for MacOSX, (continued)
- [Qemu-devel] [PATCH v1 05/19] tests: update Fedora i386 cross image to Fedora 29, Alex Bennée, 2019/01/10
- [Qemu-devel] [PATCH v1 03/19] tests: remove obsolete 'debian' dockerfile, Alex Bennée, 2019/01/10
- [Qemu-devel] [PATCH v1 13/19] travis: stop using container based envs, Alex Bennée, 2019/01/10
- [Qemu-devel] [PATCH v1 01/19] docker: Use stable git tag for virglrenderer, Alex Bennée, 2019/01/10
- [Qemu-devel] [PATCH v1 02/19] tests: run ldconfig after installing extra software, Alex Bennée, 2019/01/10
- Re: [Qemu-devel] [PATCH v1 02/19] tests: run ldconfig after installing extra software,
Philippe Mathieu-Daudé <=
- [Qemu-devel] [PATCH v1 07/19] travis: add whitespace between each major section & matrix entry, Alex Bennée, 2019/01/10
- [Qemu-devel] [PATCH v1 09/19] travis: standardize the syntax used for env variables, Alex Bennée, 2019/01/10
- [Qemu-devel] [PATCH v1 17/19] travis: bump to Xenial baseline, Alex Bennée, 2019/01/10
- [Qemu-devel] [PATCH v1 19/19] tests/docker: remove SID_AGE test hack, Alex Bennée, 2019/01/10
- [Qemu-devel] [PATCH v1 16/19] docker: Use a stable snapshot for Debian Sid, Alex Bennée, 2019/01/10
- [Qemu-devel] [PATCH v1 15/19] travis: remove matrix settings that duplicate global settings, Alex Bennée, 2019/01/10
- Re: [Qemu-devel] [PATCH v1 00/19] testing/next queue for travis and docker, no-reply, 2019/01/13