summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-02-21 03:36:45 +0000
committerMike Frysinger <vapier@gentoo.org>2006-02-21 03:36:45 +0000
commitf8bc0d98a899295d36d1d898f6d32d30046476a1 (patch)
treea9099925b14493df254c477bb6eac7fa609746ac /sys-apps/setarch
parentfix patch #123565 by Steve Cole (diff)
downloadhistorical-f8bc0d98a899295d36d1d898f6d32d30046476a1.tar.gz
historical-f8bc0d98a899295d36d1d898f6d32d30046476a1.tar.bz2
historical-f8bc0d98a899295d36d1d898f6d32d30046476a1.zip
initial import #123526
Package-Manager: portage-2.1_pre4-r1
Diffstat (limited to 'sys-apps/setarch')
-rw-r--r--sys-apps/setarch/ChangeLog8
-rw-r--r--sys-apps/setarch/Manifest40
-rw-r--r--sys-apps/setarch/files/Makefile24
-rw-r--r--sys-apps/setarch/files/digest-setarch-1.83
-rw-r--r--sys-apps/setarch/files/setarch-1.8-better-error.patch11
-rw-r--r--sys-apps/setarch/files/setarch-1.8-links.patch37
-rw-r--r--sys-apps/setarch/files/setarch-1.8-linux-headers.patch11
-rw-r--r--sys-apps/setarch/files/setarch-1.8-mips.patch15
-rw-r--r--sys-apps/setarch/files/setarch-1.8-sparc.patch10
-rw-r--r--sys-apps/setarch/metadata.xml5
-rw-r--r--sys-apps/setarch/setarch-1.8.ebuild34
11 files changed, 198 insertions, 0 deletions
diff --git a/sys-apps/setarch/ChangeLog b/sys-apps/setarch/ChangeLog
new file mode 100644
index 000000000000..e61bca93a5c4
--- /dev/null
+++ b/sys-apps/setarch/ChangeLog
@@ -0,0 +1,8 @@
+# ChangeLog for sys-apps/setarch
+# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/setarch/ChangeLog,v 1.1 2006/02/21 03:36:45 vapier Exp $
+
+*setarch-1.8 (20 Feb 2006)
+
+ 20 Feb 2006; Mike Frysinger <vapier@gentoo.org> :
+ Initial import. Ebuild submitted by me #123526.
diff --git a/sys-apps/setarch/Manifest b/sys-apps/setarch/Manifest
new file mode 100644
index 000000000000..e0cbb0ff863f
--- /dev/null
+++ b/sys-apps/setarch/Manifest
@@ -0,0 +1,40 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+MD5 ccf5e36f895d89d3f1dfe9a02a0dfed3 ChangeLog 336
+RMD160 bd41f44a15e202570f7c3ede99025ffa2bd32c86 ChangeLog 336
+SHA256 e071bf3397569abd43cb4397e5d15659e5d4a7882d1175eb7b575fe2074bdc3a ChangeLog 336
+MD5 242b1e2d1de5af51852989459d44ff56 files/Makefile 598
+RMD160 086b00127542a6fe2314df108b7086875f8c1845 files/Makefile 598
+SHA256 1f7651169160c79044bb1e4617a637a34a5aa490fc1678329e4218ff33a4ee51 files/Makefile 598
+MD5 1c6befb6674e6ac7b3771995ab0db5ab files/digest-setarch-1.8 229
+RMD160 c3967542255864b979b31b975c713eeb547d9631 files/digest-setarch-1.8 229
+SHA256 f5b26a1ddf0b29a7364ee6db51e2ada256143fe70990fca163d2562c3dad52a8 files/digest-setarch-1.8 229
+MD5 7c2708cff7c403d23ea5d5dcf47967e1 files/setarch-1.8-better-error.patch 276
+RMD160 c92a492bcad7d696e5c24573bda764566e693ceb files/setarch-1.8-better-error.patch 276
+SHA256 4dcff863026a24a9a42dffeacac33d10c7439871f73a15eaf23c31715a43aa1c files/setarch-1.8-better-error.patch 276
+MD5 dea9a8fcecb3af342b035ce1ca888a31 files/setarch-1.8-links.patch 1129
+RMD160 5f2353c3a89aac8d46e0a5b1f2886439cd96532c files/setarch-1.8-links.patch 1129
+SHA256 d525f85fd1e3d06d91253f6d6b78e3a36b69b2f3cc9ce14f42a65bbb41e6fe3b files/setarch-1.8-links.patch 1129
+MD5 5fc2859ed9123d925f08f51ac414f1bb files/setarch-1.8-linux-headers.patch 199
+RMD160 e5c6f77cc8680767686aa8450515a7fd7e3ffe18 files/setarch-1.8-linux-headers.patch 199
+SHA256 81deee13fae9c80fb4baa983dc62df2f91afdb7fd87de62237ce03e98b099b26 files/setarch-1.8-linux-headers.patch 199
+MD5 9de66b76d40d1793f73d76bb8bcce87b files/setarch-1.8-mips.patch 445
+RMD160 e333c02924a7c8f3a0e51e6d218be732c8d03d77 files/setarch-1.8-mips.patch 445
+SHA256 510006f888af6f8685cf7cd2bf7336ff9a7f4654877c314082058df9ee26527c files/setarch-1.8-mips.patch 445
+MD5 ad727dd335bebc091d9cee8026b05bf0 files/setarch-1.8-sparc.patch 250
+RMD160 859857e20d5694e67901126680ccad28a09f8b1e files/setarch-1.8-sparc.patch 250
+SHA256 86202c1fbc8650d2c2d10ec564f48e4a8b3a136cd8511a70b55df8cb8a0a2a71 files/setarch-1.8-sparc.patch 250
+MD5 9a09f8d531c582e78977dbfd96edc1f2 metadata.xml 164
+RMD160 f43cbec30b7074319087c9acffdb9354b17b0db3 metadata.xml 164
+SHA256 f5f2891f2a4791cd31350bb2bb572131ad7235cd0eeb124c9912c187ac10ce92 metadata.xml 164
+MD5 b3a45b4441be51445dd3216d62c86216 setarch-1.8.ebuild 927
+RMD160 07f60c465587ac46166a81960a83956f17e7c96d setarch-1.8.ebuild 927
+SHA256 405adb0676d7b60a0d57e816edc90f5c9bd7fc18f5f6a06e3556622a9bae4904 setarch-1.8.ebuild 927
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.4.2.1 (GNU/Linux)
+
+iD8DBQFD+orn2+ySkm8kpY0RAp8iAKClQJjvv84tRJyhYHvy79bU0ZSRBACeK1vt
+aYNgaynLzAF8ektiMoxBUWo=
+=YKu1
+-----END PGP SIGNATURE-----
diff --git a/sys-apps/setarch/files/Makefile b/sys-apps/setarch/files/Makefile
new file mode 100644
index 000000000000..ba22b66b4a9a
--- /dev/null
+++ b/sys-apps/setarch/files/Makefile
@@ -0,0 +1,24 @@
+bindir = /bin
+mandir = /usr/share/man
+
+RM = rm -f
+LN_S = ln -s
+
+all: setarch links
+
+setarch.i: setarch.c
+ $(CC) $(CFLAGS) -E $< -o $@
+links: setarch.i Makefile
+ LC_ALL=C sed -n '/{PER_LINUX.* ,$$/{s:[^"]*, ::;s:,.*::;s:"::g;p}' $< > links
+
+install: setarch
+ mkdir -p $(DESTDIR)$(bindir) $(DESTDIR)$(mandir)/man8
+ install -m755 setarch $(DESTDIR)$(bindir)
+ install -m644 setarch.8 $(DESTDIR)$(mandir)/man8
+ for x in `cat links` ; do \
+ $(LN_S) setarch $(DESTDIR)$(bindir)/$$x || exit 1 ; \
+ $(LN_S) setarch.8 $(DESTDIR)$(mandir)/man8/$$x || exit 1 ; \
+ done
+
+clean:
+ $(RM) setarch setarch.i links
diff --git a/sys-apps/setarch/files/digest-setarch-1.8 b/sys-apps/setarch/files/digest-setarch-1.8
new file mode 100644
index 000000000000..fcb1b75be2cb
--- /dev/null
+++ b/sys-apps/setarch/files/digest-setarch-1.8
@@ -0,0 +1,3 @@
+MD5 dda9d220e6934dd0a9c1e3faf0829a00 setarch-1.8.tar.gz 3443
+RMD160 e46869dbe219bd88636aeba45ef949c596b793b5 setarch-1.8.tar.gz 3443
+SHA256 02dac29db52fcaab543b267e518a0144241c234aab315ca699c6c7554c281521 setarch-1.8.tar.gz 3443
diff --git a/sys-apps/setarch/files/setarch-1.8-better-error.patch b/sys-apps/setarch/files/setarch-1.8-better-error.patch
new file mode 100644
index 000000000000..d7fbb84dab1e
--- /dev/null
+++ b/sys-apps/setarch/files/setarch-1.8-better-error.patch
@@ -0,0 +1,11 @@
+--- setarch.c
++++ setarch.c
+@@ -112,7 +112,7 @@
+ && strcmp(un.machine, "i686")
+ && strcmp(un.machine, "athlon")))
+ {
+- fprintf(stderr, "Don't know how to set arch to %s\n", pers);
++ fprintf(stderr, "Unable to set arch to %s\n", pers);
+ exit(1);
+ }
+ }
diff --git a/sys-apps/setarch/files/setarch-1.8-links.patch b/sys-apps/setarch/files/setarch-1.8-links.patch
new file mode 100644
index 000000000000..5c47fd705fee
--- /dev/null
+++ b/sys-apps/setarch/files/setarch-1.8-links.patch
@@ -0,0 +1,37 @@
+--- setarch.c
++++ setarch.c
+@@ -46,17 +46,17 @@
+ int perval;
+ char *target_arch, *result_arch;
+ } transitions[] = {
+- {PER_LINUX32, "linux32", NULL},
+- {PER_LINUX, "linux64", NULL},
++ {PER_LINUX32, "linux32", NULL} ,
++ {PER_LINUX, "linux64", NULL} ,
+ #if defined(__mips__)
+- {PER_LINUX32, "mips32", "mips"},
++ {PER_LINUX32, "mips32", "mips"} ,
+ {PER_LINUX32, "mips", "mips"},
+- {PER_LINUX, "mips64", "mips64"},
++ {PER_LINUX, "mips64", "mips64"} ,
+ #endif
+ #if defined(__powerpc__) || defined(__powerpc64__)
+- {PER_LINUX32, "ppc32", "ppc"},
++ {PER_LINUX32, "ppc32", "ppc"} ,
+ {PER_LINUX32, "ppc", "ppc"},
+- {PER_LINUX, "ppc64", "ppc64"},
++ {PER_LINUX, "ppc64", "ppc64"} ,
+ {PER_LINUX, "ppc64pseries", "ppc64"},
+ {PER_LINUX, "ppc64iseries", "ppc64"},
+ #endif
+@@ -79,8 +79,8 @@
+ #endif
+ #if defined(__sparc64__) || defined(__sparc__)
+ {PER_LINUX32, "sparc", "sparc"},
+- {PER_LINUX32, "sparc32", "sparc"},
+- {PER_LINUX, "sparc64", "sparc64"},
++ {PER_LINUX32, "sparc32", "sparc"} ,
++ {PER_LINUX, "sparc64", "sparc64"} ,
+ #endif
+ {-1, NULL, NULL}
+ };
diff --git a/sys-apps/setarch/files/setarch-1.8-linux-headers.patch b/sys-apps/setarch/files/setarch-1.8-linux-headers.patch
new file mode 100644
index 000000000000..809041872332
--- /dev/null
+++ b/sys-apps/setarch/files/setarch-1.8-linux-headers.patch
@@ -0,0 +1,11 @@
+--- setarch.c
++++ setarch.c
+@@ -8,7 +8,7 @@
+ /* */
+
+ #include <syscall.h>
+-#include <linux/personality.h>
++#include <sys/personality.h>
+ #include <unistd.h>
+ #include <stdio.h>
+ #include <string.h>
diff --git a/sys-apps/setarch/files/setarch-1.8-mips.patch b/sys-apps/setarch/files/setarch-1.8-mips.patch
new file mode 100644
index 000000000000..cbbd4eab6953
--- /dev/null
+++ b/sys-apps/setarch/files/setarch-1.8-mips.patch
@@ -0,0 +1,15 @@
+--- setarch.c
++++ setarch.c
+@@ -47,6 +47,12 @@
+ char *target_arch, *result_arch;
+ } transitions[] = {
+ {PER_LINUX32, "linux32", NULL},
++ {PER_LINUX, "linux64", NULL},
++#if defined(__mips__)
++ {PER_LINUX32, "mips32", "mips"},
++ {PER_LINUX32, "mips", "mips"},
++ {PER_LINUX, "mips64", "mips64"},
++#endif
+ #if defined(__powerpc__) || defined(__powerpc64__)
+ {PER_LINUX32, "ppc32", "ppc"},
+ {PER_LINUX32, "ppc", "ppc"},
diff --git a/sys-apps/setarch/files/setarch-1.8-sparc.patch b/sys-apps/setarch/files/setarch-1.8-sparc.patch
new file mode 100644
index 000000000000..85bfd16619b1
--- /dev/null
+++ b/sys-apps/setarch/files/setarch-1.8-sparc.patch
@@ -0,0 +1,10 @@
+--- setarch.c
++++ setarch.c
+@@ -79,6 +79,7 @@
+ #endif
+ #if defined(__sparc64__) || defined(__sparc__)
+ {PER_LINUX32, "sparc", "sparc"},
++ {PER_LINUX32, "sparc32", "sparc"},
+ {PER_LINUX, "sparc64", "sparc64"},
+ #endif
+ {-1, NULL, NULL}
diff --git a/sys-apps/setarch/metadata.xml b/sys-apps/setarch/metadata.xml
new file mode 100644
index 000000000000..96a2d586367d
--- /dev/null
+++ b/sys-apps/setarch/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>base-system</herd>
+</pkgmetadata>
diff --git a/sys-apps/setarch/setarch-1.8.ebuild b/sys-apps/setarch/setarch-1.8.ebuild
new file mode 100644
index 000000000000..2848b7a45e8e
--- /dev/null
+++ b/sys-apps/setarch/setarch-1.8.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/setarch/setarch-1.8.ebuild,v 1.1 2006/02/21 03:36:45 vapier Exp $
+
+inherit eutils
+
+DESCRIPTION="change reported architecture in new program environment and set personality flags"
+HOMEPAGE="http://www.gentoo.org/"
+SRC_URI="mirror://gentoo/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
+IUSE=""
+
+RDEPEND="!sys-apps/linux32
+ !sys-devel/mips32
+ !sys-devel/sparc32
+ !sys-devel/ppc32"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ cp "${FILESDIR}"/Makefile . || die
+ epatch "${FILESDIR}"/${P}-linux-headers.patch
+ epatch "${FILESDIR}"/${P}-mips.patch
+ epatch "${FILESDIR}"/${P}-sparc.patch
+ epatch "${FILESDIR}"/${P}-better-error.patch
+ epatch "${FILESDIR}"/${P}-links.patch
+}
+
+src_install() {
+ make install DESTDIR="${D}" || die
+}