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

Re: new lmodern package



Hi Ralf!

On Mit, 08 Feb 2006, Ralf Stubner wrote:
> Reconsidering my question, one does need tex-common and hence teTeX 3
> for these tests. Anyway, I have now tested 0.92-7 -> 0.99.3-1 and 0.92-7
> -> 0.92-11 -> 0.99.3-1 updates. Unfortunately, I get the message
> 
> Configuration file `/etc/texmf/updmap.d/10lmodern.cfg'
>  ==> File on system created by you or by a script.
>  ==> File also in package provided by package maintainer.
>    What would you like to do about it ?  Your options are:
> [...]
> 
> in both cases when updating from 0.92-7. It seems as if there is
> something wrong in the preinst code checking 10lmodern.cfg. I haven't
> found the reason yet, though.

Can one of you either explain me how the old updmap scheme worked, or
take a look yourself into the function
	transition_from_old_updmap_scheme()
in the lmodern.preinst, I include it here:

PACKAGE=lmodern
CONFIG_FILE_BASE_NAME=10lmodern.cfg
CONFIG_FILE="/etc/texmf/updmap.d/$CONFIG_FILE_BASE_NAME"
TEMP_CONFIG_FILE="$OLD_STATE_DIR/${CONFIG_FILE_BASE_NAME}.tmp"
# Stuff from the old (teTeX 2 times) updmap scheme
OLD_STATE_DIR="/var/lib/$PACKAGE"
SAVED_CONFIG_FILE="$OLD_STATE_DIR/${CONFIG_FILE_BASE_NAME}.saved"
NO_CONFIG_FILE="$OLD_STATE_DIR/admin-wants-no-lmodern.cfg"

# transition from the (update-)updmap scheme in use with teTeX 2
transition_from_old_updmap_scheme()
{
    # At the end of this block, we should have a $CONFIG_FILE.
    if ! [ -f "$CONFIG_FILE" ]; then
        if [ -f "$SAVED_CONFIG_FILE" ]; then
            # The package was simply removed.
            mv "$SAVED_CONFIG_FILE" "$CONFIG_FILE"
        else
            # The user had intentionally deleted $CONFIG_FILE. Create an empty
            # one with the magic comment.
            # The temporary file trick allows the script to be idempotent
            # because rename(2) is guaranteed to be atomic by POSIX.
            cat > "$TEMP_CONFIG_FILE" <<EndOfEmptyConfigFile
# Don't delete the following pseudo-comment unless you know what you are doing.
# -_- DebPkgProvidedMaps -_-
# This file will *not* be included in updmap.cfg if the lmodern package is
# removed. Please read update-updmap(1) for details.
EndOfEmptyConfigFile
            mv "$TEMP_CONFIG_FILE" "$CONFIG_FILE"
        fi
    fi

    # We have a $CONFIG_FILE, therefore it is safe to remove these files now.
    rm -f "$SAVED_CONFIG_FILE" "$NO_CONFIG_FILE"
    # The directory should be empty by now.
    [ -d "$OLD_STATE_DIR" ] && rmdir "$OLD_STATE_DIR"

    return 0
}

 
> BTW, I haven't tested with texlive-context yet. And there is a small
> error in the current packages. Instead of 
> 
> cork-ec.enc -> lm-ec.enc
> 
> one needs 
> 
> cork-lm.enc -> lm-ec.enc
> 
> in /usr/share/texmf/fonts/enc/dvips/lm/. 


Fixed. I wait with a new upload to tug.org until we can fix the above
problem. But it is already submitted to svn, so if you want grab it.

Best wishes

Norbert

-------------------------------------------------------------------------------
Dr. Norbert Preining <preining AT logic DOT at>             Università di Siena
gpg DSA: 0x09C5B094      fp: 14DF 2E6C 0307 BE6D AD76  A9C0 D2BF 4AA3 09C5 B094
-------------------------------------------------------------------------------
WIDDICOMBE (n.)
The sort of person who impersonates trim phones.
			--- Douglas Adams, The Meaning of Liff



Reply to: