public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Duncan <1i5t5.duncan@cox.net>
To: gentoo-dev@lists.gentoo.org
Subject: [gentoo-dev] Re: rfc: udev-rules.eclass
Date: Fri, 13 Jul 2012 06:29:13 +0000 (UTC)	[thread overview]
Message-ID: <pan.2012.07.13.06.29.13@cox.net> (raw)
In-Reply-To: 4FFE7DDE.6040107@gentoo.org

Zac Medico posted on Thu, 12 Jul 2012 00:33:50 -0700 as excerpted:

>>> Couldn't you, on udev upgrade, move everything in /lib/udev to
>>> /usr/lib/udev, and then make the symlink? Seems fairly simple to me,
>>> but maybe I'm overlooking something?
>> 
>> You are overlooking conflicts introduced through moving files without
>> updating vardb.
>> 
>> 
> Maybe that's package manager dependent. I think it should work fine with
> Portage though.

Confirmed.  This is the way amd64 has handled the lib -> lib64 symlink 
(sometimes reversed) for years (which is why the whole FEATURES=multilib-
strict thing was needed to try and keep things straight).  As long as the 
symlink is there, portage will follow the symlink and manage the files 
just fine.

FWIW, a similar trick was used when migrating X-related stuff from 
/usr/X11R6/ to simply /usr/ .  The files were moved up a level into /usr, 
and /usr/X11R6 became a symlink -> . , thus pointing back to /usr/ .   
IIRC, existing package versions still continued to own their /usr/X11R6/
*, the DB wasn't changed.  New versions simply moved directly into /usr/, 
and the problem gradually solved itself until it was down to a manageable 
size for a final push to get the old location out of the tree.  (I just 
checked and it appears nothing owns that symlink on my system, now... 
unless I screwed up my equery|grep... )

Now if the symlink somehow gets lost before all packages have moved their 
paths...

But that trick has been used enough in gentoo, especially in gentoo/
amd64, that every PM should cope with it just fine, or said PM would be 
rather broken.

-- 
Duncan - List replies preferred.   No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master."  Richard Stallman




  reply	other threads:[~2012-07-13  6:30 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-11 19:11 [gentoo-dev] rfc: udev-rules.eclass William Hubbs
2012-07-11 19:57 ` W. Trevor King
2012-07-11 20:57 ` Diego Elio Pettenò
2012-07-11 23:42   ` William Hubbs
2012-07-11 23:43     ` Diego Elio Pettenò
2012-07-12  5:01     ` Ben de Groot
2012-07-12  5:26       ` Zac Medico
2012-07-12  7:17       ` Michał Górny
2012-07-12  7:33         ` Zac Medico
2012-07-13  6:29           ` Duncan [this message]
2012-07-12 13:47         ` Ian Stakenvicius
2012-07-12 14:19           ` Michał Górny
2012-07-12 14:34             ` Ian Stakenvicius
2012-07-12 14:37               ` Ciaran McCreesh
2012-07-12 13:43       ` Ian Stakenvicius
2012-07-12 14:20         ` Michał Górny
2012-07-12 14:34           ` Ian Stakenvicius
2012-07-12 15:02             ` Michał Górny
2012-07-11 20:57 ` William Hubbs
2012-07-11 20:59 ` Alexis Ballier
2012-07-11 23:48   ` William Hubbs
2012-07-12  2:25     ` Rick "Zero_Chaos" Farina
2012-07-12  2:50       ` Zac Medico
2012-07-12  3:03         ` Rick "Zero_Chaos" Farina
2012-07-12 16:42         ` Alexis Ballier
2012-07-12  3:41     ` Brian Dolbec
2012-07-12 16:30       ` Alexis Ballier
2012-07-13  5:44         ` Brian Dolbec
2012-07-12 16:24     ` Alexis Ballier
2012-07-11 21:51 ` Rick "Zero_Chaos" Farina
2012-07-12 14:22 ` Michał Górny
2012-07-12 14:35   ` William Hubbs
2012-07-12 19:58 ` Samuli Suominen
2012-07-12 20:31   ` Mike Gilbert
2012-07-12 21:04   ` Michał Górny
2012-07-12 21:01     ` Samuli Suominen
2012-07-12 21:09       ` Samuli Suominen
2012-07-12 21:39         ` [gentoo-dev] " Jonathan Callen
2012-07-13 18:12 ` [gentoo-dev] " William Hubbs

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=pan.2012.07.13.06.29.13@cox.net \
    --to=1i5t5.duncan@cox.net \
    --cc=gentoo-dev@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