1 |
On Tue, 8 Jan 2008 20:23:58 +0200 |
2 |
Alan McKinnon <alan.mckinnon@×××××.com> wrote: |
3 |
|
4 |
> On Tuesday 08 January 2008, Daniel Iliev wrote: |
5 |
> > On Tue, 8 Jan 2008 15:11:09 +0200 |
6 |
--snip-- |
7 |
> Am I correct in saying you plan to emerge mplayer with a few extra |
8 |
> params and not much else customizing? In that case the mods you will |
9 |
> make are simple and need to be done just once. Then paste the same |
10 |
> changes into a new ebuild each time you want to upgrade |
11 |
> |
12 |
|
13 |
Actually the changes I want to make are not so few. The whole story is |
14 |
that several days ago a friend of mine pointed me to a very cool |
15 |
front-end for mplayer: http://smplayer.sourceforge.net/ |
16 |
Unfortunately it can't be found in portage yet. |
17 |
|
18 |
Since it works with the "plain" mplayer I decided to get rid of the GUI |
19 |
part (gmplayer). The USE flag "-gtk" disables the GUI, but smplayer |
20 |
couldn't work with the produced mplayer. When I compiled mplayer |
21 |
manually with "--disable-gui", smplayer worked just fine. |
22 |
Additionally I started playing around with the src and found that on my |
23 |
system mplayer can hold any optimisation I force upon it and there are |
24 |
no problems. :) |
25 |
I have best results when it's compiled with "--enable-sse2" and no |
26 |
other mxx, 3dnow etc. stuff. This way mplayer produces: |
27 |
"CPUflags: MMX: 0 MMX2: 0 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 1" |
28 |
in the output. |
29 |
|
30 |
Additionally I forced some gcc options on the source like this: |
31 |
|
32 |
find . -type f -exec sed -i 's/ -O. //g; {} + |
33 |
find . -type f -exec sed -i 's/-mtune=\w*//g' {} + |
34 |
find . -type f -exec sed -i 's/-mcpu=\w*//g' {} + |
35 |
find . -type f -exec sed -i 's/march=\w*/march=athlon64 \-msse3 |
36 |
\-mfpmath=sse \-O3 \-pipe \-fomit-frame-pointer/g' {} + |
37 |
|
38 |
// Yes, it's brutal and it's a miracle that it works but what do I have |
39 |
to loose? The worst case scenario is that I end up with broken src and |
40 |
have to extract it again :) // |
41 |
|
42 |
Now mplayer uses up to 20% less CPU which in my case is not |
43 |
meaningless. |
44 |
|
45 |
The only problem is to make portage forget about this package until the |
46 |
next version is released. I thought package.provided is for this |
47 |
purpose, but it doesn't work here as I expected. |
48 |
|
49 |
|
50 |
|
51 |
> > Yes, I'm aware of EXTRA_ECONF and I use it via /etc/portage/bashrc. |
52 |
> > ( explained w/ example by Mr. Bo Andresen: http://tinyurl.com/39c74x |
53 |
> > ) It never caused problems here. |
54 |
> |
55 |
> Interesting. I must find out more :-) |
56 |
|
57 |
|
58 |
It's very handy. For example I don't need the innodb engine of mysql, |
59 |
so my /etc/portage/bashrc reads: |
60 |
|
61 |
== |
62 |
|
63 |
case "$CATEGORY/$PN" in |
64 |
|
65 |
dev-db/mysql) |
66 |
|
67 |
EXTRA_ECONF="--enable-local-infile --without-innodb" |
68 |
;; |
69 |
|
70 |
esac |
71 |
|
72 |
== |
73 |
|
74 |
Unfortunately I couldn't manage to use it for solving the current |
75 |
problem. |
76 |
|
77 |
|
78 |
-- |
79 |
Best regards, |
80 |
Daniel |
81 |
-- |
82 |
gentoo-user@l.g.o mailing list |