add deps for virtualbox
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
Index: dev86-0.16.17/bcc/bcc.c
|
||||
===================================================================
|
||||
--- dev86-0.16.17.orig/bcc/bcc.c
|
||||
+++ dev86-0.16.17/bcc/bcc.c
|
||||
@@ -226,12 +226,21 @@ char ** argv;
|
||||
|
||||
} else {
|
||||
/* Relative paths to normal PREFIX directory */
|
||||
+#ifdef __x86_64__
|
||||
+ default_include = build_libpath("-I", "/lib64/bcc/include", "");
|
||||
+ default_libdir = build_libpath("-L", "/lib64/bcc", libdir_suffix);
|
||||
+ optim_rules = build_libpath("-d", "/lib64/bcc", libdir_suffix);
|
||||
+
|
||||
+ build_prefix("/lib64/bcc", libdir_suffix, "");
|
||||
+ build_prefix("/lib64/bcc", "", "");
|
||||
+#else
|
||||
default_include = build_libpath("-I", "/lib/bcc/include", "");
|
||||
default_libdir = build_libpath("-L", "/lib/bcc", libdir_suffix);
|
||||
optim_rules = build_libpath("-d", "/lib/bcc", libdir_suffix);
|
||||
|
||||
build_prefix("/lib/bcc", libdir_suffix, "");
|
||||
build_prefix("/lib/bcc", "", "");
|
||||
+#endif
|
||||
}
|
||||
|
||||
build_prefix("/bin", "", "");
|
||||
@@ -0,0 +1,15 @@
|
||||
Index: dev86-0.16.17/libc/Config_sh
|
||||
===================================================================
|
||||
--- dev86-0.16.17.orig/libc/Config_sh
|
||||
+++ dev86-0.16.17/libc/Config_sh
|
||||
@@ -46,8 +46,8 @@ main()
|
||||
do
|
||||
display
|
||||
echo
|
||||
- echon 'Select config option to flip [or quit] >'
|
||||
- read n
|
||||
+ echon 'Do not select config option, I can do it for you ;)'
|
||||
+ n="q" # read n
|
||||
v=""
|
||||
case "$n" in
|
||||
[qQ]* ) RUNNING=0
|
||||
@@ -0,0 +1,22 @@
|
||||
diff -up dev86-0.16.19/ld/x86_aout.h.long dev86-0.16.19/ld/x86_aout.h
|
||||
--- dev86-0.16.19/ld/x86_aout.h.long 2012-07-30 10:17:06.000000000 +0200
|
||||
+++ dev86-0.16.19/ld/x86_aout.h 2012-11-15 15:19:12.215396644 +0100
|
||||
@@ -11,17 +11,11 @@
|
||||
/* If the host isn't an x86 all bets are off, use chars. */
|
||||
#if defined(i386) || defined(__BCC__) || defined(MSDOS)
|
||||
typedef long Long;
|
||||
-#define __OUT_OK 1
|
||||
#else
|
||||
-/* Beware: this will probably allow some BE hosts to generate broken files. */
|
||||
-#ifdef INT32_MAX
|
||||
#include <stdint.h>
|
||||
typedef int32_t Long;
|
||||
-#define __OUT_OK 1
|
||||
-#else
|
||||
-typedef char Long[4];
|
||||
-#endif
|
||||
#endif
|
||||
+#define __OUT_OK 1
|
||||
|
||||
struct exec { /* a.out header */
|
||||
unsigned char a_magic[2]; /* magic number */
|
||||
@@ -0,0 +1,15 @@
|
||||
--- dev86-0.16.17/makefile.in.noelks 2006-01-25 17:03:02.000000000 -0500
|
||||
+++ dev86-0.16.17/makefile.in 2006-01-25 17:03:19.000000000 -0500
|
||||
@@ -89,10 +89,10 @@
|
||||
|
||||
#ifdef GNUMAKE
|
||||
all: check_config bcc86 cpp unproto copt as86 ar86 ld86 objdump86 \
|
||||
- library lib-bsd alt-libs elksemu
|
||||
+ library lib-bsd alt-libs
|
||||
|
||||
install: check_config install-bcc install-man \
|
||||
- install-lib install-emu
|
||||
+ install-lib
|
||||
|
||||
install-all: install install-other
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
--- dev86-0.16.17/makefile.in.nostrip 2007-01-30 14:28:38.000000000 +0100
|
||||
+++ dev86-0.16.17/makefile.in 2007-01-30 14:40:56.000000000 +0100
|
||||
@@ -78,7 +78,7 @@
|
||||
|
||||
# Install files with the userid of the currently running process.
|
||||
INDAT=-m 644
|
||||
-INEXE=-m 755 -s
|
||||
+INEXE=-m 755
|
||||
INSCR=-m 755
|
||||
|
||||
#ifdef __CYGWIN__
|
||||
@@ -0,0 +1,27 @@
|
||||
From: Lubomir Rintel <lkundrak@v3.sk>
|
||||
|
||||
There are off-by-one errors when filling the ar headers, the trailing nul
|
||||
would overflow the target buffer.
|
||||
|
||||
diff -urp dev86-0.16.17/ld/mkar.c dev86-0.16.17.fixed/ld/mkar.c
|
||||
--- dev86-0.16.17/ld/mkar.c 2004-06-20 09:23:27.000000000 +0200
|
||||
+++ dev86-0.16.17.fixed/ld/mkar.c 2010-03-29 23:34:30.351426404 +0200
|
||||
@@ -51,12 +51,12 @@ char buf[128];
|
||||
memset(&arbuf, ' ', sizeof(arbuf));
|
||||
strcpy(buf, ptr); strcat(buf, "/ ");
|
||||
strncpy(arbuf.ar_name, buf, sizeof(arbuf.ar_name));
|
||||
-
|
||||
- sprintf(arbuf.ar_date, "%-12ld", (long)st.st_mtime);
|
||||
- sprintf(arbuf.ar_uid, "%-6d", (int)(st.st_uid%1000000L));
|
||||
- sprintf(arbuf.ar_gid, "%-6d", (int)(st.st_gid%1000000L));
|
||||
- sprintf(arbuf.ar_mode, "%-8lo", (long)st.st_mode);
|
||||
- sprintf(arbuf.ar_size, "%-10ld", (long)st.st_size);
|
||||
+
|
||||
+ snprintf(arbuf.ar_date, 12, "%-12ld", (long)st.st_mtime);
|
||||
+ snprintf(arbuf.ar_uid, 6, "%-6d", (int)(st.st_uid%1000000L));
|
||||
+ snprintf(arbuf.ar_gid, 6, "%-6d", (int)(st.st_gid%1000000L));
|
||||
+ snprintf(arbuf.ar_mode, 8, "%-8lo", (long)st.st_mode);
|
||||
+ snprintf(arbuf.ar_size, 10, "%-10ld", (long)st.st_size);
|
||||
memcpy(arbuf.ar_fmag, ARFMAG, sizeof(arbuf.ar_fmag));
|
||||
|
||||
if( fwrite(&arbuf, 1, sizeof(arbuf), fd) != sizeof(arbuf) )
|
||||
@@ -0,0 +1,15 @@
|
||||
Index: dev86-0.16.17/libc/i386sys/Makefile
|
||||
===================================================================
|
||||
--- dev86-0.16.17.orig/libc/i386sys/Makefile
|
||||
+++ dev86-0.16.17/libc/i386sys/Makefile
|
||||
@@ -20,6 +20,10 @@ CFLAGS=$(ARCH) $(CCFLAGS) $(DEFS)
|
||||
all: $(SYSCALLS) $(LIBC)($(OBJ))
|
||||
@$(RM) $(OBJ)
|
||||
|
||||
+# when OBJ is null at $(LIBC)($(OBJ)), make crashes
|
||||
+$(LIBC)():
|
||||
+ @:
|
||||
+
|
||||
syscalls: syscall.mak
|
||||
$(MAKE) -f syscall.mak LIBC="$(LIBC)" CFLAGS="$(CFLAGS)"
|
||||
|
||||
Reference in New Issue
Block a user