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 <gentoo-user+bounces-139072-garchives=archives.gentoo.org@lists.gentoo.org>)
	id 1SdzzT-0005Jj-P1
	for garchives@archives.gentoo.org; Mon, 11 Jun 2012 08:28:47 +0000
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 59D34E0667;
	Mon, 11 Jun 2012 08:28:24 +0000 (UTC)
Received: from mx.virtyou.com (mx.virtyou.com [178.33.32.244])
	by pigeon.gentoo.org (Postfix) with ESMTP id BD4ECE05E8
	for <gentoo-user@lists.gentoo.org>; Mon, 11 Jun 2012 08:26:33 +0000 (UTC)
Received: from weird.wonkology.org (xdsl-78-35-139-77.netcologne.de [78.35.139.77])
	(using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits))
	(Client did not present a certificate)
	by mx.virtyou.com (Postfix) with ESMTPSA id 1DC38DC058
	for <gentoo-user@lists.gentoo.org>; Mon, 11 Jun 2012 10:26:33 +0200 (CEST)
Date: Mon, 11 Jun 2012 10:26:31 +0200
From: Alex Schuster <wonko@wonkology.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Adding a use flag: hwdb
Message-ID: <20120611102631.00cd5102@weird.wonkology.org>
In-Reply-To: <20120611094936.63ba4cbb@khamul.example.com>
References: <CAPi0psvt38cS6NKVAAVSavuu8+Rztd2jQs1Qyty-Vfc8EKjMPw@mail.gmail.com>
	<20120611094936.63ba4cbb@khamul.example.com>
X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.10; x86_64-pc-linux-gnu)
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
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: 180c0555-4217-47e8-abfc-6bfc1428be3d
X-Archives-Hash: 942142e63c82795f6261a6cce2242697

Alan McKinnon writes:

> On Sun, 10 Jun 2012 19:57:42 -0700
> Chris Stankevitz <chrisstankevitz@gmail.com> wrote:

> > Today emerge is asking me to add "=sys-fs/udev-171-r6 hwdb" to
> > package.use to appease udisk.  Just as before, this looks fishy to me
> > and I would like to get your opinion about how to properly satisfy
> > this seemingly system-required-use-flag.  My gut instinct is that this
> > USE flag requirement should be handled by the Gentoo team in the
> > profile or in some other place that I never look at.
> 
> It's not a question of "system" vs "personal preference"
> 
> It's a question of treating USE flags as global or local in scope. The
> USE variable in make.conf applies globally, and the package.use file
> applies to individual packages. Portage itself couldn't care how you
> view the use of your flags, so you should organize them how you see fit.
> 
> See here:
> 
> $ euses -sf hwdb
> sys-fs/udev:hwdb - read vendor/device string database and add it to
> udev database
> 
> The flag applies to only one package.
> 
> Some USE flags do not have a sane default so there's no choice the devs
> can make on your behalf. Especially convenience features like this one
> - some folk want it, others do not. So the devs delegate the choice to
> you to apply in any way you see fit.

I think Chris' question is more about why he has to manually activate
this USE flag, as it seems to be necessary anyway, in his case.

Looking at my own setup, I have built udev with hwdb, but I do not know
why. There is no hwdb in make.conf or package.use, emerge --info does
not show it, but emerge --info sys-fs/udev does. I'm on version 182-r3.

> > What do you guys think?  Should I append "udev hwdb" to package.use
> > right after my long list of "personal preference customizations"?

Yes. Or use the --autounmask-write option for emerge (may need the new
portage), this will add it automatically, with a comment.

	Wonko