From: Daniel Iliev <daniel.iliev@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] package.provided
Date: Tue, 8 Jan 2008 23:20:02 +0200 [thread overview]
Message-ID: <20080108232002.1e8c2bdc@ilievnet.com> (raw)
In-Reply-To: <200801082023.58779.alan.mckinnon@gmail.com>
On Tue, 8 Jan 2008 20:23:58 +0200
Alan McKinnon <alan.mckinnon@gmail.com> wrote:
> On Tuesday 08 January 2008, Daniel Iliev wrote:
> > On Tue, 8 Jan 2008 15:11:09 +0200
--snip--
> Am I correct in saying you plan to emerge mplayer with a few extra
> params and not much else customizing? In that case the mods you will
> make are simple and need to be done just once. Then paste the same
> changes into a new ebuild each time you want to upgrade
>
Actually the changes I want to make are not so few. The whole story is
that several days ago a friend of mine pointed me to a very cool
front-end for mplayer: http://smplayer.sourceforge.net/
Unfortunately it can't be found in portage yet.
Since it works with the "plain" mplayer I decided to get rid of the GUI
part (gmplayer). The USE flag "-gtk" disables the GUI, but smplayer
couldn't work with the produced mplayer. When I compiled mplayer
manually with "--disable-gui", smplayer worked just fine.
Additionally I started playing around with the src and found that on my
system mplayer can hold any optimisation I force upon it and there are
no problems. :)
I have best results when it's compiled with "--enable-sse2" and no
other mxx, 3dnow etc. stuff. This way mplayer produces:
"CPUflags: MMX: 0 MMX2: 0 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 1"
in the output.
Additionally I forced some gcc options on the source like this:
find . -type f -exec sed -i 's/ -O. //g; {} +
find . -type f -exec sed -i 's/-mtune=\w*//g' {} +
find . -type f -exec sed -i 's/-mcpu=\w*//g' {} +
find . -type f -exec sed -i 's/march=\w*/march=athlon64 \-msse3
\-mfpmath=sse \-O3 \-pipe \-fomit-frame-pointer/g' {} +
// Yes, it's brutal and it's a miracle that it works but what do I have
to loose? The worst case scenario is that I end up with broken src and
have to extract it again :) //
Now mplayer uses up to 20% less CPU which in my case is not
meaningless.
The only problem is to make portage forget about this package until the
next version is released. I thought package.provided is for this
purpose, but it doesn't work here as I expected.
> > Yes, I'm aware of EXTRA_ECONF and I use it via /etc/portage/bashrc.
> > ( explained w/ example by Mr. Bo Andresen: http://tinyurl.com/39c74x
> > ) It never caused problems here.
>
> Interesting. I must find out more :-)
It's very handy. For example I don't need the innodb engine of mysql,
so my /etc/portage/bashrc reads:
==
case "$CATEGORY/$PN" in
dev-db/mysql)
EXTRA_ECONF="--enable-local-infile --without-innodb"
;;
esac
==
Unfortunately I couldn't manage to use it for solving the current
problem.
--
Best regards,
Daniel
--
gentoo-user@lists.gentoo.org mailing list
next prev parent reply other threads:[~2008-01-08 21:20 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-08 12:35 [gentoo-user] package.provided Daniel Iliev
2008-01-08 13:07 ` Renat Golubchyk
2008-01-08 13:11 ` Alan McKinnon
2008-01-08 15:18 ` Daniel Iliev
2008-01-08 18:23 ` Alan McKinnon
2008-01-08 21:20 ` Daniel Iliev [this message]
2008-01-08 21:51 ` Dmitry S. Makovey
2008-01-08 21:54 ` Neil Bothwick
2008-01-08 21:40 ` Kenneth Prugh
2008-01-08 21:53 ` Neil Bothwick
2008-01-09 3:57 ` [gentoo-user] [SOLVED] package.provided Daniel Iliev
-- strict thread matches above, loose matches on Subject: below --
2007-05-08 15:23 [gentoo-user] package.provided Daniel Iliev
2007-05-08 15:39 ` Daniel Pielmeier
2007-05-08 18:10 ` Daniel Iliev
2007-05-08 20:13 ` Zac Medico
2007-05-09 9:22 ` Daniel Iliev
2007-05-09 13:53 ` Iain Buchanan
2007-05-09 14:48 ` Neil Bothwick
2006-07-17 1:22 Jeremy Olexa
2006-07-17 1:30 ` Brett I. Holcomb
2006-07-17 1:37 ` Willie Wong
2006-07-17 7:43 ` Neil Bothwick
2006-07-18 4:28 ` Jeremy Olexa
2006-07-18 5:37 ` Donnie Berkholz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080108232002.1e8c2bdc@ilievnet.com \
--to=daniel.iliev@gmail.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox