1 |
On Sat, 3 Mar 2012 22:04:29 +0700 |
2 |
Pandu Poluan <pandu@××××××.info> wrote: |
3 |
|
4 |
> On Mar 3, 2012 9:05 PM, "Alan McKinnon" <alan.mckinnon@×××××.com> |
5 |
> wrote: |
6 |
> > |
7 |
> > On Sat, 3 Mar 2012 08:48:59 -0500 |
8 |
> > Michael Mol <mikemol@×××××.com> wrote: |
9 |
> > |
10 |
> > > So I've been making extensive use of rngd on one of my Debian |
11 |
> > > servers, and I wanted to make use of it on a couple of my Gentoo |
12 |
> > > boxes. Only to find out that two parameters I need, -T and -R, |
13 |
> > > aren't available, even when I unmask version '3' in portage. Even |
14 |
> > > the manpage contains 'FIXME' where the Debian manpage contains |
15 |
> > > much more information. |
16 |
> > > |
17 |
> > > The version of the rng-tools Debian package I'm using is |
18 |
> > > '2-unofficial-mt.14-1~60squeeze1'. Are the -T and -R parameters |
19 |
> > > unique to Debian, or is the Gentoo package simply out of date? |
20 |
> > > |
21 |
> > |
22 |
> > You should download the .deb and see if it contains custom patches |
23 |
> > (rather likely actually). If you want those patches applied, stick |
24 |
> > them in /etc/portage/patches/ in the proper place. |
25 |
> > |
26 |
> > I can never remember how all that stuff works, I have to Google it |
27 |
> > each time :-) Start here if you haven't heard of user-custom patch |
28 |
> > support in portage yet: |
29 |
> > |
30 |
> > http://forums.gentoo.org/viewtopic-t-791464.html |
31 |
> > |
32 |
> http://klaig.blogspot.com/2011/07/how-to-apply-user-patches-in-portage.html |
33 |
> > |
34 |
> > |
35 |
> |
36 |
> Remember that it depends on whether the ebuild for the package |
37 |
> support user patches or not. |
38 |
|
39 |
That's true enough. epatch_user() must be called for it to work. |
40 |
|
41 |
However, it is defined in base.eclass and part of EAPI-2. How many |
42 |
ebuilds does that exclude these days? |
43 |
|
44 |
I did a quick back-of-the-envelope check: |
45 |
|
46 |
# find /var/portage/ -type f -name "*.ebuild" | wc |
47 |
29846 29846 1730549 |
48 |
# grep EAPI=[234] /var/portage/*-*/*/*.ebuild | wc |
49 |
11138 11273 719796 |
50 |
# grep EAPI=1 /var/portage/*-*/*/*.ebuild | wc |
51 |
336 341 21938 |
52 |
# grep EAPI=0 /var/portage/*-*/*/*.ebuild | wc |
53 |
5 5 275 |
54 |
|
55 |
37.3 coverage of >=EAPI-2. Wow. I really thought it would be more. |
56 |
|
57 |
-- |
58 |
Alan McKinnnon |
59 |
alan.mckinnon@×××××.com |