On Thu, 2012-07-12 at 12:30 -0400, Alexis Ballier wrote: > On Wed, 11 Jul 2012 20:41:04 -0700 > Brian Dolbec wrote: > > > On Wed, 2012-07-11 at 18:48 -0500, William Hubbs wrote: > > > On Wed, Jul 11, 2012 at 04:59:11PM -0400, Alexis Ballier wrote: > > > > How do you plan to handle the following: > > > > - foo installs an udev rule > > > > - install foo with old udev > > > > - upgrade udev > > > > > > > > are rules installed by foo used by new udev ? > > > > > > No, they wouldn't be; that is a good reason to question the value > > > of the eclass itself. Maybe the correct way to do this is to forget > > > the eclass and just file bugs against packages that break having > > > them move their rules to the new location and set a dependency on > > > the newer udev. > > > > > > This would have to be a rev bump for the broken packages. > > > > > > William > > > > > > > > > > > A. > > > > > > > > So, does that mean the rule itself changes or just the location change > > is needed? > > > > If it is just a location change, a fairly simple udev-updater script > > would do it. > [...] > > how do you handle the package manager database containing the location > of the file ? > > A. > Personally, since I'm not a bash programmer, I'd use python. And since this is the package managers db, I'd use the pkg manager to do it. Specifically I'd create an emaint module to do it in the fully modular/plug-in-able emaint rewrite I did (waiting for Zac's review, merge). It can make it's modules fully available for direct or managed import by other portage code, or other scripts. In fact in that branch I moved some clean-logs code from emerge into an emaint module, extended it a bit so you can change the time setting, run pretend runs (-c, --check)... and had the emerge FEATURE run it instead. So you could run it independently of emerge if you choose. There is an outdated vdbkeys emaint module that did changes and updates to several files in a pkg's vdb directory. Creating one to do this should be quite simple. That said, I don't profess to know what other possible ramifications there would be to changing a few entries in a pkg's CONTENTS file. I'll leave that up to Zac and the others. But I haven't heard any screaming of breakage that would occur for doing so. -- Brian Dolbec