From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1JCLsO-0008Ca-3a for garchives@archives.gentoo.org; Tue, 08 Jan 2008 21:20:48 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E9626E0C25; Tue, 8 Jan 2008 21:20:10 +0000 (UTC) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.152]) by pigeon.gentoo.org (Postfix) with ESMTP id 17725E0BFA for ; Tue, 8 Jan 2008 21:20:09 +0000 (UTC) Received: by fg-out-1718.google.com with SMTP id e21so4153102fga.14 for ; Tue, 08 Jan 2008 13:20:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject:message-id:in-reply-to:references:x-mailer:mime-version:content-type:content-transfer-encoding; bh=01fzlF8qi+9lzAQdwAqt6Q7BiEphgrCF5nukIty21qg=; b=N2eJItRbuO7B84NrIYEQsa+mtXaO04o8yS4VJdWko7FV5OdPI+GY/6MYkNCBnjSRCfqlVNMrCmJNIIMSFesV6O4jIPjhdU7AJ7BOwRbXe/cSW0qf4zpQ3hOYiiq/LIb5dm3gSGDUwZdUzYrjWPCuviMcTKd731tVpOVsPWYP+Ek= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:in-reply-to:references:x-mailer:mime-version:content-type:content-transfer-encoding; b=UKtXEWcuNOOLlVfNHos3DJqrf116uYf7HZMkSYF9pwC4K8A56Jw69E/rKH/ozksuDoVs1pigMOWw+x0I74K7BiwAxKA7b10OEKySk9Msat3eUVqXuuqEq9OxNbzfn2acCP5kkWtsCXtzBMdTz2FZDnLsoUudzOE7iOxe1aBNj78= Received: by 10.86.30.9 with SMTP id d9mr21678588fgd.16.1199827209438; Tue, 08 Jan 2008 13:20:09 -0800 (PST) Received: from ilievnet.com ( [84.21.204.1]) by mx.google.com with ESMTPS id f19sm182223fka.18.2008.01.08.13.20.06 (version=SSLv3 cipher=OTHER); Tue, 08 Jan 2008 13:20:07 -0800 (PST) Date: Tue, 8 Jan 2008 23:20:02 +0200 From: Daniel Iliev To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] package.provided Message-ID: <20080108232002.1e8c2bdc@ilievnet.com> In-Reply-To: <200801082023.58779.alan.mckinnon@gmail.com> References: <20080108143527.176caf14@ilievnet.com> <200801081511.09859.alan.mckinnon@gmail.com> <20080108171815.456f6eca@ilievnet.com> <200801082023.58779.alan.mckinnon@gmail.com> X-Mailer: Claws Mail 3.0.2 (GTK+ 2.12.1; x86_64-pc-linux-gnu) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Archives-Salt: 801d6611-6438-4e58-bdd7-67b929c132a9 X-Archives-Hash: 7a3987828e3af42144f02832956346f7 On Tue, 8 Jan 2008 20:23:58 +0200 Alan McKinnon 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