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

Bug#133934: tetex-bin: doesn't work as a non-root user



Am Son, 2002-03-03 um 22.18 schrieb Julian Gilbey:
> On Sun, Mar 03, 2002 at 02:48:24PM +0100, Christoph Martin wrote:
> > I don't want to do a dpkg-statoverride but a chmod in debian/rules.
> 
> You don't want to use dpkg-statoverride in a postinst; that command is
> intended for the sysadmin to use.
> 
> Correct solution:
> 
> Include the directories with the correct permissions in the .deb.
> Then if the sysadmin wants to change the permissions, they can use
> dpkg-statoverride.

Ok. This is what is in the latest (-5) release of tetex-bin

> Or better still, do something like the following in the postinst:
> 
> VARTEXFONTS=`kpsewhich --expand-var='$VARTEXFONTS'`
> if [ -n "$VARTEXFONTS" ]; then
>   if [ ! -d "$VARTEXFONTS" ]; then
>     texconfig font vardir "$VARTEXFONTS"
>   fi
> fi

This would mean changing texmf.conf from postinst, which we don't want
until we have a tool which writes texmf.conf

Christoph

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil


Reply to: