From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 8117F138403 for ; Fri, 11 Jan 2013 20:21:52 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id ECCED21C02D; Fri, 11 Jan 2013 20:21:33 +0000 (UTC) Received: from mail-ob0-f173.google.com (mail-ob0-f173.google.com [209.85.214.173]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 368AC21C012 for ; Fri, 11 Jan 2013 20:19:59 +0000 (UTC) Received: by mail-ob0-f173.google.com with SMTP id xn12so2156817obc.18 for ; Fri, 11 Jan 2013 12:19:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=+82f53L2BSqw1bgal1Im6ZQsfNsbQ8y40fuVpqq+gx0=; b=cNQsFLIlerx1R/Dvant8tJMMIri/q5oqsd6zxE5Cwap5I2Rz/C+zMTx0zM/Z+F5qv0 22QKAgBvZEpw+nZK3uiuZ292mSrY7PxkdKKFa3jUiNkCncaspM05bDj180HVA1TjPm4x 25E8QzdK2qiOK+C9u1egZe9a7FPOCVrp4ppyPXjAyMrRJcfa/ZAiXsXp2Lu7tyCKKRJu zUO7CPZCF6V44mOmZSOuZ0DECafttPlPDfdplPDKMr+bbEc2wSM5E1z/irRj/xxnpQa8 hVFFp+ywiT/Tju/RFdvY6IdL2qbl6T5AtNliEyxHU8B1h8fUPv8fKxIkK+sqT2dFvOVe K/NQ== X-Received: by 10.182.0.68 with SMTP id 4mr56190778obc.80.1357935598405; Fri, 11 Jan 2013 12:19:58 -0800 (PST) Received: from [172.31.0.2] (cpe-75-87-85-32.kc.res.rr.com. [75.87.85.32]) by mx.google.com with ESMTPS id ta8sm4070124obb.10.2013.01.11.12.19.57 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 11 Jan 2013 12:19:57 -0800 (PST) Message-ID: <50F073EC.7010701@gmail.com> Date: Fri, 11 Jan 2013 14:19:56 -0600 From: "Dustin C. Hatch" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 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] Re: udev-197 moves from /usr/lib to /lib References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Archives-Salt: 16b0119d-8714-42eb-bc51-a5d29dbc0a83 X-Archives-Hash: c30ceeba7346f609c9225fdc45eba97c On 1/11/2013 09:14, Nikos Chantziaras wrote: > On 11/01/13 16:04, walt wrote: >> This seems to me like very happy news indeed, but I'm interested in >> contrary >> opinions. There's a recent thread discussing how udev-197 breaks >> lvm2, but >> that's a trivial fix once you know about it. >> >> The problem is caused because many apps including lvm2 install their udev >> config scripts in /usr/lib/udev/rules.d/ (where they never belonged in >> the >> first place IMO) and they should instead now go in /lib/udev/rules.d/. >> All you need to do is to re-emerge all of those packages *after* >> installing >> udev-197 and the config scripts will go in the correct place. >> >> You should do this before rebooting the machine because lvm2 won't >> work until >> its udev scripts are in the correct directory. > > Running this command (all in one line): > > emerge -p1 $(for p in $(qfile -Cvq $(find /usr/lib/udev/) | sort -u); do > echo "=$p"; done) > > should re-emerge all packages that still have files there. After that, > /usr/lib/udev should no longer exist. If it still does, then there are > files in it that don't belong to any package. Check them manually and > delete them as needed or move them over. Then delete /usr/lib/udev. > > Or, without a loop (easier to read and type, IMHO): qfile -Cvq /usr/lib/udev | awk '{print "="$1}' | xargs emerge -pv or, using gentoolkit instead of portage-utils (slower, but will not fail if the installed version of a package no longer exists): equery belongs -n /usr/lib/udev | xargs emerge -pv -- ♫Dustin