xen: switch to libressl and fix build with gcc-4.9.x.

This commit is contained in:
Juan RP 2014-08-04 21:21:59 +02:00
parent 3899db1d13
commit 256b0def61
2 changed files with 34 additions and 5 deletions

View file

@ -0,0 +1,29 @@
--- Config.mk.orig 2014-04-29 20:54:43.117010822 +0100
+++ Config.mk 2014-04-29 20:58:23.100055325 +0100
@@ -188,6 +188,8 @@
CFLAGS += -std=gnu99
CFLAGS += -Wall -Wstrict-prototypes
+
+CFLAGS += -Wno-error=maybe-uninitialized
# Clang complains about macros that expand to 'if ( ( foo == bar ) ) ...'
# and is over-zealous with the printf format lint
--- tools/blktap2/drivers/block-qcow.c.orig 2014-03-10 10:43:57.000000000 +0000
+++ tools/blktap2/drivers/block-qcow.c 2014-04-30 21:10:26.270699187 +0100
@@ -427,6 +427,7 @@
if (posix_memalign((void **)&tmp_ptr, 4096, 4096) != 0) {
DPRINTF("ERROR allocating memory for L1 table\n");
+ return -1;
}
memcpy(tmp_ptr, l1_ptr, 4096);
@@ -600,6 +601,7 @@
if (posix_memalign((void **)&tmp_ptr2, 4096, 4096) != 0) {
DPRINTF("ERROR allocating memory for L1 table\n");
+ return -1;
}
memcpy(tmp_ptr2, l2_ptr, 4096);
lseek(s->fd, l2_offset + (l2_sector << 12), SEEK_SET);

View file

@ -2,7 +2,7 @@
pkgname=xen
version=4.4.0
wrksrc=xen-${version}
revision=2
revision=3
short_desc="The Xen hypervisor utilities"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://xen.org"
@ -12,12 +12,12 @@ checksum=6910a504fe2ffe8db0e7a44756ce1c4c95e1ccbef942a1fc8da27aced5aac021
only_for_archs="i686 x86_64"
hostmakedepends="which wget bison pkg-config"
hostmakedepends="wget bison pkg-config git"
makedepends="
libaio-devel lzo-devel openssl-devel e2fsprogs-devel zlib-devel gnutls-devel>=3.1.5
libaio-devel lzo-devel libressl-devel e2fsprogs-devel zlib-devel gnutls-devel>=3.1.5
libbluetooth-devel pciutils-devel libX11-devel libXext-devel SDL-devel MesaLib-devel
ncurses-devel liblzma-devel python-devel yajl-devel libuuid-devel libglib-devel iproute2
bridge-utils dev86 acpica-utils pixman-devel"
ncurses-devel liblzma-devel python-devel yajl-devel libuuid-devel libglib-devel
dev86 acpica-utils pixman-devel"
if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
makedepends+=" gcc-multilib"