OBS User unknown 2007-01-15 22:52:16 +00:00 committed by Git OBS Bridge
commit 940fca629e
7 changed files with 604 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

3
Dev86src-0.16.0.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:db675f0d08604c2213a73fcb4932bb29775b9d2a525b1a73e461a2da73d8b11e
size 575723

112
bin86.changes Normal file
View File

@ -0,0 +1,112 @@
-------------------------------------------------------------------
Wed Jan 25 21:44:11 CET 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
-------------------------------------------------------------------
Thu Sep 22 22:28:55 CEST 2005 - ro@suse.de
- fix implicit warnings
- do not strip during make install
-------------------------------------------------------------------
Sat Jul 16 09:42:23 CEST 2005 - meissner@suse.de
- fixed size of buffer passed to realpath.
-------------------------------------------------------------------
Wed Jan 19 17:42:05 CET 2005 - ro@suse.de
- fixed more compiler warnings
-------------------------------------------------------------------
Tue Feb 3 09:21:20 CET 2004 - kukuk@suse.de
- Fix compiler warnings
-------------------------------------------------------------------
Mon Oct 20 01:39:53 CEST 2003 - ro@suse.de
- use defattr
- don't build as root
-------------------------------------------------------------------
Wed Jun 18 01:49:49 CEST 2003 - ro@suse.de
- move buildroot entry to top in specfile
-------------------------------------------------------------------
Fri Jun 6 12:06:44 CEST 2003 - ro@suse.de
- pack include files
-------------------------------------------------------------------
Thu Jan 23 11:40:31 CET 2003 - ro@suse.de
- downgrade to 0.16.0 since author claims 0.16.10 to be unstable
- use buildroot
-------------------------------------------------------------------
Mon Dec 16 11:32:17 CET 2002 - ro@suse.de
- update to 0.16.10
- bzip source, add URL to specfile
-------------------------------------------------------------------
Sun Dec 1 23:41:24 CET 2002 - ro@suse.de
- sys_errlist is deprecated, patch ar.c
-------------------------------------------------------------------
Tue Sep 17 17:34:28 CEST 2002 - ro@suse.de
- removed bogus self-provides
-------------------------------------------------------------------
Sat Aug 24 17:27:56 CEST 2002 - ro@suse.de
- fix doc section for new cp behaviour
-------------------------------------------------------------------
Mon Sep 25 15:18:45 CEST 2000 - ro@suse.de
- sorted
-------------------------------------------------------------------
Wed Feb 9 12:01:41 CET 2000 - ro@suse.de
- fixed prefix-path for bcc
-------------------------------------------------------------------
Mon Jan 17 17:29:17 CET 2000 - ro@suse.de
- man to /usr/share/man
-------------------------------------------------------------------
Tue Dec 14 13:13:21 CET 1999 - ro@suse.de
- build from full-source Dev86-0.14.9
- added subpackage dev86 containing elksemu and bcc
-------------------------------------------------------------------
Mon Sep 13 17:23:57 CEST 1999 - bs@suse.de
- ran old prepare_spec on spec file to switch to new prepare_spec.
-------------------------------------------------------------------
Sun Sep 5 23:55:02 CEST 1999 - ro@suse.de
- updated to 0.14.9 with current src and manpages
-------------------------------------------------------------------
Thu Sep 10 12:53:54 MEST 1998 - ro@suse.de
- don't redeclare malloc for glibc
----------------------------------------------------------------------------
Wed Apr 30 15:57:14 CEST 1997 - florian@suse.de
- update to version 0.4

158
bin86.spec Normal file
View File

@ -0,0 +1,158 @@
#
# spec file for package bin86 (Version 0.16.0)
#
# Copyright (c) 2005 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://www.suse.de/feedback/
#
# norootforbuild
Name: bin86
License: Other License(s), see package
Group: Development/Languages/Other
Autoreqprov: on
Version: 0.16.0
Release: 190
Summary: An 8086 Assembler and Linker
URL: http://www.cix.co.uk/~mayday/
Source: Dev86src-%{version}.tar.bz2
Patch: dev86-%{version}.dif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
An 8086 assembler and linker.
Authors:
--------
Robert de Bath <rdebath@poboxes.com>
Bruce Evans <bde@runx.oz.au>
Linus Torvalds <torvalds@transmeta.com>
H.J. Lu <hjl@nynexst.com>
%package -n dev86
Summary: 8086 Development Suite
Requires: bin86
Group: Development/Languages/Other
%description -n dev86
This package contains tools for generating Elks/8086 programs and the
Elksemu for execution of these programs in Linux.
Authors:
--------
Robert de Bath <rdebath@poboxes.com>
Bruce Evans <bde@runx.oz.au>
Linus Torvalds <torvalds@transmeta.com>
H.J. Lu <hjl@nynexst.com>
%prep
%setup -n dev86-%{version}
%patch
%build
make GCCFLAG="$RPM_OPT_FLAGS -fno-strict-aliasing"
%install
rm -rf $RPM_BUILD_ROOT
make install DIST=$RPM_BUILD_ROOT PREFIX=/usr MANDIR=/usr/share/man
make other
make install-other DIST=$RPM_BUILD_ROOT MANDIR=/usr/share/man
ln -sf as86.1 $RPM_BUILD_ROOT/usr/share/man/man1/as86_encap.1
mv bootblocks/README bootblocks/README.bootblocks
mv copt/README copt/README.copt
mv dis88/README dis88/README.dis88
mv elksemu/README elksemu/README.elksemu
mv unproto/README unproto/README.unproto
mv bin86/README bin86/README.bin86
mkdir $RPM_BUILD_ROOT/usr/lib/bcc/kinclude
cp -a libc/kinclude/arch $RPM_BUILD_ROOT/usr/lib/bcc/kinclude
cp -a libc/kinclude/linuxmt $RPM_BUILD_ROOT/usr/lib/bcc/kinclude
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc README
/usr/bin/as86
/usr/bin/as86_encap
/usr/bin/ld86
/usr/bin/nm86
/usr/bin/objdump86
/usr/bin/size86
%doc /usr/share/man/man1/as86.1.gz
%doc /usr/share/man/man1/as86_encap.1.gz
%doc /usr/share/man/man1/ld86.1.gz
%files -n dev86
%defattr(-,root,root)
%doc MAGIC Contributors bootblocks/README.bootblocks copt/README.copt
%doc dis88/README.dis88
%doc elksemu/README.elksemu unproto/README.unproto bin86/README-0.4
%doc bin86/README.bin86 bin86/ChangeLog
/lib/elksemu
/usr/bin/ar86
/usr/bin/bcc
/usr/bin/dis86
/usr/lib/bcc
/usr/lib/liberror.txt
%doc /usr/share/man/man1/bcc.1.gz
%doc /usr/share/man/man1/dis86.1.gz
%doc /usr/share/man/man1/elks.1.gz
%doc /usr/share/man/man1/elksemu.1.gz
%changelog -n bin86
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Thu Sep 22 2005 - ro@suse.de
- fix implicit warnings
- do not strip during make install
* Sat Jul 16 2005 - meissner@suse.de
- fixed size of buffer passed to realpath.
* Wed Jan 19 2005 - ro@suse.de
- fixed more compiler warnings
* Tue Feb 03 2004 - kukuk@suse.de
- Fix compiler warnings
* Mon Oct 20 2003 - ro@suse.de
- use defattr
- don't build as root
* Wed Jun 18 2003 - ro@suse.de
- move buildroot entry to top in specfile
* Fri Jun 06 2003 - ro@suse.de
- pack include files
* Thu Jan 23 2003 - ro@suse.de
- downgrade to 0.16.0 since author claims 0.16.10 to be unstable
- use buildroot
* Mon Dec 16 2002 - ro@suse.de
- update to 0.16.10
- bzip source, add URL to specfile
* Sun Dec 01 2002 - ro@suse.de
- sys_errlist is deprecated, patch ar.c
* Tue Sep 17 2002 - ro@suse.de
- removed bogus self-provides
* Sat Aug 24 2002 - ro@suse.de
- fix doc section for new cp behaviour
* Mon Sep 25 2000 - ro@suse.de
- sorted
* Wed Feb 09 2000 - ro@suse.de
- fixed prefix-path for bcc
* Mon Jan 17 2000 - ro@suse.de
- man to /usr/share/man
* Tue Dec 14 1999 - ro@suse.de
- build from full-source Dev86-0.14.9
- added subpackage dev86 containing elksemu and bcc
* Mon Sep 13 1999 - bs@suse.de
- ran old prepare_spec on spec file to switch to new prepare_spec.
* Sun Sep 05 1999 - ro@suse.de
- updated to 0.14.9 with current src and manpages
* Thu Sep 10 1998 - ro@suse.de
- don't redeclare malloc for glibc
* Wed Apr 30 1997 - florian@suse.de
- update to version 0.4

307
dev86-0.16.0.dif Normal file
View File

@ -0,0 +1,307 @@
--- Makefile
+++ Makefile
@@ -11,10 +11,11 @@
ELKSSRC= /usr/src/elks
PREFIX= /usr
-LIBPRE= $(PREFIX)/bcc
+LIBPRE= $(PREFIX)/lib/bcc
BINDIR= $(PREFIX)/bin
-LIBDIR= $(LIBPRE)/lib/bcc
-CFLAGS= -O
+MANDIR= $(PREFIX)/man
+LIBDIR= $(LIBPRE)
+CFLAGS= -O2 -m486 -fno-strength-reduce
# Some makes take the last of a list as the default ...
all: make.fil
@@ -38,6 +39,7 @@
-e "s:%PREFIX%:$(PREFIX):" \
-e "s:%LIBPRE%:$(LIBPRE):" \
-e "s:%BINDIR%:$(BINDIR):" \
+ -e "s:%MANDIR%:$(MANDIR):" \
-e "s:%LIBDIR%:$(LIBDIR):" \
-e "s:%ELKSSRC%:$(ELKSSRC):" \
-e "s:%CC%:$(CC):" \
@@ -64,9 +66,9 @@
rm -f $(BINDIR)/objdump86 $(BINDIR)/nm86 $(BINDIR)/size86
rm -f /lib/elksemu
rm -f /usr/lib/liberror.txt
- rm -f /usr/man/man1/elks.1* /usr/man/man1/elksemu.1*
- rm -f /usr/man/man1/dis86.1* /usr/man/man1/bcc.1*
- rm -f /usr/man/man1/as86.1* /usr/man/man1/ld86.1*
+ rm -f $(MANDIR)/man1/elks.1* $(MANDIR)/man1/elksemu.1*
+ rm -f $(MANDIR)/man1/dis86.1* $(MANDIR)/man1/bcc.1*
+ rm -f $(MANDIR)/man1/as86.1* $(MANDIR)/man1/ld86.1*
@# TO HERE
distribution:
--- ar/ar.c
+++ ar/ar.c
@@ -28,6 +28,7 @@
#include <time.h>
#include <sys/types.h>
#include <sys/stat.h>
+#include <errno.h>
#include "ar.h"
#include "rel_aout.h"
@@ -35,16 +36,12 @@
#define HAVE_RENAME
#undef HAVE_FSYNC
#define SHORT_FILENAME
-extern char **sys_errlist;
-extern int sys_nerr;
#else
#define HAVE_FCHMOD
#define HAVE_RENAME
#undef HAVE_FSYNC
#endif
-extern int errno;
-
#ifdef __GNUC__
# ifndef alloca
# define alloca __builtin_alloca
@@ -500,7 +497,7 @@
break;
default:
- usage ("invalid operation %d", operation);
+ usage ("invalid operation %d", (char *) operation);
}
exit (0);
@@ -669,7 +666,7 @@
chmod (member.name, member.mode);
#endif
if (ferror (ostream) || fclose (ostream) != 0)
- error ("%s: I/O error", member.name);
+ error ("%s: I/O error", member.name, NULL, NULL, NULL);
if (preserve_dates)
{
@@ -816,7 +813,7 @@
{
register struct mapelt *found = find_mapelt_noerror (map, name);
if (found == 0)
- error ("no member named `%s'", name);
+ error ("no member named `%s'", name, NULL, NULL, NULL);
return found;
}
@@ -1076,7 +1073,7 @@
}
header->ar_name[sizeof (header->ar_name) - 1] = '\0';
error ("member name `%s' truncated to `%s'",
- mapelt->info.name, header->ar_name);
+ mapelt->info.name, header->ar_name, NULL, NULL);
}
#if defined(USG) || defined(HAVE_TRAILING_SLASH_IN_NAME)
{
@@ -1275,7 +1272,7 @@
{
struct mapelt *map = make_map (0);
char **p;
- struct mapelt *after_mapelt;
+ struct mapelt *after_mapelt = NULL;
struct mapelt mapstart;
struct mapelt *change_map;
@@ -1337,7 +1334,7 @@
{
struct mapelt *map = make_map (1);
struct mapelt mapstart;
- struct mapelt *after_mapelt;
+ struct mapelt *after_mapelt = NULL;
struct mapelt *change_map;
char **p;
int changed;
@@ -1980,7 +1977,7 @@
usage (s1, s2)
char *s1, *s2;
{
- error (s1, s2);
+ error (s1, s2, NULL, NULL, NULL);
fprintf (stderr, "\
Usage: %s [d|m|p|q|r|t|x [[abi [position-name] [cilouv]] archive file...\n",
program_name);
@@ -1990,10 +1987,9 @@
/* Print error message and exit. */
void
-fatal (s1, s2)
- char *s1, *s2;
+fatal (char *s1, char *s2)
{
- error (s1, s2);
+ error (s1, s2, NULL, NULL, NULL);
exit (1);
}
@@ -2027,12 +2023,11 @@
char *name;
{
char *s;
-
- if (errno < sys_nerr)
- s = concat ("", sys_errlist[errno], " for %s");
- else
+ int m_errno = errno;
+ s = concat ("", strerror(errno), " for %s");
+ if (m_errno != errno)
s = "unknown error for %s";
- error (s, name);
+ error (s, name, NULL, NULL, NULL);
}
void
@@ -2040,10 +2035,9 @@
char *name;
{
char *s;
-
- if (errno < sys_nerr)
- s = concat ("", sys_errlist[errno], " for %s");
- else
+ int m_errno = errno;
+ s = concat ("", strerror(errno), " for %s");
+ if (m_errno != errno)
s = "cannot open %s";
fatal (s, name);
}
@@ -2089,7 +2083,7 @@
{
char *result = realloc (ptr, size);
if (result == 0)
- fatal ("virtual memory exhausted");
+ fatal ("virtual memory exhausted", 0);
return result;
}
--- bcc/Makefile
+++ bcc/Makefile
@@ -4,13 +4,13 @@
#
PREFIX=/usr
-LIBPRE=$(PREFIX)
+LIBPRE=$(PREFIX)/lib/bcc
CFLAGS =-O
LDFLAGS =-s
BINDIR =$(PREFIX)/bin
-LIBDIR =$(LIBPRE)/lib/bcc
-BCCDEFS =-DLOCALPREFIX=$(LIBPRE) -DBINDIR=$(BINDIR) -DDEFARCH=0
+LIBDIR =$(LIBPRE)
+BCCDEFS =-DLOCALPREFIX=$(PREFIX) -DBINDIR=$(BINDIR) -DDEFARCH=0
OBJS = bcc-cc1.o codefrag.o debug.o declare.o express.o exptree.o floatop.o \
function.o gencode.o genloads.o glogcode.o hardop.o input.o label.o \
--- bcc/bcc.c
+++ bcc/bcc.c
@@ -3,6 +3,7 @@
/* Copyright (C) 1992 Bruce Evans */
#define _POSIX_SOURCE 1
+#define _BSD_SOURCE 1
#include <sys/types.h>
#include <sys/stat.h>
@@ -961,10 +962,14 @@
for(d=s=ptr; d && *s; s=d)
{
+#ifdef PATH_MAX
+ char buf[PATH_MAX];
+#else
#ifdef MAXPATHLEN
char buf[MAXPATHLEN];
#else
- char buf[1024];
+ char buf[4096];
+#endif
#endif
free(temp);
--- dis88/Makefile
+++ dis88/Makefile
@@ -28,6 +28,7 @@
CFLAGS=-O
LDFLAGS=
PREFIX=/usr
+MANDIR=$(PREFIX)/man
OBJ = disrel.o dismain.o distabs.o dishand.o disfp.o
@@ -37,8 +38,8 @@
$(CC) $(LDFLAGS) -o dis88 $(OBJ)
install: dis88
- install -m 755 -s dis88 $(DIST)$(PREFIX)/bin/dis86
- install -m 644 dis88.1 $(DIST)$(PREFIX)/man/man1/dis86.1
+ install -m 755 dis88 $(DIST)$(PREFIX)/bin/dis86
+ install -m 644 dis88.1 $(DIST)$(MANDIR)/man1/dis86.1
$(OBJ): dis.h a.out.h
--- elksemu/Makefile
+++ elksemu/Makefile
@@ -39,7 +39,7 @@
# to redirect.
install: elksemu
install -d $(DIST)/lib
- install -s -o root -g root -m 4555 elksemu $(DIST)/lib/elksemu
+ install -o root -g root -m 4555 elksemu $(DIST)/lib/elksemu
clean realclean:
rm -f $(OBJ) binfmt_elks.o elksemu call_tab.v defn_tab.v
--- ld/dumps.c
+++ ld/dumps.c
@@ -2,6 +2,7 @@
/* Copyright (C) 1994 Bruce Evans */
+#include <string.h>
#include "const.h"
#include "obj.h"
#include "type.h"
--- makefile.in
+++ makefile.in
@@ -68,13 +68,13 @@
# Alter these if for some reason you don't want this done as root.
#ifdef __BCC__
-INDAT=-o root -g root -m 644
-INEXE=-o root -g root -m 755
-INSCR=-o root -g root -m 755
+INDAT=-m 644
+INEXE=-m 755
+INSCR=-m 755
#else
-INDAT=-o root -g root -m 644
-INEXE=-o root -g root -m 755 -s
-INSCR=-o root -g root -m 755
+INDAT=-m 644
+INEXE=-m 755
+INSCR=-m 755
#endif
#ifdef GNUMAKE
@@ -102,6 +102,7 @@
LIBPRE= %LIBPRE%
BINDIR= %BINDIR%
LIBDIR= %LIBDIR%
+MANDIR= %MANDIR%
#ifdef GNUMAKE
export ELKSSRC
@@ -214,7 +215,7 @@
#endif
install-man:
- -$(MAKEC) man MANDIR=$(DIST)$(PREFIX)/man install
+ -$(MAKEC) man MANDIR=$(DIST)$(MANDIR) install
install-lib: lib/lib0-done lib/lib2-done
install -d $(DISTLIB)/i86

0
ready Normal file
View File