1 |
On Wednesday, May 21, 2014 11:11:02 PM Rich Freeman wrote: |
2 |
> On Wed, May 21, 2014 at 10:10 PM, <ny6p01@×××××.com> wrote: |
3 |
> > I run a script that syncs portage, updates @world, depcleans, |
4 |
> > revdep-rebuild and finally runs dispatch-conf -- about once weekly. Keeps |
5 |
> > my system in fine trim. :) |
6 |
> |
7 |
> This one is a gem - I forget where I saw it (likely planet, but maybe |
8 |
> it was on a list). Stick it in your crontab. I will warn you that |
9 |
> sometimes it chokes on its own output and obviously it can't build |
10 |
> binpkgs for anything more than one step down the dependency tree. |
11 |
> However, when my weekly chromium build runs at 2AM and I can just |
12 |
> install it (with -k) the next morning it is a nice thing indeed. You |
13 |
> still get full control over USE flags/etc, but most of the convenience |
14 |
> of a binary distro. |
15 |
> |
16 |
> #!/bin/sh |
17 |
> |
18 |
> LIST=$(mktemp); |
19 |
> |
20 |
> emerge -puD --changed-use --color=n --columns --quiet=y --with-bdeps=y |
21 |
> world | awk '{print $2}' > ${LIST}; |
22 |
> |
23 |
> for PACKAGE in $(cat ${LIST}); |
24 |
> do |
25 |
> printf "Building binary package for ${PACKAGE}... " |
26 |
> emerge -uN --quiet-build --quiet=y --buildpkgonly ${PACKAGE}; |
27 |
> if [[ $? -eq 0 ]]; |
28 |
> then |
29 |
> echo "ok"; |
30 |
> else |
31 |
> echo "failed"; |
32 |
> fi |
33 |
> done |
34 |
|
35 |
Alternatively, set up a chroot to build the binpackages. |
36 |
I do that for all my machines at home. That runs weekly. |
37 |
|
38 |
-- |
39 |
Joost |