diff options
author | joerg <joerg@pkgsrc.org> | 2007-12-30 17:12:44 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2007-12-30 17:12:44 +0000 |
commit | 05830a2fa5fc60b82c9bad8e4ee31a562840b344 (patch) | |
tree | eec7c520aee5e7431bd5f57ef6817a9892a72622 /emulators/qemu/patches | |
parent | 150f7cb272c9124d031a561036e9b35201632b3d (diff) | |
download | pkgsrc-05830a2fa5fc60b82c9bad8e4ee31a562840b344.tar.gz |
Fix build on DragonFly. From Rumko based on patch from Patrick Georgi.
Diffstat (limited to 'emulators/qemu/patches')
-rw-r--r-- | emulators/qemu/patches/patch-ab | 28 | ||||
-rw-r--r-- | emulators/qemu/patches/patch-ad | 15 | ||||
-rw-r--r-- | emulators/qemu/patches/patch-ag | 44 | ||||
-rw-r--r-- | emulators/qemu/patches/patch-ak | 19 |
4 files changed, 95 insertions, 11 deletions
diff --git a/emulators/qemu/patches/patch-ab b/emulators/qemu/patches/patch-ab new file mode 100644 index 00000000000..9e4ede5168e --- /dev/null +++ b/emulators/qemu/patches/patch-ab @@ -0,0 +1,28 @@ +$NetBSD: patch-ab,v 1.8 2007/12/30 17:12:44 joerg Exp $ + +--- Makefile.target.orig 2007-02-05 23:01:54 +0000 ++++ Makefile.target +@@ -72,6 +72,10 @@ endif + # We require -O2 to avoid the stack setup prologue in EXIT_TB + OP_CFLAGS = -Wall -O2 -g -fno-strict-aliasing + ++ifdef STACK_PROTECTOR_PRESENT ++OP_CFLAGS += -fno-stack-protector ++endif ++ + ifeq ($(ARCH),i386) + HELPER_CFLAGS+=-fomit-frame-pointer + OP_CFLAGS+=-mpreferred-stack-boundary=2 -fomit-frame-pointer +@@ -440,10 +444,12 @@ endif + ifndef CONFIG_DARWIN + ifndef CONFIG_WIN32 + ifndef CONFIG_SOLARIS ++ifndef CONFIG_DRAGONFLY + VL_LIBS=-lutil -lrt + endif + endif + endif ++endif + ifdef TARGET_GPROF + vl.o: BASE_CFLAGS+=-p + VL_LDFLAGS+=-p diff --git a/emulators/qemu/patches/patch-ad b/emulators/qemu/patches/patch-ad new file mode 100644 index 00000000000..5335c36a228 --- /dev/null +++ b/emulators/qemu/patches/patch-ad @@ -0,0 +1,15 @@ +$NetBSD: patch-ad,v 1.3 2007/12/30 17:12:45 joerg Exp $ + +--- block.c.orig 2007-02-05 23:01:54 +0000 ++++ block.c +@@ -29,8 +29,10 @@ + #include <sys/stat.h> + #include <sys/ioctl.h> + #include <sys/queue.h> ++#ifndef __DragonFly__ + #include <sys/disk.h> + #endif ++#endif + + #define SECTOR_BITS 9 + #define SECTOR_SIZE (1 << SECTOR_BITS) diff --git a/emulators/qemu/patches/patch-ag b/emulators/qemu/patches/patch-ag index 7aea34e0c94..9e3b57bbe20 100644 --- a/emulators/qemu/patches/patch-ag +++ b/emulators/qemu/patches/patch-ag @@ -1,8 +1,8 @@ -$NetBSD: patch-ag,v 1.8 2007/01/06 21:21:35 xtraeme Exp $ +$NetBSD: patch-ag,v 1.9 2007/12/30 17:12:45 joerg Exp $ ---- configure.orig 2006-12-07 16:59:57.000000000 +0100 -+++ configure 2006-12-07 17:02:12.000000000 +0100 -@@ -27,7 +27,7 @@ +--- configure.orig 2007-02-05 23:01:54 +0000 ++++ configure +@@ -29,7 +29,7 @@ ar="ar" make="make" install="install" strip="strip" @@ -11,7 +11,7 @@ $NetBSD: patch-ag,v 1.8 2007/01/06 21:21:35 xtraeme Exp $ target_list="" case "$cpu" in i386|i486|i586|i686|i86pc|BePC) -@@ -42,7 +42,7 @@ +@@ -44,7 +44,7 @@ case "$cpu" in alpha) cpu="alpha" ;; @@ -20,7 +20,7 @@ $NetBSD: patch-ag,v 1.8 2007/01/06 21:21:35 xtraeme Exp $ cpu="powerpc" ;; mips) -@@ -115,6 +115,12 @@ +@@ -116,6 +116,12 @@ if [ "$cpu" = "i386" -o "$cpu" = "x86_64 kqemu="yes" fi ;; @@ -33,7 +33,24 @@ $NetBSD: patch-ag,v 1.8 2007/01/06 21:21:35 xtraeme Exp $ NetBSD) bsd="yes" oss="yes" -@@ -509,7 +515,7 @@ +@@ -371,6 +377,16 @@ EOF + fi + fi + ++# Check for stack protector ++cat > $TMPC <<EOF ++extern int foo; ++EOF ++if "$cc" -o $TMPE $TMPC -fno-stack-protector 2> /dev/null ; then ++ stack_protector_present="no" ++else ++ stack_protector_present="yes" ++fi ++ + # + # Solaris specific configure tool chain decisions + # +@@ -573,7 +589,7 @@ else if test -z "$prefix" ; then prefix="/usr/local" fi @@ -42,7 +59,7 @@ $NetBSD: patch-ag,v 1.8 2007/01/06 21:21:35 xtraeme Exp $ datadir="$prefix/share/qemu" docdir="$prefix/share/doc/qemu" bindir="$prefix/bin" -@@ -646,6 +652,11 @@ +@@ -711,6 +727,11 @@ if test "$mingw32" = "yes" ; then echo "#define CONFIG_WIN32 1" >> $config_h elif test -f "/usr/include/byteswap.h" ; then echo "#define HAVE_BYTESWAP_H 1" >> $config_h @@ -54,3 +71,14 @@ $NetBSD: patch-ag,v 1.8 2007/01/06 21:21:35 xtraeme Exp $ fi if test "$darwin" = "yes" ; then echo "CONFIG_DARWIN=yes" >> $config_mak +@@ -785,6 +806,10 @@ if [ "$bsd" = "yes" ] ; then + echo "#define _BSD 1" >> $config_h + fi + ++if [ "$stack_protector_present" = "yes" ] ; then ++ echo "STACK_PROTECTOR_PRESENT=yes" >> $config_mak ++fi ++ + echo "#define CONFIG_UNAME_RELEASE \"$uname_release\"" >> $config_h + + for target in $target_list; do diff --git a/emulators/qemu/patches/patch-ak b/emulators/qemu/patches/patch-ak index 3be6dc11ff5..e58757180b4 100644 --- a/emulators/qemu/patches/patch-ak +++ b/emulators/qemu/patches/patch-ak @@ -1,8 +1,21 @@ -$NetBSD: patch-ak,v 1.11 2007/12/18 00:16:56 joerg Exp $ +$NetBSD: patch-ak,v 1.12 2007/12/30 17:12:45 joerg Exp $ ---- Makefile.orig 2007-02-06 00:01:54.000000000 +0100 +--- Makefile.orig 2007-02-05 23:01:54 +0000 +++ Makefile -@@ -66,21 +66,21 @@ ar de en-us fi fr-be hr +@@ -27,10 +27,12 @@ endif + ifndef CONFIG_DARWIN + ifndef CONFIG_WIN32 + ifndef CONFIG_SOLARIS ++ifndef CONFIG_DRAGONFLY + LIBS+=-lrt + endif + endif + endif ++endif + + all: $(TOOLS) $(DOCS) recurse-all + +@@ -66,21 +68,21 @@ ar de en-us fi fr-be hr common de-ch es fo fr-ca hu ja mk nl-be pt sl tr install-doc: $(DOCS) |