summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Huddleston <eradicator@gentoo.org>2004-12-19 11:18:02 +0000
committerJeremy Huddleston <eradicator@gentoo.org>2004-12-19 11:18:02 +0000
commit7fdc4346d256639840b6bf50279c8db0484cea61 (patch)
tree15bc27e856da1e3c53dfd75b8c8bbedf60026ee1 /sys-devel/sparc32/files
parentChanged obsolete comment for cdr flag. (diff)
downloadgentoo-2-7fdc4346d256639840b6bf50279c8db0484cea61.tar.gz
gentoo-2-7fdc4346d256639840b6bf50279c8db0484cea61.tar.bz2
gentoo-2-7fdc4346d256639840b6bf50279c8db0484cea61.zip
Added patch/symlinks for linux{32,64} to work with the same exec name as sys-apps/linux32... makes env-switching scripts play nicer cross platform.
Diffstat (limited to 'sys-devel/sparc32/files')
-rw-r--r--sys-devel/sparc32/files/digest-sparc32-1.1-r31
-rw-r--r--sys-devel/sparc32/files/sparc32-1.1-linux32.patch18
2 files changed, 19 insertions, 0 deletions
diff --git a/sys-devel/sparc32/files/digest-sparc32-1.1-r3 b/sys-devel/sparc32/files/digest-sparc32-1.1-r3
new file mode 100644
index 000000000000..44a30ae91c6d
--- /dev/null
+++ b/sys-devel/sparc32/files/digest-sparc32-1.1-r3
@@ -0,0 +1 @@
+MD5 1e6dc2f7102f53cd7e5f90acbe8232e8 sparc32-1.1.tgz 1545
diff --git a/sys-devel/sparc32/files/sparc32-1.1-linux32.patch b/sys-devel/sparc32/files/sparc32-1.1-linux32.patch
new file mode 100644
index 000000000000..22a73e891f60
--- /dev/null
+++ b/sys-devel/sparc32/files/sparc32-1.1-linux32.patch
@@ -0,0 +1,18 @@
+diff -Naur sparc32-1.1.orig/sparc32.c sparc32-1.1/sparc32.c
+--- sparc32-1.1.orig/sparc32.c 2004-12-19 03:05:42.145931000 -0800
++++ sparc32-1.1/sparc32.c 2004-12-19 03:07:31.235929096 -0800
+@@ -28,12 +28,12 @@
+ argv++;
+ argc--;
+ }
+- if (!strcmp (p, "sparc32")) {
++ if (!strcmp (p, "sparc32") || !strcmp (p, "linux32")) {
+ if (personality(PER_LINUX32) == -1) {
+ if (!quiet) perror ("Error setting personality");
+ exit(1);
+ }
+- } else if (!strcmp (p, "sparc64")) {
++ } else if (!strcmp (p, "sparc64") || !strcmp (p, "linux64")) {
+ struct utsname un;
+
+ if (personality(PER_LINUX_32BIT) == -1 ||