1 |
commit: d587119df2b8c8b21303adae530adbbd78faca0d |
2 |
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Dec 28 01:01:54 2012 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Dec 28 01:01:54 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=dev/blueness.git;a=commit;h=d587119d |
7 |
|
8 |
dev-util/plan9port: testing |
9 |
|
10 |
Package-Manager: portage-2.1.11.31 |
11 |
Manifest-Sign-Key: 0xF52D4BBA |
12 |
|
13 |
--- |
14 |
dev-util/plan9port/ChangeLog | 40 ++++++++++ |
15 |
dev-util/plan9port/Manifest | 26 +++++++ |
16 |
.../plan9port/files/plan9port-9660srv-errno.patch | 19 +++++ |
17 |
.../plan9port/files/plan9port-noexecstack.patch | 54 ++++++++++++++ |
18 |
dev-util/plan9port/metadata.xml | 15 ++++ |
19 |
dev-util/plan9port/plan9port-20121219.ebuild | 76 ++++++++++++++++++++ |
20 |
6 files changed, 230 insertions(+), 0 deletions(-) |
21 |
|
22 |
diff --git a/dev-util/plan9port/ChangeLog b/dev-util/plan9port/ChangeLog |
23 |
new file mode 100644 |
24 |
index 0000000..f6f3365 |
25 |
--- /dev/null |
26 |
+++ b/dev-util/plan9port/ChangeLog |
27 |
@@ -0,0 +1,40 @@ |
28 |
+# ChangeLog for dev-util/plan9port |
29 |
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
30 |
+# $Header: /var/cvsroot/gentoo-x86/dev-util/plan9port/ChangeLog,v 1.3 2009/03/20 17:43:23 jmbsvicetto Exp $ |
31 |
+ |
32 |
+*plan9port-20121219 (27 Dec 2012) |
33 |
+ |
34 |
+ 27 Dec 2012; Andy Spencer <andy753421@×××××.com> -plan9port-20110320.ebuild, |
35 |
+ -plan9port-no-lex.patch, +plan9port-20121219.ebuild: |
36 |
+ Version bump, update noexecstack patch, remove unneeded lex patch. Changed |
37 |
+ sed command to use grep instead of file to prevent spawning excess processes. |
38 |
+ |
39 |
+*plan9port-20110320 (20 Mar 2011) |
40 |
+ |
41 |
+ 20 Mar 2011; Andy Spencer <andy753421@×××××.com> +plan9port-20110320.ebuild, |
42 |
+ +plan9port-9660srv-errno.patch, +plan9port-noexecstack.patch, |
43 |
+ +plan9port-no-lex.patch: |
44 |
+ Version bump (bug #273890), change prefix to /opt/plan9, replace PREFIX patch |
45 |
+ with sed command, change DEPEND to x11-apps/xauth, added EAPI=4 and |
46 |
+ PORTAGE_DOCOMPORESS (bug #224209), patched AFLAGS with --noexecstack, convert |
47 |
+ -jN to NPROC=N for mk, generate 30plan9 env file on-the-fly, Thanks to John |
48 |
+ David for some work on this. |
49 |
+ |
50 |
+ 20 Mar 2009; Jorge Manuel B. S. Vicetto <jmbsvicetto@g.o> |
51 |
+ metadata.xml: |
52 |
+ Removing anant as a maintainer since he was retired. |
53 |
+ |
54 |
+*plan9port-20080130 (11 Mar 2008) |
55 |
+ |
56 |
+ 11 Mar 2008; Santiago M. Mola <coldwind@g.o> |
57 |
+ plan9port-20070522.ebuild, +plan9port-20080130.ebuild: |
58 |
+ Version bump, added patch to fix shebangs (bug #201404), marked ~amd64 (bug |
59 |
+ #209553), use elog. |
60 |
+ |
61 |
+*plan9port-20070522 (29 May 2007) |
62 |
+ |
63 |
+ 29 May 2007; Anant Narayanan <anant@g.o> +files/30plan9, |
64 |
+ +metadata.xml, +plan9port-20070522.ebuild: |
65 |
+ Initial ebuild for Plan9Port, a set of Plan 9 utilities ported to POSIX |
66 |
+ environments. |
67 |
+ |
68 |
|
69 |
diff --git a/dev-util/plan9port/Manifest b/dev-util/plan9port/Manifest |
70 |
new file mode 100644 |
71 |
index 0000000..d523619 |
72 |
--- /dev/null |
73 |
+++ b/dev-util/plan9port/Manifest |
74 |
@@ -0,0 +1,26 @@ |
75 |
+-----BEGIN PGP SIGNED MESSAGE----- |
76 |
+Hash: SHA256 |
77 |
+ |
78 |
+AUX plan9port-9660srv-errno.patch 455 SHA256 62b77ee10409715bf5b73eb1acad09ae7e76c5e9edb12cbb87928e1d6c05c7cb SHA512 049def3e250acfc0e0ecd1829328afa1a6bf9abbc7da9d5776c6558aed5c4b18dcbcd082315afd50fd0645dc92421e3f0edfb1b899e43a07a12a9c26cb2f99d8 WHIRLPOOL 0d6e903f2eafeff7f3c43ef77fb6abfac26784efaf233ff0c1eeb79248d2e202fea2f39aef57e0c15bf0e527b9c5c4c5487800cf6f7f7e5a44bf0f256df68f4d |
79 |
+AUX plan9port-noexecstack.patch 984 SHA256 eafebec7adf9310eba6b4bc1aec1ea41ad3cdd73b366471278dd4439643351ea SHA512 160f0a793345603c4c905e65a6fa4a25b1a1c1084f0eadd4ada49ba5b6efc48b975031d14926fdfc2bd48d2e3860c987da449d9d9973038ab510f42528383da8 WHIRLPOOL 997262eb672ce3836309216eb31219671051d1e7b936c98811a668cbe481a820140ec07555871940a367e730e7206ab90e7d8705ee9f0fae50fe613c400f5e22 |
80 |
+DIST plan9port-20121219.tgz 54175831 SHA256 289a355f0dee5900ece427a5360a510879e305e31c02f76dfe0495629ff38824 SHA512 6086fc3330327a36059fc2ce4170a3b7abac7562d141206e305dff20ec970d11d7fffe3d72848bd6def66179b70908444b638f10064e10f7f97a8e4630438892 WHIRLPOOL eb859377af45b053d1ebcf8132ecc043f1d60c0f30f6a6b59db1cc1f9a899b61432179d6d67129c4400a0bb7c935f9a341bb4111de4d5daf15888c949b343f41 |
81 |
+EBUILD plan9port-20121219.ebuild 2186 SHA256 df96c51f3be2372f44b8fe5e0d30414ee24d6e52798dacde6071feb63d989a43 SHA512 05b9d5fd0a3eb3363d1229c823fc773192468e4c3ea01286b6ff50876743e531558d44b948478d4c23ac7e891d5683a12e1825e3f6d7ab8491afa237c5ff1c54 WHIRLPOOL f106e8c6099471ac15b0bc2f54723733da77636e8c9d3002a61827d14c78f3f3703728ddf8e0b4d307ac777bdf32389d3b64e82cbb090f0c1b852db1636a6b47 |
82 |
+MISC ChangeLog 1709 SHA256 41f76ac6fab41d32ac83b565d07fa925312887f5523b637f8af8d28d03a2e732 SHA512 cecba7733b5bd6dbaaf1efa90dab0171a33818ed55716399b78ecccd1062d3a936631691bbd9e38b21eca1116af423fad35c0372ea3cb79079ebeeeca1b9d435 WHIRLPOOL 5c0f853012e5af531a18792c9f71a1b7cffc866029f43f050fdd2f9463420f79dca9b5c8c51cb85c0fc16a394555982e6b4e2da27b5ee9a07f8b87887d2de97b |
83 |
+MISC metadata.xml 471 SHA256 26ff54a2c0ba3a7226b0d9aff3e75b5d09c3a53cfa1f289eea818cb35cf64dc9 SHA512 df8cf2ebdd4e7b09fd77bffe47d32dfc8ad9e2db759408fbe91ed715f630677520108fc19c508320e7332b87150d771a677b5f3bc6f329ff14e5ad5a90d0d7ba WHIRLPOOL 8712724339f8a64cb70b8154b38fb63fd5458c347c397277ad3c2b085c9f6373db4354d9a6b5a5eb4931e1433de864c2d4e850514ca030d1ae3cb077910b91c8 |
84 |
+-----BEGIN PGP SIGNATURE----- |
85 |
+Version: GnuPG v2.0.19 (GNU/Linux) |
86 |
+ |
87 |
+iQIcBAEBCAAGBQJQ3O+CAAoJEJOE+m71LUu6fI8QAKat5/GeJ4EHR8a+F63ZWUXn |
88 |
+R8MAcAF0jelf7uuyB1B7iOH4oRa1q0Zv1LLDaKkTEJs8zhCXW91V5TxHr029/tJc |
89 |
+/GBkSN9XpRvfCa7pdE6i9WxwtWiLc9g5w4jhp+fMb25q4oHZR4woEuH8Py9SS2P3 |
90 |
+V5ciyMP/Ezt0NzUojAt9GNxUpFHhgQyHOf8MVRBXYtKE+//khftPilhEYZ80espd |
91 |
+ID1dOocsJHWBodsLiNYOtOLpIyxs0xMMfhuZ8zRnzKig/EDPtfvd+M4dCdixwJjW |
92 |
+yqZK0svLIowyQuSY/1sXNhqmF16Eb7iBPGkACBaWPTgNtwJ8M3aZpXyTJkXXE1Uy |
93 |
+OlK6ps8TTsdHRh5/Rwm5LVflqgOb4I60VZiSi3PP3pXERwYlPYE67ZKatIKRYosl |
94 |
+r/yFGxuaGY/3Kq5ebUP3iRhCWELkLtD4tHv93FIK204WCPspMuAh5lqEGuISTgOa |
95 |
+PLOOrd5SebIirTtKy4sR7Ym0SvTbjC5ggnUjE4ENbsYcGqVodLhuZUlFlvIH3T0K |
96 |
+2I7olMqdo2OaTqUeLLsJZOuNK0mmZXAzaAzruWVPaaQzN5q0X8QIu2A6WUs8Z8MO |
97 |
+WdH8R7+qyWaLC1/4cMiSqKIhuEPGJLqEsceSGNdvh6BAqfB/retGgEFyR5AHV2R0 |
98 |
+5ScV87HqBiwXNiAHi9xv |
99 |
+=Vkdy |
100 |
+-----END PGP SIGNATURE----- |
101 |
|
102 |
diff --git a/dev-util/plan9port/files/plan9port-9660srv-errno.patch b/dev-util/plan9port/files/plan9port-9660srv-errno.patch |
103 |
new file mode 100644 |
104 |
index 0000000..a596321 |
105 |
--- /dev/null |
106 |
+++ b/dev-util/plan9port/files/plan9port-9660srv-errno.patch |
107 |
@@ -0,0 +1,19 @@ |
108 |
+Defining int errno; resuls in the following error on amd64: |
109 |
+ |
110 |
+ ld: errno: TLS definition in /lib64/libc.so.6 section .tbss mismatches |
111 |
+ non-TLS reference in main.o |
112 |
+ |
113 |
+Patch by Alex Efros: |
114 |
+ |
115 |
+ http://code.swtch.com/plan9port/issue/39/ |
116 |
+--- plan9/src/cmd/9660srv/main.c |
117 |
++++ plan9.new/src/cmd/9660srv/main.c |
118 |
+@@ -38,7 +38,7 @@ |
119 |
+ uchar mdata[Maxiosize]; |
120 |
+ char fdata[Maxfdata]; |
121 |
+ uchar statbuf[STATMAX]; |
122 |
+-int errno; |
123 |
++#include <errno.h> |
124 |
+ |
125 |
+ |
126 |
+ extern Xfsub *xsublist[]; |
127 |
|
128 |
diff --git a/dev-util/plan9port/files/plan9port-noexecstack.patch b/dev-util/plan9port/files/plan9port-noexecstack.patch |
129 |
new file mode 100644 |
130 |
index 0000000..fb4f19f |
131 |
--- /dev/null |
132 |
+++ b/dev-util/plan9port/files/plan9port-noexecstack.patch |
133 |
@@ -0,0 +1,54 @@ |
134 |
+Remove unneeded executable stack |
135 |
+ |
136 |
+Assembly routines in libthread and libmp use an executable stack by |
137 |
+default. This is not needed and can be removed using --noexecstack. |
138 |
+ |
139 |
+The plan9port 9a wrapper wrapper needs to be modified to pass flags to the |
140 |
+underlying assembler first though.. |
141 |
+ |
142 |
+Patch by Andy Spencer |
143 |
+ |
144 |
+ http://code.swtch.com/plan9port/issue/76/ |
145 |
+--- a/bin/9a |
146 |
++++ b/bin/9a |
147 |
+@@ -1,10 +1,5 @@ |
148 |
+ #!/bin/sh |
149 |
+ |
150 |
+-if [ $# != 1 ]; then |
151 |
+- echo 'usage: 9a file.s' 1>&2 |
152 |
+- exit 1 |
153 |
+-fi |
154 |
+- |
155 |
+ test -f $PLAN9/config && . $PLAN9/config |
156 |
+ |
157 |
+ aflags="" |
158 |
+@@ -17,5 +12,16 @@ Darwin-*x86_64*) |
159 |
+ ;; |
160 |
+ esac |
161 |
+ |
162 |
+-out=`echo $1 | sed 's/\.s$//;s/$/.o/'` |
163 |
+-exec as $aflags -o $out $1 |
164 |
++for arg; do |
165 |
++ case $arg in |
166 |
++ -*) |
167 |
++ opts="$opts $arg" |
168 |
++ ;; |
169 |
++ *.s) |
170 |
++ src=$arg |
171 |
++ dst=$(echo $arg | sed 's/\.s/\.o/') |
172 |
++ ;; |
173 |
++ esac |
174 |
++done |
175 |
++ |
176 |
++exec as $aflags $opts -o $dst $src |
177 |
+--- a/src/mkhdr |
178 |
++++ b/src/mkhdr |
179 |
+@@ -30,7 +30,7 @@ AR=9ar |
180 |
+ INSTALL=install |
181 |
+ CFLAGS= |
182 |
+ LDFLAGS= |
183 |
+-AFLAGS= |
184 |
++AFLAGS=--noexecstack |
185 |
+ CLEANFILES= |
186 |
+ NUKEFILES= |
187 |
+ YACC=9 yacc |
188 |
|
189 |
diff --git a/dev-util/plan9port/metadata.xml b/dev-util/plan9port/metadata.xml |
190 |
new file mode 100644 |
191 |
index 0000000..e86c8cc |
192 |
--- /dev/null |
193 |
+++ b/dev-util/plan9port/metadata.xml |
194 |
@@ -0,0 +1,15 @@ |
195 |
+<?xml version="1.0" encoding="UTF-8"?> |
196 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
197 |
+<pkgmetadata> |
198 |
+ <maintainer> |
199 |
+ <email>andy753421@×××××.com</email> |
200 |
+ </maintainer> |
201 |
+ <maintainer> |
202 |
+ <email>blueness@g.o</email> |
203 |
+ <name>Anthony G. Basile</name> |
204 |
+ </maintainer> |
205 |
+ <longdescription> |
206 |
+ Plan9Port is a set of Plan 9 utilities ported to the POSIX |
207 |
+ environment - also know as Plan 9 from User Space. |
208 |
+ </longdescription> |
209 |
+</pkgmetadata> |
210 |
|
211 |
diff --git a/dev-util/plan9port/plan9port-20121219.ebuild b/dev-util/plan9port/plan9port-20121219.ebuild |
212 |
new file mode 100644 |
213 |
index 0000000..659b550 |
214 |
--- /dev/null |
215 |
+++ b/dev-util/plan9port/plan9port-20121219.ebuild |
216 |
@@ -0,0 +1,76 @@ |
217 |
+# Copyright 1999-2011 Gentoo Foundation |
218 |
+# Distributed under the terms of the GNU General Public License v2 |
219 |
+# $Header: /var/cvsroot/gentoo-x86/dev-util/plan9port/plan9port-20080130.ebuild,v 1.1 2008/03/11 13:03:53 coldwind Exp $ |
220 |
+ |
221 |
+EAPI="4" |
222 |
+ |
223 |
+inherit eutils |
224 |
+ |
225 |
+DESCRIPTION="Port of many Plan 9 programs and libraries" |
226 |
+HOMEPAGE="http://swtch.com/plan9port/" |
227 |
+SRC_URI="http://${PN}.googlecode.com/files/${P}.tgz" |
228 |
+ |
229 |
+LICENSE="9base" |
230 |
+SLOT="0" |
231 |
+KEYWORDS="~amd64 ~x86" |
232 |
+IUSE="" |
233 |
+ |
234 |
+DEPEND="x11-apps/xauth" |
235 |
+RDEPEND="${DEPEND}" |
236 |
+ |
237 |
+S="${WORKDIR}/${PN}" |
238 |
+ |
239 |
+PLAN9=/usr/lib/plan9 |
240 |
+ |
241 |
+src_prepare() |
242 |
+{ |
243 |
+ epatch "${FILESDIR}/${PN}-"{9660srv-errno,noexecstack}".patch" |
244 |
+ |
245 |
+ # Fix paths, done in place of ./INSTALL -c |
246 |
+ einfo "Fixing hard-coded /usr/local/plan9 paths" |
247 |
+ grep --null -l -r '/usr/local/plan9' | |
248 |
+ xargs --null sed -i "s!/usr/local/plan9!${PLAN9}!g" |
249 |
+} |
250 |
+ |
251 |
+src_compile() { |
252 |
+ # Convert -j5 to NPROC=5 for mk |
253 |
+ export NPROC="$(echo "$MAKEOPTS" | sed -r -n 's/.*(^| )-j([0-9]*).*/\2/p')" |
254 |
+ |
255 |
+ # The INSTALL script builds mk then [re]builds everything using that |
256 |
+ einfo "Compiling Plan 9 from User Space can take a very long time" |
257 |
+ einfo "depending on the speed of your computer. Please be patient!" |
258 |
+ ./INSTALL -b |
259 |
+} |
260 |
+ |
261 |
+src_install() { |
262 |
+ dodir "${PLAN9}" |
263 |
+ |
264 |
+ # P9P's man does not handle compression |
265 |
+ docompress -x $PLAN9/man |
266 |
+ |
267 |
+ # do* plays with the executable bit, and we should not modify them |
268 |
+ cp -a * "${D}/${PLAN9}" |
269 |
+ |
270 |
+ # build the environment variables and install them in env.d |
271 |
+ cat > "${T}/30plan9" <<-EOF |
272 |
+ PLAN9="${PLAN9}" |
273 |
+ PATH="${PLAN9}/bin" |
274 |
+ ROOTPATH="${PLAN9}/bin" |
275 |
+ MANPATH="${PLAN9}/man" |
276 |
+ EOF |
277 |
+ doenvd "${T}/30plan9" |
278 |
+} |
279 |
+ |
280 |
+pkg_postinst() { |
281 |
+ elog "Plan 9 from User Space has been successfully installed into" |
282 |
+ elog "${PLAN9}. Your PLAN9 and PATH environment variables have" |
283 |
+ elog "also been appropriately set, please use env-update and" |
284 |
+ elog "source /etc/profile to bring that into immediate effect." |
285 |
+ elog |
286 |
+ elog "Please note that ${PLAN9}/bin has been appended to the" |
287 |
+ elog "*end* or your PATH to prevent conflicts. To use the Plan9" |
288 |
+ elog "versions of common UNIX tools, use the absolute path:" |
289 |
+ elog "${PLAN9}/bin or the 9 command (eg: 9 troff)" |
290 |
+ elog |
291 |
+ elog "Please report any bugs to bugs.gentoo.org, NOT Plan9Port." |
292 |
+} |