mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-27 07:52:55 +02:00
xen: update to 4.14.0
This commit is contained in:
parent
045de8761e
commit
155d4848ed
2 changed files with 74 additions and 61 deletions
|
@ -473,10 +473,12 @@ libprocesscore.so.9 libksysguard-5.18.90_1
|
||||||
liblsofui.so.9 libksysguard-5.18.90_1
|
liblsofui.so.9 libksysguard-5.18.90_1
|
||||||
libKSysGuardSensorFaces.so.1 libksysguard-5.18.90_1
|
libKSysGuardSensorFaces.so.1 libksysguard-5.18.90_1
|
||||||
libKWaylandServer.so.5 kwayland-server-5.18.90_1
|
libKWaylandServer.so.5 kwayland-server-5.18.90_1
|
||||||
libxenctrl.so.4.10 xen-libs-4.10.0_1
|
libxenctrl.so.4.14 xen-libs-4.14.0_1
|
||||||
libxenguest.so.4.10 xen-libs-4.10.0_1
|
libxenfsimage.so.4.14 xen-libs-4.14.0_1
|
||||||
libxlutil.so.4.10 xen-libs-4.10.0_1
|
libxenguest.so.4.14 xen-libs-4.14.0_1
|
||||||
libxenlight.so.4.10 xen-libs-4.10.0_1
|
libxenhypfs.so.1 xen-libs-4.14.0_1
|
||||||
|
libxlutil.so.4.14 xen-libs-4.14.0_1
|
||||||
|
libxenlight.so.4.14 xen-libs-4.14.0_1
|
||||||
libxenevtchn.so.1 xen-libs-4.10.0_1
|
libxenevtchn.so.1 xen-libs-4.10.0_1
|
||||||
libxengnttab.so.1 xen-libs-4.10.0_1
|
libxengnttab.so.1 xen-libs-4.10.0_1
|
||||||
libxendevicemodel.so.1 xen-libs-4.10.0_1
|
libxendevicemodel.so.1 xen-libs-4.10.0_1
|
||||||
|
@ -485,9 +487,9 @@ libxentoolcore.so.1 xen-libs-4.10.0_1
|
||||||
libxenstore.so.3.0 xen-libs-4.10.0_1
|
libxenstore.so.3.0 xen-libs-4.10.0_1
|
||||||
libxentoollog.so.1 xen-libs-4.10.0_1
|
libxentoollog.so.1 xen-libs-4.10.0_1
|
||||||
libxencall.so.1 xen-libs-4.10.0_1
|
libxencall.so.1 xen-libs-4.10.0_1
|
||||||
libxenvchan.so.4.10 xen-libs-4.10.0_1
|
libxenvchan.so.4.14 xen-libs-4.14.0_1
|
||||||
libfsimage.so.1.0 xen-libs-4.10.0_1
|
libfsimage.so.1.0 xen-libs-4.10.0_1
|
||||||
libxenstat.so.0 xen-libs-4.10.0_1
|
libxenstat.so.4.14 xen-libs-4.14.0_1
|
||||||
libfam.so.0 gamin-0.1.10_1
|
libfam.so.0 gamin-0.1.10_1
|
||||||
libgamin-1.so.0 gamin-0.1.10_1
|
libgamin-1.so.0 gamin-0.1.10_1
|
||||||
libKF5SyntaxHighlighting.so.5 syntax-highlighting-5.29.0_1
|
libKF5SyntaxHighlighting.so.5 syntax-highlighting-5.29.0_1
|
||||||
|
|
|
@ -1,16 +1,20 @@
|
||||||
# Template file for 'xen'
|
# Template file for 'xen'
|
||||||
pkgname=xen
|
pkgname=xen
|
||||||
version=4.10.4
|
version=4.14.0
|
||||||
revision=5
|
revision=1
|
||||||
# grep -R IPXE_GIT_TAG src/xen-*/tools/firmware/etherboot
|
# grep -R IPXE_GIT_TAG src/xen-*/tools/firmware/etherboot
|
||||||
_git_tag_ipxe=356f6c1b64d7a97746d1816cef8ca22bdd8d0b5d
|
_git_tag_ipxe=4bd064de239dab2426b31c9789a1f4d78087dc63
|
||||||
|
# TODO: arm / aarch64
|
||||||
archs="x86_64*"
|
archs="x86_64*"
|
||||||
configure_args="$(vopt_enable stubdom) --with-system-seabios=/usr/share/seabios/bios.bin"
|
build_style=gnu-configure
|
||||||
hostmakedepends="acpica-utils automake bison fig2dev gettext ghostscript git
|
configure_args="$(vopt_enable stubdom) --disable-systemd
|
||||||
ocaml ocaml-findlib pandoc pkg-config python-Markdown tar texinfo wget"
|
--with-system-seabios=/usr/share/seabios/bios.bin
|
||||||
makedepends="SDL-devel dtc-devel e2fsprogs-devel gnutls-devel libaio-devel
|
--with-sysconfig-leaf-dir=conf.d --with-rundir=/run"
|
||||||
|
hostmakedepends="acpica-utils automake bison flex fig2dev gettext ghostscript git
|
||||||
|
ocaml ocaml-findlib pandoc pkg-config python3-Markdown tar texinfo wget"
|
||||||
|
makedepends="SDL-devel dev86 dtc-devel e2fsprogs-devel gnutls-devel libaio-devel
|
||||||
libbluetooth-devel libglib-devel liblzma-devel libnl3-devel libressl-devel
|
libbluetooth-devel libglib-devel liblzma-devel libnl3-devel libressl-devel
|
||||||
netpbm pciutils-devel pixman-devel python-devel seabios yajl-devel"
|
netpbm pciutils-devel pixman-devel python3-devel seabios yajl-devel"
|
||||||
depends="bridge-utils perl xen-hypervisor"
|
depends="bridge-utils perl xen-hypervisor"
|
||||||
short_desc="Xen hypervisor utilities"
|
short_desc="Xen hypervisor utilities"
|
||||||
maintainer="Orphaned <orphan@voidlinux.org>"
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
||||||
|
@ -18,12 +22,11 @@ license="GPL-2.0-or-later"
|
||||||
homepage="https://www.xenproject.org/"
|
homepage="https://www.xenproject.org/"
|
||||||
distfiles="
|
distfiles="
|
||||||
https://downloads.xenproject.org/release/xen/${version}/${pkgname}-${version}.tar.gz
|
https://downloads.xenproject.org/release/xen/${version}/${pkgname}-${version}.tar.gz
|
||||||
http://xenbits.xen.org/xen-extfiles/ipxe-git-${_git_tag_ipxe}.tar.gz"
|
https://github.com/ipxe/ipxe/archive/${_git_tag_ipxe}.tar.gz"
|
||||||
checksum="
|
checksum="
|
||||||
904f7b19caf59ad8f795c4b5100010aa7ffb063ebf3a6bec40c18f3dd6c9f346
|
06839f68ea7620669dbe8b67861213223cc2a7d02ced61b56e5249c50e87f035
|
||||||
251e5516d7de470c434ae5c393aacca2b61fb24d93770592a4a20add60b785c4"
|
4850691d6f196eaf4d6210f2de01383251b3ea1b928141da9ce28c0b06a90938"
|
||||||
skip_extraction="ipxe-git-${_git_tag_ipxe}.tar.gz"
|
skip_extraction="${_git_tag_ipxe}.tar.gz"
|
||||||
nopie=yes
|
|
||||||
|
|
||||||
build_options="stubdom"
|
build_options="stubdom"
|
||||||
build_options_default="stubdom"
|
build_options_default="stubdom"
|
||||||
|
@ -38,7 +41,7 @@ if [ "$build_option_stubdom" ]; then
|
||||||
_newlib_version=1.16.0
|
_newlib_version=1.16.0
|
||||||
_libpci_version=2.2.9
|
_libpci_version=2.2.9
|
||||||
_tpmemu_version=0.7.4
|
_tpmemu_version=0.7.4
|
||||||
_ocaml_version=3.11.0
|
_ocaml_version=4.02.0
|
||||||
distfiles+="
|
distfiles+="
|
||||||
http://xenbits.xen.org/xen-extfiles/gmp-${_gmp_version}.tar.bz2
|
http://xenbits.xen.org/xen-extfiles/gmp-${_gmp_version}.tar.bz2
|
||||||
http://xenbits.xen.org/xen-extfiles/grub-${_grub_version}.tar.gz
|
http://xenbits.xen.org/xen-extfiles/grub-${_grub_version}.tar.gz
|
||||||
|
@ -58,7 +61,7 @@ if [ "$build_option_stubdom" ]; then
|
||||||
db426394965c48c1d29023e1cc6d965ea6b9a9035d8a849be2750ca4659a3d07
|
db426394965c48c1d29023e1cc6d965ea6b9a9035d8a849be2750ca4659a3d07
|
||||||
f60ae61cfbd5da1d849d0beaa21f593c38dac9359f0b3ddc612f447408265b24
|
f60ae61cfbd5da1d849d0beaa21f593c38dac9359f0b3ddc612f447408265b24
|
||||||
4e48ea0d83dd9441cc1af04ab18cd6c961b9fa54d5cbf2c2feee038988dea459
|
4e48ea0d83dd9441cc1af04ab18cd6c961b9fa54d5cbf2c2feee038988dea459
|
||||||
ecdd4f8473ab0dee5d3acb5c0a31a4c1dd6aa12179895cf1903dd0f455c43a4f"
|
dbbcbd72a29a51206677a606ea09dfec83ae25cbbf52dee90306bc04812cd034"
|
||||||
skip_extraction+="
|
skip_extraction+="
|
||||||
gmp-${_gmp_version}.tar.bz2
|
gmp-${_gmp_version}.tar.bz2
|
||||||
grub-${_grub_version}.tar.gz
|
grub-${_grub_version}.tar.gz
|
||||||
|
@ -71,39 +74,53 @@ if [ "$build_option_stubdom" ]; then
|
||||||
ocaml-${_ocaml_version}.tar.gz"
|
ocaml-${_ocaml_version}.tar.gz"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
if [ "$XBPS_TARGET_LIBC" = musl ]; then
|
||||||
x86_64-musl) makedepends+=" argp-standalone dev86";;
|
makedepends+=" argp-standalone"
|
||||||
x86_64) makedepends+=" gcc-multilib dev86";;
|
else
|
||||||
esac
|
makedepends+=" gcc-multilib"
|
||||||
|
fi
|
||||||
|
|
||||||
make_dirs="
|
make_dirs="
|
||||||
/var/lib/xenstored 755 root root
|
/var/lib/xenstored 755 root root
|
||||||
/var/lib/xen/xenpaging 755 root root
|
/var/lib/xen/xenpaging 755 root root
|
||||||
/var/xen/dump 755 root root
|
/var/xen/dump 755 root root
|
||||||
/etc/xen/auto 755 root root"
|
/etc/xen/auto 755 root root"
|
||||||
conf_files="
|
conf_files="
|
||||||
/etc/default/xendomains
|
/etc/conf.d/xendomains
|
||||||
/etc/default/xencommons
|
/etc/conf.d/xencommons
|
||||||
/etc/xen/xl.conf"
|
/etc/xen/xl.conf"
|
||||||
nostrip_files="
|
nostrip_files="
|
||||||
u-boot.e500
|
hppa-firmware.img
|
||||||
openbios-ppc
|
u-boot.e500
|
||||||
openbios-sparc32
|
openbios-ppc
|
||||||
openbios-sparc64
|
openbios-sparc32
|
||||||
palcode-clipper
|
openbios-sparc64
|
||||||
s390-ccw.img
|
palcode-clipper
|
||||||
s390-netboot.img"
|
s390-ccw.img
|
||||||
|
s390-netboot.img"
|
||||||
CFLAGS="-fno-pie -Wno-format-truncation"
|
ignore_elf_files="
|
||||||
|
/usr/share/xen/qemu/openbios-ppc
|
||||||
|
/usr/share/xen/qemu/openbios-sparc64
|
||||||
|
/usr/share/xen/qemu/openbios-sparc32"
|
||||||
|
|
||||||
post_extract() {
|
post_extract() {
|
||||||
local _src="${XBPS_SRCDISTDIR}/${pkgname}-${version}"
|
local _src="${XBPS_SRCDISTDIR}/${pkgname}-${version}"
|
||||||
msg_normal "Copying etherboot ipxe file ...\n"
|
|
||||||
cp -v "${_src}/ipxe-git-${_git_tag_ipxe}.tar.gz" \
|
msg_normal "Extracting etherboot ipxe files ...\n"
|
||||||
tools/firmware/etherboot/ipxe.tar.gz
|
mkdir tools/firmware/etherboot/ipxe
|
||||||
|
tar --strip-components=1 -x \
|
||||||
|
-f ${_src}/${_git_tag_ipxe}.tar.gz \
|
||||||
|
-C tools/firmware/etherboot/ipxe/
|
||||||
|
# Create a tarball w/o the git tag
|
||||||
|
tar -czf tools/firmware/etherboot/ipxe.tar.gz \
|
||||||
|
-C tools/firmware/etherboot/ ipxe
|
||||||
|
|
||||||
if [ "$build_option_stubdom" ]; then
|
if [ "$build_option_stubdom" ]; then
|
||||||
|
# Patch a patch
|
||||||
|
vsed -i stubdom/grub.patches/99minios \
|
||||||
|
-e"/RAW_ADDR/s/(int) grub_scratch_mem/(long) grub_scratch_mem/"
|
||||||
|
mkdir -p stubdom/mini-os-x86_64-grub/{arch/x86,console,lib,xenbus}
|
||||||
msg_normal "Copying stubdom files ...\n"
|
msg_normal "Copying stubdom files ...\n"
|
||||||
mkdir -p stubdom
|
|
||||||
cp -pv \
|
cp -pv \
|
||||||
${_src}/grub-${_grub_version}.tar.gz \
|
${_src}/grub-${_grub_version}.tar.gz \
|
||||||
${_src}/gmp-${_gmp_version}.tar.bz2 \
|
${_src}/gmp-${_gmp_version}.tar.bz2 \
|
||||||
|
@ -118,34 +135,28 @@ post_extract() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
pre_configure() {
|
do_configure() {
|
||||||
|
unset AR OBJCOPY RANLIB CC LD CFLAGS LDFLAGS
|
||||||
find \( -name "Makefile*" -o -name "*.mk" -o -name "common.make" \) \
|
find \( -name "Makefile*" -o -name "*.mk" -o -name "common.make" \) \
|
||||||
-exec sed -i "{}" -e "s; *-Werror *; ;g" \;
|
-exec sed -i "{}" -e "s; *-Werror *; ;g" \;
|
||||||
vsed -i tools/python/setup.py -e 's;, "-Werror";;g'
|
vsed -i tools/python/setup.py -e 's;, "-Werror";;g'
|
||||||
}
|
# Silence a stream edit for dependencies
|
||||||
|
vsed -i Config.mk -e 's;sed ";@&;'
|
||||||
do_configure() {
|
cp -a ${FILESDIR}/*.h ${wrksrc}/tools/firmware
|
||||||
rm -f ${XBPS_WRAPPERDIR}/strip
|
rm -f ${XBPS_WRAPPERDIR}/strip
|
||||||
cp ${FILESDIR}/*.h ${wrksrc}/tools/firmware
|
./autogen.sh
|
||||||
NOCONFIGURE=1 autoreconf -fi
|
|
||||||
# Get rid of -Werror
|
|
||||||
find . -name '*.mk' -o -name 'Make*' | xargs sed -i -e 's/-Werror/-Wno-error/g'
|
|
||||||
unset CC LD AR AS RANLIB CPP CFLAGS CXXFLAGS CPPFLAGS LDFLAGS
|
|
||||||
./configure ${configure_args}
|
./configure ${configure_args}
|
||||||
}
|
}
|
||||||
|
|
||||||
do_build() {
|
do_build() {
|
||||||
|
unset AR OBJCOPY RANLIB CC LD CFLAGS LDFLAGS
|
||||||
rm -f ${XBPS_WRAPPERDIR}/strip
|
rm -f ${XBPS_WRAPPERDIR}/strip
|
||||||
unset CC LD AR AS RANLIB CPP CFLAGS CXXFLAGS CPPFLAGS LDFLAGS
|
make ${makejobs} dist
|
||||||
mkdir -p ${wrksrc}/distdir-${version}
|
|
||||||
# oxenstore build fails due to warnings - ignore
|
|
||||||
make ${makejobs} DISTDIR=${wrksrc}/distdir-${version} NO_WERROR=1 || true
|
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
rm -f ${XBPS_WRAPPERDIR}/strip
|
unset AR OBJCOPY RANLIB CC LD CFLAGS LDFLAGS
|
||||||
unset CC LD AR AS RANLIB CPP CFLAGS CXXFLAGS CPPFLAGS LDFLAGS
|
make ${makejobs} DESTDIR=${DESTDIR} install install-docs
|
||||||
make ${makejobs} DESTDIR=${DESTDIR} NO_WERROR=1 install install-docs
|
|
||||||
|
|
||||||
# Move example config files into correct directory.
|
# Move example config files into correct directory.
|
||||||
vmkdir usr/share/examples/xen
|
vmkdir usr/share/examples/xen
|
||||||
|
|
Loading…
Add table
Reference in a new issue