From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1OeVqF-0004TQ-MM for garchives@archives.gentoo.org; Thu, 29 Jul 2010 16:20:19 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 76CB2E08B5; Thu, 29 Jul 2010 16:19:12 +0000 (UTC) Received: from prg-mas-d1.servrik.net (prg-mas-d1.servrik.net [83.167.247.128]) by pigeon.gentoo.org (Postfix) with ESMTP id 2792DE08B5 for ; Thu, 29 Jul 2010 16:19:12 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by prg-mas-d1.servrik.net (mail servrik.net) with ESMTP id 6063C48 for ; Thu, 29 Jul 2010 18:17:11 +0200 (CEST) X-Virus-Scanned: amavisd-new at prg-mas-d1.servrik.net X-Spam-Flag: NO X-Spam-Score: -3.228 X-Spam-Level: X-Spam-Status: No, score=-3.228 required=6.3 tests=[ALL_TRUSTED=-1, AWL=-0.328, BAYES_00=-1.9] autolearn=ham Received: from prg-mas-d1.servrik.net ([127.0.0.1]) by localhost (prg-mas-d1.servrik.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PBzw6Qahr4OB for ; Thu, 29 Jul 2010 18:17:10 +0200 (CEST) Received: from [192.168.123.141] (unknown [95.80.208.234]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: krasko@krasko.sk) by prg-mas-d1.servrik.net (mail servrik.net) with ESMTPSA id C05A43D for ; Thu, 29 Jul 2010 18:17:10 +0200 (CEST) Message-ID: <4C51A9FD.4020203@krasko.sk> Date: Thu, 29 Jul 2010 18:19:09 +0200 From: Tomas Krasnican User-Agent: Mozilla-Thunderbird 2.0.0.24 (X11/20100329) 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 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] mysql use flag witout server, using only client libaries References: <4C519635.8090203@krasko.sk> <201007291717.15791.alan.mckinnon@gmail.com> In-Reply-To: <201007291717.15791.alan.mckinnon@gmail.com> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit X-Archives-Salt: 6130e83b-70ee-42bb-b5b7-9bb7307fb5a3 X-Archives-Hash: 0e7a69681a2034ab3c5bd529790d2574 Alan McKinnon wrote: > On Thursday 29 July 2010 16:54:45 Tomas Krasnican wrote: >> Hi list, >> >> I'm sorry for my bad english.. >> >> I would like to emerge some packages using mysql use flag (and mysql flag >> features, for example. php, dovecot, postfix, ...), but without mysql >> database server (applications will connecting to the mysql database on the >> another (remote) server). Problem is, when I set the mysql use flag at >> some package, and I try to emerge that, mysql database is in the >> dependencies list. >> >> I want to emerge that without mysql database server, using mysql client >> libraries only. How can I define that? >> >> Thanks, >> Regards, >> Tomas Krasnican > > > Short answer: you can't. > > Long answer: you might but the devs are not going to help you > > Huge answer: a mysql client has support for connecting to a server on > localhost. Apps like dovecot etc therefore assume the same. So the ebuilds > install mysql if you ask for mysql support and you get everything. > > There is no exact meaning for the mysql USE flag, it is interpreted (mostly) > in whatever way the dev thinks it makes sense. Maybe this should not be like > this. Doesn't matter - right now that's how it is. So you could inspect each > ebuild you use for stuff that has mysql support and rip it apaprt to make it > do what you want. Repeat for every version bump. > > > > Or, you could just do the sane thing: > > # equery size mysql > * dev-db/mysql-5.1.46 > Total files : 403 > Total size : 45.03 MiB > > It's 45M, not a train smash. Most of that is docs, support configs, other > weird shit that Sun thought was a good idea, client libs, common libs. And the > server binary. > > > You are running php, dovecot and postfix on the box. Therefore apache too. > > Trust me, the extra 2M the mysql server takes up is not disk space you are > short off. Not worth the effort. > Thanks for your reply. When I'll install the mysql database server on the box, the lot of "gentoo-like" things will require it localy. For example, when I emerge php with mysql support, the apache rc script will contains something like "use mysql ....", or "need mysql" in that depend part. When I emerge something else with mysql support too, it will containts this thing too. And when I try to restart some of that, or when I wanna to restart the box, the mysql server will be started and it will take more time, as is realy needed. I wouldn't like that... I can edit this scripts and remove the mysql dependency manually...but Why I must do it using this way? I wouldn't like to edit lot of rc scripts after every update. I am too lazy (and many admins too, I think) for doing this... For "daily" modifying are designed the configuration files, but not rc (and not only rc) scripts. I think that developers are able to edit this scripts, when is it needed, but not end-user. And I haven't see any reason to run mysql server localy, when all of applications are using external box as the database server. So, I looking for the another solution of this "problem". Any ideas about this "problem"? Thanks Tomas Krasnican