[libvirt] [dockerfiles PATCH] Add Dockerfile for i686 cross-compilation

Andrea Bolognani posted 1 patch 5 years, 1 month ago
Test syntax-check passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/20190318100306.5708-1-abologna@redhat.com
buildenv-debian-sid-cross-i686.Dockerfile | 93 +++++++++++++++++++++++
1 file changed, 93 insertions(+)
create mode 100644 buildenv-debian-sid-cross-i686.Dockerfile
[libvirt] [dockerfiles PATCH] Add Dockerfile for i686 cross-compilation
Posted by Andrea Bolognani 5 years, 1 month ago
We didn't add this until now because i686 cross-compilation
requires special care and lcitool was known to produce broken
Dockerfiles, but that's been fixed as of libvirt-jenkins-ci
commit f72d09153905 so we can finally go ahead and complete
our coverage of non-x86_64 architectures.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
---
 buildenv-debian-sid-cross-i686.Dockerfile | 93 +++++++++++++++++++++++
 1 file changed, 93 insertions(+)
 create mode 100644 buildenv-debian-sid-cross-i686.Dockerfile

diff --git a/buildenv-debian-sid-cross-i686.Dockerfile b/buildenv-debian-sid-cross-i686.Dockerfile
new file mode 100644
index 0000000..0ac238b
--- /dev/null
+++ b/buildenv-debian-sid-cross-i686.Dockerfile
@@ -0,0 +1,93 @@
+FROM debian:sid
+
+RUN export DEBIAN_FRONTEND=noninteractive && \
+    apt-get update && \
+    apt-get dist-upgrade -y && \
+    apt-get install --no-install-recommends -y \
+            augeas-tools \
+            autoconf \
+            automake \
+            autopoint \
+            bash \
+            bash-completion \
+            ccache \
+            chrony \
+            dnsmasq-base \
+            dwarves \
+            ebtables \
+            gcc \
+            gettext \
+            git \
+            iproute2 \
+            kmod \
+            libc-dev-bin \
+            libtool \
+            libtool-bin \
+            libxml2-utils \
+            lvm2 \
+            make \
+            nfs-common \
+            numad \
+            open-iscsi \
+            parted \
+            patch \
+            perl \
+            pkgconf \
+            policykit-1 \
+            qemu-utils \
+            radvd \
+            screen \
+            scrub \
+            sudo \
+            vim \
+            xsltproc \
+            zfs-fuse && \
+    apt-get autoremove -y && \
+    apt-get autoclean -y
+
+RUN export DEBIAN_FRONTEND=noninteractive && \
+    dpkg --add-architecture i386 && \
+    apt-get update && \
+    apt-get dist-upgrade -y && \
+    apt-get install --no-install-recommends -y \
+            gcc-i686-linux-gnu \
+            libacl1-dev:i386 \
+            libapparmor-dev:i386 \
+            libattr1-dev:i386 \
+            libaudit-dev:i386 \
+            libavahi-client-dev:i386 \
+            libblkid-dev:i386 \
+            libc6-dev:i386 \
+            libcap-ng-dev:i386 \
+            libcurl4-gnutls-dev:i386 \
+            libdbus-1-dev:i386 \
+            libdevmapper-dev:i386 \
+            libfuse-dev:i386 \
+            libglusterfs-dev:i386 \
+            libgnutls28-dev:i386 \
+            libiscsi-dev:i386 \
+            libnl-3-dev:i386 \
+            libnl-route-3-dev:i386 \
+            libnuma-dev:i386 \
+            libparted-dev:i386 \
+            libpcap0.8-dev:i386 \
+            libpciaccess-dev:i386 \
+            librbd-dev:i386 \
+            libreadline-dev:i386 \
+            libsanlock-dev:i386 \
+            libsasl2-dev:i386 \
+            libselinux1-dev:i386 \
+            libssh-gcrypt-dev:i386 \
+            libssh2-1-dev:i386 \
+            libtirpc-dev:i386 \
+            libudev-dev:i386 \
+            libxml2-dev:i386 \
+            libyajl-dev:i386 \
+            xfslibs-dev:i386 && \
+    apt-get autoremove -y && \
+    apt-get autoclean -y
+
+ENV ABI "i686-linux-gnu"
+ENV CONFIGURE_OPTS "--host=i686-linux-gnu \
+                    --target=i686-linux-gnu"
+ENV PKG_CONFIG_LIBDIR "/usr/lib/i386-linux-gnu/pkgconfig"
-- 
2.20.1

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] [dockerfiles PATCH] Add Dockerfile for i686 cross-compilation
Posted by Andrea Bolognani 5 years ago
On Mon, 2019-03-18 at 11:03 +0100, Andrea Bolognani wrote:
> We didn't add this until now because i686 cross-compilation
> requires special care and lcitool was known to produce broken
> Dockerfiles, but that's been fixed as of libvirt-jenkins-ci
> commit f72d09153905 so we can finally go ahead and complete
> our coverage of non-x86_64 architectures.
> 
> Signed-off-by: Andrea Bolognani <abologna@redhat.com>
> ---
>  buildenv-debian-sid-cross-i686.Dockerfile | 93 +++++++++++++++++++++++
>  1 file changed, 93 insertions(+)
>  create mode 100644 buildenv-debian-sid-cross-i686.Dockerfile

Now pushed since nobody told me not to over a week or so :)

-- 
Andrea Bolognani / Red Hat / Virtualization

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] [dockerfiles PATCH] Add Dockerfile for i686 cross-compilation
Posted by Daniel P. Berrangé 5 years ago
On Wed, Mar 27, 2019 at 10:07:16AM +0100, Andrea Bolognani wrote:
> On Mon, 2019-03-18 at 11:03 +0100, Andrea Bolognani wrote:
> > We didn't add this until now because i686 cross-compilation
> > requires special care and lcitool was known to produce broken
> > Dockerfiles, but that's been fixed as of libvirt-jenkins-ci
> > commit f72d09153905 so we can finally go ahead and complete
> > our coverage of non-x86_64 architectures.
> > 
> > Signed-off-by: Andrea Bolognani <abologna@redhat.com>
> > ---
> >  buildenv-debian-sid-cross-i686.Dockerfile | 93 +++++++++++++++++++++++
> >  1 file changed, 93 insertions(+)
> >  create mode 100644 buildenv-debian-sid-cross-i686.Dockerfile
> 
> Now pushed since nobody told me not to over a week or so :)

Sorry, I thought you always just pushed to dockerfiles.git repo without
waiting for review, since its contents is just redundant data generated
from the jenkins-ci.git repo.


Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] [dockerfiles PATCH] Add Dockerfile for i686 cross-compilation
Posted by Andrea Bolognani 5 years ago
On Wed, 2019-03-27 at 09:17 +0000, Daniel P. Berrangé wrote:
> On Wed, Mar 27, 2019 at 10:07:16AM +0100, Andrea Bolognani wrote:
> > On Mon, 2019-03-18 at 11:03 +0100, Andrea Bolognani wrote:
> > > We didn't add this until now because i686 cross-compilation
> > > requires special care and lcitool was known to produce broken
> > > Dockerfiles, but that's been fixed as of libvirt-jenkins-ci
> > > commit f72d09153905 so we can finally go ahead and complete
> > > our coverage of non-x86_64 architectures.
> > > 
> > > Signed-off-by: Andrea Bolognani <abologna@redhat.com>
> > > ---
> > >  buildenv-debian-sid-cross-i686.Dockerfile | 93 +++++++++++++++++++++++
> > >  1 file changed, 93 insertions(+)
> > >  create mode 100644 buildenv-debian-sid-cross-i686.Dockerfile
> > 
> > Now pushed since nobody told me not to over a week or so :)
> 
> Sorry, I thought you always just pushed to dockerfiles.git repo without
> waiting for review, since its contents is just redundant data generated
> from the jenkins-ci.git repo.

Usually I push without review when all I've done is run the refresh
script to sync with libvirt-jenkins-ci.git, and wait for a review
when I'm changing the script or adding new stuff.

Either way, no worries! :)

-- 
Andrea Bolognani / Red Hat / Virtualization

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list