Elliott Mitchell
2021-Aug-09 01:46 UTC
[Pkg-xen-devel] [PATCH 2/4] debian/control: Update utils Recommends
While the "traditional" Linux bridge has been favored for a long time,
presently Open vSwitch is gaining favor. Add ovn-host as an alternative
recommendation to bridge-utils.
Presently PvGRUB is the only packaged alternative to PyGRUB, but
alternatives are on the horizon. Introduce the virtual
"xen-domu-bootloader" as something which alternatives can provide.
Signed-off-by: Elliott Mitchell <ehem+debian at m5p.com>
---
debian/control | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/debian/control b/debian/control
index 1f88f1a40f..3dc9b5504b 100644
--- a/debian/control
+++ b/debian/control
@@ -102,7 +102,7 @@ Section: admin
Architecture: amd64 arm64 armhf i386
Provides: xen-utils
Depends: ${shlibs:Depends}, ${misc:Depends}, python3, xen-utils-common (>=
${source:Version})
-Recommends: bridge-utils, libc6-xen [i386], xen-hypervisor-4.14,
qemu-system-x86, grub-xen-host [i386 amd64]
+Recommends: bridge-utils | ovn-host, libc6-xen [i386], xen-hypervisor-4.14,
qemu-system-x86, xen-domu-bootloader | grub-xen-host
Suggests: qemu-utils [i386 amd64], seabios [i386 amd64], ovmf
Description: XEN administrative tools
The userspace tools to manage a system virtualized through the XEN virtual
--
(\___(\___(\______ --=> 8-) EHM <=-- ______/)___/)___/)
\BS ( | ehem+sigmsg at m5p.com PGP 87145445 | ) /
\_CS\ | _____ -O #include <stddisclaimer.h> O- _____ | / _/
8A19\___\_|_/58D2 7E3D DDF4 7BA6 <-PGP-> 41D1 B375 37D0 8714\_|_/___/5445
Elliott Mitchell
2021-Aug-09 01:46 UTC
[Pkg-xen-devel] [PATCH 3/4] debian/rules: Setup use of noOCAML profile
This adds support for use of the "noocaml" profile
(https://wiki.debian.org/BuildProfileSpec). This allows disabling build
of OCAML portions of Xen. Compatibility between non-OCAML and OCAML
builds needs to be maintained since updates might make cross-building of
OCAML possible or an installation might replace one with the other.
Presently the primary expected use is to allow cross-building of the Xen
packages. At this time cross-building for OCAML is very broken.
Hopefully it may work in future, but at this time it does not.
Signed-off-by: Elliott Mitchell <ehem+debian at m5p.com>
---
debian/control | 4 ++--
debian/rules | 11 +++++++++++
2 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/debian/control b/debian/control
index 3dc9b5504b..757cd1cd1a 100644
--- a/debian/control
+++ b/debian/control
@@ -32,8 +32,8 @@ Build-Depends:
zlib1g-dev,
pandoc,
markdown,
- ocaml-native-compilers | ocaml-nox,
- ocaml-findlib,
+ ocaml-native-compilers <!noocaml> | ocaml-nox <!noocaml>,
+ ocaml-findlib <!noocaml>,
Homepage: https://xenproject.org/
Vcs-Browser: https://salsa.debian.org/xen-team/debian-xen
Vcs-Git: https://salsa.debian.org/xen-team/debian-xen.git
diff --git a/debian/rules b/debian/rules
index 222e012cf8..60d99e6dc2 100755
--- a/debian/rules
+++ b/debian/rules
@@ -164,6 +164,11 @@ export XEN_BUILD_TIME=$(shell LC_ALL=C date -u -d
"@$(SOURCE_DATE_EPOCH)" "+%T")
export SMBIOS_REL_DATE=$(shell LC_ALL=C date -u -d
"@$(SOURCE_DATE_EPOCH)" "+%m/%d/%Y")
export VGABIOS_REL_DATE=$(shell LC_ALL=C date -u -d
"@$(SOURCE_DATE_EPOCH)" "+%d %b %Y")
+# Disable Xen's OCAML build if specified
+ifneq ($(filter noocaml,$(DEB_BUILD_PROFILES)),)
+make_args_tools += OCAML_TOOLS=n
+endif
+
export PYBUILD_NAME=xen
export PYBUILD_DISABLE=test
export PYBUILD_SYSTEM=distutils
@@ -238,6 +243,12 @@ override_dh_auto_install: $(TEMPLATED_FILES)
$(MAKE) $(make_args_tools) DESTDIR=$t \
install-{tools,docs} CONFIG_PV_SHIM=n
:
+ @# xen-utils-common needs these against another installation w/OCAML
+ if [ -n "$(filter noocaml,$(DEB_BUILD_PROFILES))" ]; then \
+ ln tools/ocaml/xenstored/oxenstored.conf $t/etc/xen/oxenstored.conf ; \
+ ln -s /usr/lib/xen-common/bin/xen-utils-wrapper $t/usr/sbin/oxenstored ; \
+ fi
+ :
@# shim install target needs to be run separately because we
@# need to pass it the make_args_xen settings, in particular
@# on i386 bwe need to pass x86_64 here to actually build it.
--
(\___(\___(\______ --=> 8-) EHM <=-- ______/)___/)___/)
\BS ( | ehem+sigmsg at m5p.com PGP 87145445 | ) /
\_CS\ | _____ -O #include <stddisclaimer.h> O- _____ | / _/
8A19\___\_|_/58D2 7E3D DDF4 7BA6 <-PGP-> 41D1 B375 37D0 8714\_|_/___/5445