[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH 1/3] ci: add Dockerfile for CentOS 6
On Sun, Mar 25, 2018 at 3:21 PM, Doug Goldstein <cardoe@xxxxxxxxxx> wrote: > Added a Dockerfile which captures all the necessary dependencies to > build Xen on a CentOS 6 system. > > Signed-off-by: Doug Goldstein <cardoe@xxxxxxxxxx> > --- > automation/build/centos/6.dockerfile | 40 > ++++++++++++++++++++++++++++++++++++ > 1 file changed, 40 insertions(+) > create mode 100644 automation/build/centos/6.dockerfile > > diff --git a/automation/build/centos/6.dockerfile > b/automation/build/centos/6.dockerfile > new file mode 100644 > index 0000000000..507cffcc42 > --- /dev/null > +++ b/automation/build/centos/6.dockerfile > @@ -0,0 +1,40 @@ > +FROM centos:6 > +LABEL maintainer.name="The Xen Project" \ > + maintainer.email="xen-devel@xxxxxxxxxxxxxxxxxxxx" > + > +RUN mkdir /build > +WORKDIR /build > + > +# work around https://github.com/moby/moby/issues/10180 > +# and install Xen depends > +RUN rpm --rebuilddb && \ > + yum -y install \ > + yum-plugin-ovl \ > + gcc \ > + gcc-c++ \ > + ncurses-devel \ > + zlib-devel \ > + openssl-devel \ > + python-devel \ > + libuuid-devel \ > + pkgconfig \ > + gettext \ > + flex \ > + bison \ > + libaio-devel \ > + glib2-devel \ > + yajl-devel \ > + pixman-devel \ > + glibc-devel \ > + glibc-devel.i686 \ Is this guaranteed to install glibc-devel before glibc-devel.i686? There's some weird dependency thing whereby the first glibc installed ends up getting used by default for something, so if glibc-devel.i686 ends up installed first for whatever reason, everything gets messed up. In my own scripts to set up a CentOS build environment I always install glibc-devel separately first, before installing everything else. But since it's all scripted, I haven't seen the actual error in years, so I forget what it was. :-) You might consider pro-actively installing glibc-devel separately to avoid the issue; or you might wait until you get an error so you can document it properly. > + make \ > + binutils \ > + git \ > + wget \ > + acpica-tools \ > + iasl \ > + python-markdown \ > + patch \ > + checkpolicy \ > + pciutils-devel \ I assume the goal here is to test as much of the build as possible? Here are additional builddeps I've got in the CentOS packages. I'm not positive they're all still needed (or ever were really), so it's worth taking with a grain of salt: * Unspecified BuildRequires transfig libidn-devel texi2html SDL-devel curl-devel libX11-devel ghostscript texlive-latex gtk2-devel libtool gnutls-devel * "for the docs" perl texinfo graphviz * For rombios (I think) dev86 * "modern compressed kernels" bzip2-devel xz-devel * "libfsimage" e2fsprogs-devel * "with_ocaml" ocaml ocaml-findlib * "with_spice" spice-server-devel usbredir-devel Then there's this line, which I'm not sure the best way to translate into something useful (obvs only for CentOS 7, which has systemd): BuildRequires: pkgconfig(libsystemd-daemon) Is that helpful? -George _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |