summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaarten Thibaut <murphy@gentoo.org>2002-08-25 13:30:44 +0000
committerMaarten Thibaut <murphy@gentoo.org>2002-08-25 13:30:44 +0000
commita5ebd3e5de7dbf7eee430133b9ce59f6ca5b3cac (patch)
tree64b1c0030da665fc7db7dcd32ae9f5b21e88bae5 /sys-devel/sparc32
parentnew version (diff)
downloadhistorical-a5ebd3e5de7dbf7eee430133b9ce59f6ca5b3cac.tar.gz
historical-a5ebd3e5de7dbf7eee430133b9ce59f6ca5b3cac.tar.bz2
historical-a5ebd3e5de7dbf7eee430133b9ce59f6ca5b3cac.zip
A Sparc32 development environment
Diffstat (limited to 'sys-devel/sparc32')
-rw-r--r--sys-devel/sparc32/ChangeLog14
-rw-r--r--sys-devel/sparc32/files/digest-sparc32-1.11
-rw-r--r--sys-devel/sparc32/files/sparc32-1.1-fhs.patch21
-rw-r--r--sys-devel/sparc32/files/sparc32-1.1-include.patch42
-rw-r--r--sys-devel/sparc32/sparc32-1.1.ebuild23
5 files changed, 101 insertions, 0 deletions
diff --git a/sys-devel/sparc32/ChangeLog b/sys-devel/sparc32/ChangeLog
new file mode 100644
index 000000000000..f8735bc994a8
--- /dev/null
+++ b/sys-devel/sparc32/ChangeLog
@@ -0,0 +1,14 @@
+# ChangeLog for sys-devel/sparc32
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/sparc32/ChangeLog,v 1.1 2002/08/25 13:30:44 murphy Exp $
+
+*sparc32-1.1 (20 Aug 2002)
+
+ 21 Aug 2002; Sean Summers <ebuild-sparc32@generalprotectionfault.com>
+
+ Included patches from Jakub Jelinek's <jakub@redhat.com> RPM spec.
+ Found at ftp://auroralinux.org/pub/aurora/build-0.31/en/os/sparc/SRPMS/
+
+ 20 Aug 2002; Sean Summers <ebuild-sparc32@generalprotectionfault.com>
+
+ Initial package
+
diff --git a/sys-devel/sparc32/files/digest-sparc32-1.1 b/sys-devel/sparc32/files/digest-sparc32-1.1
new file mode 100644
index 000000000000..44a30ae91c6d
--- /dev/null
+++ b/sys-devel/sparc32/files/digest-sparc32-1.1
@@ -0,0 +1 @@
+MD5 1e6dc2f7102f53cd7e5f90acbe8232e8 sparc32-1.1.tgz 1545
diff --git a/sys-devel/sparc32/files/sparc32-1.1-fhs.patch b/sys-devel/sparc32/files/sparc32-1.1-fhs.patch
new file mode 100644
index 000000000000..b370a7c37233
--- /dev/null
+++ b/sys-devel/sparc32/files/sparc32-1.1-fhs.patch
@@ -0,0 +1,21 @@
+--- sparc32-1.1/Makefile.fhs Wed Jun 14 17:33:36 2000
++++ sparc32-1.1/Makefile Wed Jun 14 17:37:58 2000
+@@ -1,8 +1,14 @@
++prefix = /usr
++bindir = ${prefix}/bin
++mandir = ${prefix}/man
++
+ sparc32: sparc32.c
+ $(CC) -O2 -o sparc32 sparc32.c
+
+ install:
+- install -s -m 0755 sparc32 $(PREFIX)/usr/bin
+- ln -f $(PREFIX)/usr/bin/sparc32 $(PREFIX)/usr/bin/sparc64
+- install -m 0644 sparc32.8 $(PREFIX)/usr/man/man8
+- install -m 0644 sparc64.8 $(PREFIX)/usr/man/man8
++ mkdir -p $(DESTDIR)$(bindir)
++ install -s -m 0755 sparc32 $(DESTDIR)$(bindir)/
++ ln -f $(PREFIX)$(bindir)/sparc32 $(DESTDIR)$(bindir)/sparc64
++ mkdir -p $(DESTDIR)$(mandir)/man8
++ install -m 0644 sparc32.8 $(DESTDIR)$(mandir)/man8/
++ install -m 0644 sparc64.8 $(DESTDIR)$(mandir)/man8/
diff --git a/sys-devel/sparc32/files/sparc32-1.1-include.patch b/sys-devel/sparc32/files/sparc32-1.1-include.patch
new file mode 100644
index 000000000000..6e35a3ed0523
--- /dev/null
+++ b/sys-devel/sparc32/files/sparc32-1.1-include.patch
@@ -0,0 +1,42 @@
+--- sparc32-1.1/sparc32.c.jj Mon Apr 22 11:37:47 2002
++++ sparc32-1.1/sparc32.c Mon Apr 22 11:37:47 2002
+@@ -1,10 +1,10 @@
+ /* (C) 1998,1999 Jakub Jelinek under terms of GPL */
+ #include <linux/personality.h>
+-#include <linux/unistd.h>
+ #include <stdio.h>
+ #include <unistd.h>
+ #include <string.h>
+ #include <sys/utsname.h>
++#include <sys/syscall.h>
+
+ #ifndef PER_LINUX32
+ #define PER_LINUX32 8
+@@ -13,8 +13,6 @@
+ #define PER_LINUX_32BIT 0x0800000
+ #endif
+
+-_syscall1(int, personality, long, pers);
+-
+ int main(int argc, char **argv)
+ {
+ char *p = strrchr(argv[0], '/');
+@@ -31,15 +29,15 @@ int main(int argc, char **argv)
+ argc--;
+ }
+ if (!strcmp (p, "sparc32")) {
+- if (personality(PER_LINUX32) == -1) {
++ if (syscall(SYS_personality, PER_LINUX32) == -1) {
+ if (!quiet) perror ("Error setting personality");
+ exit(1);
+ }
+ } else if (!strcmp (p, "sparc64")) {
+ struct utsname un;
+
+- if (personality(PER_LINUX_32BIT) == -1 ||
+- personality(PER_LINUX) == -1) {
++ if (syscall(SYS_personality, PER_LINUX_32BIT) == -1 ||
++ syscall(SYS_personality, PER_LINUX) == -1) {
+ if (!quiet) perror ("Error setting personality");
+ exit(1);
+ }
diff --git a/sys-devel/sparc32/sparc32-1.1.ebuild b/sys-devel/sparc32/sparc32-1.1.ebuild
new file mode 100644
index 000000000000..1e4215188608
--- /dev/null
+++ b/sys-devel/sparc32/sparc32-1.1.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/sparc32/sparc32-1.1.ebuild,v 1.1 2002/08/25 13:30:44 murphy Exp $
+
+DESCRIPTION="A SPARC32 compilation environment."
+LICENSE="GPL-2"
+SRC_URI="ftp://ftp.auxio.org/pub/linux/SOURCES/${P}.tgz"
+
+S=${WORKDIR}/${P}
+
+src_unpack() {
+ unpack ${A}
+ patch -p0 -i ${FILESDIR}/sparc32-1.1-include.patch
+ patch -p0 -i ${FILESDIR}/sparc32-1.1-fhs.patch
+}
+
+src_compile() {
+ emake || die
+}
+
+src_install () {
+ make prefix=${D} install
+}