[Pkg-mozext-maintainers] #573250 -- conflict between policy and mozilla-devscripts about file placement

Daniel Kahn Gillmor dkg at fifthhorseman.net
Mon Mar 22 04:58:45 UTC 2010


On 03/19/2010 03:13 AM, Mike Hommey wrote:
> On Fri, Mar 19, 2010 at 03:56:02AM +0100, Benjamin Drung wrote:
>> Latest idea:
>>
>> Create a (nearly) empty file
>> in /etc/xul-ext/<packagename-without-xul-ext>.js that contains a
>> commented header describing where to find the config file.
>> Create a link
>> in /usr/{share,lib}/xul-ext/<packagename-without-xul-ext>/defaults/preferences/000system.js pointing to /etc/xul-ext/<packagename-without-xul-ext>.js
>>
>> An updated patch is welcome.
>>
>> Any objection against this approach?
> 
> I'm not entirely sure the preferences files are read by filename order.
> If that's the case, the system preferences should be read after the
> others.
> But I think they are read in readdir() order...

urg.  if they're evaluated in readdir() order, then we can't guarantee
which preferences will take effect last, can we?  (i'm assuming we're in
a last-match-wins scenario, as the files are simple javascript.

It seems to me like the best move in that situation is to just put the
preferences files in /etc wholesale, symlink back to them, and treat
them like the conffiles they are.

If we want the admins to have an easy way to roll back to the package
maintainer defaults, we could just ship a copy of those defaults
someplace in /usr/share/doc/xul-ext-foo.

	--dkg

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 891 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-mozext-maintainers/attachments/20100322/31ad46f1/attachment.pgp>


More information about the Pkg-mozext-maintainers mailing list