[packages/x86emu] - rel 6, use inb/outb/iopl from klibc

baggins baggins at pld-linux.org
Wed Aug 12 14:51:23 CEST 2026


commit 97dc22c8402b2c8fa864dbe1e269f74f0033ca0c
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Wed Aug 12 14:50:32 2026 +0200

    - rel 6, use inb/outb/iopl from klibc

 io.patch    | 100 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 x86emu.spec |   4 ++-
 2 files changed, 103 insertions(+), 1 deletion(-)
---
diff --git a/x86emu.spec b/x86emu.spec
index 4d5ce5c..2054069 100644
--- a/x86emu.spec
+++ b/x86emu.spec
@@ -7,7 +7,7 @@ Summary:	Intel x86 CPU real mode emulator
 Summary(pl.UTF-8):	Emulator trybu rzeczywistego procesorów Intel x86
 Name:		x86emu
 Version:	0.8
-Release:	5
+Release:	6
 License:	MIT
 Group:		Libraries
 Source0:	http://www.scitechsoft.com/ftp/devel/obsolete/x86emu/%{name}-%{version}.tar.gz
@@ -16,6 +16,7 @@ Patch0:		%{name}-build.patch
 Patch1:		%{name}-update.patch
 Patch2:		%{name}-update-v86d.patch
 Patch3:		%{name}-klibc-makefile.patch
+Patch4:		io.patch
 URL:		http://www.scitechsoft.com/products/dev/x86_emulator.html
 %{?with_klibc:BuildRequires:	klibc-devel}
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -76,6 +77,7 @@ Pliki nagłówkowe i biblioteka statyczna x86emu dla klibc.
 %patch -P1 -p1
 %patch -P2 -p1
 %patch -P3 -p1
+%patch -P4 -p1
 
 %build
 %if %{with klibc}
diff --git a/io.patch b/io.patch
new file mode 100644
index 0000000..00e6de6
--- /dev/null
+++ b/io.patch
@@ -0,0 +1,100 @@
+diff -ur x86emu-0.8/scitech/src/v86bios/AsmMacros.h x86emu-0.8-io/scitech/src/v86bios/AsmMacros.h
+--- x86emu-0.8/scitech/src/v86bios/AsmMacros.h	2001-08-14 19:35:05.000000000 +0200
++++ x86emu-0.8-io/scitech/src/v86bios/AsmMacros.h	2026-08-12 03:04:22.931044815 +0200
+@@ -325,7 +325,7 @@
+ }
+ 
+ #else /* GCCUSESGAS */
+-
++/*
+ static __inline__ void
+ outb(port, val)
+      short port;
+@@ -382,7 +382,7 @@
+                    "d" (port));
+   return ret;
+ }
+-
++*/
+ #endif /* GCCUSESGAS */
+ #endif /* Lynx && __powerpc__ */
+ #endif /* arm32 */
+diff -ur x86emu-0.8/scitech/src/v86bios/cbios.c x86emu-0.8-io/scitech/src/v86bios/cbios.c
+--- x86emu-0.8/scitech/src/v86bios/cbios.c	2001-08-14 19:35:05.000000000 +0200
++++ x86emu-0.8-io/scitech/src/v86bios/cbios.c	2026-08-12 03:02:29.433959822 +0200
+@@ -8,9 +8,8 @@
+ #include <signal.h>
+ #include <sys/stat.h>
+ #include <getopt.h>
+-#if defined(__alpha__) || defined (__ia64__)
+ #include <sys/io.h>
+-#elif defined(HAVE_SYS_PERM)
++#if defined(HAVE_SYS_PERM)
+ #include <sys/perm.h>
+ #endif
+ #include "debug.h"
+diff -ur x86emu-0.8/scitech/src/v86bios/io.c x86emu-0.8-io/scitech/src/v86bios/io.c
+--- x86emu-0.8/scitech/src/v86bios/io.c	2001-08-14 19:35:05.000000000 +0200
++++ x86emu-0.8-io/scitech/src/v86bios/io.c	2026-08-12 03:04:52.383958288 +0200
+@@ -22,9 +22,7 @@
+ #include "debug.h"
+ 
+ #include <stdio.h>
+-#if defined(__alpha__) || defined (__ia64__)
+ #include <sys/io.h>
+-#endif
+ #include "AsmMacros.h"
+ #include "v86bios.h"
+ #include "pci.h"
+diff -ur x86emu-0.8/scitech/src/v86bios/main.c x86emu-0.8-io/scitech/src/v86bios/main.c
+--- x86emu-0.8/scitech/src/v86bios/main.c	2001-08-14 19:35:05.000000000 +0200
++++ x86emu-0.8-io/scitech/src/v86bios/main.c	2026-08-12 02:56:21.290627166 +0200
+@@ -29,9 +29,8 @@
+ #include <stdlib.h>
+ #include <signal.h>
+ #include <sys/stat.h>
+-#if defined(__alpha__) || defined (__ia64__)
+ #include <sys/io.h>
+-#elif defined(HAVE_SYS_PERM)
++#if defined(HAVE_SYS_PERM)
+ #include <sys/perm.h>
+ #endif
+ #include "debug.h"
+diff -ur x86emu-0.8/scitech/src/v86bios/v86bios.c x86emu-0.8-io/scitech/src/v86bios/v86bios.c
+--- x86emu-0.8/scitech/src/v86bios/v86bios.c	2001-08-14 19:35:05.000000000 +0200
++++ x86emu-0.8-io/scitech/src/v86bios/v86bios.c	2026-08-12 02:54:50.357292924 +0200
+@@ -31,9 +31,8 @@
+ #include <sys/stat.h>
+ #include <readline/readline.h>
+ #include <readline/history.h>
+-#if defined(__alpha__) || defined (__ia64__)
+ #include <sys/io.h>
+-#elif defined(HAVE_SYS_PERM)
++#if defined(HAVE_SYS_PERM)
+ #include <sys/perm.h>
+ #endif
+ #include "debug.h"
+--- x86emu-0.8/scitech/src/v86bios/int.c~	2026-08-12 03:07:52.000000000 +0200
++++ x86emu-0.8/scitech/src/v86bios/int.c	2026-08-12 14:48:40.171404665 +0200
+@@ -20,9 +20,7 @@
+  * PERFORMANCE OF THIS SOFTWARE.
+  */
+ #include "debug.h"
+-#if defined(__alpha__) || defined (__ia64__)
+ #include <sys/io.h>
+-#endif
+ 
+ #include "v86bios.h"
+ #include "AsmMacros.h"
+--- x86emu-0.8/scitech/src/v86bios/pci.c~	2001-08-14 19:35:05.000000000 +0200
++++ x86emu-0.8/scitech/src/v86bios/pci.c	2026-08-12 14:48:56.591404064 +0200
+@@ -28,9 +28,7 @@
+ #include <sys/types.h>
+ #include <sys/stat.h>
+ #include <string.h>
+-#if defined (__alpha__) || defined (__ia64__)
+ #include <sys/io.h>
+-#endif
+ #include "AsmMacros.h"
+ 
+ #include "pci.h"
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/x86emu.git/commitdiff/97dc22c8402b2c8fa864dbe1e269f74f0033ca0c



More information about the pld-cvs-commit mailing list