[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#365583: Font problem



Florent Rougon <f.rougon@free.fr> wrote:

>> The problem with the current setup is that (I think) dpkg will override
>> the debconf-changed setting for tfm, pk and source with the permissions
>> in the deb, but the dialog will not be shown again.
>
> When does it happen? On upgrade? That would be an annoying bug (a teTeX
> one, not dpkg).

Uh, it does *not* happen, I just checked it.  I know that
/var/cache/fonts/{pk,source,tfm} are included in the deb, with owner set
to root and permissions 4777.  I do not know why after reinstalling the
package the permissions are not reset by dpkg to the values in the deb.
I also doubt whether this is on purpose, or a bug in dpkg, or whether
there's actually some clever mechanism I forgot in our package that does
the trick.  Note that I tested without apt-utils installed, so the
config script is run after unpacking.

> There is one thing I'm not sure, though: when you change the permissions
> (in the current setup), do you do it recursively? 

Yes, for all subdirectories of /var/cache/fonts.

> I hope it is not
> necessary, since many files and directories are automatically generated
> at runtime in the cache directories. If a recursive change was needed,
> that would rule out the possibility of using dpkg-statoverride, because
> I suppose it can only be used for files registered in the dpkg database.

Yes, but it would also only be needed for them - for the others there's
no possibility of dpkg overriding user's changes.

Regards, Frank
-- 
Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich
Debian Developer (teTeX)




Reply to: