More GitLab Bits
cover More GitLab Bits
- add CentOS 6 as a test environment
- fix missing dependency on libpci for qemu-trad
Doug Goldstein (3):
ci: add Dockerfile for CentOS 6
ci: add GCC based build tests for CentOS 6
ci: add missing libpci dependency
.gitlab-ci.yml | 16 +++++++++++++ automation/build/centos/6.dockerfile | 40 +++++++++++++++++++++++++++++++ automation/build/centos/7.2.dockerfile | 1 + automation/build/ubuntu/trusty.dockerfile | 1 + automation/build/ubuntu/xenial.dockerfile | 1 + 5 files changed, 59 insertions(+) create mode 100644 automation/build/centos/6.dockerfile
Signature · 7 lines
2.16.1 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
PATCH 1/3 ci: add Dockerfile for CentOS 6
Added a Dockerfile which captures all the necessary dependencies to build Xen on a CentOS 6 system.
--- automation/build/centos/6.dockerfile | 40 ++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 automation/build/centos/6.dockerfile
automation/build/centos/6.dockerfile new file +40 -0
@@ -0,0 +1,40 @@ +FROM centos:6 +LABEL maintainer.name="The Xen Project" \ + maintainer.email="[email protected]" + +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 \ + make \ + binutils \ + git \ + wget \ + acpica-tools \ + iasl \ + python-markdown \ + patch \ + checkpolicy \ + pciutils-devel \ + && yum clean all
Signature · 7 lines
2.16.1 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
Re: [PATCH 1/3] ci: add Dockerfile for CentOS 6
Quoted 34 lines · Doug Goldstein
Added a Dockerfile which captures all the necessary dependencies to build Xen on a CentOS 6 system.
Signed-off-by Doug Goldstein <[email protected]>--- automation/build/centos/6.dockerfile | 40 ++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 automation/build/centos/6.dockerfileautomation/build/centos/6.dockerfile new file +19
-0@@ -0,0 +1,40 @@ +FROM centos:6 +LABEL maintainer.name="The Xen Project" \ + maintainer.email="[email protected]" + +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 \
automation/build/centos/6.dockerfile line 29
Quoted 10 lines
automation/build/centos/6.dockerfile new file +10
-0+ 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.
automation/build/centos/6.dockerfile line 39
Quoted 10 lines
automation/build/centos/6.dockerfile new file +10
-0+ 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
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
PATCH 2/3 ci: add GCC based build tests for CentOS 6
In reply to Doug Goldstein--- .gitlab-ci.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)
.gitlab-ci.yml +16 -0
@@ -23,6 +23,22 @@ stages: CXX: clang++ clang: y +centos-6-gcc: + <<: *build + variables: + <<: *gcc + CONTAINER: centos:6 + debug: n + XEN_TARGET_ARCH: x86_64 + +centos-6-gcc-debug: + <<: *build + variables: + <<: *gcc + CONTAINER: centos:6 + debug: y + XEN_TARGET_ARCH: x86_64 + centos-7-2-gcc: <<: *build variables:
Signature · 7 lines
2.16.1 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
PATCH 3/3 ci: add missing libpci dependency
In reply to Doug GoldsteinWhile building qemu-xen-traditional the following message is printed to the build log.
xen-hooks.mak:75: === pciutils-dev package not found - missing /usr/include/pci xen-hooks.mak:76: === PCI passthrough capability has been disabled
--- automation/build/centos/7.2.dockerfile | 1 + automation/build/ubuntu/trusty.dockerfile | 1 + automation/build/ubuntu/xenial.dockerfile | 1 + 3 files changed, 3 insertions(+)
automation/build/centos/7.2.dockerfile +1 -0
@@ -39,4 +39,5 @@ RUN rpm --rebuilddb && \ python-markdown \ patch \ checkpolicy \ + pciutils-devel \ && yum clean all
automation/build/ubuntu/trusty.dockerfile +1 -0
@@ -30,6 +30,7 @@ RUN apt-get update && \ acpica-tools \ bin86 \ bcc \ + libpci-dev \ liblzma-dev \ libc6-dev-i386 \ libnl-3-dev \
automation/build/ubuntu/xenial.dockerfile +1 -0
@@ -30,6 +30,7 @@ RUN apt-get update && \ acpica-tools \ bin86 \ bcc \ + libpci-dev \ liblzma-dev \ libc6-dev-i386 \ libnl-3-dev \
Signature · 7 lines
2.16.1 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 2 lines · Doug Goldstein
- add CentOS 6 as a test environment
- fix missing dependency on libpci for qemu-trad
I forgot to mention that the test run is here:
https://gitlab.com/cardoe/xen/pipelines/19442238
Signature · 6 lines
Doug Goldstein _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
[PATCH 4/3] README: document that qemu-trad wants libpci
In reply to Doug Goldsteinqemu-traditional wants libpci from pciutils for supporting PCI passthrough.
--- README | 1 + 1 file changed, 1 insertion(+)
README +1 -0
@@ -82,6 +82,7 @@ disabled at compile time: information. * 16-bit x86 assembler, loader and compiler for qemu-traditional / rombios (dev86 rpm or bin86 & bcc debs) + * libpci from pciutils for qemu-traditional * Development install of liblzma for rombios Second, you need to acquire a suitable kernel for use in domain 0. If
Signature · 7 lines
2.16.1 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
Re: [PATCH 4/3] README: document that qemu-trad wants libpci
Quoted 3 lines
Quoted 1 line
Quoted 1 line · On 25.03.18 at 16:26, <[email protected]> wrote:
qemu-traditional wants libpci from pciutils for supporting PCI passthrough.
Iirc it builds fine without, disabling respective code. Hence I don't think this fully fits the other (strict) requirements.
Jan
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Re: [PATCH 4/3] README: document that qemu-trad wants libpci
Quoted 9 lines · Jan Beulich
Quoted 3 lines
Quoted 1 line
Quoted 1 line · On 25.03.18 at 16:26, <[email protected]> wrote:
qemu-traditional wants libpci from pciutils for supporting PCI passthrough.
Iirc it builds fine without, disabling respective code. Hence I don't think this fully fits the other (strict) requirements.
Jan
I put it under the section that reads:
In addition to the above there are a number of optional build prerequisites. Omitting these will cause the related features to be disabled at compile time:
I figured with that caveat and mentioning PCI passthrough that it was good enough but I can happily reword further.
Signature · 6 lines
Doug Goldstein _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
Re: [PATCH 4/3] README: document that qemu-trad wants libpci
Quoted 9 lines
Quoted 1 line
Quoted 1 line · On 26.03.18 at 15:22, <[email protected]> wrote:
Quoted 6 lines · Jan Beulich
Quoted 3 lines
Quoted 1 line
Quoted 1 line · On 25.03.18 at 16:26, <[email protected]> wrote:
qemu-traditional wants libpci from pciutils for supporting PCI passthrough.
Iirc it builds fine without, disabling respective code. Hence I don't think this fully fits the other (strict) requirements.
Quoted 8 lines
I put it under the section that reads:
In addition to the above there are a number of optional build prerequisites. Omitting these will cause the related features to be disabled at compile time:
I figured with that caveat and mentioning PCI passthrough that it was good enough but I can happily reword further.
The immediately preceding item is
* 16-bit x86 assembler, loader and compiler for qemu-traditional / rombios (dev86 rpm or bin86 & bcc debs)
Aiui qemu-trad won't build and/or work without these. As mentioned I believe qemu-trad both builds and works fine without libpci, just that PCI passthrough won't be possible. How about
* libpci from pciutils for qemu-traditional to support PCI passthrough
? That's still not as explicitly optional as I would want it, but I can't think of any better wording (without the entry getting undesirably long).
Jan
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel