Gentoo Archives: gentoo-commits

From: Yuta SATOH <nigoro@×××××××××.jp>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gentoo-bsd:master commit in: dev-util/catalyst/files/, dev-util/catalyst/
Date: Sat, 09 Dec 2017 22:29:55
Message-Id: 1512857252.01e50adad417fadd8d4bc4546ba617b2e312d159.yuta_satoh@gentoo
1 commit: 01e50adad417fadd8d4bc4546ba617b2e312d159
2 Author: Yuta SATOH <nigoro.dev <AT> gmail <DOT> com>
3 AuthorDate: Sat Dec 9 22:07:32 2017 +0000
4 Commit: Yuta SATOH <nigoro <AT> gentoo <DOT> gr <DOT> jp>
5 CommitDate: Sat Dec 9 22:07:32 2017 +0000
6 URL: https://gitweb.gentoo.org/proj/gentoo-bsd.git/commit/?id=01e50ada
7
8 dev-util/catalyst: remove old.
9
10 dev-util/catalyst/Manifest | 12 -
11 dev-util/catalyst/catalyst-2.0.12.2.ebuild | 112 --------
12 dev-util/catalyst/catalyst-2.0.15.ebuild | 100 -------
13 dev-util/catalyst/catalyst-2.0.17.ebuild | 115 --------
14 dev-util/catalyst/catalyst-9999.ebuild | 69 -----
15 .../catalyst/files/catalyst-2.0.12.1-fbsd.patch | 219 ---------------
16 dev-util/catalyst/files/catalyst-2.0.14-fbsd.patch | 236 ----------------
17 .../files/catalyst-2.0.15-fbsd-extra.patch | 106 --------
18 dev-util/catalyst/files/catalyst-9999-sed.patch | 302 ---------------------
19 dev-util/catalyst/files/catalyst-9999-tmpfs.patch | 40 ---
20 10 files changed, 1311 deletions(-)
21
22 diff --git a/dev-util/catalyst/Manifest b/dev-util/catalyst/Manifest
23 deleted file mode 100644
24 index 5a8318f..0000000
25 --- a/dev-util/catalyst/Manifest
26 +++ /dev/null
27 @@ -1,12 +0,0 @@
28 -AUX catalyst-2.0.12.1-fbsd.patch 9713 SHA256 c66f856b7f3b0b9988984cf7eac1ab332d6103ac4bbcc855dbfdb0f4de8e6692 SHA512 335b29e7bda61c1875a66694031924a3f04851b056651b6ee8f3572209bf216d5f63520513223ca996f3b9404eeefacf7cfe40d0feddbebd5c3782bf8db36d4d WHIRLPOOL b63adab3d5ead0950a06d9a6490cfbef9d07ca420e45eaee99b9bef87f3b96d93cdaada2212faa368c1473360f917db094f8319f34bdbc1dd673390fb55cc9bf
29 -AUX catalyst-2.0.14-fbsd.patch 10559 SHA256 c4f53aa4a29eceb01a19b76b08b898efab1244b045b7657430c81ac796ebd8f3 SHA512 344193243bea083c8af3c641f69b70362635af7eaec9887cb0a5aa92957f951b53bbc8ea68f62e66395a2efa63b3b69bb2da7aeac489f88df70abf117a6108b7 WHIRLPOOL 3c54e14b0a05e272403ff738c2a5ba25eaa5c034148f35317809c5ccb758f245490ccead2d6554b36ef3f4e6a592faa2988974f901f01096eefe1466de058272
30 -AUX catalyst-2.0.15-fbsd-extra.patch 5180 SHA256 3f9cfe533be0050e936d47f2d4392f7ca5110cecb4a5dcd68e7cb79c59b25efb SHA512 dc930e063cf3870048a395577ba5c7d8fce96a150345af7766c4156109ec9539455e05b59a7c5873dfc596ab240e9d7dde55dc954410054fd85eaf289def7a1c WHIRLPOOL 78be8967fdce9b2c247f720d3389a41ff056d9ce3d270f2951dbd2318e8c93519c91ea4b6c889aced17775ea187180899f7a8a13450334c1b7df76611f944f9f
31 -AUX catalyst-9999-sed.patch 12970 SHA256 279d0ba5b32bc7e921e9a6038a85981da2229773edc1b7519e144e05f34614c2 SHA512 f90d9e64079c88380508c42c5f408a106d7cc6fe07732d25722f92c94ddea84c9a592c61e403585b29e16612c2a8b59f1245e3259e7d7587aeb11881c6e84932 WHIRLPOOL 6e4db5701884eb976b2b893dbc3ec73297096ef30319ff7a2dbec43861403ad2444dc0af40fe5b03143f5694ccd7806b6e057a6ab7cc58d59c19aa245ae86eb1
32 -AUX catalyst-9999-tmpfs.patch 1531 SHA256 23cdf7e169129343d7a55e62870a70f971b8746c721cf6acf8b19027d8f9cf6e SHA512 1ff41b0c994336ff73e69c54258f6d0aa75b235eeeefbfe67ebc6c20322b9c27bf7554e6236b0f7376a06e115abdb80e6947b32afe94ff73755290f80b85a68d WHIRLPOOL 8715a0fb31c323ec76e30be6e4dd9fd864d5acdf61c3633e9a194c4355c250d6da6570d99de68bc487e7419eac396ce2f722d44aa639662f5032f3ca59b1c6cd
33 -DIST catalyst-2.0.12.2.tar.bz2 907893 SHA256 411d531b6de8c8c1bc9fa9502af3a4882e94e9db8b911bb48e4a0fcfc1efe7e8 SHA512 12349f6249363a94a72a71d05b2fe6ee13593b5ea67e1cb9a054c5ece896ff68f89d1af6341b98238ba6a6510e2737f81dcc2606649c10681235315663ab04ae WHIRLPOOL 1769a78f615c8e0eec2167dd9d6ab873e24801ecb5e4634037898933c6f5a1dbb189d967a628be6f8811f6769eadc91c5003ddbb6bd58eb05efbbd5110f740c7
34 -DIST catalyst-2.0.15.tar.bz2 873335 SHA256 80fc39e6f6b7c32fb84f51333d8bf62a56a1ee068eb83cf2b03cb21c1f163e51 SHA512 9e61ba61eaa806424041f7edd1680b55dfd69bdea5b292aff305b4b3ef03349d82a47d8ab876baf7bf888e03810d79c6a00d74dc748082a1ed180ec1ed7043bd WHIRLPOOL 03c0f1137f59c57d106df4210104000c498a4c7ff2ae5bcc6e6c7a23d3d0c4c35ed125c036a0468859706da82af799641c1abe1b18c716c230c6ab657b4b765c
35 -DIST catalyst-2.0.17.tar.bz2 861341 SHA256 5f4142598d921e5174ff06f9571856760a324e79db5f3b63caf0d1a16adc813c SHA512 9d7b9ad383dcc5d4ba058596c0b607eb9601b28025d9300f63e68d78cbd5bca8fa3f3e03a81dc6b233021e773ba4301df0bf5cec51ca4368eb3577a68d33a92c WHIRLPOOL e97fc120141cc4f9f5c297652d8b43313780f615429c0eb3d9b85cba40aeca01dcbc6efb0f8d388cc5e7debabb2563cfc9b5a5aa00e3d00d306aed0f799fc642
36 -EBUILD catalyst-2.0.12.2.ebuild 3660 SHA256 4b0714dbb8eb96a9588f6b95e5e9021ddb62144c1a2e47f717111d70a84593a2 SHA512 f5ca61ec95864928d27e93ac72c2b441fdc04d30a27ebb3cedff6ec327147cee51a213b06d5f8e82bfda50ebc9e2eff51d77f43d3b699018459a4094b691ff4f WHIRLPOOL 1a558bd6eba2f278e4f6fcc4c846d884cf3fe79961204e6cf04bdb41889c96dd5f0af447eb14a6e8d17eac0622d8874cc6be20ff97e59d9632114495c77c2019
37 -EBUILD catalyst-2.0.15.ebuild 3166 SHA256 90063f74c89fa79969cfc35c695cadd20aadce8c922dd9d9444d8243b08f974e SHA512 1e0a83a4c65679c0f2c11b3ccbb96695a7f551f97c875bb0d81453db1f6803873a1ef8838eee884a9b34bb69dd97bbdb80344deac103301882d9e95dd61e8b55 WHIRLPOOL 6239a89daa41d5bc983cf020eb2fd6486c3e990ebc5cccd27260ce54ade5fb9a1e20c256d8a6861c728fa9286f54d0f6b7fa7e63949222147f178bcbd2e0a3b7
38 -EBUILD catalyst-2.0.17.ebuild 3162 SHA256 1f9aacf9e56f5184fa791583ea7c9d332b7ab4a1504bde50ae77f7f879a17a2c SHA512 31ab393441dd34eeb030703e75c91c4b01ecb32354728e0bedff40ec1c2a6f70ba4868eeeb1e63ff4f68c500d62abea0d2e2d17743b89c37c000d6cb18b8aa7c WHIRLPOOL b424423dfaaf07b8df3317e93d0b93eac341d0b82fe201f9ed71ef8c7dda365434a5796cf9abbe5a2c9ef21c45702649220524675e8113e6ef76d7e05000bd62
39 -EBUILD catalyst-9999.ebuild 1758 SHA256 f5f551262785dfb504bc8f1b8fd37ed4db4c2e7b416a97c0bd3821ef7f07dc95 SHA512 f5a56f1d6f2ca9a91e398a20400c6fe40619a4aa32b8db17254203a849e9ef745efd1318ea15c069c4b893d7931205c52ec148ee70dca54f5261e16166ad9e1c WHIRLPOOL 58cc2bd7c78fd8cd11dca0ce64b125985972fe6e432802e7ed43be7fb7a6aa8e99ff521a747742cbc719ea6cfd73445a1475ae1a5dd152156f952706ed9f9afc
40
41 diff --git a/dev-util/catalyst/catalyst-2.0.12.2.ebuild b/dev-util/catalyst/catalyst-2.0.12.2.ebuild
42 deleted file mode 100644
43 index 40ff2be..0000000
44 --- a/dev-util/catalyst/catalyst-2.0.12.2.ebuild
45 +++ /dev/null
46 @@ -1,112 +0,0 @@
47 -# Copyright 1999-2012 Gentoo Foundation
48 -# Distributed under the terms of the GNU General Public License v2
49 -# $Header: $
50 -
51 -# catalyst-9999 -> latest Git
52 -# catalyst-2.9999 -> catalyst_2 branch from Git
53 -# catalyst-3.9999 -> catalyst_3 branch from Git
54 -# catalyst-VER -> normal catalyst release
55 -
56 -EAPI=3
57 -PYTHON_DEPEND="2"
58 -
59 -if [[ ${PV} == *9999* ]]; then
60 - EGIT_REPO_URI="git://git.overlays.gentoo.org/proj/catalyst.git"
61 - inherit git-2
62 - SRC_URI=""
63 - S="${WORKDIR}/${PN}"
64 - KEYWORDS=""
65 -
66 - case ${PV} in
67 - 2.9999) EGIT_BRANCH="catalyst_2" ;;
68 - 3.9999) EGIT_BRANCH="catalyst_3" ;;
69 - esac
70 -else
71 - SRC_URI="mirror://gentoo/${P}.tar.bz2
72 - http://dev.gentoo.org/~zerochaos/distfiles/${P}.tar.bz2"
73 - KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
74 -fi
75 -inherit eutils multilib python
76 -
77 -DESCRIPTION="release metatool used for creating releases based on Gentoo Linux"
78 -HOMEPAGE="http://www.gentoo.org/proj/en/releng/catalyst/"
79 -
80 -LICENSE="GPL-2"
81 -SLOT="0"
82 -RESTRICT=""
83 -IUSE="ccache kernel_linux"
84 -
85 -DEPEND="app-text/asciidoc"
86 -RDEPEND="app-crypt/shash
87 - virtual/cdrtools
88 - ccache? ( dev-util/ccache )
89 - ia64? ( sys-fs/dosfstools )
90 - kernel_linux? ( app-arch/lbzip2 app-misc/zisofs-tools >=sys-fs/squashfs-tools-2.1 )"
91 -
92 -pkg_setup() {
93 - if use ccache ; then
94 - einfo "Enabling ccache support for catalyst."
95 - else
96 - ewarn "By default, ccache support for catalyst is disabled."
97 - ewarn "If this is not what you intended,"
98 - ewarn "then you should add ccache to your USE."
99 - fi
100 - echo
101 - einfo "The template spec files are now installed by default. You can find"
102 - einfo "them under /usr/share/doc/${PF}/examples"
103 - einfo "and they are considered to be the authorative source of information"
104 - einfo "on catalyst."
105 - echo
106 - if [[ ${PV} == *9999* ]]; then
107 - ewarn "The ${EGIT_BRANCH:-master} branch (what you get with this ${PV} ebuild) contains"
108 - ewarn "work-in-progress code. Be aware that it's likely that it will not"
109 - ewarn "be in a working state at any given point. Please do not file bugs"
110 - ewarn "until you have posted on the gentoo-catalyst mailing list and we"
111 - ewarn "have asked you to do so."
112 - fi
113 - python_set_active_version 2
114 -}
115 -
116 -src_prepare() {
117 - python_convert_shebangs 2 catalyst modules/catalyst_lock.py
118 - epatch "${FILESDIR}"/${PN}-2.0.12.1-fbsd.patch
119 -}
120 -
121 -src_install() {
122 - insinto /usr/$(get_libdir)/${PN}
123 - exeinto /usr/$(get_libdir)/${PN}
124 - doexe catalyst || die "copying catalyst"
125 - if [[ ${PV} == 3.9999* ]]; then
126 - doins -r modules files || die "copying files"
127 - else
128 - doins -r arch modules livecd || die "copying files"
129 - fi
130 - for x in targets/*; do
131 - exeinto /usr/$(get_libdir)/${PN}/$x
132 - doexe $x/* || die "copying ${x}"
133 - done
134 - make_wrapper catalyst /usr/$(get_libdir)/${PN}/catalyst
135 - insinto /etc/catalyst
136 - doins files/catalyst.conf files/catalystrc || die "copying configuration"
137 - insinto /usr/share/doc/${PF}/examples
138 - doins examples/* || die
139 - dodoc README ChangeLog AUTHORS
140 - doman files/catalyst.1
141 - # Here is where we actually enable ccache
142 - use ccache && \
143 - dosed 's:options="autoresume kern:options="autoresume ccache kern:' \
144 - /etc/catalyst/catalyst.conf
145 - dosed "s:/usr/lib/catalyst:/usr/$(get_libdir)/catalyst:" \
146 - /etc/catalyst/catalyst.conf
147 -}
148 -
149 -pkg_postinst() {
150 - einfo "You can find more information about catalyst by checking out the"
151 - einfo "catalyst project page at:"
152 - einfo "http://www.gentoo.org/proj/en/releng/catalyst/index.xml"
153 - echo
154 - elog "update_seed syntax has changed to make it more flexible."
155 - elog "This is an optional setting supported by stage1 that runs an emerge"
156 - elog "command on the seed stage before starting the stage1 build. (example:"
157 - elog "`--update dev-libs/mpfr dev-libs/mpc dev-libs/gmp`)"
158 -}
159
160 diff --git a/dev-util/catalyst/catalyst-2.0.15.ebuild b/dev-util/catalyst/catalyst-2.0.15.ebuild
161 deleted file mode 100644
162 index 6c17b60..0000000
163 --- a/dev-util/catalyst/catalyst-2.0.15.ebuild
164 +++ /dev/null
165 @@ -1,100 +0,0 @@
166 -# Copyright 1999-2013 Gentoo Foundation
167 -# Distributed under the terms of the GNU General Public License v2
168 -# $Header: $
169 -
170 -EAPI=3
171 -PYTHON_DEPEND="2"
172 -
173 -if [[ ${PV} == *9999* ]]; then
174 - EGIT_REPO_URI="git://git.overlays.gentoo.org/proj/catalyst.git"
175 - inherit git-2
176 - SRC_URI=""
177 - S="${WORKDIR}/${PN}"
178 - KEYWORDS=""
179 -else
180 - SRC_URI="mirror://gentoo/${P}.tar.bz2
181 - http://dev.gentoo.org/~mattst88/distfiles/${P}.tar.bz2"
182 - KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
183 -fi
184 -inherit eutils multilib python
185 -
186 -DESCRIPTION="release metatool used for creating releases based on Gentoo Linux"
187 -HOMEPAGE="http://www.gentoo.org/proj/en/releng/catalyst/"
188 -
189 -LICENSE="GPL-2"
190 -SLOT="0"
191 -RESTRICT=""
192 -IUSE="ccache kernel_linux"
193 -
194 -DEPEND="app-text/asciidoc"
195 -RDEPEND="app-crypt/shash
196 - virtual/cdrtools
197 - x86? ( >=sys-boot/syslinux-3.72 )
198 - amd64? ( >=sys-boot/syslinux-3.72 )
199 - ccache? ( dev-util/ccache )
200 - ia64? ( sys-fs/dosfstools )
201 - kernel_linux? ( app-arch/lbzip2 app-misc/zisofs-tools >=sys-fs/squashfs-tools-2.1 )"
202 -
203 -pkg_setup() {
204 - if use ccache ; then
205 - einfo "Enabling ccache support for catalyst."
206 - else
207 - ewarn "By default, ccache support for catalyst is disabled."
208 - ewarn "If this is not what you intended,"
209 - ewarn "then you should add ccache to your USE."
210 - fi
211 - echo
212 - einfo "The template spec files are now installed by default. You can find"
213 - einfo "them under /usr/share/doc/${PF}/examples"
214 - einfo "and they are considered to be the authorative source of information"
215 - einfo "on catalyst."
216 - echo
217 - if [[ ${PV} == *9999* ]]; then
218 - ewarn "The ${EGIT_BRANCH:-master} branch (what you get with this ${PV} ebuild) contains"
219 - ewarn "work-in-progress code. Be aware that it's likely that it will not"
220 - ewarn "be in a working state at any given point. Please do not file bugs"
221 - ewarn "until you have posted on the gentoo-catalyst mailing list and we"
222 - ewarn "have asked you to do so."
223 - fi
224 - python_set_active_version 2
225 -}
226 -
227 -src_prepare() {
228 - python_convert_shebangs 2 catalyst modules/catalyst_lock.py
229 - epatch "${FILESDIR}"/${PN}-2.0.14-fbsd.patch
230 -}
231 -
232 -src_install() {
233 - insinto /usr/$(get_libdir)/${PN}
234 - exeinto /usr/$(get_libdir)/${PN}
235 - doexe catalyst || die "copying catalyst"
236 - if [[ ${PV} == 3.9999* ]]; then
237 - doins -r modules files || die "copying files"
238 - else
239 - doins -r arch modules livecd || die "copying files"
240 - fi
241 - for x in targets/*; do
242 - exeinto /usr/$(get_libdir)/${PN}/$x
243 - doexe $x/* || die "copying ${x}"
244 - done
245 - make_wrapper catalyst /usr/$(get_libdir)/${PN}/catalyst
246 - insinto /etc/catalyst
247 - doins files/catalyst.conf files/catalystrc || die "copying configuration"
248 - insinto /usr/share/doc/${PF}/examples
249 - doins examples/* || die
250 - dodoc README AUTHORS
251 - doman files/catalyst.1 files/catalyst-spec.5
252 - # Here is where we actually enable ccache
253 - use ccache && \
254 - dosed 's:options="autoresume kern:options="autoresume ccache kern:' \
255 - /etc/catalyst/catalyst.conf
256 - dosed "s:/usr/lib/catalyst:/usr/$(get_libdir)/catalyst:" \
257 - /etc/catalyst/catalyst.conf
258 -}
259 -
260 -pkg_postinst() {
261 - einfo "You can find more information about catalyst by checking out the"
262 - einfo "catalyst project page at:"
263 - einfo "http://www.gentoo.org/proj/en/releng/catalyst/index.xml"
264 - echo
265 -}
266
267 diff --git a/dev-util/catalyst/catalyst-2.0.17.ebuild b/dev-util/catalyst/catalyst-2.0.17.ebuild
268 deleted file mode 100644
269 index 90e2475..0000000
270 --- a/dev-util/catalyst/catalyst-2.0.17.ebuild
271 +++ /dev/null
272 @@ -1,115 +0,0 @@
273 -# Copyright 1999-2014 Gentoo Foundation
274 -# Distributed under the terms of the GNU General Public License v2
275 -# $Header: $
276 -
277 -EAPI=5
278 -
279 -if [[ ${PV} == *9999* ]]; then
280 - SRC_ECLASS="git-2"
281 - EGIT_REPO_URI="git://git.overlays.gentoo.org/proj/catalyst.git"
282 - EGIT_MASTER="master"
283 - SRC_URI=""
284 - KEYWORDS=""
285 - S="${WORKDIR}/${PN}"
286 -else
287 - SRC_URI="mirror://gentoo/${P}.tar.bz2
288 - http://dev.gentoo.org/~jmbsvicetto/distfiles/${P}.tar.bz2
289 - http://dev.gentoo.org/~mattst88/distfiles/${P}.tar.bz2
290 - http://dev.gentoo.org/~zerochaos/distfiles/${P}.tar.bz2
291 - http://dev.gentoo.org/~dolsen/releases/catalyst/${P}.tar.bz2"
292 - KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
293 -fi
294 -
295 -PYTHON_COMPAT=( python2_7 )
296 -
297 -inherit eutils multilib python-single-r1 ${SRC_ECLASS}
298 -
299 -DESCRIPTION="Release metatool used for creating releases based on Gentoo Linux"
300 -HOMEPAGE="http://www.gentoo.org/proj/en/releng/catalyst/"
301 -
302 -LICENSE="GPL-2"
303 -SLOT="0"
304 -IUSE="ccache kernel_linux"
305 -
306 -DEPEND="
307 - app-text/asciidoc
308 - ${PYTHON_DEPS}
309 -"
310 -RDEPEND="
311 - app-crypt/shash
312 - virtual/cdrtools
313 - amd64? ( >=sys-boot/syslinux-3.72 )
314 - ia64? ( sys-fs/dosfstools )
315 - x86? ( >=sys-boot/syslinux-3.72 )
316 - ccache? ( dev-util/ccache )
317 - kernel_linux? ( app-arch/lbzip2 app-misc/zisofs-tools >=sys-fs/squashfs-tools-2.1 )
318 - ${PYTHON_DEPS}
319 -"
320 -
321 -REQUIRED_USE=${PYTHON_REQUIRED_USE}
322 -
323 -pkg_setup() {
324 - if use ccache ; then
325 - einfo "Enabling ccache support for catalyst."
326 - else
327 - ewarn "By default, ccache support for catalyst is disabled."
328 - ewarn "If this is not what you intended,"
329 - ewarn "then you should add ccache to your USE."
330 - fi
331 -
332 - echo
333 - einfo "The template spec files are now installed by default. You can find"
334 - einfo "them under /usr/share/doc/${PF}/examples"
335 - einfo "and they are considered to be the authorative source of information"
336 - einfo "on catalyst."
337 - echo
338 -
339 - python-single-r1_pkg_setup
340 -}
341 -
342 -src_prepare(){
343 - epatch "${FILESDIR}"/${PN}-2.0.14-fbsd.patch
344 - epatch "${FILESDIR}"/${PN}-2.0.15-fbsd-extra.patch
345 -}
346 -
347 -src_install() {
348 - insinto /usr/$(get_libdir)/${PN}
349 - exeinto /usr/$(get_libdir)/${PN}
350 - doexe catalyst || die "copying catalyst"
351 -
352 - if [[ ${PV} == 3.9999* ]]; then
353 - doins -r modules files || die "copying files"
354 - else
355 - doins -r arch modules livecd || die "copying files"
356 - fi
357 -
358 - for x in targets/*; do
359 - exeinto /usr/$(get_libdir)/${PN}/$x
360 - doexe $x/* || die "copying ${x}"
361 - done
362 -
363 - # Here is where we actually enable ccache
364 - use ccache && \
365 - sed -i -e 's:options="autoresume kern:options="autoresume ccache kern:' \
366 - files/catalyst.conf
367 -
368 - sed -i -e "s:/usr/lib/catalyst:/usr/$(get_libdir)/catalyst:" \
369 - files/catalyst.conf
370 -
371 - make_wrapper catalyst /usr/$(get_libdir)/${PN}/catalyst
372 - insinto /etc/catalyst
373 - doins files/catalyst.conf files/catalystrc || die "copying configuration"
374 - insinto /usr/share/doc/${PF}/examples
375 - doins examples/* || die
376 - dodoc README AUTHORS
377 - doman files/catalyst.1 files/catalyst-spec.5
378 -
379 - python_fix_shebang "${ED}usr/$(get_libdir)/catalyst/catalyst"
380 - python_optimize "${ED}"
381 -}
382 -
383 -pkg_postinst() {
384 - einfo "You can find more information about catalyst by checking out the"
385 - einfo "catalyst project page at:"
386 - einfo "http://www.gentoo.org/proj/en/releng/catalyst/index.xml"
387 -}
388
389 diff --git a/dev-util/catalyst/catalyst-9999.ebuild b/dev-util/catalyst/catalyst-9999.ebuild
390 deleted file mode 100644
391 index e19b49c..0000000
392 --- a/dev-util/catalyst/catalyst-9999.ebuild
393 +++ /dev/null
394 @@ -1,69 +0,0 @@
395 -# Copyright 1999-2015 Gentoo Foundation
396 -# Distributed under the terms of the GNU General Public License v2
397 -# $Id$
398 -
399 -EAPI=5
400 -
401 -if [[ ${PV} == *9999* ]]; then
402 - SRC_ECLASS="git-2"
403 - EGIT_REPO_URI="git://anongit.gentoo.org/proj/catalyst.git"
404 - EGIT_BRANCH="master"
405 - S="${WORKDIR}/${PN}"
406 -else
407 - SRC_URI="mirror://gentoo/${P}.tar.bz2
408 - https://dev.gentoo.org/~dolsen/releases/catalyst/${P}.tar.bz2
409 - https://dev.gentoo.org/~jmbsvicetto/distfiles/${P}.tar.bz2
410 - https://dev.gentoo.org/~zerochaos/distfiles/${P}.tar.bz2"
411 - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
412 -fi
413 -
414 -PYTHON_COMPAT=( python{3_4,3_5} )
415 -
416 -inherit distutils-r1 multilib ${SRC_ECLASS}
417 -
418 -DESCRIPTION="Release metatool used for creating releases based on Gentoo Linux"
419 -HOMEPAGE="https://www.gentoo.org/proj/en/releng/catalyst/"
420 -
421 -LICENSE="GPL-2"
422 -SLOT="0"
423 -IUSE="ccache doc kernel_linux"
424 -
425 -DEPEND="
426 - app-text/asciidoc
427 - >=dev-python/snakeoil-0.6.5[${PYTHON_USEDEP}]
428 -"
429 -RDEPEND="
430 - =dev-python/pydecomp-9999[${PYTHON_USEDEP}]
431 - app-arch/lbzip2
432 - app-crypt/shash
433 - virtual/cdrtools
434 - amd64? ( >=sys-boot/syslinux-3.72 )
435 - ia64? ( sys-fs/dosfstools )
436 - x86? ( >=sys-boot/syslinux-3.72 )
437 - ccache? ( dev-util/ccache )
438 - kernel_linux? ( app-arch/tar[xattr] app-misc/zisofs-tools >=sys-fs/squashfs-tools-2.1 )
439 -"
440 -
441 -src_prepare() {
442 - epatch "${FILESDIR}"/${PN}-9999-sed.patch
443 - epatch "${FILESDIR}"/${PN}-9999-tmpfs.patch
444 -}
445 -
446 -python_prepare_all() {
447 - echo VERSION="${PV}" "${PYTHON}" setup.py set_version
448 - VERSION="${PV}" "${PYTHON}" setup.py set_version
449 -
450 - distutils-r1_python_prepare_all
451 -}
452 -
453 -python_compile_all() {
454 - # build the man pages and docs
455 - emake
456 -}
457 -
458 -python_install_all() {
459 - distutils-r1_python_install_all
460 - if use doc; then
461 - dodoc files/HOWTO.html files/docbook-xsl.css
462 - fi
463 -}
464
465 diff --git a/dev-util/catalyst/files/catalyst-2.0.12.1-fbsd.patch b/dev-util/catalyst/files/catalyst-2.0.12.1-fbsd.patch
466 deleted file mode 100644
467 index 413235f..0000000
468 --- a/dev-util/catalyst/files/catalyst-2.0.12.1-fbsd.patch
469 +++ /dev/null
470 @@ -1,219 +0,0 @@
471 -diff -Nur catalyst-2.0.12.1.orig/arch/x86.py catalyst-2.0.12.1/arch/x86.py
472 ---- catalyst-2.0.12.1.orig/arch/x86.py 2012-11-02 09:27:51.000000000 +0900
473 -+++ catalyst-2.0.12.1/arch/x86.py 2012-11-23 21:27:15.000000000 +0900
474 -@@ -7,9 +7,12 @@
475 - def __init__(self,myspec):
476 - builder.generic.__init__(self,myspec)
477 - if self.settings["buildarch"]=="amd64":
478 -- if not os.path.exists("/bin/linux32") and not os.path.exists("/usr/bin/linux32"):
479 -- raise CatalystError,"required executable linux32 not found (\"emerge setarch\" to fix.)"
480 -- self.settings["CHROOT"]="linux32 chroot"
481 -+ if os.uname()[0] == "Linux":
482 -+ if not os.path.exists("/bin/linux32") and not os.path.exists("/usr/bin/linux32"):
483 -+ raise CatalystError,"required executable linux32 not found (\"emerge setarch\" to fix.)"
484 -+ self.settings["CHROOT"]="linux32 chroot"
485 -+ else:
486 -+ self.settings["CHROOT"]="chroot"
487 - self.settings["crosscompile"] = False;
488 - else:
489 - self.settings["CHROOT"]="chroot"
490 -diff -Nur catalyst-2.0.12.1.orig/modules/catalyst_support.py catalyst-2.0.12.1/modules/catalyst_support.py
491 ---- catalyst-2.0.12.1.orig/modules/catalyst_support.py 2012-11-02 09:27:51.000000000 +0900
492 -+++ catalyst-2.0.12.1/modules/catalyst_support.py 2012-11-23 21:37:39.000000000 +0900
493 -@@ -108,7 +108,7 @@
494 - #"find" :[calc_contents,"find %(path)s"],
495 - "tar-tv":[calc_contents,"tar tvf %(file)s"],
496 - "tar-tvz":[calc_contents,"tar tvzf %(file)s"],
497 -- "tar-tvj":[calc_contents,"tar -I lbzip2 -tvf %(file)s"],
498 -+ "tar-tvj":[calc_contents,"tar tvjf %(file)s"],
499 - "isoinfo-l":[calc_contents,"isoinfo -l -i %(file)s"],
500 - # isoinfo-f should be a last resort only
501 - "isoinfo-f":[calc_contents,"isoinfo -f -i %(file)s"],
502 -diff -Nur catalyst-2.0.12.1.orig/modules/generic_stage_target.py catalyst-2.0.12.1/modules/generic_stage_target.py
503 ---- catalyst-2.0.12.1.orig/modules/generic_stage_target.py 2012-11-02 09:27:51.000000000 +0900
504 -+++ catalyst-2.0.12.1/modules/generic_stage_target.py 2012-11-23 21:34:08.000000000 +0900
505 -@@ -649,7 +649,8 @@
506 - self.settings["source_path"]+"\nto "+\
507 - self.settings["chroot_path"]+\
508 - " (This may take some time) ...\n"
509 -- if "bz2" == self.settings["chroot_path"][-3:]:
510 -+ if "bz2" == self.settings["chroot_path"][-3:] \
511 -+ and os.uname()[0] == "Linux":
512 - unpack_cmd="tar -I lbzip2 -xpf "+self.settings["source_path"]+" -C "+\
513 - self.settings["chroot_path"]
514 - else:
515 -@@ -664,7 +665,8 @@
516 - self.settings["source_path"]+"\nto "+\
517 - self.settings["chroot_path"]+\
518 - " (This may take some time) ...\n"
519 -- if "bz2" == self.settings["chroot_path"][-3:]:
520 -+ if "bz2" == self.settings["chroot_path"][-3:] \
521 -+ and os.uname()[0] == "Linux":
522 - unpack_cmd="tar -I lbzip2 -xpf "+self.settings["source_path"]+" -C "+\
523 - self.settings["chroot_path"]
524 - else:
525 -@@ -766,7 +768,8 @@
526 - read_from_clst(self.settings["snapshot_cache_path"]+\
527 - "catalyst-hash")
528 - destdir=self.settings["snapshot_cache_path"]
529 -- if "bz2" == self.settings["chroot_path"][-3:]:
530 -+ if "bz2" == self.settings["chroot_path"][-3:] \
531 -+ and os.uname()[0] == "Linux":
532 - unpack_cmd="tar -I lbzip2 -xpf "+self.settings["snapshot_path"]+" -C "+destdir
533 - else:
534 - unpack_cmd="tar xpf "+self.settings["snapshot_path"]+" -C "+destdir
535 -@@ -785,7 +788,8 @@
536 - cleanup_errmsg="Error removing existing snapshot directory."
537 - cleanup_msg=\
538 - "Cleaning up existing portage tree (This can take a long time)..."
539 -- if "bz2" == self.settings["chroot_path"][-3:]:
540 -+ if "bz2" == self.settings["chroot_path"][-3:] \
541 -+ and os.uname()[0] == "Linux":
542 - unpack_cmd="tar -I lbzip2 -xpf "+self.settings["snapshot_path"]+" -C "+\
543 - self.settings["chroot_path"]+"/usr"
544 - else:
545 -@@ -901,18 +905,18 @@
546 - src=self.mountmap[x]
547 - if self.settings.has_key("SNAPCACHE") and x == "/usr/portage":
548 - self.snapshot_lock_object.read_lock()
549 -- if os.uname()[0] == "FreeBSD":
550 -- if src == "/dev":
551 -- retval=os.system("mount -t devfs none "+\
552 -- self.settings["chroot_path"]+x)
553 -- else:
554 -- retval=os.system("mount_nullfs "+src+" "+\
555 -+ if src == "tmpfs":
556 -+ if self.settings.has_key("var_tmpfs_portage"):
557 -+ retval=os.system("mount -t tmpfs -o size="+\
558 -+ self.settings["var_tmpfs_portage"]+"G "+src+" "+\
559 - self.settings["chroot_path"]+x)
560 - else:
561 -- if src == "tmpfs":
562 -- if self.settings.has_key("var_tmpfs_portage"):
563 -- retval=os.system("mount -t tmpfs -o size="+\
564 -- self.settings["var_tmpfs_portage"]+"G "+src+" "+\
565 -+ if os.uname()[0] == "FreeBSD":
566 -+ if src == "/dev":
567 -+ retval=os.system("mount -t devfs none "+\
568 -+ self.settings["chroot_path"]+x)
569 -+ else:
570 -+ retval=os.system("mount_nullfs "+src+" "+\
571 - self.settings["chroot_path"]+x)
572 - else:
573 - retval=os.system("mount --bind "+src+" "+\
574 -@@ -1111,9 +1115,15 @@
575 - if os.path.exists(self.settings["chroot_path"]+"/usr/local/portage"):
576 - cmd("rm -rf "+self.settings["chroot_path"]+"/usr/local/portage",\
577 - "Could not remove /usr/local/portage",env=self.env)
578 -- cmd("sed -i '/^PORTDIR_OVERLAY/d' "+self.settings["chroot_path"]+\
579 -- "/etc/portage/make.conf",\
580 -- "Could not remove PORTDIR_OVERLAY from make.conf",env=self.env)
581 -+ if os.path.exists(self.settings["chroot_path"]+"/etc/portage/make.conf"):
582 -+ if os.path.exists("/usr/bin/gsed"):
583 -+ cmd("gsed -i '/^PORTDIR_OVERLAY/d' "+self.settings["chroot_path"]+\
584 -+ "/etc/portage/make.conf",\
585 -+ "Could not remove PORTDIR_OVERLAY from make.conf",env=self.env)
586 -+ else:
587 -+ cmd("sed -i '/^PORTDIR_OVERLAY/d' "+self.settings["chroot_path"]+\
588 -+ "/etc/portage/make.conf",\
589 -+ "Could not remove PORTDIR_OVERLAY from make.conf",env=self.env)
590 -
591 - """ Clean up old and obsoleted files in /etc """
592 - if os.path.exists(self.settings["stage_path"]+"/etc"):
593 -@@ -1207,9 +1217,14 @@
594 -
595 - print "Creating stage tarball..."
596 -
597 -- cmd("tar -I lbzip2 -cpf "+self.settings["target_path"]+" -C "+\
598 -- self.settings["stage_path"]+" .",\
599 -- "Couldn't create stage tarball",env=self.env)
600 -+ if os.uname()[0] == "Linux":
601 -+ cmd("tar -I lbzip2 -cpf "+self.settings["target_path"]+" -C "+\
602 -+ self.settings["stage_path"]+" .",\
603 -+ "Couldn't create stage tarball",env=self.env)
604 -+ else:
605 -+ cmd("tar cjpf "+self.settings["target_path"]+" -C "+\
606 -+ self.settings["stage_path"]+" .",\
607 -+ "Couldn't create stage tarball",env=self.env)
608 -
609 - self.gen_contents_file(self.settings["target_path"])
610 - self.gen_digest_file(self.settings["target_path"])
611 -diff -Nur catalyst-2.0.12.1.orig/modules/snapshot_target.py catalyst-2.0.12.1/modules/snapshot_target.py
612 ---- catalyst-2.0.12.1.orig/modules/snapshot_target.py 2012-11-02 09:27:51.000000000 +0900
613 -+++ catalyst-2.0.12.1/modules/snapshot_target.py 2012-11-23 21:35:42.000000000 +0900
614 -@@ -50,8 +50,12 @@
615 - self.settings["portdir"]+"/ "+mytmp+"/portage/","Snapshot failure",env=self.env)
616 -
617 - print "Compressing Portage snapshot tarball..."
618 -- cmd("tar -I lbzip2 -cf "+self.settings["snapshot_path"]+" -C "+mytmp+" portage",\
619 -- "Snapshot creation failure",env=self.env)
620 -+ if os.uname()[0] == "Linux":
621 -+ cmd("tar -I lbzip2 -cf "+self.settings["snapshot_path"]+" -C "+mytmp+" portage",\
622 -+ "Snapshot creation failure",env=self.env)
623 -+ else:
624 -+ cmd("tar cjf "+self.settings["snapshot_path"]+" -C "+mytmp+" portage",\
625 -+ "Snapshot creation failure",env=self.env)
626 -
627 - self.gen_contents_file(self.settings["snapshot_path"])
628 - self.gen_digest_file(self.settings["snapshot_path"])
629 -diff -Nur catalyst-2.0.12.1.orig/modules/stage1_target.py catalyst-2.0.12.1/modules/stage1_target.py
630 ---- catalyst-2.0.12.1.orig/modules/stage1_target.py 2012-11-02 09:27:51.000000000 +0900
631 -+++ catalyst-2.0.12.1/modules/stage1_target.py 2012-11-23 21:29:03.000000000 +0900
632 -@@ -92,10 +92,15 @@
633 - # stage_path/proc probably doesn't exist yet, so create it
634 - if not os.path.exists(self.settings["stage_path"]+"/proc"):
635 - os.makedirs(self.settings["stage_path"]+"/proc")
636 -+ if not os.path.exists(self.settings["stage_path"]+"/dev"):
637 -+ os.makedirs(self.settings["stage_path"]+"/dev")
638 -
639 - # alter the mount mappings to bind mount proc onto it
640 - self.mounts.append("/tmp/stage1root/proc")
641 - self.mountmap["/tmp/stage1root/proc"]="/proc"
642 -+ if os.uname()[0] == "FreeBSD":
643 -+ self.mounts.append("/tmp/stage1root/dev")
644 -+ self.mountmap["/tmp/stage1root/dev"]="/dev"
645 -
646 - def set_update_seed(self):
647 - if self.settings.has_key("update_seed"):
648 -diff -Nur catalyst-2.0.12.1.orig/targets/stage3/stage3-chroot.sh catalyst-2.0.12.1/targets/stage3/stage3-chroot.sh
649 ---- catalyst-2.0.12.1.orig/targets/stage3/stage3-chroot.sh 2012-11-02 09:27:51.000000000 +0900
650 -+++ catalyst-2.0.12.1/targets/stage3/stage3-chroot.sh 2012-11-23 21:27:15.000000000 +0900
651 -@@ -5,4 +5,11 @@
652 - ## START BUILD
653 - setup_pkgmgr
654 -
655 --run_merge "-e system"
656 -+if [[ $(uname) == "FreeBSD" ]] ; then
657 -+ # workaround fix bug 425530, 438112, 448256
658 -+ run_merge "-e @world --exclude=sys-apps/portage"
659 -+ run_merge "sys-apps/portage"
660 -+else
661 -+ run_merge "-e system"
662 -+fi
663 -+
664 -diff -Nur catalyst-2.0.12.1.orig/targets/support/chroot-functions.sh catalyst-2.0.12.1/targets/support/chroot-functions.sh
665 ---- catalyst-2.0.12.1.orig/targets/support/chroot-functions.sh 2012-11-02 09:27:51.000000000 +0900
666 -+++ catalyst-2.0.12.1/targets/support/chroot-functions.sh 2012-11-23 21:27:15.000000000 +0900
667 -@@ -413,5 +413,22 @@
668 - Icon=text-editor" > /usr/share/applications/gentoo-handbook.desktop
669 - }
670 -
671 -+# GNU sed wrapper
672 -+sed(){
673 -+ if [ -e /usr/bin/gsed ]
674 -+ then
675 -+ /usr/bin/gsed "$@"
676 -+ elif [ -e /bin/sed ]
677 -+ then
678 -+ /bin/sed "$@"
679 -+ elif [ -e /usr/bin/sed ]
680 -+ then
681 -+ /usr/bin/sed "$@"
682 -+ else
683 -+ echo "ERROR: failed the selection of sed."
684 -+ exit 1
685 -+ fi
686 -+}
687 -+
688 - # We do this everywhere, so why not put it in this script
689 - run_default_funcs
690
691 diff --git a/dev-util/catalyst/files/catalyst-2.0.14-fbsd.patch b/dev-util/catalyst/files/catalyst-2.0.14-fbsd.patch
692 deleted file mode 100644
693 index 56c8de6..0000000
694 --- a/dev-util/catalyst/files/catalyst-2.0.14-fbsd.patch
695 +++ /dev/null
696 @@ -1,236 +0,0 @@
697 -diff --git a/catalyst-2.0.14/arch/x86.py b/catalyst-2.0.14/arch/x86.py
698 -index 0391b79..2b67dba 100644
699 ---- a/catalyst-2.0.14/arch/x86.py
700 -+++ b/catalyst-2.0.14/arch/x86.py
701 -@@ -7,9 +7,12 @@ class generic_x86(builder.generic):
702 - def __init__(self,myspec):
703 - builder.generic.__init__(self,myspec)
704 - if self.settings["buildarch"]=="amd64":
705 -- if not os.path.exists("/bin/linux32") and not os.path.exists("/usr/bin/linux32"):
706 -- raise CatalystError,"required executable linux32 not found (\"emerge setarch\" to fix.)"
707 -- self.settings["CHROOT"]="linux32 chroot"
708 -+ if os.uname()[0] == "Linux":
709 -+ if not os.path.exists("/bin/linux32") and not os.path.exists("/usr/bin/linux32"):
710 -+ raise CatalystError,"required executable linux32 not found (\"emerge setarch\" to fix.)"
711 -+ self.settings["CHROOT"]="linux32 chroot"
712 -+ else:
713 -+ self.settings["CHROOT"]="chroot"
714 - self.settings["crosscompile"] = False;
715 - else:
716 - self.settings["CHROOT"]="chroot"
717 -diff --git a/catalyst-2.0.14/modules/catalyst_support.py b/catalyst-2.0.14/modules/catalyst_support.py
718 -index 316dfa3..a5ae52f 100644
719 ---- a/catalyst-2.0.14/modules/catalyst_support.py
720 -+++ b/catalyst-2.0.14/modules/catalyst_support.py
721 -@@ -108,7 +108,7 @@ contents_map={
722 - #"find" :[calc_contents,"find %(path)s"],
723 - "tar-tv":[calc_contents,"tar tvf %(file)s"],
724 - "tar-tvz":[calc_contents,"tar tvzf %(file)s"],
725 -- "tar-tvj":[calc_contents,"tar -I lbzip2 -tvf %(file)s"],
726 -+ "tar-tvj":[calc_contents,"tar tvjf %(file)s"],
727 - "isoinfo-l":[calc_contents,"isoinfo -l -i %(file)s"],
728 - # isoinfo-f should be a last resort only
729 - "isoinfo-f":[calc_contents,"isoinfo -f -i %(file)s"],
730 -diff --git a/catalyst-2.0.14/modules/generic_stage_target.py b/catalyst-2.0.14/modules/generic_stage_target.py
731 -index 848aca2..b81ccfc 100644
732 ---- a/catalyst-2.0.14/modules/generic_stage_target.py
733 -+++ b/catalyst-2.0.14/modules/generic_stage_target.py
734 -@@ -98,6 +98,14 @@ class generic_stage_target(generic_target):
735 - self.settings["crosscompile"]=(self.settings["hostarch"]!=\
736 - self.settings["buildarch"])
737 -
738 -+ """ FreeBSD's tar doesn't support -I lbzip2 option. """
739 -+ if os.uname()[0] == "Linux":
740 -+ self.settings["tar-cjpf"]="tar -I lbzip2 -cpf"
741 -+ self.settings["tar-xjpf"]="tar -I lbzip2 -xpf"
742 -+ else:
743 -+ self.settings["tar-cjpf"]="tar cjpf"
744 -+ self.settings["tar-xjpf"]="tar xjpf"
745 -+
746 - """ Call arch constructor, pass our settings """
747 - try:
748 - self.arch=self.subarchmap[self.settings["subarch"]](self.settings)
749 -@@ -654,10 +662,10 @@ class generic_stage_target(generic_target):
750 - self.settings["chroot_path"]+\
751 - " (This may take some time) ...\n"
752 - if "bz2" == self.settings["chroot_path"][-3:]:
753 -- unpack_cmd="tar -I lbzip2 -xpf "+self.settings["source_path"]+" -C "+\
754 -+ unpack_cmd=self.settings["tar-xjpf"]+" "+self.settings["source_path"]+" -C "+\
755 - self.settings["chroot_path"]
756 - else:
757 -- unpack_cmd="tar -I lbzip2 -xpf "+self.settings["source_path"]+" -C "+\
758 -+ unpack_cmd=self.settings["tar-xjpf"]+" "+self.settings["source_path"]+" -C "+\
759 - self.settings["chroot_path"]
760 - error_msg="Tarball extraction of "+\
761 - self.settings["source_path"]+" to "+\
762 -@@ -669,10 +677,10 @@ class generic_stage_target(generic_target):
763 - self.settings["chroot_path"]+\
764 - " (This may take some time) ...\n"
765 - if "bz2" == self.settings["chroot_path"][-3:]:
766 -- unpack_cmd="tar -I lbzip2 -xpf "+self.settings["source_path"]+" -C "+\
767 -+ unpack_cmd=self.settings["tar-xjpf"]+" "+self.settings["source_path"]+" -C "+\
768 - self.settings["chroot_path"]
769 - else:
770 -- unpack_cmd="tar -I lbzip2 -xpf "+self.settings["source_path"]+" -C "+\
771 -+ unpack_cmd=self.settings["tar-xjpf"]+" "+self.settings["source_path"]+" -C "+\
772 - self.settings["chroot_path"]
773 - error_msg="Tarball extraction of "+self.settings["source_path"]+\
774 - " to "+self.settings["chroot_path"]+" failed."
775 -@@ -771,7 +779,7 @@ class generic_stage_target(generic_target):
776 - "catalyst-hash")
777 - destdir=self.settings["snapshot_cache_path"]
778 - if "bz2" == self.settings["chroot_path"][-3:]:
779 -- unpack_cmd="tar -I lbzip2 -xpf "+self.settings["snapshot_path"]+" -C "+destdir
780 -+ unpack_cmd=self.settings["tar-xjpf"]+" "+self.settings["snapshot_path"]+" -C "+destdir
781 - else:
782 - unpack_cmd="tar xpf "+self.settings["snapshot_path"]+" -C "+destdir
783 - unpack_errmsg="Error unpacking snapshot"
784 -@@ -790,7 +798,7 @@ class generic_stage_target(generic_target):
785 - cleanup_msg=\
786 - "Cleaning up existing portage tree (This can take a long time)..."
787 - if "bz2" == self.settings["chroot_path"][-3:]:
788 -- unpack_cmd="tar -I lbzip2 -xpf "+self.settings["snapshot_path"]+" -C "+\
789 -+ unpack_cmd=self.settings["tar-xjpf"]+" "+self.settings["snapshot_path"]+" -C "+\
790 - self.settings["chroot_path"]+"/usr"
791 - else:
792 - unpack_cmd="tar xpf "+self.settings["snapshot_path"]+" -C "+\
793 -@@ -905,18 +913,18 @@ class generic_stage_target(generic_target):
794 - src=self.mountmap[x]
795 - if "SNAPCACHE" in self.settings and x == "/usr/portage":
796 - self.snapshot_lock_object.read_lock()
797 -- if os.uname()[0] == "FreeBSD":
798 -- if src == "/dev":
799 -- retval=os.system("mount -t devfs none "+\
800 -- self.settings["chroot_path"]+x)
801 -- else:
802 -- retval=os.system("mount_nullfs "+src+" "+\
803 -+ if src == "tmpfs":
804 -+ if "var_tmpfs_portage" in self.settings:
805 -+ retval=os.system("mount -t tmpfs -o size="+\
806 -+ self.settings["var_tmpfs_portage"]+"G "+src+" "+\
807 - self.settings["chroot_path"]+x)
808 - else:
809 -- if src == "tmpfs":
810 -- if "var_tmpfs_portage" in self.settings:
811 -- retval=os.system("mount -t tmpfs -o size="+\
812 -- self.settings["var_tmpfs_portage"]+"G "+src+" "+\
813 -+ if os.uname()[0] == "FreeBSD":
814 -+ if src == "/dev":
815 -+ retval=os.system("mount -t devfs none "+\
816 -+ self.settings["chroot_path"]+x)
817 -+ else:
818 -+ retval=os.system("mount_nullfs "+src+" "+\
819 - self.settings["chroot_path"]+x)
820 - else:
821 - retval=os.system("mount --bind "+src+" "+\
822 -@@ -1119,9 +1127,15 @@ class generic_stage_target(generic_target):
823 - if os.path.exists(self.settings["chroot_path"]+"/usr/local/portage"):
824 - cmd("rm -rf "+self.settings["chroot_path"]+"/usr/local/portage",\
825 - "Could not remove /usr/local/portage",env=self.env)
826 -- cmd("sed -i '/^PORTDIR_OVERLAY/d' "+self.settings["chroot_path"]+\
827 -- "/etc/portage/make.conf",\
828 -- "Could not remove PORTDIR_OVERLAY from make.conf",env=self.env)
829 -+ if os.path.exists(self.settings["chroot_path"]+"/etc/portage/make.conf"):
830 -+ if os.path.exists("/usr/bin/gsed"):
831 -+ cmd("gsed -i '/^PORTDIR_OVERLAY/d' "+self.settings["chroot_path"]+\
832 -+ "/etc/portage/make.conf",\
833 -+ "Could not remove PORTDIR_OVERLAY from make.conf",env=self.env)
834 -+ else:
835 -+ cmd("sed -i '/^PORTDIR_OVERLAY/d' "+self.settings["chroot_path"]+\
836 -+ "/etc/portage/make.conf",\
837 -+ "Could not remove PORTDIR_OVERLAY from make.conf",env=self.env)
838 -
839 - """ Clean up old and obsoleted files in /etc """
840 - if os.path.exists(self.settings["stage_path"]+"/etc"):
841 -@@ -1215,7 +1229,7 @@ class generic_stage_target(generic_target):
842 -
843 - print "Creating stage tarball..."
844 -
845 -- cmd("tar -I lbzip2 -cpf "+self.settings["target_path"]+" -C "+\
846 -+ cmd(self.settings["tar-cjpf"]+" "+self.settings["target_path"]+" -C "+\
847 - self.settings["stage_path"]+" .",\
848 - "Couldn't create stage tarball",env=self.env)
849 -
850 -diff --git a/catalyst-2.0.14/modules/snapshot_target.py b/catalyst-2.0.14/modules/snapshot_target.py
851 -index e93a86a..a665b94 100644
852 ---- a/catalyst-2.0.14/modules/snapshot_target.py
853 -+++ b/catalyst-2.0.14/modules/snapshot_target.py
854 -@@ -50,8 +50,12 @@ class snapshot_target(generic_stage_target):
855 - self.settings["portdir"]+"/ "+mytmp+"/portage/","Snapshot failure",env=self.env)
856 -
857 - print "Compressing Portage snapshot tarball..."
858 -- cmd("tar -I lbzip2 -cf "+self.settings["snapshot_path"]+" -C "+mytmp+" portage",\
859 -- "Snapshot creation failure",env=self.env)
860 -+ if os.uname()[0] == "Linux":
861 -+ cmd("tar -I lbzip2 -cf "+self.settings["snapshot_path"]+" -C "+mytmp+" portage",\
862 -+ "Snapshot creation failure",env=self.env)
863 -+ else:
864 -+ cmd("tar cjf "+self.settings["snapshot_path"]+" -C "+mytmp+" portage",\
865 -+ "Snapshot creation failure",env=self.env)
866 -
867 - self.gen_contents_file(self.settings["snapshot_path"])
868 - self.gen_digest_file(self.settings["snapshot_path"])
869 -diff --git a/catalyst-2.0.14/modules/stage1_target.py b/catalyst-2.0.14/modules/stage1_target.py
870 -index aa43926..3675bd5 100644
871 ---- a/catalyst-2.0.14/modules/stage1_target.py
872 -+++ b/catalyst-2.0.14/modules/stage1_target.py
873 -@@ -86,10 +86,15 @@ class stage1_target(generic_stage_target):
874 - # stage_path/proc probably doesn't exist yet, so create it
875 - if not os.path.exists(self.settings["stage_path"]+"/proc"):
876 - os.makedirs(self.settings["stage_path"]+"/proc")
877 -+ if not os.path.exists(self.settings["stage_path"]+"/dev"):
878 -+ os.makedirs(self.settings["stage_path"]+"/dev")
879 -
880 - # alter the mount mappings to bind mount proc onto it
881 - self.mounts.append("/tmp/stage1root/proc")
882 - self.mountmap["/tmp/stage1root/proc"]="/proc"
883 -+ if os.uname()[0] == "FreeBSD":
884 -+ self.mounts.append("/tmp/stage1root/dev")
885 -+ self.mountmap["/tmp/stage1root/dev"]="/dev"
886 -
887 - def register(foo):
888 - foo.update({"stage1":stage1_target})
889 -diff --git a/catalyst-2.0.14/targets/stage3/stage3-chroot.sh b/catalyst-2.0.14/targets/stage3/stage3-chroot.sh
890 -index 6cf9106..e96c7fd 100644
891 ---- a/catalyst-2.0.14/targets/stage3/stage3-chroot.sh
892 -+++ b/catalyst-2.0.14/targets/stage3/stage3-chroot.sh
893 -@@ -5,4 +5,11 @@ source /tmp/chroot-functions.sh
894 - ## START BUILD
895 - setup_pkgmgr
896 -
897 --run_merge "-e @system"
898 -+if [[ $(uname) == "FreeBSD" ]] ; then
899 -+ # workaround fix bug 425530, 438112, 448256
900 -+ run_merge "-e @world --exclude=sys-apps/portage"
901 -+ run_merge "sys-apps/portage"
902 -+else
903 -+ run_merge "-e system"
904 -+fi
905 -+
906 -diff --git a/catalyst-2.0.14/targets/support/chroot-functions.sh b/catalyst-2.0.14/targets/support/chroot-functions.sh
907 -index 5c30537..848be40 100644
908 ---- a/catalyst-2.0.14/targets/support/chroot-functions.sh
909 -+++ b/catalyst-2.0.14/targets/support/chroot-functions.sh
910 -@@ -414,5 +414,22 @@ Comment=This is a link to the local copy of the Gentoo Linux Handbook.
911 - Icon=text-editor" > /usr/share/applications/gentoo-handbook.desktop
912 - }
913 -
914 -+# GNU sed wrapper
915 -+sed(){
916 -+ if [ -e /usr/bin/gsed ]
917 -+ then
918 -+ /usr/bin/gsed "$@"
919 -+ elif [ -e /bin/sed ]
920 -+ then
921 -+ /bin/sed "$@"
922 -+ elif [ -e /usr/bin/sed ]
923 -+ then
924 -+ /usr/bin/sed "$@"
925 -+ else
926 -+ echo "ERROR: failed the selection of sed."
927 -+ exit 1
928 -+ fi
929 -+}
930 -+
931 - # We do this everywhere, so why not put it in this script
932 - run_default_funcs
933
934 diff --git a/dev-util/catalyst/files/catalyst-2.0.15-fbsd-extra.patch b/dev-util/catalyst/files/catalyst-2.0.15-fbsd-extra.patch
935 deleted file mode 100644
936 index 8f32ce0..0000000
937 --- a/dev-util/catalyst/files/catalyst-2.0.15-fbsd-extra.patch
938 +++ /dev/null
939 @@ -1,106 +0,0 @@
940 -diff --git a/catalyst-2.0.17/targets/stage1/stage1-chroot.sh b/catalyst-2.0.17/targets/stage1/stage1-chroot.sh
941 -index ed83f38..09bfee6 100644
942 ---- a/catalyst-2.0.17/targets/stage1/stage1-chroot.sh
943 -+++ b/catalyst-2.0.17/targets/stage1/stage1-chroot.sh
944 -@@ -1,5 +1,9 @@
945 - #!/bin/bash
946 --
947 -+if [[ -e /usr/lib/portage/pym/portage/const.py ]] ; then
948 -+ if [[ $(grep EAPI /usr/lib/portage/pym/portage/const.py | awk '{print $3}') -eq 4 ]] ; then
949 -+ find /usr/portage/profiles -name eapi -exec bash -c 'echo 4 > {}' \;
950 -+ fi
951 -+fi
952 - source /tmp/chroot-functions.sh
953 -
954 - # We do this first, so we know our package list for --debug
955 -@@ -21,17 +25,53 @@ then
956 - fi
957 -
958 - ## Setup seed pkgmgr to ensure latest
959 -+
960 -+if [[ ! -e /usr/lib/python-exec ]]; then
961 -+ emerge -p --nodeps dev-lang/python-exec
962 -+ if [[ $? -eq 0 ]]; then
963 -+ clst_root_path=/ run_merge "--buildpkg=n --newuse --nodeps dev-lang/python-exec"
964 -+ fi
965 -+fi
966 - clst_root_path=/ setup_pkgmgr
967 -+[[ 4 -eq $(cat /usr/portage/profiles/eapi) ]] && find /usr/portage/profiles -name eapi -exec bash -c 'echo 5 > {}' \;
968 -
969 - # Update stage3
970 - if [ -n "${clst_update_seed}" ]; then
971 - if [ "${clst_update_seed}" == "yes" ]; then
972 - echo "Updating seed stage..."
973 -+ if [ $(uname) == "FreeBSD" ] ; then
974 -+ if [ $(uname -p) == "amd64" ] && [ ! -e /libexec/ld-elf32.so.1 ] ; then
975 -+ [[ ! -e /etc/portage/profile ]] && mkdir -p /etc/portage/profile
976 -+ echo "sys-freebsd/freebsd-libexec abi_x86_32" >> /etc/portage/profile/package.use.mask
977 -+ fi
978 -+ if [ $(uname -p) == "i386" ] ; then
979 -+ if [ ! -d /etc/portage/package.mask ] ; then
980 -+ echo ">app-misc/pax-utils-0.8" >> /etc/portage/package.mask
981 -+ else
982 -+ echo ">app-misc/pax-utils-0.8" >> /etc/portage/package.mask/pax-utils
983 -+ fi
984 -+ fi
985 -+ gcc -v &> /tmp/gccv.result
986 -+ export CHOST=`grep Target /tmp/gccv.result | awk '{print $2}'`
987 -+ [[ ! -e /usr/bin/cc ]] && cp /usr/bin/gcc /usr/bin/cc
988 -+ clst_root_path=/ run_merge "-C dev-libs/libelf dev-libs/libexecinfo dev-libs/libiconv sys-freebsd/freebsd-sources"
989 -+ clst_root_path=/ USE="-build-kernel" run_merge "--buildpkg=n --update --newuse --nodeps sys-freebsd/freebsd-mk-defs sys-freebsd/freebsd-sources binutils"
990 -+ clst_root_path=/ run_merge "--buildpkg=n --update --newuse --nodeps sys-freebsd/freebsd-libexec"
991 -+ clst_root_path=/ USE=build run_merge "--buildpkg=n --update --newuse --nodeps sys-freebsd/freebsd-lib sys-freebsd/freebsd-share"
992 -+ [[ -e /etc/portage/profile/package.use.mask ]] && sed -i '/sys-freebsd/freebsd-libexec abi_x86_32/d' /etc/portage/profile/package.use.mask
993 -+ clst_root_path=/ USE="-build-kernel" run_merge "--buildpkg=n --update --newuse freebsd-bin freebsd-lib freebsd-libexec freebsd-mk-defs freebsd-pam-modules freebsd-sbin freebsd-share freebsd-ubin freebsd-usbin"
994 -+ clst_root_path=/ USE="internal-glib" run_merge "--buildpkg=n --update --newuse dev-util/pkgconfig"
995 -+ [[ -e /usr/lib/libc++.so ]] && clst_root_path=/ run_merge "--buildpkg=n --update --newuse sys-libs/libcxx sys-libs/libcxxrt"
996 -+ clst_root_path=/ run_merge "--buildpkg=n dev-libs/libxml2 dev-libs/libxslt dev-libs/glib app-arch/libarchive sys-libs/zlib"
997 -+ unset CHOST
998 -+ clst_root_path=/ run_merge "--buildpkg=n sys-devel/libtool"
999 -+ fi
1000 - if [ -n "${clst_update_seed_command}" ]; then
1001 -- clst_root_path=/ run_merge "--buildpkg=n ${clst_update_seed_command}"
1002 -+ clst_root_path=/ USE="-build-kernel -fortran" run_merge "--buildpkg=n ${clst_update_seed_command}"
1003 - else
1004 -- clst_root_path=/ run_merge "--update --deep --newuse --complete-graph --rebuild-if-new-ver gcc"
1005 -+ clst_root_path=/ USE="-build-kernel -fortran" run_merge "--update --deep --newuse --complete-graph --rebuild-if-new-ver gcc"
1006 - fi
1007 -+ [[ $(uname) == "FreeBSD" ]] && clst_root_path=/ run_merge "--buildpkg=n sys-devel/libtool"
1008 - elif [ "${clst_update_seed}" != "no" ]; then
1009 - echo "Invalid setting for update_seed: ${clst_update_seed}"
1010 - exit 1
1011 -@@ -57,6 +97,19 @@ sed -i '/USE="${USE} -build"/d' /etc/portage/make.conf
1012 - [ -e /etc/portage/make.conf ] && \
1013 - echo "USE=\"-* build ${BOOTSTRAP_USE} ${clst_HOSTUSE}\"" \
1014 - >> /etc/portage/make.conf
1015 -+[[ $(uname) == "FreeBSD" ]] && run_merge "--oneshot sys-auth/openpam"
1016 - run_merge "--oneshot ${clst_buildpkgs}"
1017 - sed -i "/USE=\"-* build ${BOOTSTRAP_USE} ${clst_HOSTUSE}\"/d" \
1018 - /etc/portage/make.conf
1019 -+
1020 -+if [ $(uname) == "FreeBSD" ] ; then
1021 -+ if [ -n "${clst_update_seed}" ]; then
1022 -+ if [ $(uname -p) == "i386" ] ; then
1023 -+ if [ ! -d /etc/portage/package.mask ] ; then
1024 -+ sed -i "/pax-utils/d" /etc/portage/package.mask
1025 -+ else
1026 -+ rm /etc/portage/package.mask/pax-utils
1027 -+ fi
1028 -+ fi
1029 -+ fi
1030 -+fi
1031 -diff --git a/catalyst-2.0.17/targets/support/chroot-functions.sh b/catalyst-2.0.17/targets/support/chroot-functions.sh
1032 -index 848be40..d0212c5 100644
1033 ---- a/catalyst-2.0.17/targets/support/chroot-functions.sh
1034 -+++ b/catalyst-2.0.17/targets/support/chroot-functions.sh
1035 -@@ -2,6 +2,10 @@
1036 -
1037 - # Set the profile
1038 - eselect profile set ${clst_target_profile}
1039 -+if [ $? -ne 0 ] ; then
1040 -+ rm -rf /etc/make.profile /etc/portage/make.profile
1041 -+ ln -s ../usr/portage/profiles/${clst_target_profile} /etc/make.profile
1042 -+fi
1043 -
1044 - # Trap these signals and kill ourselves if recieved
1045 - # Force ourselves to die if any of these signals are recieved
1046
1047 diff --git a/dev-util/catalyst/files/catalyst-9999-sed.patch b/dev-util/catalyst/files/catalyst-9999-sed.patch
1048 deleted file mode 100644
1049 index d7ef1b3..0000000
1050 --- a/dev-util/catalyst/files/catalyst-9999-sed.patch
1051 +++ /dev/null
1052 @@ -1,302 +0,0 @@
1053 -diff --git a/catalyst-3.0_rc1/catalyst/defaults.py b/catalyst-3.0_rc1/catalyst/defaults.py
1054 -index a0e3ea8..67ad8f7 100644
1055 ---- a/catalyst-3.0_rc1/catalyst/defaults.py
1056 -+++ b/catalyst-3.0_rc1/catalyst/defaults.py
1057 -@@ -39,6 +39,7 @@ confdefaults={
1058 - "PythonDir": "./catalyst",
1059 - "repo_basedir": "/usr",
1060 - "repo_name": "portage",
1061 -+ "sed": "sed",
1062 - "sharedir": "/usr/share/catalyst",
1063 - "shdir": "/usr/share/catalyst/targets/",
1064 - "snapshot_cache": "/var/tmp/catalyst/snapshot_cache",
1065 -diff --git a/catalyst-3.0_rc1/catalyst/main.py b/catalyst-3.0_rc1/catalyst/main.py
1066 -index 6608b86..4a0e515 100644
1067 ---- a/catalyst-3.0_rc1/catalyst/main.py
1068 -+++ b/catalyst-3.0_rc1/catalyst/main.py
1069 -@@ -343,6 +343,12 @@ def _main(parser, opts):
1070 - conf_values['compress_definitions'] = COMPRESS_DEFINITIONS
1071 - # TODO add capability to config/spec new definitions
1072 -
1073 -+ # detect GNU sed
1074 -+ for sed in ('/usr/bin/gsed', '/bin/sed', '/usr/bin/sed'):
1075 -+ if os.path.exists(sed):
1076 -+ conf_values["sed"] = sed
1077 -+ break
1078 -+
1079 - # Start checking that digests are valid now that hash_map is initialized
1080 - if "digests" in conf_values:
1081 - digests = set(conf_values['digests'].split())
1082 -diff --git a/catalyst-3.0_rc1/targets/stage1/stage1-chroot.sh b/catalyst-3.0_rc1/targets/stage1/stage1-chroot.sh
1083 -index fbda84b..28bd743 100755
1084 ---- a/catalyst-3.0_rc1/targets/stage1/stage1-chroot.sh
1085 -+++ b/catalyst-3.0_rc1/targets/stage1/stage1-chroot.sh
1086 -@@ -49,7 +49,7 @@ make_destpath /tmp/stage1root
1087 - # First, we drop in a known-good baselayout
1088 - [ -e ${clst_make_conf} ] && echo "USE=\"${USE} -build\"" >> ${clst_make_conf}
1089 - run_merge "--oneshot --nodeps sys-apps/baselayout"
1090 --sed -i "/USE=\"${USE} -build\"/d" ${clst_make_conf}
1091 -+${clst_sed} -i "/USE=\"${USE} -build\"/d" ${clst_make_conf}
1092 -
1093 - # Now, we install our packages
1094 - if [ -e ${clst_make_conf} ]; then
1095 -@@ -62,10 +62,10 @@ if [ -e ${clst_make_conf} ]; then
1096 - fi
1097 -
1098 - run_merge "--oneshot ${clst_buildpkgs}"
1099 --sed -i "/USE=\"-* build ${BOOTSTRAP_USE} ${clst_HOSTUSE}\"/d" \
1100 -+${clst_sed} -i "/USE=\"-* build ${BOOTSTRAP_USE} ${clst_HOSTUSE}\"/d" \
1101 - ${clst_make_conf}
1102 - for useexpand in ${clst_HOSTUSEEXPAND}; do
1103 - x="clst_${useexpand}"
1104 -- sed -i "/${useexpand}=\"${!x}\"/d" \
1105 -+ ${clst_sed} -i "/${useexpand}=\"${!x}\"/d" \
1106 - ${clst_make_conf}
1107 - done
1108 -diff --git a/catalyst-3.0_rc1/targets/stage2/stage2-chroot.sh b/catalyst-3.0_rc1/targets/stage2/stage2-chroot.sh
1109 -index 38dfea3..30dc47a 100755
1110 ---- a/catalyst-3.0_rc1/targets/stage2/stage2-chroot.sh
1111 -+++ b/catalyst-3.0_rc1/targets/stage2/stage2-chroot.sh
1112 -@@ -21,5 +21,5 @@ fi
1113 - ${clst_repo_basedir}/${clst_repo_name}/scripts/bootstrap.sh ${bootstrap_opts} || exit 1
1114 -
1115 - # Clean-up USE again
1116 --sed -i "/USE=\"\${USE} bindist\"/d" "${clst_make_conf}"
1117 --sed -i "/USE=\"bindist\"/d" "${clst_make_conf}"
1118 -+${clst_sed} -i "/USE=\"\${USE} bindist\"/d" "${clst_make_conf}"
1119 -+${clst_sed} -i "/USE=\"bindist\"/d" "${clst_make_conf}"
1120 -diff --git a/catalyst-3.0_rc1/targets/support/bootloader-setup.sh b/catalyst-3.0_rc1/targets/support/bootloader-setup.sh
1121 -index d9e2620..ffe7be2 100755
1122 ---- a/catalyst-3.0_rc1/targets/support/bootloader-setup.sh
1123 -+++ b/catalyst-3.0_rc1/targets/support/bootloader-setup.sh
1124 -@@ -79,7 +79,7 @@ case ${clst_hostarch} in
1125 - echo "message=/boot/boot.msg" >> ${icfg}
1126 -
1127 - # Here is where I fix up the boot.msg file.
1128 -- sed -e 's/ARCH/PowerPC/' \
1129 -+ ${clst_sed} -e 's/ARCH/PowerPC/' \
1130 - -e 's/HARDWARE/Apple and IBM hardware/' \
1131 - -i $kmsg
1132 -
1133 -diff --git a/catalyst-3.0_rc1/targets/support/chroot-functions.sh b/catalyst-3.0_rc1/targets/support/chroot-functions.sh
1134 -index 456ae4c..004e7c3 100755
1135 ---- a/catalyst-3.0_rc1/targets/support/chroot-functions.sh
1136 -+++ b/catalyst-3.0_rc1/targets/support/chroot-functions.sh
1137 -@@ -87,7 +87,7 @@ setup_myfeatures(){
1138 - else
1139 - clst_root_path=/ run_merge --oneshot --noreplace sys-devel/distcc || exit 1
1140 - fi
1141 -- sed -i '/USE="${USE} -avahi -gtk -gnome"/d' ${clst_make_conf}
1142 -+ ${clst_sed} -i '/USE="${USE} -avahi -gtk -gnome"/d' ${clst_make_conf}
1143 - mkdir -p /etc/distcc
1144 - echo "${clst_distcc_hosts}" > /etc/distcc/hosts
1145 -
1146 -@@ -186,7 +186,7 @@ setup_pkgmgr(){
1147 - echo "Adding USE=\"\${USE} $1\" to make.conf for portage build"
1148 - [ -e "${clst_make_conf}" ] && echo "USE=\"\${USE} $1\"" >> "${clst_make_conf}"
1149 - run_merge --oneshot --update --newuse sys-apps/portage
1150 -- sed -i "/USE=\"\${USE} $1\"/d" "${clst_make_conf}"
1151 -+ ${clst_sed} -i "/USE=\"\${USE} $1\"/d" "${clst_make_conf}"
1152 - else
1153 - run_merge --oneshot --update --newuse sys-apps/portage
1154 - fi
1155 -@@ -241,8 +241,8 @@ cleanup_stages() {
1156 -
1157 - # Remove bindist from use
1158 - # this is handled independantly in stage2, changes here should be mirrored there
1159 -- sed -i "/USE=\"\${USE} bindist\"/d" "${clst_make_conf}"
1160 -- sed -i "/USE=\"bindist\"/d" "${clst_make_conf}"
1161 -+ ${clst_sed} -i "/USE=\"\${USE} bindist\"/d" "${clst_make_conf}"
1162 -+ ${clst_sed} -i "/USE=\"bindist\"/d" "${clst_make_conf}"
1163 -
1164 - [ "${clst_target}" != "tinderbox" ] && rm -f /var/log/emerge.log /var/log/portage/elog/*
1165 - }
1166 -@@ -260,7 +260,7 @@ die() {
1167 -
1168 - make_destpath() {
1169 - # ROOT is / by default, so remove any ROOT= settings from make.conf
1170 -- sed -i '/ROOT=/d' ${clst_make_conf}
1171 -+ ${clst_sed} -i '/ROOT=/d' ${clst_make_conf}
1172 - export ROOT=/
1173 - if [ "${1}" != "/" -a -n "${1}" ]
1174 - then
1175 -diff --git a/catalyst-3.0_rc1/targets/support/kmerge.sh b/catalyst-3.0_rc1/targets/support/kmerge.sh
1176 -index 3d4afea..68cd3f2 100755
1177 ---- a/catalyst-3.0_rc1/targets/support/kmerge.sh
1178 -+++ b/catalyst-3.0_rc1/targets/support/kmerge.sh
1179 -@@ -245,7 +245,7 @@ then
1180 - if [ ! "${clst_kextraversion}" = "" ]
1181 - then
1182 - echo "Setting extraversion to ${clst_kextraversion}"
1183 -- sed -i -e "s:EXTRAVERSION \(=.*\):EXTRAVERSION \1-${clst_kextraversion}:" /usr/src/linux/Makefile
1184 -+ ${clst_sed} -i -e "s:EXTRAVERSION \(=.*\):EXTRAVERSION \1-${clst_kextraversion}:" /usr/src/linux/Makefile
1185 - echo ${clst_kextraversion} > /tmp/kerncache/${clst_kname}/${clst_kname}-${clst_version_stamp}.EXTRAVERSION
1186 - else
1187 - touch /tmp/kerncache/${clst_kname}/${clst_kname}-${clst_version_stamp}.EXTRAVERSION
1188 -@@ -262,7 +262,7 @@ $(portageq contents / $(portageq best_visible / "${clst_ksource}" 2>/dev/null) 2
1189 - if [ ! "${clst_kextraversion}" = "" ]
1190 - then
1191 - echo "Setting extraversion to ${clst_kextraversion}"
1192 -- sed -i -e "s:EXTRAVERSION \(=.*\):EXTRAVERSION \1-${clst_kextraversion}:" /usr/src/linux/Makefile
1193 -+ ${clst_sed} -i -e "s:EXTRAVERSION \(=.*\):EXTRAVERSION \1-${clst_kextraversion}:" /usr/src/linux/Makefile
1194 - fi
1195 - fi
1196 -
1197 -@@ -275,12 +275,12 @@ make_destpath
1198 -
1199 -
1200 - build_kernel
1201 --sed -i "/USE=\"\${USE} ${clst_kernel_use} \"/d" ${clst_make_conf}
1202 -+${clst_sed} -i "/USE=\"\${USE} ${clst_kernel_use} \"/d" ${clst_make_conf}
1203 - # grep out the kernel version so that we can do our modules magic
1204 - VER=`grep ^VERSION\ \= /usr/src/linux/Makefile | awk '{ print $3 };'`
1205 - PAT=`grep ^PATCHLEVEL\ \= /usr/src/linux/Makefile | awk '{ print $3 };'`
1206 - SUB=`grep ^SUBLEVEL\ \= /usr/src/linux/Makefile | awk '{ print $3 };'`
1207 --EXV=`grep ^EXTRAVERSION\ \= /usr/src/linux/Makefile | sed -e "s/EXTRAVERSION =//" -e "s/ //g"`
1208 -+EXV=`grep ^EXTRAVERSION\ \= /usr/src/linux/Makefile | ${clst_sed} -e "s/EXTRAVERSION =//" -e "s/ //g"`
1209 - clst_fudgeuname=${VER}.${PAT}.${SUB}${EXV}
1210 -
1211 - unset USE
1212 -diff --git a/catalyst-3.0_rc1/targets/support/livecdfs-update.sh b/catalyst-3.0_rc1/targets/support/livecdfs-update.sh
1213 -index 31cdf04..2c551b4 100755
1214 ---- a/catalyst-3.0_rc1/targets/support/livecdfs-update.sh
1215 -+++ b/catalyst-3.0_rc1/targets/support/livecdfs-update.sh
1216 -@@ -7,7 +7,7 @@ source /tmp/chroot-functions.sh
1217 - # Allow root logins to our CD by default
1218 - if [ -e /etc/ssh/sshd_config ]
1219 - then
1220 -- sed -i 's:^#PermitRootLogin\ yes:PermitRootLogin\ yes:' \
1221 -+ ${clst_sed} -i 's:^#PermitRootLogin\ yes:PermitRootLogin\ yes:' \
1222 - /etc/ssh/sshd_config
1223 - fi
1224 -
1225 -@@ -73,7 +73,7 @@ fi
1226 - # Setup sudoers
1227 - if [ -f /etc/sudoers ]
1228 - then
1229 -- sed -i '/NOPASSWD: ALL/ s/^# //' /etc/sudoers
1230 -+ ${clst_sed} -i '/NOPASSWD: ALL/ s/^# //' /etc/sudoers
1231 - fi
1232 -
1233 - # Setup links for ethernet devices
1234 -@@ -113,7 +113,7 @@ echo "####################################################" >> ${clst_make_conf}
1235 - cat ${clst_make_conf}.old >> ${clst_make_conf}
1236 -
1237 - # devfs tweaks
1238 --[ -e /etc/devfsd.conf ] && sed -i '/dev-state/ s:^:#:' /etc/devfsd.conf
1239 -+[ -e /etc/devfsd.conf ] && ${clst_sed} -i '/dev-state/ s:^:#:' /etc/devfsd.conf
1240 -
1241 - # Add some helpful aliases
1242 - echo "alias cp='cp -i'" >> /etc/profile
1243 -@@ -153,10 +153,10 @@ fi
1244 - # Setup configured display manager
1245 - if [ -n "${clst_livecd_xdm}" ]
1246 - then
1247 -- sed -i \
1248 -+ ${clst_sed} -i \
1249 - -e "s:^#\\?DISPLAYMANAGER=.\+$:DISPLAYMANAGER=\"${clst_livecd_xdm}\":" \
1250 - /etc/rc.conf
1251 -- sed -i \
1252 -+ ${clst_sed} -i \
1253 - -e "s:^#\\?DISPLAYMANAGER=.\+$:DISPLAYMANAGER=\"${clst_livecd_xdm}\":" \
1254 - /etc/conf.d/xdm
1255 - fi
1256 -@@ -175,21 +175,21 @@ case ${clst_livecd_type} in
1257 - gentoo-release-universal)
1258 - cat /etc/generic.motd.txt /etc/universal.motd.txt \
1259 - /etc/minimal.motd.txt > /etc/motd
1260 -- sed -i 's:^##GREETING:Welcome to the Gentoo Linux Universal Installation CD!:' /etc/motd
1261 -+ ${clst_sed} -i 's:^##GREETING:Welcome to the Gentoo Linux Universal Installation CD!:' /etc/motd
1262 - ;;
1263 - gentoo-release-minimal)
1264 - cat /etc/generic.motd.txt /etc/minimal.motd.txt > /etc/motd
1265 -- sed -i 's:^##GREETING:Welcome to the Gentoo Linux Minimal Installation CD!:' /etc/motd
1266 -+ ${clst_sed} -i 's:^##GREETING:Welcome to the Gentoo Linux Minimal Installation CD!:' /etc/motd
1267 - ;;
1268 - gentoo-release-live*)
1269 - cat /etc/generic.motd.txt \
1270 - /etc/minimal.motd.txt /etc/livecd.motd.txt > /etc/motd
1271 -- sed -i -e 's:^##GREETING:Welcome to the Gentoo Linux LiveCD!:' \
1272 -+ ${clst_sed} -i -e 's:^##GREETING:Welcome to the Gentoo Linux LiveCD!:' \
1273 - -e "s:##DISPLAY_MANAGER:${clst_livecd_xdm}:" /etc/motd
1274 - ;;
1275 - gentoo-gamecd)
1276 - cat /etc/generic.motd.txt /etc/gamecd.motd.txt > /etc/motd
1277 -- sed -i 's:^##GREETING:Welcome to the Gentoo Linux ##GAME_NAME GameCD!:' /etc/motd
1278 -+ ${clst_sed} -i 's:^##GREETING:Welcome to the Gentoo Linux ##GAME_NAME GameCD!:' /etc/motd
1279 - ;;
1280 - esac
1281 -
1282 -@@ -200,7 +200,7 @@ if [ -n "${clst_livecd_splash_theme}" ]
1283 - then
1284 - if [ -d /etc/splash/${clst_livecd_splash_theme} ]
1285 - then
1286 -- sed -i \
1287 -+ ${clst_sed} -i \
1288 - -e "s:# SPLASH_THEME=\"gentoo\":SPLASH_THEME=\"${clst_livecd_splash_theme}\":" \
1289 - -e "/^# SPLASH_TTYS=/ s/^#//" \
1290 - /etc/conf.d/splash
1291 -@@ -229,7 +229,7 @@ case ${clst_livecd_type} in
1292 - rm /tmp/gamecd.conf
1293 -
1294 - # Here we replace out game information into several files
1295 -- sed -i -e "s:##GAME_NAME:${GAME_NAME}:" /etc/motd
1296 -+ ${clst_sed} -i -e "s:##GAME_NAME:${GAME_NAME}:" /etc/motd
1297 -
1298 - # Here we setup our xinitrc
1299 - echo "exec ${GAME_EXECUTABLE}" > /etc/X11/xinit/xinitrc
1300 -@@ -276,7 +276,7 @@ case ${clst_livecd_type} in
1301 - /etc/X11/gdm/custom.conf
1302 - else
1303 - cp -f /etc/X11/gdm/gdm.conf /etc/X11/gdm/gdm.conf.old
1304 -- sed -i \
1305 -+ ${clst_sed} -i \
1306 - -e 's:TimedLoginEnable=false:TimedLoginEnable=true:' \
1307 - -e 's:TimedLoginDelay=30:TimedLoginDelay=10:' \
1308 - -e 's:AllowRemoteRoot=true:AllowRemoteRoot=false:' \
1309 -@@ -286,7 +286,7 @@ case ${clst_livecd_type} in
1310 -
1311 - if [ -n "${clst_livecd_users}" ] && [ -n "${first_user}" ]
1312 - then
1313 -- sed -i \
1314 -+ ${clst_sed} -i \
1315 - -e "s:TimedLogin=:TimedLogin=${first_user}:" \
1316 - /etc/X11/gdm/gdm.conf
1317 - fi
1318 -@@ -296,7 +296,7 @@ case ${clst_livecd_type} in
1319 - # This gives us our list of system packages for the installer
1320 - mkdir -p /usr/livecd
1321 - ### XXX: Andrew says we don't need this anymore
1322 -- USE="-* $(cat /var/db/pkg/sys-libs/glibc*/USE)" emerge -eqp @system | grep -e '^\[ebuild' | sed -e 's:^\[ebuild .\+\] ::' -e 's: .\+$::' > /usr/livecd/systempkgs.txt
1323 -+ USE="-* $(cat /var/db/pkg/sys-libs/glibc*/USE)" emerge -eqp @system | grep -e '^\[ebuild' | ${clst_sed} -e 's:^\[ebuild .\+\] ::' -e 's: .\+$::' > /usr/livecd/systempkgs.txt
1324 -
1325 - # This is my hack to reduce tmpfs usage
1326 - cp -r ${clst_repo_basedir}/${clst_repo_name}/profiles /usr/livecd
1327 -@@ -331,10 +331,10 @@ case ${clst_livecd_type} in
1328 - /home/${username}/Desktop
1329 - cp -f /usr/share/applications/installer-dialog.desktop \
1330 - /home/${username}/Desktop
1331 -- sed -i -e \
1332 -+ ${clst_sed} -i -e \
1333 - 's:Exec=installer-dialog:Exec=sudo installer-dialog:' \
1334 - /home/${username}/Desktop/installer-dialog.desktop
1335 -- sed -i -e 's:Exec=installer-gtk:Exec=installer:' \
1336 -+ ${clst_sed} -i -e 's:Exec=installer-gtk:Exec=installer:' \
1337 - /home/${username}/Desktop/installer-gtk.desktop
1338 - fi
1339 - chown -R ${username}:100 /home/${username}
1340 -@@ -369,12 +369,12 @@ esac
1341 - # We want the first user to be used when auto-starting X
1342 - if [ -e /etc/startx ]
1343 - then
1344 -- sed -i "s:##STARTX:echo startx | su - '${first_user}':" /root/.bashrc
1345 -+ ${clst_sed} -i "s:##STARTX:echo startx | su - '${first_user}':" /root/.bashrc
1346 - fi
1347 -
1348 - if [ -e /lib/rcscripts/addons/udev-start.sh ]
1349 - then
1350 -- sed -i "s:\t\[\[ -x /sbin/evms_activate:\t\[\[ -x \${CDBOOT} \]\] \&\& \[\[ -x /sbin/evms_activate:" /lib/rcscripts/addons/udev-start.sh
1351 -+ ${clst_sed} -i "s:\t\[\[ -x /sbin/evms_activate:\t\[\[ -x \${CDBOOT} \]\] \&\& \[\[ -x /sbin/evms_activate:" /lib/rcscripts/addons/udev-start.sh
1352 - fi
1353 -
1354 - env-update
1355
1356 diff --git a/dev-util/catalyst/files/catalyst-9999-tmpfs.patch b/dev-util/catalyst/files/catalyst-9999-tmpfs.patch
1357 deleted file mode 100644
1358 index 9a41f49..0000000
1359 --- a/dev-util/catalyst/files/catalyst-9999-tmpfs.patch
1360 +++ /dev/null
1361 @@ -1,40 +0,0 @@
1362 -diff --git a/catalyst/base/stagebase.py b/catalyst/base/stagebase.py
1363 -index 68ccb79..966d872 100644
1364 ---- a/catalyst/base/stagebase.py
1365 -+++ b/catalyst/base/stagebase.py
1366 -@@ -935,21 +935,22 @@ class StageBase(TargetBase, ClearBase, GenBase):
1367 - if "snapcache" in self.settings["options"] and x == "portdir":
1368 - self.snapcache_lock.read_lock()
1369 - _cmd = None
1370 -- if os.uname()[0] == "FreeBSD":
1371 -- if src == "/dev":
1372 -- _cmd = ['mount', '-t', 'devfs', 'none', target]
1373 -- else:
1374 -- _cmd = ['mount_nullfs', src, target]
1375 -+ if src == "tmpfs":
1376 -+ if "var_tmpfs_portage" in self.settings:
1377 -+ _cmd = ['mount', '-t', 'tmpfs',
1378 -+ '-o', 'size=' + self.settings['var_tmpfs_portage'] + 'G',
1379 -+ src, target]
1380 - else:
1381 -- if src == "tmpfs":
1382 -- if "var_tmpfs_portage" in self.settings:
1383 -- _cmd = ['mount', '-t', 'tmpfs',
1384 -- '-o', 'size=' + self.settings['var_tmpfs_portage'] + 'G',
1385 -- src, target]
1386 -- elif src == "shmfs":
1387 -- _cmd = ['mount', '-t', 'tmpfs', '-o', 'noexec,nosuid,nodev', 'shm', target]
1388 -+ if os.uname()[0] == "FreeBSD":
1389 -+ if src == "/dev":
1390 -+ _cmd = ['mount', '-t', 'devfs', 'none', target]
1391 -+ else:
1392 -+ _cmd = ['mount_nullfs', src, target]
1393 - else:
1394 -- _cmd = ['mount', '--bind', src, target]
1395 -+ if src == "shmfs":
1396 -+ _cmd = ['mount', '-t', 'tmpfs', '-o', 'noexec,nosuid,nodev', 'shm', target]
1397 -+ else:
1398 -+ _cmd = ['mount', '--bind', src, target]
1399 - if _cmd:
1400 - log.debug('bind(); _cmd = %s', _cmd)
1401 - cmd(_cmd, env=self.env, fail_func=self.unbind)