Openembedded Devel Discussions
 help / color / mirror / Atom feed
From: Koen Kooi <k.kooi@student.utwente.nl>
To: openembedded-devel@openembedded.org
Subject: Re: [STABLE][PATCH 013/125] qemu 0.10.3: port OE patches, make preferable version
Date: Wed, 01 Jul 2009 21:15:35 +0200	[thread overview]
Message-ID: <h2gckn$bts$1@ger.gmane.org> (raw)
In-Reply-To: <1246474461-16671-8-git-send-email-marcin@juszkiewicz.com.pl>

On 01-07-09 20:54, Marcin Juszkiewicz wrote:
> From: Roman I Khimov<khimov@altell.ru>
>
> Fixes binary locale generation broken by
> 6065fa491c009118ae282ae933215649cccfcd24.
>
> Tested to work on ARM OABI (simpad), ARM EABI (qemuarm), PowerPC (efika)
> and i686 (x86-prescott).
>
> Acked-by: Philipp Zabel<philipp.zabel@gmail.com>
> Signed-off-by: Marcin Juszkiewicz<marcin@juszkiewicz.com.pl>

Acked-by: Koen Kooi <koen@openembedded.org>


> ---
>   recipes/qemu/qemu-0.10.3/06_exit_segfault.patch    |   45 ++++++++++++++++
>   recipes/qemu/qemu-0.10.3/11_signal_sigaction.patch |   21 ++++++++
>   recipes/qemu/qemu-0.10.3/22_net_tuntap_stall.patch |   13 +++++
>   recipes/qemu/qemu-0.10.3/31_syscalls.patch         |   22 ++++++++
>   recipes/qemu/qemu-0.10.3/32_syscall_sysctl.patch   |   55 ++++++++++++++++++++
>   recipes/qemu/qemu-0.10.3/52_ne2000_return.patch    |   17 ++++++
>   recipes/qemu/qemu-0.10.3/61_safe_64bit_int.patch   |   27 ++++++++++
>   recipes/qemu/qemu-0.10.3/63_sparc_build.patch      |   18 ++++++
>   .../qemu/qemu-0.10.3/64_ppc_asm_constraints.patch  |   18 ++++++
>   recipes/qemu/qemu-0.10.3/66_tls_ld.patch           |   55 ++++++++++++++++++++
>   recipes/qemu/qemu-0.10.3/91-oh-sdl-cursor.patch    |   18 ++++++
>   .../qemu/qemu-0.10.3/fix_baum_c_compilation.patch  |   30 +++++++++++
>   recipes/qemu/qemu-0.10.3/fix_segfault.patch        |   37 +++++++++++++
>   recipes/qemu/qemu-0.10.3/no-strip.patch            |   26 +++++++++
>   recipes/qemu/qemu_0.10.3.bb                        |   17 +++++-
>   15 files changed, 417 insertions(+), 2 deletions(-)
>   create mode 100644 recipes/qemu/qemu-0.10.3/06_exit_segfault.patch
>   create mode 100644 recipes/qemu/qemu-0.10.3/11_signal_sigaction.patch
>   create mode 100644 recipes/qemu/qemu-0.10.3/22_net_tuntap_stall.patch
>   create mode 100644 recipes/qemu/qemu-0.10.3/31_syscalls.patch
>   create mode 100644 recipes/qemu/qemu-0.10.3/32_syscall_sysctl.patch
>   create mode 100644 recipes/qemu/qemu-0.10.3/52_ne2000_return.patch
>   create mode 100644 recipes/qemu/qemu-0.10.3/61_safe_64bit_int.patch
>   create mode 100644 recipes/qemu/qemu-0.10.3/63_sparc_build.patch
>   create mode 100644 recipes/qemu/qemu-0.10.3/64_ppc_asm_constraints.patch
>   create mode 100644 recipes/qemu/qemu-0.10.3/66_tls_ld.patch
>   create mode 100644 recipes/qemu/qemu-0.10.3/91-oh-sdl-cursor.patch
>   create mode 100644 recipes/qemu/qemu-0.10.3/fix_baum_c_compilation.patch
>   create mode 100644 recipes/qemu/qemu-0.10.3/fix_segfault.patch
>   create mode 100644 recipes/qemu/qemu-0.10.3/no-strip.patch
>
> diff --git a/recipes/qemu/qemu-0.10.3/06_exit_segfault.patch b/recipes/qemu/qemu-0.10.3/06_exit_segfault.patch
> new file mode 100644
> index 0000000..bc02d31
> --- /dev/null
> +++ b/recipes/qemu/qemu-0.10.3/06_exit_segfault.patch
> @@ -0,0 +1,45 @@
> +#DPATCHLEVEL=0
> +---
> +# linux-user/main.c |    8 ++++----
> +# 1 file changed, 4 insertions(+), 4 deletions(-)
> +#
> +Index: linux-user/main.c
> +===================================================================
> +--- linux-user/main.c.orig	2008-04-24 20:15:46.000000000 +0100
> ++++ linux-user/main.c	2008-04-24 20:15:53.000000000 +0100
> +@@ -765,7 +765,7 @@
> +         default:
> +             printf ("Unhandled trap: 0x%x\n", trapnr);
> +             cpu_dump_state(env, stderr, fprintf, 0);
> +-            exit (1);
> ++            _exit (1);
> +         }
> +         process_pending_signals (env);
> +     }
> +@@ -1697,7 +1697,7 @@
> +         default:
> +             printf ("Unhandled trap: 0x%x\n", trapnr);
> +             cpu_dump_state(env, stderr, fprintf, 0);
> +-            exit (1);
> ++            _exit (1);
> +         }
> +         process_pending_signals (env);
> +     }
> +@@ -2026,7 +2026,7 @@
> +                 for(item = cpu_log_items; item->mask != 0; item++) {
> +                     printf("%-10s %s\n", item->name, item->help);
> +                 }
> +-                exit(1);
> ++                _exit(1);
> +             }
> +             cpu_set_log(mask);
> +         } else if (!strcmp(r, "s")) {
> +@@ -2045,7 +2045,7 @@
> +             if (qemu_host_page_size == 0 ||
> +                 (qemu_host_page_size&  (qemu_host_page_size - 1)) != 0) {
> +                 fprintf(stderr, "page size must be a power of two\n");
> +-                exit(1);
> ++                _exit(1);
> +             }
> +         } else if (!strcmp(r, "g")) {
> +             gdbstub_port = atoi(argv[optind++]);
> diff --git a/recipes/qemu/qemu-0.10.3/11_signal_sigaction.patch b/recipes/qemu/qemu-0.10.3/11_signal_sigaction.patch
> new file mode 100644
> index 0000000..cd56541
> --- /dev/null
> +++ b/recipes/qemu/qemu-0.10.3/11_signal_sigaction.patch
> @@ -0,0 +1,21 @@
> +#DPATCHLEVEL=0
> +---
> +# linux-user/signal.c |    5 +++++
> +# 1 file changed, 5 insertions(+)
> +#
> +Index: linux-user/signal.c
> +===================================================================
> +--- linux-user/signal.c.orig	2008-04-24 20:15:55.000000000 +0100
> ++++ linux-user/signal.c	2008-04-24 20:15:57.000000000 +0100
> +@@ -512,6 +512,11 @@
> +
> +     if (sig<  1 || sig>  TARGET_NSIG || sig == SIGKILL || sig == SIGSTOP)
> +         return -EINVAL;
> ++
> ++    /* no point doing the stuff as those are not allowed for sigaction */
> ++    if ((sig == TARGET_SIGKILL) || (sig == TARGET_SIGSTOP))
> ++        return -EINVAL;
> ++
> +     k =&sigact_table[sig - 1];
> + #if defined(DEBUG_SIGNAL)
> +     fprintf(stderr, "sigaction sig=%d act=0x%08x, oact=0x%08x\n",
> diff --git a/recipes/qemu/qemu-0.10.3/22_net_tuntap_stall.patch b/recipes/qemu/qemu-0.10.3/22_net_tuntap_stall.patch
> new file mode 100644
> index 0000000..993960b
> --- /dev/null
> +++ b/recipes/qemu/qemu-0.10.3/22_net_tuntap_stall.patch
> @@ -0,0 +1,13 @@
> +Index: qemu-0.10.3/net.c
> +===================================================================
> +--- qemu-0.10.3.orig/net.c	2009-05-19 17:46:54.650870195 +0400
> ++++ qemu-0.10.3/net.c	2009-05-19 17:47:05.612854521 +0400
> +@@ -955,7 +955,7 @@
> +         return -1;
> +     }
> +     memset(&ifr, 0, sizeof(ifr));
> +-    ifr.ifr_flags = IFF_TAP | IFF_NO_PI;
> ++    ifr.ifr_flags = IFF_TAP | IFF_NO_PI | IFF_ONE_QUEUE;
> +     if (ifname[0] != '\0')
> +         pstrcpy(ifr.ifr_name, IFNAMSIZ, ifname);
> +     else
> diff --git a/recipes/qemu/qemu-0.10.3/31_syscalls.patch b/recipes/qemu/qemu-0.10.3/31_syscalls.patch
> new file mode 100644
> index 0000000..20a1499
> --- /dev/null
> +++ b/recipes/qemu/qemu-0.10.3/31_syscalls.patch
> @@ -0,0 +1,22 @@
> +Index: linux-user/syscall.c
> +===================================================================
> +--- linux-user/syscall.c.orig	2008-04-24 20:15:46.000000000 +0100
> ++++ linux-user/syscall.c	2008-04-24 20:15:59.000000000 +0100
> +@@ -250,6 +250,7 @@
> + extern int setresgid(gid_t, gid_t, gid_t);
> + extern int getresgid(gid_t *, gid_t *, gid_t *);
> + extern int setgroups(int, gid_t *);
> ++extern int uselib(const char*);
> +
> + #define ERRNO_TABLE_SIZE 1200
> +
> +@@ -4041,7 +4042,8 @@
> + #endif
> + #ifdef TARGET_NR_uselib
> +     case TARGET_NR_uselib:
> +-        goto unimplemented;
> ++        ret = get_errno(uselib(path((const char*)arg1)));
> ++        break;
> + #endif
> + #ifdef TARGET_NR_swapon
> +     case TARGET_NR_swapon:
> diff --git a/recipes/qemu/qemu-0.10.3/32_syscall_sysctl.patch b/recipes/qemu/qemu-0.10.3/32_syscall_sysctl.patch
> new file mode 100644
> index 0000000..2a670c9
> --- /dev/null
> +++ b/recipes/qemu/qemu-0.10.3/32_syscall_sysctl.patch
> @@ -0,0 +1,55 @@
> +#DPATCHLEVEL=0
> +---
> +# linux-user/syscall.c |   32 +++++++++++++++++++++++++++++---
> +# 1 file changed, 29 insertions(+), 3 deletions(-)
> +#
> +Index: linux-user/syscall.c
> +===================================================================
> +--- linux-user/syscall.c.orig	2009-05-19 17:50:28.000000000 +0400
> ++++ linux-user/syscall.c	2009-05-19 17:52:19.094103462 +0400
> +@@ -55,6 +55,7 @@
> + #include<netinet/ip.h>
> + #include<netinet/tcp.h>
> + #include<qemu-common.h>
> ++#include<sys/sysctl.h>
> + #ifdef HAVE_GPROF
> + #include<sys/gmon.h>
> + #endif
> +@@ -5193,9 +5194,34 @@
> +         break;
> + #endif
> +     case TARGET_NR__sysctl:
> +-        /* We don't implement this, but ENOTDIR is always a safe
> +-           return value. */
> +-        ret = -TARGET_ENOTDIR;
> ++        {
> ++            struct __sysctl_args *args = (struct __sysctl_args *) arg1;
> ++            int *name_target, *name, nlen, *oldlenp, oldlen, newlen, i;
> ++            void *oldval, *newval;
> ++
> ++            name_target = (int *) tswapl((long) args->name);
> ++            nlen = tswapl(args->nlen);
> ++            oldval = (void *) tswapl((long) args->oldval);
> ++            oldlenp = (int *) tswapl((long) args->oldlenp);
> ++            oldlen = tswapl(*oldlenp);
> ++            newval = (void *) tswapl((long) args->newval);
> ++            newlen = tswapl(args->newlen);
> ++
> ++            name = alloca(nlen * sizeof (int));
> ++            for (i = 0; i<  nlen; i++)
> ++                name[i] = tswapl(name_target[i]);
> ++
> ++            if (nlen == 2&&  name[0] == CTL_KERN&&  name[1] == KERN_VERSION) {
> ++                ret = get_errno(
> ++                        sysctl(name, nlen, oldval,&oldlen, newval, newlen));
> ++                if (!is_error(ret)) {
> ++                    *oldlenp = tswapl(oldlen);
> ++                }
> ++            } else {
> ++                gemu_log("qemu: Unsupported sysctl name\n");
> ++                ret = -ENOSYS;
> ++            }
> ++        }
> +         break;
> +     case TARGET_NR_sched_setparam:
> +         {
> diff --git a/recipes/qemu/qemu-0.10.3/52_ne2000_return.patch b/recipes/qemu/qemu-0.10.3/52_ne2000_return.patch
> new file mode 100644
> index 0000000..e364bff
> --- /dev/null
> +++ b/recipes/qemu/qemu-0.10.3/52_ne2000_return.patch
> @@ -0,0 +1,17 @@
> +---
> + hw/ne2000.c |    2 +-
> + 1 file changed, 1 insertion(+), 1 deletion(-)
> +
> +Index: trunk/hw/ne2000.c
> +===================================================================
> +--- trunk.orig/hw/ne2000.c	2008-04-24 20:15:46.000000000 +0100
> ++++ trunk/hw/ne2000.c	2008-04-24 20:16:05.000000000 +0100
> +@@ -217,7 +217,7 @@
> +     NE2000State *s = opaque;
> +
> +     if (s->cmd&  E8390_STOP)
> +-        return 1;
> ++        return 0;
> +     return !ne2000_buffer_full(s);
> + }
> +
> diff --git a/recipes/qemu/qemu-0.10.3/61_safe_64bit_int.patch b/recipes/qemu/qemu-0.10.3/61_safe_64bit_int.patch
> new file mode 100644
> index 0000000..80e7b22
> --- /dev/null
> +++ b/recipes/qemu/qemu-0.10.3/61_safe_64bit_int.patch
> @@ -0,0 +1,27 @@
> +#DPATCHLEVEL=0
> +---
> +# dyngen-exec.h |    4 ++--
> +# 1 file changed, 2 insertions(+), 2 deletions(-)
> +#
> +Index: dyngen-exec.h
> +===================================================================
> +--- dyngen-exec.h.orig	2009-05-01 21:02:44.000000000 +0400
> ++++ dyngen-exec.h	2009-05-19 17:56:28.164854448 +0400
> +@@ -41,7 +41,7 @@
> + // Linux/Sparc64 defines uint64_t
> + #if !(defined (__sparc_v9__)&&  defined(__linux__))&&  !(defined(__APPLE__)&&  defined(__x86_64__))
> + /* XXX may be done for all 64 bits targets ? */
> +-#if defined (__x86_64__) || defined(__ia64) || defined(__s390x__) || defined(__alpha__) || defined(_ARCH_PPC64)
> ++#if defined (__x86_64__) || defined(__ia64) || defined(__s390x__) || defined(__alpha__) || defined(_ARCH_PPC64) || defined(__sparc__)
> + typedef unsigned long uint64_t;
> + #else
> + typedef unsigned long long uint64_t;
> +@@ -58,7 +58,7 @@
> + typedef signed int int32_t;
> + // Linux/Sparc64 defines int64_t
> + #if !(defined (__sparc_v9__)&&  defined(__linux__))&&  !(defined(__APPLE__)&&  defined(__x86_64__))
> +-#if defined (__x86_64__) || defined(__ia64) || defined(__s390x__) || defined(__alpha__) || defined(_ARCH_PPC64)
> ++#if defined (__x86_64__) || defined(__ia64) || defined(__s390x__) || defined(__alpha__) || defined(_ARCH_PPC64) || defined(__sparc__)
> + typedef signed long int64_t;
> + #else
> + typedef signed long long int64_t;
> diff --git a/recipes/qemu/qemu-0.10.3/63_sparc_build.patch b/recipes/qemu/qemu-0.10.3/63_sparc_build.patch
> new file mode 100644
> index 0000000..097f55a
> --- /dev/null
> +++ b/recipes/qemu/qemu-0.10.3/63_sparc_build.patch
> @@ -0,0 +1,18 @@
> +#DPATCHLEVEL=0
> +---
> +# sparc.ld |    2 +-
> +# 1 file changed, 1 insertion(+), 1 deletion(-)
> +#
> +Index: sparc.ld
> +===================================================================
> +--- sparc.ld.orig	2008-04-24 20:15:46.000000000 +0100
> ++++ sparc.ld	2008-04-24 20:16:07.000000000 +0100
> +@@ -6,7 +6,7 @@
> + SECTIONS
> + {
> +   /* Read-only sections, merged into text segment: */
> +-  . = 0x60000000 + SIZEOF_HEADERS;
> ++  . = 0x60000000 + 0x400;
> +   .interp     : { *(.interp)    }
> +   .hash          : { *(.hash)           }
> +   .dynsym        : { *(.dynsym)         }
> diff --git a/recipes/qemu/qemu-0.10.3/64_ppc_asm_constraints.patch b/recipes/qemu/qemu-0.10.3/64_ppc_asm_constraints.patch
> new file mode 100644
> index 0000000..7562daf
> --- /dev/null
> +++ b/recipes/qemu/qemu-0.10.3/64_ppc_asm_constraints.patch
> @@ -0,0 +1,18 @@
> +#DPATCHLEVEL=1
> +---
> +# cpu-all.h |    2 +-
> +# 1 file changed, 1 insertion(+), 1 deletion(-)
> +#
> +Index: qemu-0.10.3/cpu-all.h
> +===================================================================
> +--- qemu-0.10.3.orig/cpu-all.h	2009-05-01 21:02:44.000000000 +0400
> ++++ qemu-0.10.3/cpu-all.h	2009-05-19 17:59:28.357103179 +0400
> +@@ -288,7 +288,7 @@
> + static inline void stl_le_p(void *ptr, int v)
> + {
> + #ifdef _ARCH_PPC
> +-    __asm__ __volatile__ ("stwbrx %1,0,%2" : "=m" (*(uint32_t *)ptr) : "r" (v), "r" (ptr));
> ++     __asm__ __volatile__ ("stwbrx %0,0,%1" : : "r" (v), "r" (ptr) : "memory");
> + #else
> +     uint8_t *p = ptr;
> +     p[0] = v;
> diff --git a/recipes/qemu/qemu-0.10.3/66_tls_ld.patch b/recipes/qemu/qemu-0.10.3/66_tls_ld.patch
> new file mode 100644
> index 0000000..cbd3f87
> --- /dev/null
> +++ b/recipes/qemu/qemu-0.10.3/66_tls_ld.patch
> @@ -0,0 +1,55 @@
> +---
> + arm.ld  |    7 +++++++
> + i386.ld |    7 +++++++
> + 2 files changed, 14 insertions(+)
> +
> +Index: arm.ld
> +===================================================================
> +--- arm.ld.orig	2008-04-24 20:15:45.000000000 +0100
> ++++ arm.ld	2008-04-24 20:16:11.000000000 +0100
> +@@ -26,6 +26,10 @@
> +     { *(.rel.rodata) *(.rel.gnu.linkonce.r*) }
> +   .rela.rodata   :
> +     { *(.rela.rodata) *(.rela.gnu.linkonce.r*) }
> ++  .rel.tdata     : { *(.rel.tdata .rel.tdata.* .rel.gnu.linkonce.td.*) }
> ++  .rela.tdata    : { *(.rela.tdata .rela.tdata.* .rela.gnu.linkonce.td.*) }
> ++  .rel.tbss      : { *(.rel.tbss .rel.tbss.* .rel.gnu.linkonce.tb.*) }
> ++  .rela.tbss     : { *(.rela.tbss .rela.tbss.* .rela.gnu.linkonce.tb.*) }
> +   .rel.got       : { *(.rel.got)		}
> +   .rela.got      : { *(.rela.got)		}
> +   .rel.ctors     : { *(.rel.ctors)	}
> +@@ -58,6 +62,9 @@
> +   .ARM.exidx   : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) }
> +    __exidx_end = .;
> +   .reginfo : { *(.reginfo) }
> ++  /* Thread Local Storage sections  */
> ++  .tdata	  : { *(.tdata .tdata.* .gnu.linkonce.td.*) }
> ++  .tbss		  : { *(.tbss .tbss.* .gnu.linkonce.tb.*) *(.tcommon) }
> +   /* Adjust the address for the data segment.  We want to adjust up to
> +      the same address within the page on the next page up.  */
> +   . = ALIGN(0x100000) + (.&  (0x100000 - 1));
> +Index: i386.ld
> +===================================================================
> +--- i386.ld.orig	2008-04-24 20:15:45.000000000 +0100
> ++++ i386.ld	2008-04-24 20:16:11.000000000 +0100
> +@@ -28,6 +28,10 @@
> +     { *(.rel.rodata) *(.rel.gnu.linkonce.r*) }
> +   .rela.rodata   :
> +     { *(.rela.rodata) *(.rela.gnu.linkonce.r*) }
> ++  .rel.tdata     : { *(.rel.tdata .rel.tdata.* .rel.gnu.linkonce.td.*) }
> ++  .rela.tdata    : { *(.rela.tdata .rela.tdata.* .rela.gnu.linkonce.td.*) }
> ++  .rel.tbss      : { *(.rel.tbss .rel.tbss.* .rel.gnu.linkonce.tb.*) }
> ++  .rela.tbss     : { *(.rela.tbss .rela.tbss.* .rela.gnu.linkonce.tb.*) }
> +   .rel.got       : { *(.rel.got)		}
> +   .rela.got      : { *(.rela.got)		}
> +   .rel.ctors     : { *(.rel.ctors)	}
> +@@ -53,6 +57,9 @@
> +   _etext = .;
> +   PROVIDE (etext = .);
> +   .fini      : { *(.fini)    } =0x47ff041f
> ++  /* Thread Local Storage sections  */
> ++  .tdata	  : { *(.tdata .tdata.* .gnu.linkonce.td.*) }
> ++  .tbss		  : { *(.tbss .tbss.* .gnu.linkonce.tb.*) *(.tcommon) }
> +   . = ALIGN(32 / 8);
> +   PROVIDE (__preinit_array_start = .);
> +   .preinit_array     : { *(.preinit_array) }
> diff --git a/recipes/qemu/qemu-0.10.3/91-oh-sdl-cursor.patch b/recipes/qemu/qemu-0.10.3/91-oh-sdl-cursor.patch
> new file mode 100644
> index 0000000..b3d95a4
> --- /dev/null
> +++ b/recipes/qemu/qemu-0.10.3/91-oh-sdl-cursor.patch
> @@ -0,0 +1,18 @@
> +=== modified file 'sdl.c'
> +---
> + sdl.c |    2 +-
> + 1 file changed, 1 insertion(+), 1 deletion(-)
> +
> +Index: sdl.c
> +===================================================================
> +--- sdl.c.orig	2008-04-24 20:15:45.000000000 +0100
> ++++ sdl.c	2008-04-24 20:16:12.000000000 +0100
> +@@ -247,7 +247,7 @@
> +
> +     if (kbd_mouse_is_absolute()) {
> +         SDL_ShowCursor(1);
> +-        SDL_SetCursor(sdl_cursor_hidden);
> ++        /* SDL_SetCursor(sdl_cursor_hidden); */
> +     } else {
> +         SDL_ShowCursor(0);
> +     }
> diff --git a/recipes/qemu/qemu-0.10.3/fix_baum_c_compilation.patch b/recipes/qemu/qemu-0.10.3/fix_baum_c_compilation.patch
> new file mode 100644
> index 0000000..a2eb438
> --- /dev/null
> +++ b/recipes/qemu/qemu-0.10.3/fix_baum_c_compilation.patch
> @@ -0,0 +1,30 @@
> +Index: trunk/hw/baum.c
> +===================================================================
> +--- trunk.orig/hw/baum.c	2008-11-29 05:12:40.418390606 +0300
> ++++ trunk/hw/baum.c	2008-11-29 05:13:11.498378426 +0300
> +@@ -569,8 +569,10 @@ CharDriverState *chr_baum_init(void)
> +     CharDriverState *chr;
> +     brlapi_handle_t *handle;
> + #ifdef CONFIG_SDL
> ++#ifdef SDL_VIDEO_DRIVER_X11
> +     SDL_SysWMinfo info;
> + #endif
> ++#endif
> +     int tty;
> +
> +     baum = qemu_mallocz(sizeof(BaumDriverState));
> +@@ -605,12 +607,14 @@ CharDriverState *chr_baum_init(void)
> +     }
> +
> + #ifdef CONFIG_SDL
> ++#ifdef SDL_VIDEO_DRIVER_X11
> +     memset(&info, 0, sizeof(info));
> +     SDL_VERSION(&info.version);
> +     if (SDL_GetWMInfo(&info))
> +         tty = info.info.x11.wmwindow;
> +     else
> + #endif
> ++#endif
> +         tty = BRLAPI_TTY_DEFAULT;
> +
> +     if (brlapi__enterTtyMode(handle, tty, NULL) == -1) {
> diff --git a/recipes/qemu/qemu-0.10.3/fix_segfault.patch b/recipes/qemu/qemu-0.10.3/fix_segfault.patch
> new file mode 100644
> index 0000000..32ca3c0
> --- /dev/null
> +++ b/recipes/qemu/qemu-0.10.3/fix_segfault.patch
> @@ -0,0 +1,37 @@
> +---
> + linux-user/syscall.c |   22 ----------------------
> + 1 file changed, 22 deletions(-)
> +
> +Index: qemu-0.10.3/linux-user/syscall.c
> +===================================================================
> +--- qemu-0.10.3.orig/linux-user/syscall.c	2009-05-19 18:18:04.000000000 +0400
> ++++ qemu-0.10.3/linux-user/syscall.c	2009-05-19 18:18:40.397103379 +0400
> +@@ -6024,28 +6024,6 @@
> +         goto unimplemented_nowarn;
> + #endif
> +
> +-#ifdef TARGET_NR_clock_gettime
> +-    case TARGET_NR_clock_gettime:
> +-    {
> +-        struct timespec ts;
> +-        ret = get_errno(clock_gettime(arg1,&ts));
> +-        if (!is_error(ret)) {
> +-            host_to_target_timespec(arg2,&ts);
> +-        }
> +-        break;
> +-    }
> +-#endif
> +-#ifdef TARGET_NR_clock_getres
> +-    case TARGET_NR_clock_getres:
> +-    {
> +-        struct timespec ts;
> +-        ret = get_errno(clock_getres(arg1,&ts));
> +-        if (!is_error(ret)) {
> +-            host_to_target_timespec(arg2,&ts);
> +-        }
> +-        break;
> +-    }
> +-#endif
> + #ifdef TARGET_NR_clock_nanosleep
> +     case TARGET_NR_clock_nanosleep:
> +     {
> diff --git a/recipes/qemu/qemu-0.10.3/no-strip.patch b/recipes/qemu/qemu-0.10.3/no-strip.patch
> new file mode 100644
> index 0000000..4813dd4
> --- /dev/null
> +++ b/recipes/qemu/qemu-0.10.3/no-strip.patch
> @@ -0,0 +1,26 @@
> +Index: trunk/Makefile
> +===================================================================
> +--- trunk.orig/Makefile	2008-04-24 20:15:37.000000000 +0100
> ++++ trunk/Makefile	2008-04-24 20:16:30.000000000 +0100
> +@@ -196,7 +196,7 @@
> + install: all $(if $(BUILD_DOCS),install-doc)
> + 	mkdir -p "$(DESTDIR)$(bindir)"
> + ifneq ($(TOOLS),)
> +-	$(INSTALL) -m 755 -s $(TOOLS) "$(DESTDIR)$(bindir)"
> ++	$(INSTALL) -m 755 $(TOOLS) "$(DESTDIR)$(bindir)"
> + endif
> + 	mkdir -p "$(DESTDIR)$(datadir)"
> + 	set -e; for x in bios.bin vgabios.bin vgabios-cirrus.bin ppc_rom.bin \
> +Index: trunk/Makefile.target
> +===================================================================
> +--- trunk.orig/Makefile.target	2008-04-24 20:15:37.000000000 +0100
> ++++ trunk/Makefile.target	2008-04-24 20:16:30.000000000 +0100
> +@@ -685,7 +685,7 @@
> +
> + install: all
> + ifneq ($(PROGS),)
> +-	$(INSTALL) -m 755 -s $(PROGS) "$(DESTDIR)$(bindir)"
> ++	$(INSTALL) -m 755 $(PROGS) "$(DESTDIR)$(bindir)"
> + endif
> +
> + # Include automatically generated dependency files
> diff --git a/recipes/qemu/qemu_0.10.3.bb b/recipes/qemu/qemu_0.10.3.bb
> index d6ad1d7..f65f60d 100644
> --- a/recipes/qemu/qemu_0.10.3.bb
> +++ b/recipes/qemu/qemu_0.10.3.bb
> @@ -1,14 +1,27 @@
>   LICENSE = "GPL"
>   DEPENDS = "zlib"
>
> -# Need to port OE patches there
> -DEFAULT_PREFERENCE = "-1"
> +PR = "r1"
>
>   FILESPATH = "${FILE_DIRNAME}/qemu-${PV}"
>   FILESDIR = "${WORKDIR}"
>
>   SRC_URI = "\
>       http://download.savannah.gnu.org/releases/qemu/qemu-${PV}.tar.gz \
> +    file://06_exit_segfault.patch;patch=1;pnum=0 \
> +    file://11_signal_sigaction.patch;patch=1;pnum=0 \
> +    file://22_net_tuntap_stall.patch;patch=1 \
> +    file://31_syscalls.patch;patch=1;pnum=0 \
> +    file://32_syscall_sysctl.patch;patch=1;pnum=0 \
> +    file://52_ne2000_return.patch;patch=1 \
> +    file://61_safe_64bit_int.patch;patch=1;pnum=0 \
> +    file://63_sparc_build.patch;patch=1;pnum=0 \
> +    file://64_ppc_asm_constraints.patch;patch=1 \
> +    file://66_tls_ld.patch;patch=1;pnum=0 \
> +    file://91-oh-sdl-cursor.patch;patch=1;pnum=0 \
> +    file://fix_segfault.patch;patch=1 \
> +    file://no-strip.patch;patch=1 \
> +    file://fix_baum_c_compilation.patch;patch=1 \
>       "
>
>   S = "${WORKDIR}/qemu-${PV}"





  reply	other threads:[~2009-07-01 19:27 UTC|newest]

Thread overview: 177+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-04 16:38 Set of patches for stable/2009 Marcin Juszkiewicz
2009-06-04 16:52 ` Koen Kooi
2009-06-04 17:12   ` Michael Smith
2009-06-04 17:23   ` [PATCH] vim: fix alternative when prefix is /usr Michael Smith
2009-06-04 17:42     ` Koen Kooi
2009-06-04 21:12     ` Phil Blundell
2009-06-22  9:53 ` First set of patches - license updates Marcin Juszkiewicz
2009-06-23  2:05   ` Denys Dmytriyenko
2009-06-22  9:53 ` [STABLE][PATCH 025/125] alsa-lib: This is LGPL not GPL Marcin Juszkiewicz
2009-06-22 10:04   ` Koen Kooi
2009-06-23  2:06     ` Denys Dmytriyenko
2009-06-22  9:53 ` [STABLE][PATCH 026/125] gettext: 0.17 is GPLv3 Marcin Juszkiewicz
2009-06-22 10:04   ` Koen Kooi
2009-06-23  2:06     ` Denys Dmytriyenko
2009-06-22  9:53 ` [STABLE][PATCH 027/125] gmp: 4.2.4 is GPLv3 LGPLv3 Marcin Juszkiewicz
2009-06-22 10:04   ` Koen Kooi
2009-06-23  2:06     ` Denys Dmytriyenko
2009-06-22  9:53 ` [STABLE][PATCH 028/125] gdb: 6.8 is GPLv3 Marcin Juszkiewicz
2009-06-22 11:05   ` Koen Kooi
2009-06-23  2:07     ` Denys Dmytriyenko
2009-06-23  1:51   ` Denys Dmytriyenko
2009-06-23  6:20     ` Koen Kooi
2009-06-23  9:03     ` Marcin Juszkiewicz
2009-06-22  9:53 ` [STABLE][PATCH 029/125] gnutls: The 'extra' lib (and package) " Marcin Juszkiewicz
2009-06-22 11:04   ` Koen Kooi
2009-06-23  2:07     ` Denys Dmytriyenko
2009-06-22  9:53 ` [STABLE][PATCH 030/125] libiconv: 1.12 has GPLv3 binaries LGPLv2.1 libraries Marcin Juszkiewicz
2009-06-22 11:04   ` Koen Kooi
2009-06-23  2:07     ` Denys Dmytriyenko
2009-06-23  1:58   ` Denys Dmytriyenko
2009-06-23  6:19     ` Koen Kooi
2009-06-22  9:53 ` [STABLE][PATCH 031/125] mpfr: Both GPL and LGPL components Marcin Juszkiewicz
2009-06-22 11:04   ` Koen Kooi
2009-06-23  2:08     ` Denys Dmytriyenko
2009-06-22  9:53 ` [STABLE][PATCH 032/125] samba: 3.2.8 and newer is GPLv3 Marcin Juszkiewicz
2009-06-22 11:04   ` Koen Kooi
2009-06-23  2:08     ` Denys Dmytriyenko
2009-06-22  9:53 ` [STABLE][PATCH 033/125] m4: 1.4.11 and 1.4.12 are GPLv3 Marcin Juszkiewicz
2009-06-22 11:04   ` Koen Kooi
2009-06-23  2:08     ` Denys Dmytriyenko
2009-06-22  9:53 ` [STABLE][PATCH 034/125] fixes wrong license value usage for GPLv2 Marcin Juszkiewicz
2009-06-22 11:04   ` Koen Kooi
2009-06-23  2:09     ` Denys Dmytriyenko
2009-06-22  9:53 ` [STABLE][PATCH 035/125] atd: fix spelling of LICENSE Marcin Juszkiewicz
2009-06-22 11:04   ` Koen Kooi
2009-06-23  2:09     ` Denys Dmytriyenko
2009-06-22 10:06 ` SRC_URI fixes Marcin Juszkiewicz
2009-06-22 11:11   ` [STABLE][PATCH 079/125] Fixed broken download URL for elvis Marcin Juszkiewicz
2009-06-22 12:10     ` Koen Kooi
2009-06-22 11:11   ` [STABLE][PATCH 080/125] mobilemesh: fixed broken download URL Marcin Juszkiewicz
2009-06-22 12:37     ` Koen Kooi
2009-06-22 11:11   ` [STABLE][PATCH 081/125] openswan: " Marcin Juszkiewicz
2009-06-22 12:10     ` Koen Kooi
2009-06-22 11:11   ` [STABLE][PATCH 082/125] syslog-ng: fix SRC_URIs Marcin Juszkiewicz
2009-06-22 12:10     ` Koen Kooi
2009-06-23  7:39 ` Documentation updates Marcin Juszkiewicz
2009-06-23  8:55   ` [STABLE][PATCH 047/125] doc: change openembedded.net reference to openembedded.org Marcin Juszkiewicz
2009-06-23  9:12     ` Koen Kooi
2009-06-23  8:55   ` [STABLE][PATCH 048/125] s/IPKG_INSTALL/PACKAGE_INSTALL/ Marcin Juszkiewicz
2009-06-23  9:12     ` Koen Kooi
2009-06-23  8:55   ` [STABLE][PATCH 049/125] Documentation for PACKAGE_ARCH is actually for PACKAGE_ARCHS Marcin Juszkiewicz
2009-06-23  9:12     ` Koen Kooi
2009-06-23  8:55   ` [STABLE][PATCH 050/125] docs: fix URL for bitbake manual. (Closes: #5122) Marcin Juszkiewicz
2009-06-23  9:12     ` Koen Kooi
2009-06-23  8:55   ` [STABLE][PATCH 051/125] docs: add copyright notice for 2009 Marcin Juszkiewicz
2009-06-23  9:11     ` Koen Kooi
2009-06-23  7:40 ` GNU_HASH fixes Marcin Juszkiewicz
2009-06-23  8:56   ` [STABLE][PATCH 052/125] evtest: Fixed GNU_HASH QA error Marcin Juszkiewicz
2009-06-23  9:13     ` Koen Kooi
2009-06-23 22:23       ` Denys Dmytriyenko
2009-06-23  8:56   ` [STABLE][PATCH 053/125] mpeg-encode: Make this aware of LDFLAGS, fixes QA GNU_HASH issue Marcin Juszkiewicz
2009-06-23  9:13     ` Koen Kooi
2009-06-23 22:23       ` Denys Dmytriyenko
2009-06-23  8:56   ` [STABLE][PATCH 054/125] netpbm: " Marcin Juszkiewicz
2009-06-23  9:13     ` Koen Kooi
2009-06-23 22:33       ` Denys Dmytriyenko
2009-06-23  8:56   ` [STABLE][PATCH 055/125] libsdl-gfx: GNU HASH QA fix Marcin Juszkiewicz
2009-06-23 10:26     ` Koen Kooi
2009-06-23 22:33       ` Denys Dmytriyenko
2009-06-23  8:56   ` [STABLE][PATCH 056/125] libsdl-ttf: " Marcin Juszkiewicz
2009-06-23 10:26     ` Koen Kooi
2009-06-23 22:33       ` Denys Dmytriyenko
2009-06-23  7:41 ` Misc updates for classes/ Marcin Juszkiewicz
2009-06-23  8:56   ` [STABLE][PATCH 021/125] rootfs_deb: make Packages.gz, not Packages.bz2 Marcin Juszkiewicz
2009-06-23  9:14     ` Koen Kooi
2009-06-23  8:56   ` [STABLE][PATCH 022/125] oestats-client: support working behind proxy Marcin Juszkiewicz
2009-06-23  9:14     ` Koen Kooi
2009-06-23  8:56   ` [STABLE][PATCH 023/125] seppuku: add support for working behind the proxy Marcin Juszkiewicz
2009-06-23  9:14     ` Koen Kooi
2009-06-23  8:56   ` [STABLE][PATCH 024/125] tinderclient: support sitting behind proxy Marcin Juszkiewicz
2009-06-23  9:14     ` Koen Kooi
2009-06-23  8:56   ` [STABLE][PATCH 042/125] Allow use of Itanium as build machine Marcin Juszkiewicz
2009-06-23  9:15     ` Koen Kooi
2009-06-23  8:56   ` [STABLE][PATCH 045/125] First pass of cleanup of messages outputted to the user Marcin Juszkiewicz
2009-06-23  9:15     ` Koen Kooi
2009-06-23 23:41       ` Denys Dmytriyenko
2009-06-23  8:56   ` [STABLE][PATCH 046/125] Shorten some full paths printed " Marcin Juszkiewicz
2009-06-23  9:15     ` Koen Kooi
2009-06-23 23:42       ` Denys Dmytriyenko
2009-06-23  8:56   ` [STABLE][PATCH 059/125] package_rpm: fix move wrong generated rpm name - closes #5078 Marcin Juszkiewicz
2009-06-23  9:16     ` Koen Kooi
2009-07-01 16:17 ` QEMU and OLDEST_KERNEL related changes Marcin Juszkiewicz
2009-07-01 17:21   ` Koen Kooi
2009-07-01 18:54   ` [STABLE][PATCH 006/125] base.bbclass: check_gcc3 needs to check for gcc-3.4.6 first. Comment on what this function is used for primarily. The default gcc3-native that we build is called 'gcc-3.4.6' so look for that one first Marcin Juszkiewicz
2009-07-01 19:16     ` Koen Kooi
2009-07-01 18:54   ` [STABLE][PATCH 007/125] base.bbclass: added 'gcc-3.4' to list of gcc3 versions (Debian systems) Marcin Juszkiewicz
2009-07-01 19:01     ` Denys Dmytriyenko
2009-07-01 19:16     ` Koen Kooi
2009-07-01 18:54   ` [STABLE][PATCH 008/125] glibc: In various old recipes add RPROVIDES virtual-libc-dev, bump PR. In some cases we also add in 'libc-dev' if nothing was being provided and add RDEPENDS += linux-libc-headers-dev if that was missing Marcin Juszkiewicz
2009-07-01 19:00     ` Denys Dmytriyenko
2009-07-01 19:16     ` Koen Kooi
2009-07-01 18:54   ` [STABLE][PATCH 009/125] qemu: add version 0.10.3, initial Marcin Juszkiewicz
2009-07-01 19:02     ` Denys Dmytriyenko
2009-07-01 19:16     ` Koen Kooi
2009-07-01 18:54   ` [STABLE][PATCH 010/125] (e)glibc-package: fix kernel version passed to qemu Marcin Juszkiewicz
2009-07-01 19:15     ` Koen Kooi
2009-07-01 18:54   ` [STABLE][PATCH 011/125] (e)glibc-package: set LD_LIBRARY_PATH on binary locale generation Marcin Juszkiewicz
2009-07-01 19:15     ` Koen Kooi
2009-07-01 18:54   ` [STABLE][PATCH 012/125] (e)glibc-package: enable binary locale generation on x86 and x86_64 Marcin Juszkiewicz
2009-07-01 19:15     ` Koen Kooi
2009-07-01 18:54   ` [STABLE][PATCH 013/125] qemu 0.10.3: port OE patches, make preferable version Marcin Juszkiewicz
2009-07-01 19:15     ` Koen Kooi [this message]
2009-07-01 18:54   ` [STABLE][PATCH 014/125] qemu-native.inc : force qemu native to use our C/LDFLAGS so that you don't need the required dev packages installed on host. Use our OE versions Marcin Juszkiewicz
2009-08-28 14:37     ` Ihar Hrachyshka
2009-08-29 14:34       ` Koen Kooi
2009-09-01 16:58         ` Koen Kooi
2009-07-01 18:54   ` [STABLE][PATCH 015/125] (e)glibc-package: enable binary locale generation for powerpc Marcin Juszkiewicz
2009-07-01 18:54   ` [STABLE][PATCH 016/125] bitbake.conf: weakly assign OLDEST_KERNEL ?= "2.4.0" *after* machine and distro configs are included Marcin Juszkiewicz
2009-07-01 19:23     ` Denys Dmytriyenko
2009-07-01 18:54   ` [STABLE][PATCH 017/125] angstrom 2009.X: weakly assign OLDEST_KERNEL Marcin Juszkiewicz
2009-07-01 19:23     ` Denys Dmytriyenko
2009-07-01 18:54   ` [STABLE][PATCH 018/125] Angstrom 2009.X: set OLDEST_KERNEL to 2.6.16 to avoid problems with ppoll() Marcin Juszkiewicz
2009-07-01 19:23     ` Denys Dmytriyenko
2009-07-01 18:54   ` [STABLE][PATCH 019/125] glibc 2.6.1: bump PR for oldest-kernel change Marcin Juszkiewicz
2009-07-01 18:54   ` [STABLE][PATCH 020/125] angstrom: stop disabling binary localegen for >=armv6 per RFC on the ml Marcin Juszkiewicz
2009-07-01 16:18 ` Get rid of base_set_filepath Marcin Juszkiewicz
2009-07-01 18:54   ` [STABLE][PATCH 036/125] u-boot_git.bb : Update FILESPATHPKG to include u-boot-git directory Marcin Juszkiewicz
2009-07-01 19:24     ` Denys Dmytriyenko
2009-07-01 18:54   ` [STABLE][PATCH 037/125] Replace obsolete base_set_filespath() with FILESPATHPKG in some recipes Marcin Juszkiewicz
2009-07-01 19:25     ` Denys Dmytriyenko
2009-07-01 18:54   ` [STABLE][PATCH 038/125] uclibc: remove calls to obsolete base_set_filespath() Marcin Juszkiewicz
2009-07-01 19:25     ` Denys Dmytriyenko
2009-07-01 18:54   ` [STABLE][PATCH 039/125] glibc/eglibc: " Marcin Juszkiewicz
2009-07-01 19:04     ` Michael Smith
2009-07-01 19:26     ` Denys Dmytriyenko
2009-07-01 18:54   ` [STABLE][PATCH 040/125] openssl-native: removed FILESPATH setting which is not needed Marcin Juszkiewicz
2009-07-01 19:26     ` Denys Dmytriyenko
2009-07-01 18:54   ` [STABLE][PATCH 041/125] Remove references to base_set_filespath() from recipes that don't need it Marcin Juszkiewicz
2009-07-01 19:27     ` Denys Dmytriyenko
2009-07-01 16:19 ` Misc machines related updates Marcin Juszkiewicz
2009-07-01 18:54   ` [STABLE][PATCH 077/125] kexecboot: require ../linux/linux.inc, not recipes/linux/linux.inc Marcin Juszkiewicz
2009-07-01 19:27     ` Koen Kooi
2009-07-02  3:06       ` Denys Dmytriyenko
2009-07-01 18:55   ` [STABLE][PATCH 098/125] linux-rp-2.6.24: fix compilation with gcc-4.3 Marcin Juszkiewicz
2009-07-01 19:27     ` Koen Kooi
2009-07-01 18:55   ` [STABLE][PATCH 099/125] linux-rp-2.6.23: " Marcin Juszkiewicz
2009-07-01 19:27     ` Koen Kooi
2009-07-01 18:55   ` [STABLE][PATCH 100/125] linux-kexecboot-2.6.24: fix compilation with gcc-4.3. Bump PR Marcin Juszkiewicz
2009-07-01 19:17     ` Koen Kooi
2009-07-01 18:55   ` [STABLE][PATCH 105/125] at2440evb.conf: Add AT2440EVB machine config Marcin Juszkiewicz
2009-07-01 19:16     ` Koen Kooi
2009-07-02  3:10       ` Denys Dmytriyenko
2009-07-01 18:55   ` [STABLE][PATCH 111/125] linux-2.6.28: Provide a default config for at91sam9g20ek board Marcin Juszkiewicz
2009-07-01 18:55   ` [STABLE][PATCH 112/125] Add support for AT91SAM9G20EK Marcin Juszkiewicz
2009-07-01 18:55   ` [STABLE][PATCH 113/125] Add support for at91cap9adk development board with a at91cap9500 processor Marcin Juszkiewicz
2009-07-01 18:55   ` [STABLE][PATCH 114/125] Add support for AT91SAM9RL64 Marcin Juszkiewicz
2009-07-01 18:55   ` [STABLE][PATCH 115/125] Add recipe for at91bootstrap-2.10 Marcin Juszkiewicz
2009-07-01 18:55   ` [STABLE][PATCH 116/125] Add recipe for u-boot-2009.01 Marcin Juszkiewicz
2009-07-01 18:55   ` [STABLE][PATCH 117/125] Add linux-2.6.28 support for SAM9260/1/SAM9G20/ATNGW100 Marcin Juszkiewicz
2009-07-01 18:55   ` [STABLE][PATCH 118/125] Update sam9260/1/3 and ap7000 (stk100, ngw100) to use linux-2.6.28, u-boot-2009.01 and at91bootstrap-2.10 Marcin Juszkiewicz
2009-07-01 18:55   ` [STABLE][PATCH 119/125] linux_2.6.28.bb : increment PR and add better defconfig that has MMC enabled so the board can at least be booted from MMC Marcin Juszkiewicz
2009-07-01 18:55   ` [STABLE][PATCH 120/125] linux: fixed defconfigs for at91sam* devboards Marcin Juszkiewicz
2009-07-01 18:55   ` [STABLE][PATCH 121/125] atngw100: do not set kernel version in machine config Marcin Juszkiewicz
2009-07-01 18:55   ` [STABLE][PATCH 122/125] linux: atngw100 uses 2.6.29 now (config updated with lot of changes) Marcin Juszkiewicz
2009-07-01 18:55   ` [STABLE][PATCH 123/125] linux: enabled lot of options for Atmel NGW100 device Marcin Juszkiewicz
2009-07-01 18:55   ` [STABLE][PATCH 124/125] linux: make 2.6.29 default for ep93xx (tested on edb9301) Marcin Juszkiewicz
2009-07-01 18:55   ` [STABLE][PATCH 125/125] linux: updated defconfig for ep93xx Marcin Juszkiewicz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='h2gckn$bts$1@ger.gmane.org' \
    --to=k.kooi@student.utwente.nl \
    --cc=openembedded-devel@lists.openembedded.org \
    --cc=openembedded-devel@openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox