[poky] Shel variable name clashes in postinst's

From: Matt Hoosier <matt.hoosier@gmail.com>
Date: Sun Aug 05 2007 - 18:43:24 EDT

Hi,

It looks like there's a freak collision between the use of ${D} in the
postinst's inserted by the "initscript" and "gconf" classes. For
example:

    ---->8----
    #!/bin/sh
    if test "x$D" != "x"; then
            D="-r $D"
    else
            D="-s"
    fi
    update-rc.d $D geoclue defaults 30
    if [ "$1" = configure ]; then
            if [ "x$D" != "x" ]; then
                    exit 1
            fi
            SCHEMA_LOCATION=/etc/gconf/schemas
            for SCHEMA in geoclue.schemas; do
                    if [ -e $SCHEMA_LOCATION/$SCHEMA ]; then
                            HOME=/root
GCONF_CONFIG_SOURCE=`gconftool-2 --get-defaul
                                    gconftool-2 \
                                    --makefile-install-rule
$SCHEMA_LOCATION/$SCHEMA
                    fi
            done
    fi

    ---->8----

After $D is set up for the invocation of update-rc.d, there's no way
that the gconf schema installation can happen.

-- 
To unsubscribe send a mail to poky+unsubscribe@o-hand.com
Received on Sun, 5 Aug 2007 17:43:24 -0500

This archive was generated by hypermail 2.1.8 : Sun Aug 05 2007 - 19:00:06 EDT