diff options
author | 2016-04-29 10:56:18 +0300 | |
---|---|---|
committer | 2016-04-29 10:59:08 +0300 | |
commit | c96dc7cf3ab2fb58fa22c7fd9c1557dda14d5290 (patch) | |
tree | 27876713ae77edf7a23eef1d453c5c006418774d /dev-libs/libx86/files | |
parent | dev-ruby/colorator: add ruby23 (diff) | |
download | gentoo-c96dc7cf3ab2fb58fa22c7fd9c1557dda14d5290.tar.gz gentoo-c96dc7cf3ab2fb58fa22c7fd9c1557dda14d5290.tar.bz2 gentoo-c96dc7cf3ab2fb58fa22c7fd9c1557dda14d5290.zip |
dev-libs/libx86: revision bump
Port to EAPI 6, bring wider arch support
Reported-by: Oleg <oleg@funtoo.org>
Gentoo-Bug: 579682
Package-Manager: portage-2.2.28
Diffstat (limited to 'dev-libs/libx86/files')
-rw-r--r-- | dev-libs/libx86/files/libx86-1.1-x86emu.patch | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/dev-libs/libx86/files/libx86-1.1-x86emu.patch b/dev-libs/libx86/files/libx86-1.1-x86emu.patch new file mode 100644 index 000000000000..7b4fe428e1b3 --- /dev/null +++ b/dev-libs/libx86/files/libx86-1.1-x86emu.patch @@ -0,0 +1,38 @@ +diff -Naur libx86-1.1+ds1.orig/Makefile libx86-1.1+ds1/Makefile +--- a/libx86-1.1/Makefile 2008-05-19 12:28:59.000000000 +0300 ++++ b/libx86-1.1/Makefile 2012-02-20 01:32:03.750068423 +0200 +@@ -5,6 +5,7 @@ + ifeq ($(BACKEND),x86emu) + OBJECTS += thunk.o x86emu/decode.o x86emu/debug.o x86emu/fpu.o \ + x86emu/ops.o x86emu/ops2.o x86emu/prim_ops.o x86emu/sys.o ++ CFLAGS += -DX86EMU + else + OBJECTS += lrmi.o + endif +diff -Naur libx86-1.1+ds1.orig/thunk.c libx86-1.1+ds1/thunk.c +--- a/libx86-1.1+ds1.orig/thunk.c 2008-04-03 03:48:00.000000000 +0300 ++++ b/libx86-1.1/thunk.c 2012-02-20 01:12:56.468820192 +0200 +@@ -32,6 +32,7 @@ + #define TRUE 1 + #define FALSE 0 + ++#ifndef X86EMU + #define __BUILDIO(bwl,bw,type) \ + static inline void out##bwl##_local(unsigned long port, unsigned type value) { __asm__ __volatile__("out" #bwl " %" #bw "0, %w1" : : "a"(value), "Nd"(port)); \ + }\ +@@ -44,6 +45,15 @@ + __BUILDIO(b,b,char) + __BUILDIO(w,w,short) + __BUILDIO(l,,int) ++#else ++/* use libc functions */ ++#define inb_local inb ++#define inw_local inw ++#define inl_local inl ++#define outb_local outb ++#define outw_local outw ++#define outl_local outl ++#endif /* X86EMU */ + + + char *mmap_addr = SHMERRORPTR; |