• Bug#92594: configuration files should be moved to /etc (1/2)

    From =?iso-8859-1?q?Frank_K=FCster?=@1:229/2 to [email protected] on Mon Aug 16 16:10:15 2004
    XPost: linux.debian.maint.tetex
    From: [email protected]

    Frank K�ster <[email protected]> wrote:

    This is my new version of setup-conffiles; it's not yet tested (and I
    won't be able to do much testing before I leave for vacation). I will
    check it in as soon as the upload of tetex-base as it is now is done.

    Below is the complete patch. I did a

    find -name "*cfg" -o "*cnf" -o "*.ini"

    in the texmf tree, and had a look at those files. I had planned to write
    a mail about this before I left (and I did indeed write it, but it seems
    I failed to send). Therefore, things are not very much present in my
    mind now...

    There are a couple of them that I do not regard as configuration
    files.

    - First of all, theses are all *.ini files for format generation: They
    correspond to a particular format as it is known, and you won't make
    friends if your latex format is not the same as the LaTeX team's
    version. The reasonable alternative is to have a mylatex (or
    whateverlatex) format in $LOCALTEXMF.

    - /usr/share/texmf/tex/generic/babel/frenchb.cfg

    all customization can be done in preamble, and it's better to do so
    according to documentation. This is formally a configuration file, but
    it seems the authors prefer it not to be changed.

    - not a configuration file

    /usr/share/texmf/tex/generic/babel/hyphen.cfg /usr/share/texmf/tex/fontinst/base/fontinst.ini /usr/share/texmf/omega/lambda/misc/omarab.cfg /usr/share/texmf/omega/lambda/misc/omlgc.cfg /usr/share/texmf/context/data/conedt.ini

    (The last is a configuration file, but for the Windows Editor WinEdt).

    The transition from files to symlinks is easy, the transition from
    directories to symlinks requires some tweaking in the
    {pre,post}{inst,rm} scripts.

    Regards, Frank



    --=-=-Content-Type: text/plain; charset=iso-8859-1
    Content-Disposition: attachment;
    filename=maps_no_conffile-base-2004-08-16.diff
    Content-Transfer-Encoding: quoted-printable

    Index: changelog ===================================================================
    RCS file: /cvs/tetex/tetex-base/debian/changelog,v
    retrieving revision 1.113
    diff -u -r1.113 changelog
    --- changelog 13 Aug 2004 11:39:13 -0000 1.113
    +++ changelog 16 Aug 2004 13:28:49 -0000
    @@ -1,3 +1,10 @@
    +tetex-base (2.0.2a-3.1) unstable; urgency=low
    +
    + * Move configuration files from /usr/share/texmf to /etc/texmf (Closes:
    + #92594) [frank]
    +
    + -- Frank Küster <[email protected]> Mon, 16 Aug 2004 15:21:47 +0200
    +
    tetex-base (2.0.2a-3) unstable; urgency=low

    * This upload was practically by Hilmar. Thanks to Hilmar. [kohda]
    Index: postinst ===================================================================
    RCS file: /cvs/tetex/tetex-base/debian/postinst,v
    retrieving revision 1.30
    diff -u -r1.30 postinst
    --- postinst 16 Jun 2004 08:22:36 -0000 1.30
    +++ postinst 16 Aug 2004 13:28:49 -0000
    @@ -1,4 +1,4 @@
    -#!/bin/sh
    +#!/bin/bash

    set -e

    @@ -48,6 +48,20 @@
    # Use debconf.
    . /usr/share/debconf/confmodule || exit
    db_version 2.0
    +
    +# it is now safe to remove obsolete dirs
    +NOWLINKDIRS="
    +tex/latex/config
    +etex/plain/config
    +tex/platex/config
    +tex/context/conf
  • From Florent Rougon@1:229/2 to [email protected] on Mon Aug 16 18:00:14 2004
    XPost: linux.debian.maint.tetex
    From: [email protected]

    Hi,

    [email protected] (Frank K�ster) wrote:

    - /usr/share/texmf/tex/generic/babel/frenchb.cfg

    all customization can be done in preamble, and it's better to do so
    according to documentation. This is formally a configuration file, but
    it seems the authors prefer it not to be changed.

    The reason behind their advice is simple: if you rely on the
    configuration file, you'll write documents that are not portable since
    others won't necessarily have the same options enabled. This problem is
    easily avoided by activating the options you need directly in your
    documents.

    --
    Florent


    --
    To UNSUBSCRIBE, email to [email protected]
    with a subject of "unsubscribe". Trouble? Contact [email protected]

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)
  • From Hilmar Preusse@1:229/2 to [email protected] on Tue Aug 17 09:50:09 2004
    XPost: linux.debian.maint.tetex
    From: [email protected]

    On 16.08.04 Frank K�ster ([email protected]) wrote:
    Frank K�ster <[email protected]> wrote:

    Hi,

    This is my new version of setup-conffiles; it's not yet tested
    (and I won't be able to do much testing before I leave for
    vacation). I will check it in as soon as the upload of tetex-base
    as it is now is done.

    Below is the complete patch. I did a

    find -name "*cfg" -o "*cnf" -o "*.ini"

    So, why do you do the movement in {pre,post}{rm,in} instead of
    debian/rules?

    H.
    --
    sigmentation fault


    --
    To UNSUBSCRIBE, email to [email protected]
    with a subject of "unsubscribe". Trouble? Contact [email protected]

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)
  • From =?iso-8859-1?q?Frank_K=FCster?=@1:229/2 to Hilmar Preusse on Tue Aug 17 10:30:14 2004
    XPost: linux.debian.maint.tetex
    From: [email protected]

    Hilmar Preusse <[email protected]> schrieb:

    On 16.08.04 Frank K�ster ([email protected]) wrote:
    Frank K�ster <[email protected]> wrote:

    Hi,

    This is my new version of setup-conffiles; it's not yet tested
    (and I won't be able to do much testing before I leave for
    vacation). I will check it in as soon as the upload of tetex-base
    as it is now is done.

    Below is the complete patch. I did a

    find -name "*cfg" -o "*cnf" -o "*.ini"

    So, why do you do the movement in {pre,post}{rm,in} instead of
    debian/rules?

    The movement in debian/rules is also done, via setup-conffiles. But dpkg
    will not change directories to symlinks (or vice versa):

    Policy 6.5, No. 4:

    ,----
    | A directory will never be replaced by a symbolic link to a directory
    | or vice versa; instead, the existing state (symlink or not) will be
    | left alone and dpkg will follow the symlink if there is one.
    `----

    Therefore one has to play tricks. Branden Robinson adviced me of twm's
    way to do it, which is safe even if the installation fails in between
    and is backed up.

    Regards, Frank
    --
    Frank K�ster, Biozentrum der Univ. Basel
    Abt. Biophysikalische Chemie

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)