--- linux86-0.16.17.orig/ifdef.c +++ linux86-0.16.17/ifdef.c @@ -443,10 +443,6 @@ #ifdef __i386__ save_name("__elksemu_works__", 'D'); #endif -/* Is this true ? */ -#ifdef __x86_64__ - save_name("__elksemu_works__", 'D'); -#endif #endif #ifdef __unix__ save_name("__unix__", 'D'); --- linux86-0.16.17.orig/makefile.in +++ linux86-0.16.17/makefile.in @@ -205,10 +205,6 @@ elksemu: bindir $(MAKEC) elksemu elksemu cp -p elksemu/elksemu bin/elksemu -#else -elksemu: bindir - $(MAKEC) elksemu CC='ncc' elksemu - cp -p elksemu/elksemu bin/elksemu #endif #endif --- linux86-0.16.17.orig/debian/rules +++ linux86-0.16.17/debian/rules @@ -0,0 +1,117 @@ +#!/usr/bin/make -f +# +# Copyright (C) 1997-2008 Juan Cespedes + +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) + +SHELL = bash + +build: + make all LIBPRE=/usr/ < /dev/null + touch build + +clean: + rm -f build + make realclean + rm -f ld/ar.h + rm -rf debian/tmp* + rm -f debian/files debian/substvars + +binary: binary-indep binary-arch + +binary-common: build + @test 0 = `id -u` || { echo "Error: not super-user"; exit 1; } + rm -rf debian/tmp* + install -d debian/tmp + make install DIST=`pwd`/debian/tmp +# exit 5 + gzip -9f debian/tmp/usr/man/man?/* + +binary-indep: binary-common + install -d debian/tmp-elks-libc/DEBIAN + +# ``elks-libc'' specific things: + install -d debian/tmp-elks-libc/usr/lib/bcc/kinclude + mv debian/tmp/usr/lib/bcc/*.* debian/tmp-elks-libc/usr/lib/bcc + mv debian/tmp/usr/lib/bcc/include debian/tmp-elks-libc/usr/lib/bcc + install -d debian/tmp-elks-libc/usr/lib/bcc/kinclude + cp -a libc/kinclude/linuxmt debian/tmp-elks-libc/usr/lib/bcc/kinclude/linuxmt + cp -a libc/kinclude/arch debian/tmp-elks-libc/usr/lib/bcc/kinclude/arch + touch debian/tmp-elks-libc/usr/lib/bcc/*include/*/ + mv debian/tmp/usr/lib/bcc/i386 debian/tmp-elks-libc/usr/lib/bcc +# + install -d debian/tmp-elks-libc/usr/share/doc/elks-libc + cp -p Changes debian/tmp-elks-libc/usr/share/doc/elks-libc/changelog + cp -p Contributors README debian/tmp-elks-libc/usr/share/doc/elks-libc/ + cp -p elksemu/README debian/tmp-elks-libc/usr/share/doc/elks-libc/README.elksemu + cp -p libc/README debian/tmp-elks-libc/usr/share/doc/elks-libc/README.libc + cp -p libbsd/README.HLU debian/tmp-elks-libc/usr/share/doc/elks-libc/README.libbsd + cp -p debian/changelog debian/tmp-elks-libc/usr/share/doc/elks-libc/changelog.Debian + install -d debian/tmp-elks-libc/usr/share/lintian/overrides + cp -p debian/lintian.overrides debian/tmp-elks-libc/usr/share/lintian/overrides/elks-libc + gzip -9f debian/tmp-elks-libc/usr/share/doc/elks-libc/* + cp -p debian/copyright.elks-libc debian/tmp-elks-libc/usr/share/doc/elks-libc/copyright + dpkg-gencontrol -Pdebian/tmp-elks-libc -pelks-libc -isp + chown -R 0.0 debian/tmp-elks-libc + chmod -R u=rwX,go=rX debian/tmp-elks-libc + dpkg --build debian/tmp-elks-libc .. + +binary-arch: binary-common + install -d debian/tmp-bcc/DEBIAN + install -d debian/tmp-bin86/DEBIAN + +# ``bcc'' specific things: + install -d debian/tmp-bcc/usr/bin + mv debian/tmp/usr/bin/bcc debian/tmp-bcc/usr/bin +ifneq (,$(filter $(DEB_BUILD_ARCH),i386 lpia)) + mv debian/tmp/usr/bin/elksemu debian/tmp-bcc/usr/bin + install -d debian/tmp-bcc/usr/share/man/man1 + mv debian/tmp/usr/man/man1/elksemu.1.gz debian/tmp-bcc/usr/share/man/man1 +endif + install -d debian/tmp-bcc/usr/lib/bcc + mv debian/tmp/usr/lib/bcc/bcc-cc1 debian/tmp-bcc/usr/lib/bcc + mv debian/tmp/usr/lib/bcc/bcc-cpp debian/tmp-bcc/usr/lib/bcc + mv debian/tmp/usr/lib/bcc/copt debian/tmp-bcc/usr/lib/bcc + mv debian/tmp/usr/lib/bcc/unproto debian/tmp-bcc/usr/lib/bcc + install -d debian/tmp-bcc/usr/share/man/man1 + mv debian/tmp/usr/man/man1/bcc.1.gz debian/tmp-bcc/usr/share/man/man1 +# + install -d debian/tmp-bcc/usr/share/doc/bcc + cp -p Changes debian/tmp-bcc/usr/share/doc/bcc/changelog + cp -p Contributors README debian/tmp-bcc/usr/share/doc/bcc/ + cp -p unproto/README debian/tmp-bcc/usr/share/doc/bcc/README.unproto + cp -p bcc/bcc.doc debian/tmp-bcc/usr/share/doc/bcc/ + cp -p copt/README debian/tmp-bcc/usr/share/doc/bcc/README.copt + cp -p debian/changelog debian/tmp-bcc/usr/share/doc/bcc/changelog.Debian + gzip -9f debian/tmp-bcc/usr/share/doc/bcc/* + cp -p debian/copyright.bcc debian/tmp-bcc/usr/share/doc/bcc/copyright + +# ``bin86'' specific things: + install -d debian/tmp-bin86/usr/bin + mv debian/tmp/usr/bin/*86 debian/tmp-bin86/usr/bin + install -d debian/tmp-bin86/usr/share/man/man1 + mv debian/tmp/usr/man/man1/*86.1.gz debian/tmp-bin86/usr/share/man/man1 +# + install -d debian/tmp-bin86/usr/share/doc/bin86 + cp -p Changes debian/tmp-bin86/usr/share/doc/bin86/changelog + cp -p Contributors README debian/tmp-bin86/usr/share/doc/bin86/ + rm -f debian/tmp-bin86/usr/bin/{size86,objdump86} + ln debian/tmp-bin86/usr/bin/nm86 debian/tmp-bin86/usr/bin/size86 + ln debian/tmp-bin86/usr/bin/nm86 debian/tmp-bin86/usr/bin/objdump86 + rm -f debian/tmp-bin86/usr/share/man/man1/{size86.1.gz,nm86.1.gz} + ln -s objdump86.1.gz debian/tmp-bin86/usr/share/man/man1/nm86.1.gz + ln -s objdump86.1.gz debian/tmp-bin86/usr/share/man/man1/size86.1.gz + cp -p debian/changelog debian/tmp-bin86/usr/share/doc/bin86/changelog.Debian + gzip -9f debian/tmp-bin86/usr/share/doc/bin86/* + install -d debian/tmp-bin86/usr/share/doc/bin86/examples + mv debian/tmp/usr/lib/bcc/as86_encap debian/tmp-bin86/usr/share/doc/bin86/examples + cp -p debian/copyright.bin86 debian/tmp-bin86/usr/share/doc/bin86/copyright + + dpkg-shlibdeps -pbin86 debian/tmp-bin86/usr/bin/* + dpkg-shlibdeps -pbcc debian/tmp-bcc/usr/{bin/bcc,lib/bcc/*} + dpkg-gencontrol -Pdebian/tmp-bin86 -pbin86 -isp + dpkg-gencontrol -Pdebian/tmp-bcc -pbcc -isp + chown -R 0.0 debian/tmp-bcc debian/tmp-bin86 + chmod -R u=rwX,go=rX debian/tmp-bcc debian/tmp-bin86 + dpkg --build debian/tmp-bcc .. + dpkg --build debian/tmp-bin86 .. --- linux86-0.16.17.orig/debian/control +++ linux86-0.16.17/debian/control @@ -0,0 +1,40 @@ +Source: linux86 +Section: devel +Priority: optional +Maintainer: Ubuntu Core developers +XSBC-Original-Maintainer: Juan Cespedes +Standards-Version: 3.8.0 + +Package: bin86 +Architecture: any +Priority: optional +Depends: ${bin86:Depends} +Conflicts: linux86 +Description: 16-bit x86 assembler and loader + This is the as86 and ld86 distribution written by Bruce Evans. + It's a complete 8086 assembler and loader which can make 32-bit + code for the 386+ processors. + +Package: bcc +Architecture: any +Depends: ${bcc:Depends}, bin86 (= ${binary:Version}) +Recommends: elks-libc (= ${binary:Version}) +Conflicts: linux86 +Replaces: linux86 +Provides: c-compiler +Description: 16-bit x86 C compiler + This is a C-compiler for 8086 cpus which is important for the + development of boot loaders or BIOS related 8086 code. + . + It is possible to run 8086 code under i386 Linux using an emulator, + `elksemu', also included in this package. + +Package: elks-libc +Architecture: all +Recommends: bcc (= ${binary:Version}) +Replaces: bcc (<< 0.14.9), linux86 +Conflicts: linux86 +Description: 16-bit x86 C library and include files + This is the C library used to compile with bcc. It includes all the + headers and static libraries needed to build 16-bit applications, + for Linux/8086, Linux/i386 and DOS .COM executables. --- linux86-0.16.17.orig/debian/changelog +++ linux86-0.16.17/debian/changelog @@ -0,0 +1,352 @@ +linux86 (0.16.17-3ubuntu2) jaunty; urgency=low + + * bcc/bcc.c: correctly calculate MAXPATHLEN to avoid runtime fortify + failures and FTBFS (LP: #360096, debian bug 523807). + + -- Kees Cook Sun, 12 Apr 2009 09:47:16 -0700 + +linux86 (0.16.17-3ubuntu1) jaunty; urgency=low + + * Merge with Debian; remaining changes: + + -- Matthias Klose Mon, 17 Nov 2008 11:57:41 +0100 + +linux86 (0.16.17-3) unstable; urgency=low + + * Added man pages for ar86, objdump86, size86 and nm86 with patch + from Shyamal Prasad + (Closes: #138042, #138043, #138044, #138046) + * New Standards-Version: 3.8.0 + * Downgrade elks-libc dependency on bcc to a recomendation + (it's possible to have development libraries without a compiler) + * Added lintian override for elks-libc's binary objects + + -- Juan Cespedes Wed, 01 Oct 2008 13:01:24 +0200 + +linux86 (0.16.17-2.3) unstable; urgency=low + + * Non-maintainer upload. + * bcc/const.h: change S_ALIGNMENT (alignment of allocated vars) + to 2*sizeof(size_t) from sizeof(long) to fix hppa FTBFS. + Idea from glibc malloc. Closes: #497632 + + -- Thomas Viehmann Mon, 22 Sep 2008 23:14:46 +0200 + +linux86 (0.16.17-2.2) unstable; urgency=low + + * Non-maintainer upload. + * Revert 0.16.17-2, making all packages Architecture: any again + A build of vgabios on amd64 differs to that in the archive + (build on i386) only by timestamp and checksum. + + -- Thomas Viehmann Sun, 07 Sep 2008 00:00:00 +0200 + +linux86 (0.16.17-2.1) unstable; urgency=low + + * Non-maintainer upload. + * Do not build on alpha, amd64 and ia64 (Closes: #471404) + + -- Moritz Muehlenhoff Tue, 5 Aug 2008 00:18:32 +0200 + +linux86 (0.16.17-2ubuntu1) hardy; urgency=low + + * Merge with Debian; remaining changes: + - Build elks-libc for lpia. + + -- Matthias Klose Fri, 07 Dec 2007 20:33:39 +0000 + +linux86 (0.16.17-2) unstable; urgency=low + + * Disable elksemu building in non-i386 architectures + + -- Juan Cespedes Sun, 26 Aug 2007 17:55:08 +0200 + +linux86 (0.16.17-1) unstable; urgency=low + + * New upstream version (closes: Bug#339780, #260647, #227072, #244520) + * New Standards-Version: 3.7.2 + * Make elks-libc architecture "all" + + -- Juan Cespedes Sun, 26 Aug 2007 13:42:07 +0200 + +linux86 (0.16.14-1.4ubuntu1) gutsy; urgency=low + + * Build elks-libc for lpia. + * Set Ubuntu maintainer address. + + -- Matthias Klose Fri, 10 Aug 2007 19:25:27 +0000 + +linux86 (0.16.14-1.4build1) feisty; urgency=low + + * Rebuild for ldbl128 change (powerpc, sparc). + + -- Matthias Klose Sun, 4 Mar 2007 01:08:58 +0000 + +linux86 (0.16.14-1.4) unstable; urgency=low + + * Non-maintainer upload. + * DEB_BUILD_GNU_TYPE now returns i486-linux-gnu instead of + i386-linux. This resulted in the elks-libc not being packaged. + + -- Kurt Roeckx Thu, 4 May 2006 19:41:14 +0200 + +linux86 (0.16.14-1.3) unstable; urgency=low + + * Non-maintainer upload. + * Don't strip elksemu. It doesn't work on amd64, and + it doesn't contain any debug info in the first place. + Patch from Goswin von Brederlow (Closes: #260647) + + -- Kurt Roeckx Thu, 30 Mar 2006 19:31:53 +0200 + +linux86 (0.16.14-1.2) unstable; urgency=high + + * NMU + * As elks-libc is only available on i386, drop the bcc recommends + on it on all other arches (Closes: #273357) + + -- Frank Lichtenheld Sun, 3 Oct 2004 02:47:17 +0200 + +linux86 (0.16.14-1.1) unstable; urgency=low + + * NMU. + * Misc portability fixes. (Closes: #227072, #224520) + - debian/control: Make it Arch:any. (generates x86 code on all cpus) + - debian/rules: Ifdef Linuxisms out. + - ar/ar.c: Nuke obsolete sys_errlist usage and bad errno declaration. + - ifdef.c: Cleanup macro definitions. + - makefile.in: Nuke some Linuxisms. + + -- Robert Millan Mon, 12 Jul 2004 01:13:06 +0200 + +linux86 (0.16.14-1) unstable; urgency=medium + + * New upstream version + * Include everywhere so there should not be more references + to the deprecated errno@GLIBC_2.0 symbol (closes: Bug#168531) + * New Standards-Version: 3.6.1 + + -- Juan Cespedes Sun, 14 Dec 2003 00:10:27 +0100 + +linux86 (0.16.3-2) unstable; urgency=medium + + * Fixed 'can't find bcc-cc1' bug with patch from BTS. + Thanks to Robert Millan + and Bas Zoetekouw (Closes: Bug#153449) + + -- Juan Cespedes Sat, 17 Aug 2002 02:15:29 +0200 + +linux86 (0.16.3-1) unstable; urgency=low + + * New upstream release + + -- Juan Cespedes Thu, 20 Jun 2002 14:52:29 +0200 + +linux86 (0.16.0-1) unstable; urgency=low + + * New upstream version + * Added old changelog from Christoph Lameter versions, + and given him credit in copyright files (closes: Bug#114452) + * Include /usr/lib/bcc/kinclude in the distribution (closes: Bug#91887) + + -- Juan Cespedes Sun, 9 Dec 2001 04:20:53 +0100 + +linux86 (0.15.4-1) unstable; urgency=low + + * New upstream version + * This version is (hopefully) able to compile dosemu properly + (closes: Bug#86348) + + -- Juan Cespedes Sat, 17 Feb 2001 14:35:09 +0100 + +linux86 (0.15.3-1) unstable; urgency=low + + * New upstream version + * Get rid of Lintian's "no-priority-field" and "no-section-field" + warnings + + -- Juan Cespedes Sun, 15 Oct 2000 00:59:31 +0200 + +linux86 (0.14.9-3) unstable; urgency=low + + * Fixed lintian bugs + + -- Juan Cespedes Tue, 21 Dec 1999 18:06:18 +0100 + +linux86 (0.14.9-2) unstable; urgency=low + + * New Standards-Version (3.1.1) + * Fixed dependency problem in elks-libc (closes: Bug#48706) + * Fixed paths to find programs in bcc + * bin86 no longer provides kernel-assembler; its function can be + addressed with Build-Depends in packages kernel-* + + -- Juan Cespedes Sun, 19 Dec 1999 16:34:56 +0100 + +linux86 (0.14.9-1) unstable; urgency=low + + * New upstream version + * FHS + * New Standards-Version: 3.0.1 + + -- Juan Cespedes Sun, 17 Oct 1999 19:25:00 +0200 + +linux86 (0.14.3-2) unstable; urgency=low + + * Added "Provides: kernel-assembler" to bin86 + * Compiled against libc6_2.1 + + -- Juan Cespedes Fri, 16 Apr 1999 13:09:26 +0200 + +linux86 (0.14.3-1) unstable; urgency=low + + * New upstream version (added nm86, size86 and objdump86 to bin86) + + -- Juan Cespedes Thu, 15 Oct 1998 14:18:59 +0200 + +linux86 (0.13.0-4) unstable; urgency=low + + * Fixed some packaging bugs + + -- Juan Cespedes Sat, 21 Feb 1998 14:21:03 +0100 + +linux86 (0.13.0-3) unstable; urgency=low + + * Changed upstream changelog name (Changes.gz -> changelog.gz) + * bcc now provides `c-compiler' + * New Standards-Version: 2.4.0.0 + + -- Juan Cespedes Wed, 18 Feb 1998 23:04:22 +0100 + +linux86 (0.13.0-2) unstable; urgency=low + + * Minor changes in /usr/doc/bcc/copyright (now it should be clear + that *all* the packages are really DFSG compliant). + * New Standards-Version (2.3.0.1) + + -- Juan Cespedes Sun, 26 Oct 1997 11:52:36 +0100 + +linux86 (0.13.0-1) unstable; urgency=low + + * New upstream release + * Pristine sources + * New copyright for some parts of the packages + + -- Juan Cespedes Sun, 26 Oct 1997 01:50:54 +0200 + +linux86 (0.12.0-5) unstable; urgency=low + + * Minor clean-up of debian/rules + + -- Juan Cespedes Sat, 13 Sep 1997 10:12:52 +0200 + +linux86 (0.12.0-4) unstable; urgency=low + + * New Standards-Version + + -- Juan Cespedes Thu, 11 Sep 1997 22:50:56 +0200 + +linux86 (0.12.0-3) unstable; urgency=low + + * Make bin86 conflict with linux86 (fixes Bug#12751) + * Fixed minor bug in debian/rules + + -- Juan Cespedes Thu, 11 Sep 1997 01:49:04 +0200 + +linux86 (0.12.0-2) unstable; urgency=low + + * Fixed FSF postal address + * New maintainer address + * Splitted into one more package: elks-libc + * Moved /usr/lib/liberror.txt to /usr/lib/bcc + * Preserved modif times of doc files + + -- Juan Cespedes Wed, 3 Sep 1997 00:19:57 +0200 + +linux86 (0.12.0-1) unstable; urgency=low + + * New maintainer + * Built with libc6 + * Fixed Bug#9291, Bug#8999 + * FSSTND compliance + * Splitted into 2 packages: bcc and bin86 + * Fixed Bug#7765, Bug#9765, Bug#11663 + * Fixed warnings in ld86 (``WARNING: typeconv.c(cnu4) illegal count'') + * Added flag to as86 (-W) and default to *not* print warnings + * `as86' is now covered by the GPL + + -- Juan Cespedes Thu, 21 Aug 1997 22:54:05 +0200 + +linux86 (0.0.11-0) unstable; urgency=low + + * New upstream release + * New maintainer: Siggy Brentrup + * Repackaged upstream sources into separate directories to cope + with dpkg-source limitations (fixes Bug #7562) + * Added top level Makefile + + -- Siggy Brentrup Fri, 7 Mar 1997 21:39:30 +0100 + +elks (0.0.8-1) unstable; urgency=medium + + * Upstream upgrade (some changes where taken by ELKS from the debian + port) + * Removed compiler, loader sourcecode from binary distribution + * If someone wants to develop a new boot loader: There is lots of example + code that might be helpful. + + -- Christoph Lameter Sun, 3 Nov 1996 18:07:27 -0800 + +elks (0.0.7-5) unstable; urgency=medium + + * I am not using elks for any developmental purpose right now. Somebody who + is doing development with ELKS might be doing a better job with this that + I am doing right now. + * Minor corrections of texts + * Module build with MODVERSIONS. Elks will no longer run under + kernels compiled without MODVERSIONS! + + -- Christoph Lameter Wed, 22 Oct 1996 9:00:00 -0700 + +elks (0.0.7-4) unstable;urgency=medium + + * Included dis88 again since now 8086 binaries will run + * Moved elksemu into /usr/sbin + * Included binfmt_elks.o module to transparently load 8086 binaries + * Included management for binfmt_elks module. Is loaded on system startup + or installation of the package. + * Documentation moved around to conform to 2.1.1.0 standards + * Copyright file revised + + -- Christoph Lameter Mon, 30 Sep 1996 9:00:00 -0800 + +elks (0.0.7-3) unstable;urgency=high + + * Removed dis88 since its only for bcc. + * Added standalone.c to run programs on a bare machine (such as a linux + loader for example) + * Some directory permissions where wrong + + -- Christoph Lameter Thu, 26 Sep 1996 9:00:00 -0800 + +elks (0.0.7-2) unstable;urgency=high + + * Permissions of /usr/src/elks/tiny wrong + * README.debian and changelog.DEBIAN included + + -- Christoph Lameter Sun, 22 Sep 1996 9:00:00 -0800 + +elks (0.0.7-1) unstable;urgency=medium + + * Distribution from linux.mit.edu/pub/ELKS/Dev86 taken and customized + for debian + * Added manpages from FreeBSD (might not be totally up to date) + * I hope elks will enable the debian project to build the bootloader + syslinux under Linux and no longer under DOS. + + -- Christoph Lameter Sun, 22 Sep 1996 9:00:00 -0800 + +Local variables: +mode: debian-changelog +End: + --- linux86-0.16.17.orig/debian/lintian.overrides +++ linux86-0.16.17/debian/lintian.overrides @@ -0,0 +1,9 @@ +# These are 16-bit 8086 objects, needed to cross-compile 8086 binaries +# from any architecture. + +elks-libc: arch-independent-package-contains-binary-or-object ./usr/lib/bcc/i386/libc.a +elks-libc: arch-independent-package-contains-binary-or-object ./usr/lib/bcc/libbsd.a +elks-libc: arch-independent-package-contains-binary-or-object ./usr/lib/bcc/libc.a +elks-libc: arch-independent-package-contains-binary-or-object ./usr/lib/bcc/libc_f.a +elks-libc: arch-independent-package-contains-binary-or-object ./usr/lib/bcc/libc_s.a +elks-libc: arch-independent-package-contains-binary-or-object ./usr/lib/bcc/libdos.a --- linux86-0.16.17.orig/debian/copyright.bcc +++ linux86-0.16.17/debian/copyright.bcc @@ -0,0 +1,64 @@ +This package is part of the Debian GNU/Linux's version of the 8086 +Software development environment ``linux86''. + +It was packaged by Juan Cespedes , from +sources obtained from: + http://homepage.ntlworld.com/robert.debath/ + + +Copyrights +---------- +Copyright 1992-1997 Bruce Evans +Copyright 1996-2007 Robert de Bath + +unproto: +Copyright 1993 Wietse Venema + wietse@wzv.win.tue.nl + Mathematics and Computing Science + Eindhoven University of Technology + The Netherlands + +Contributors: +Alan Cox +Nat Friedman +Steven Huang +Steffen Kaiser +Shane Kerr +Gero Kuhlmann +Chad Page +Dick Porter +Dale Schumacher +Wietse Venema +Joel Weber II +Claudio Matsuoka + +Modifications for Debian: + Copyright (C) 1996 Christoph Lameter + Copyright (C) 1997 Siggy Brentrup + Copyright (C) 1997-2007 Juan Cespedes + + +License +------- +The `bcc' part of the distribution is now covered by the GPL. + +The programs elksemu and copt are under the GPL. + +unproto has the following license: + +> From: wietse@wzv.win.tue.nl (Wietse Venema) +> Date: Sat, 25 Oct 1997 21:41:40 -0400 (EDT) +> Message-Id: <199710260141.UAA17665@spike.porcupine.org> +> Subject: Re: unproto license +> +> Unproto pre-dates the wide-spread use of GPL and other schemes. +> The software may be distributed as long I and my university get +> proper credits, and as long as changes made to the software are +> identified as such. So, there are no strings attached. + +A copy of the GNU General Public License is available as +`/usr/share/common-licenses/GPL' in the Debian GNU/Linux distribution +or on the World Wide Web at `http://www.gnu.org/copyleft/gpl.html'. +You can also obtain them by writing to the Free Software Foundation, +Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + --- linux86-0.16.17.orig/debian/copyright.elks-libc +++ linux86-0.16.17/debian/copyright.elks-libc @@ -0,0 +1,64 @@ +This package is part of the Debian GNU/Linux's version of the 8086 +Software development environment ``linux86''. + +It was packaged by Juan Cespedes , from +sources obtained from: + http://homepage.ntlworld.com/robert.debath/ + + +Copyrights +---------- +Copyright 1992-1997 Bruce Evans +Copyright 1996-2007 Robert de Bath + +Contributors: +Alan Cox +Nat Friedman +Steven Huang +Steffen Kaiser +Shane Kerr +Gero Kuhlmann +Chad Page +Dick Porter +Dale Schumacher +Wietse Venema +Joel Weber II +Claudio Matsuoka + +Modifications for Debian: + Copyright (C) 1996 Christoph Lameter + Copyright (C) 1997 Siggy Brentrup + Copyright (C) 1997-2007 Juan Cespedes + + +License +------- +The contents of the libc and libbsd subdirectories are under the LGPL +with a few noted exceptions: + +The regular expression routine has the following license: + + Copyright (c) 1986 by University of Toronto. + Written by Henry Spencer. Not derived from licensed software. + + Permission is granted to anyone to use this software for any + purpose on any computer system, and to redistribute it freely, + subject to the following restrictions: + + 1. The author is not responsible for the consequences of use of + this software, no matter how awful, even if they arise + from defects in it. + + 2. The origin of this software must not be misrepresented, either + by explicit claim or by omission. + + 3. Altered versions must be plainly marked as such, and must not + be misrepresented as being the original software. + +The printf/scanf functions are public domain. + +A copy of the GNU Library General Public License is available as +`/usr/share/common-licenses/LGPL' in the Debian GNU/Linux distribution. +You can also obtain them by writing to the Free Software Foundation, +Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + --- linux86-0.16.17.orig/debian/copyright.bin86 +++ linux86-0.16.17/debian/copyright.bin86 @@ -0,0 +1,43 @@ +This package is part of the Debian GNU/Linux's version of the 8086 +Software development environment ``linux86''. + +It was packaged by Juan Cespedes , from +sources obtained from: + http://homepage.ntlworld.com/robert.debath/ + + +Copyrights +---------- +Copyright 1992-1997 Bruce Evans +Copyright 1996-2007 Robert de Bath + +Contributors: +Alan Cox +Nat Friedman +Steven Huang +Steffen Kaiser +Shane Kerr +Gero Kuhlmann +Chad Page +Dick Porter +Dale Schumacher +Wietse Venema +Joel Weber II +Claudio Matsuoka + +Modifications for Debian: + Copyright (C) 1996 Christoph Lameter + Copyright (C) 1997 joost witteveen + Copyright (C) 1997-2007 Juan Cespedes + + +License +------- +The 'as' and `ld' parts of the distribution are now covered by the GPL. + +A copy of the GNU General Public License is available as +`/usr/share/common-licenses/GPL' in the Debian GNU/Linux distribution +or on the World Wide Web at `http://www.gnu.org/copyleft/gpl.html'. +You can also obtain it by writing to the Free Software Foundation, +Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + --- linux86-0.16.17.orig/doselks/syscalls.c +++ linux86-0.16.17/doselks/syscalls.c @@ -1,4 +1,4 @@ - +#include #include "doselks.h" #include "syscalls.h" --- linux86-0.16.17.orig/elksemu/elks_sys.c +++ linux86-0.16.17/elksemu/elks_sys.c @@ -147,9 +147,9 @@ /* Nasty hack so /lib/liberror.txt doesn't exist on the host. */ if (strcmp(dp, "/lib/liberror.txt") == 0 ) { - int fd = open("/tmp/liberror.txt", O_CREAT|O_EXCL|O_RDWR, 0666); + int fd = open("/var/run/elks-liberror.txt", O_CREAT|O_EXCL|O_RDWR, 0666); if (fd < 0) return fd; - unlink("/tmp/liberror.txt"); + unlink("/var/run/elks-liberror.txt"); write(fd, efile, sizeof(efile)); lseek(fd, 0L, 0); return fd; --- linux86-0.16.17.orig/bcc/const.h +++ linux86-0.16.17/bcc/const.h @@ -76,7 +76,8 @@ /* Unportable alignment needed for specific compilers */ #ifndef VERY_SMALL_MEMORY -# define S_ALIGNMENT (sizeof(long)) /* A little safer */ +/* # define S_ALIGNMENT (sizeof(long)) */ /* A little safer */ +# define S_ALIGNMENT (2*sizeof(size_t)) /* Even more safe: do as glibc malloc */ #endif /* local style */ --- linux86-0.16.17.orig/bcc/bcc.c +++ linux86-0.16.17/bcc/bcc.c @@ -32,6 +32,7 @@ #ifndef MSDOS #include #include +#include #endif #include "version.h" @@ -600,8 +601,12 @@ command_reset() { #ifndef MAXPATHLEN +#ifdef PATH_MAX +#define MAXPATHLEN PATH_MAX +#else #define MAXPATHLEN 1024 #endif +#endif char buf[MAXPATHLEN]; char ** prefix; char * saved_cmd; @@ -1308,11 +1313,7 @@ for(d=s=ptr; d && *s; s=d) { -#ifdef MAXPATHLEN char buf[MAXPATHLEN]; -#else - char buf[1024]; -#endif free(temp); d=strchr(s, ':'); --- linux86-0.16.17.orig/man/ar86.1 +++ linux86-0.16.17/man/ar86.1 @@ -0,0 +1,153 @@ +.TH ar86 1 "May, 2006" +.BY Shyamal Prasad +.nh +.SH NAME +ar86 \- Create, modify, and extract from archive file +.SH SYNOPSIS +.B ar86 +.I operation +.B archive +.RI [ file... ] +.PP +.BR ar86 +.I positional\-op +.B member +.B archive +.RI [ file ...] + +.SH DESCRIPTION +The +.B ar86 +program is used to create, examine and modify archive files produced +by the Dev86/ELKS toolchain. +.SH OPTIONS +The +.B ar86 +command requires that the operation to be performed on the archive be +specified as the first option. If the operation is positional then the +next option is the archive member marking the position. This is +followed by the archive file name and any list of file names. +.PP +.SS Operations +One of the following operations can be specified +.TP +.B d +\fIdelete\fR the listed files from the archive. +.TP +.B m +\fImove\fR the named files. By default files are moved to the end of +the archive unless a positional modifier is present. +.TP +.B p +\fIprint\fP the contents of archive members to standard out. If a file +list is included only those members are printed. If the \fBv\fR +modifier is present each file's contents are preceeded by a new line, +a line with the string \fBmember\fR, a space character, the member +name, and two following newlines. +.TP +.B q +.I quickly +add the files to the end of the archive without checking +to see if they already exist in the archive. This operation will +ignore any positional modifiers. Creates the archive file if it does +not exist. +.TP +.B r +\fIreplace\fR archive members with the files listed. If the file name +is not present in the archive it is added to the end of the archive +(or to any explicitly specified position). Creates the archive file if +it does not exist. +.TP +.B t +\fItable\fR; list the file names of archive members. If a file list is +present only those files that are present in the archive are listed. +The \fBv\fR modifier prints member attributes. +.TP +.B x +\fIextract\fR the named files from the archive into the current +directory. If no files are specified all the archive members will be +extracted. +.P +.SS Modifiers +The following modifiers may be used with the operations +.TP +.B o +\fIoriginal\fR time stamps from the archive are preserved for +extracted files when possible. +.TP +.B s +\fIsymbol\fR update; this option may be used by itself to force an +update to the symbol definition section of the archive (the +.B __.SYMDEF +member). If any files are specified they will be replaced as if the +.B r +operation had been specified. If no symbol definition section exists +one is created. This option will also creates the archive file if it +does not exist. +.TP +.B u +\fIupdate\fR files in the archive during a +.B r +.RI ( replace ) +operation. The files are added to the archive in exactly the same +manner as +.I replace +except that an existing archive member will be retained (in its +original position) if it has a modified more recently than the file +being added. Note that this modifier acts as if a +.B r +operation has been specified (even it has not), and will actually +override any other previously specified operation. +.TP +.B v +\fIverbose\fR; print additional diagnostic messages while processing +the archive. +.SS Positional Modifiers +The following modifiers specify where in the archive files are moved +to or added. If any of these modifiers are specified then the second +option to +.B ar86 +must be the name of an archive member. +.TP +.B a +\fIafter\fR; files are placed after the specified archive member. +.TP +.B b +\fIbefore\fR; files are placed before the specified archive member. +.TP +.B i +same as +.BR b . +.SH EXAMPLES +To see the contents of an archive +.IP +ar86 tv libfile.a +.PP +To add some files to an archive +.IP +ar86 r libfile.a file1.o file2.o +.PP +to add some files after a member named mem.o and to update the symbol +table +.IP +ar86 rsa mem.o libfile.a file1.o file2.o +.SH BUGS +A +.B l +modifier will be accepted but ignored. +.SH RESTRICTIONS +This command is intended for use only with object files created using +the Dev86/ELKS toolchain. +.SH "SEE ALSO" +.BR as86 (1), +.BR bcc (1), +.BR ld86 (1) +.SH AUTHORS +\(co 1988, 1990 Free Software Foundation Inc. Changes for +.B ar86 +by Greg Haerr . +.SH COPYRIGHT +The manual page was written for Debian GNU/Linux, \(co 2006 Shyamal +Prasad . It is distributed under the terms of +the GNU General Public License version 2 (or any later version +released by the Free Software Foundation). --- linux86-0.16.17.orig/man/Makefile +++ linux86-0.16.17/man/Makefile @@ -1,6 +1,6 @@ MANDIR=/usr/man -MAN1PG=as86.1 bcc.1 elks.1 elksemu.1 ld86.1 +MAN1PG=as86.1 bcc.1 elks.1 elksemu.1 ld86.1 ar86.1 objdump86.1 MAN1DIR=$(MANDIR)/man1 all: --- linux86-0.16.17.orig/man/bcc.1 +++ linux86-0.16.17/man/bcc.1 @@ -324,7 +324,7 @@ .P .SH DIRECTORIES All the include, library and compiler components are stored under the -.I /usr/bcc +.I /usr/lib/bcc directory under Linux-i386, this is laid out the same as a .I /usr filesystem and if bcc is to be the primary compiler on a system it should --- linux86-0.16.17.orig/man/elksemu.1 +++ linux86-0.16.17/man/elksemu.1 @@ -4,7 +4,7 @@ .SH NAME elksemu \- Embedded Linux Kernel Subset emulator .SH SYNOPSIS -.B /lib/elksemu +.B elksemu .B program .RB [ arguments ] .SH DESCRIPTION --- linux86-0.16.17.orig/man/objdump86.1 +++ linux86-0.16.17/man/objdump86.1 @@ -0,0 +1,72 @@ +.TH objdump86 1 "May, 2006" +.BY Shyamal Prasad +.nh +.SH NAME +objdump86, size86, nm86 \- Examine object, archive or executable files +.SH SYNOPSIS +.BI objdump86 +.RI [ file ...] +.PP +.B size86 +.RI [ file ...] +.PP +.BI nm86 +.RI [ file ...] + +.SH DESCRIPTION +These commands are used to examine the contents of object files. They +may also be used to examine archive or executable files. When archive +files are examined each module in the archive will be processed in +sequence. +.PP +.B nm86 +prints the symbol table in each of the specified files. +.PP +.B size86 +displays a summary of the sizes of the segments in each of the files. +.PP +.B objdump86 +decodes and displays the contents of the object files specified. This +includes the section headers, symbols tables, segment sizes, and +segment contents. +.SH OPTIONS +The programs are not designed to accept any options. +.PP +It should be noted that all three of +.BR objdump86 , +.BR size86 , +and +.B nm86 +are implemented as links to the same executable file (called +.BR objdump86 +in the source distribution). The result of running this executable is +determined by the file name actually used to execute it. +.PP +It is possible to force a specific behavior irrespective of the +invocation file name using one of the options below +.TP +.B -s +Behave like +.BR size86 . +.TP +.B -n +Behave like +.BR nm86 . +.SH RESTRICTIONS +These commands are intended for use only with the Dev86/ELKS +toolchain. +.SH "SEE ALSO" +.BR as86 (1), +.BR bcc (1), +.BR ld86 (1) +.SH AUTHORS +.BR objdump86 , +.BR size86 , +and +.B nm86 +\(co 1999 Greg Haerr . +.SH COPYRIGHT +The manual page was written for Debian GNU/Linux, \(co 2006 Shyamal +Prasad . It is distributed under the terms of +the GNU General Public License version 2 (or any later version +released by the Free Software Foundation). --- linux86-0.16.17.orig/libc/error/sys_errlist.c +++ linux86-0.16.17/libc/error/sys_errlist.c @@ -42,7 +42,8 @@ int i, cc, fd, err, len, bufoff=0; char * ptr; - fd = open("/lib/liberror.txt", 0); + fd = open("/usr/lib/bcc/liberror.txt", 0); + if (fd < 0) fd = open("/lib/liberror.txt", 0); if( fd < 0 ) return; for(i=0; i 0 ) --- linux86-0.16.17.orig/libc/i386fp/fperr.c +++ linux86-0.16.17/libc/i386fp/fperr.c @@ -3,12 +3,12 @@ #include "fperr.h" -void fperr(errno) -int errno; +void fperr(err) +int err; { #if defined(DEBUG) || 0 - switch(errno) { + switch(err) { case EFDENORMAL: fputs("\nDenormal - ", stderr); @@ -35,7 +35,7 @@ break; default: - fprintf(stderr, "\nUnknown error 0x%x - ", errno); + fprintf(stderr, "\nUnknown error 0x%x - ", err); } fflush(stderr); #endif --- linux86-0.16.17.orig/ld/ld.c +++ linux86-0.16.17/ld/ld.c @@ -2,6 +2,8 @@ /* Copyright (C) 1994 Bruce Evans */ +#include + #include "syshead.h" #include "const.h" #include "byteord.h"