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

Bug#64914: none



On Fri, Mar 22, 2002 at 07:49:02AM +0900, Atsuhito Kohda wrote:
> > On Thu, Mar 21, 2002 at 09:32:31AM +0900, Atsuhito Kohda wrote:
> > > > Right.  I would got for both as conffiles.
> > > 
> > > You mean both files are registered as conffiles?
> > > Then they will remain in a system after when a user 
> > > removes jadetex.  I guess this might be a problem.
> > 
> > Yes, and no and erm.
> > 
> > They are in /etc, so they'll have to be configuration files, I guess.
> 
> Yes if they are shipped as real files.  But no if 10jadetex.cnf
> is generated with postinst like (only for example);

Please reread policy section 11.7: a conffile is shipped as a normal
file and is marked as a conffile for dpkg to handle.  A configuration
file has to be handled by maintainer scripts and sysadmin changes must
be preserved.

> cat > /etc/texmf/fmt.d/00jadetex.cnf << EOF
> some stuffs
> EOF

That's OK, as long as there is a check first that the file doesn't
already exist.

> or
> 
> cp /usr/share/doc/jadetex/examples/00jadetex.cnf /etc/texmf/fmt.d/

Would have to be /usr/share/jadetex/00jadetex.cnf.default or similar,
not /usr/share/doc.  (Policy 13.3)

> Then, I guess, jadetex can remove 00jadetex.cnf safely
> on removal (with prerm perhaps).

No, on purge in the postrm (configuration files should only be removed
on purge).  Mind you, if the package has no conffiles, then there is
no difference between removal and purge.

> > Suggested solution:
> > 
> > fmtutil should only read files whose names are of the form
> > 
> > [0-9][0-9][A-Za-z0-9]+
> > 
> > Then on removal, jadetex should move its fmtutil files to something
> > like 05jadetex.ignore.  On install, if such a file exists, it is moved
> > to 05jadetex, otherwise 05jadetex is created by the postinst.
> 
> I guess if 05jadetex is created by the postinst and not a
> real file then it can be handled more simply as above.

Not really :-(

   Julian

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

     Julian Gilbey, Dept of Maths,             Debian GNU/Linux Developer
      Queen Mary, Univ. of London         see http://people.debian.org/~jdg/
   http://www.maths.qmul.ac.uk/~jdg/           or http://www.debian.org/
        Visit http://www.thehungersite.com/ to help feed the hungry



Reply to: