add deps for virtualbox

This commit is contained in:
Ertuğrul Erata
2015-08-12 13:04:18 +03:00
parent 2ace1fa72b
commit 46bde02467
22 changed files with 723 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
def build():
for com in [ "bcc86", "unproto", "copt", "as86", "ld86",
"-C cpp", "-C ar", "-C ld" ]:
make_opts = { 'cflags' : get.CFLAGS(),
'com' : com }
autotools.make('%(com)s CFLAGS="%(cflags)s -D_POSIX_SOURCE" -j1' % make_opts)
# ncc does not support gcc optflags
autotools.make('-j1')
def install():
for binary in ["bin/*","cpp/bcc-cpp","bcc/bcc-cc1"]:
pisitools.dobin(binary)
pisitools.rename("/usr/bin/Bcc","bcc")
pisitools.doman("man/*.1")
pisitools.dodoc("Changes","COPYING","MAGIC","README")
@@ -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)"
+61
View File
@@ -0,0 +1,61 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>dev86</Name>
<Homepage>http://homepage.ntlworld.com/robert.debath/</Homepage>
<Packager>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Packager>
<License>GPLv2</License>
<IsA>app:console</IsA>
<Summary>Development environment for ELKS-86 and standalone 8086 code</Summary>
<Description>The dev86 package provides an assembler and linker for real mode 80x86 instructions. You'll need to have this package installed in order to build programs that run in real mode, including LILO and the kernel's bootstrapping code, from their sources.</Description>
<Archive sha1sum="9e8c2949c408ce8ebdade3af3eee775ebac3cab5" type="targz">http://v3.sk/~lkundrak/dev86/archive/Dev86src-0.16.19.tar.gz</Archive>
<!--http://v3.sk/~lkundrak/dev86/archive/Dev86src-0.16.20.tar.gz-->
<Patches>
<!-- some fedora fixes -->
<Patch level="1">fedora/dev86-noelks.patch</Patch>
<Patch level="1">fedora/dev86-nostrip.patch</Patch>
<Patch level="1">fedora/dev86-long.patch</Patch>
<Patch level="1">fedora/dev86-print-overflow.patch</Patch>
<Patch level="1">dont-ask-anything.patch</Patch>
<Patch level="1">64bit-build-fix.patch</Patch>
<Patch level="1">makefile-fix.patch</Patch>
</Patches>
</Source>
<Package>
<Name>dev86</Name>
<Files>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="doc">/usr/share/doc</Path>
<Path fileType="man">/usr/share/man</Path>
</Files>
</Package>
<History>
<Update release="3">
<Date>2014-02-17</Date>
<Version>0.16.19</Version>
<Comment>Release.</Comment>
<Name>Serdar Soytetir</Name>
<Email>kaptan@pisilinux.org</Email>
</Update>
<Update release="2">
<Date>2013-05-02</Date>
<Version>0.16.19</Version>
<Comment>Version bump.</Comment>
<Name>Serdar Soytetir</Name>
<Email>kaptan@pisilinux.org</Email>
</Update>
<Update release="1">
<Date>2010-10-13</Date>
<Version>0.16.17</Version>
<Comment>First release</Comment>
<Name>Pisi Linux Admins</Name>
<Email>admins@pisilinux.org</Email>
</Update>
</History>
</PISI>
+8
View File
@@ -0,0 +1,8 @@
<?xml version="1.0" ?>
<PISI>
<Source>
<Name>dev86</Name>
<Summary xml:lang="tr">ELKS-86 ve 8086 kodları için geliştirme ortamı</Summary>
<Summary xml:lang="es">Entorno de desarrollo para ELKS-86 y código 8086 independiente</Summary>
</Source>
</PISI>