This is the old SliTaz forum - Please use the main forum.slitaz.org

get-google-talkplugin fixed (?)
  • erniaernia October 2010
    i was not able to install google-talkplugin through the script, i think to have fixed it.
    whole script:
    #!/bin/sh -e

    ROOT="$1"
    PACKAGE="google-talkplugin"
    TARBALL="google-talkplugin_current_i386.deb"
    WGET_URL="http://dl.google.com/linux/direct/$TARBALL"
    SHORT_DESC="Google Talk Plugin."
    WEB_SITE="http://www.google.com/chat/video"
    DEPENDS="firefox gcc-lib-base libssl pango gtk+ atk mesa glew \
    xorg-libICE xorg-libSM xorg-libXfixes xorg-libXt xorg-libXcomposite \
    xorg-libXext xorg-libXinerama xorg-libXrandr xorg-libXcursor"

    if test $(id -u) != 0 ; then
    echo -e "\nYou must be root to run `basename $0`."
    echo -e "Please type 'su' and root password to become super-user.\n"
    exit 0
    fi

    if [ -d $ROOT/var/lib/tazpkg/installed/$PACKAGE ]; then
    [ -n "$ROOT" ] && exit 1
    tazpkg remove $PACKAGE
    [ -d /var/lib/tazpkg/installed/$PACKAGE ] && exit 1
    fi

    TMP_DIR=/tmp/$(basename $0)-$$-$RANDOM
    CUR_DIR=$(pwd)
    mkdir -p $TMP_DIR && cd $TMP_DIR

    # Download tarball
    wget $WGET_URL
    if [ ! -f $TARBALL ]; then
    cd $CUR_DIR
    rm -rf $TMP_DIR
    echo "Could not download $TARBALL. Exiting."
    exit 1
    fi

    # Extract package
    dpkg-deb -e $TARBALL e
    dpkg-deb -x $TARBALL x

    VERSION="$(awk '/Version:/ { print $2 }' < e/control | sed 's/-/./g')"

    # Create pseudo package
    mkdir -p $PACKAGE-$VERSION/fs/usr/share/$PACKAGE
    mv x/opt/google/talkplugin/* $PACKAGE-$VERSION/fs/usr/share/$PACKAGE
    mv $PACKAGE-$VERSION/fs/usr/share/$PACKAGE/lib $PACKAGE-$VERSION/fs/usr

    # No auto updates...
    rm -rf $PACKAGE-$VERSION/fs/usr/share/$PACKAGE/cron

    cat > $PACKAGE-$VERSION/receipt <<EOT<br />PACKAGE="$PACKAGE"
    VERSION="$VERSION"
    CATEGORY="non-free"
    SHORT_DESC="$SHORT_DESC"
    WEB_SITE="$WEB_SITE"
    DEPENDS="$DEPENDS"

    post_install()
    {
    chroot $1/ ln -s /usr/share/$PACKAGE/*.so /usr/lib/firefox*/plugins
    }

    post_remove()
    {
    for i in /usr/lib/firefox*/plugins/*.so ; do
    case "\$(readlink \$i)" in
    /usr/share/$PACKAGE/*) rm -f $i ;;
    esac
    done
    }
    EOT

    # Pack
    tazpkg pack $PACKAGE-$VERSION

    # Clean to save RAM memory
    rm -rf $PACKAGE-$VERSION

    # Install pseudo package
    tazpkg install $PACKAGE-$VERSION.tazpkg --root=$ROOT

    # Clean
    cd $CUR_DIR
    rm -rf $TMP_DIR

    diff output:
    --- /usr/bin/get-google-talkplugin      Sun Aug 22 10:21:18 2010
    +++ /usr/bin/get-google-talkplugin-fixed Thu Oct 21 22:24:21 2010
    @@ -42,12 +42,12 @@
    VERSION="$(awk '/Version:/ { print $2 }' < e/control | sed 's/-/./g')"

    # Create pseudo package
    -mkdir -p $PACKAGE-$VERSION/usr/share/$PACKAGE
    -mv x/opt/google/talkplugin/* $PACKAGE-$VERSION/usr/share/$PACKAGE
    -mv $PACKAGE-$VERSION/usr/share/$PACKAGE/lib $PACKAGE-$VERSION/usr
    +mkdir -p $PACKAGE-$VERSION/fs/usr/share/$PACKAGE
    +mv x/opt/google/talkplugin/* $PACKAGE-$VERSION/fs/usr/share/$PACKAGE
    +mv $PACKAGE-$VERSION/fs/usr/share/$PACKAGE/lib $PACKAGE-$VERSION/fs/usr

    # No auto updates...
    -rm -rf $PACKAGE-$VERSION/usr/share/$PACKAGE/cron
    +rm -rf $PACKAGE-$VERSION/fs/usr/share/$PACKAGE/cron

    cat > $PACKAGE-$VERSION/receipt <<EOT<br /> PACKAGE="$PACKAGE"
    @@ -65,7 +65,7 @@
    post_remove()
    {
    for i in /usr/lib/firefox*/plugins/*.so ; do
    - case "$(readlink $i)" in
    + case "\$(readlink \$i)" in
    /usr/share/$PACKAGE/*) rm -f $i ;;
    esac
    done


    to download the file (if you dare) : http://hotfile.com/dl/77483306/7dd2a7c/get-google-talkplugin.html
  • ms3811ms3811 October 2010
    ok, so a couple of issues:

    1. the script above insists I use firefox (it just installs firefox, does not try to make google talk work with existing browser, in my case, seamonkey). also complains about missing package glew which is not in the reps.

    2. firefox crashes after the plugin is installed with:

    Inconsistency detected by ld.so: dl-open.c: 643: _dl_open: Assertion `_dl_debug_initialize (0, args.nsid)->r_state == RT_CONSISTENT' failed!
  • erniaernia October 2010
    ok, the scripts works, you now have other problems than script not building tha package:
    1) you want to use a different browser
    2) you need to backport the script to 3.0 which misses glew. i'll try, just as an exercise, to buid glew for you.
    i think we better go on in the other topic.
  • ms3811ms3811 October 2010
    will do, thanks.
  • erniaernia October 2010
    is the dependency on firefox necessary?
  • ms3811ms3811 October 2010
    My apologies for the delayed response. Not sure I understand your question, but I'll attempt to answer the two scenarios one of which I think you may be referring to.

    1: Installing glew stops firefox from crashing, however firefox has the same issue I posted on the other thread with seamonkey. Trying to add voice/video to chat takes you to the page where you can install the plugin. In other words, gmail does not detect the plugins as installed. However, about:plugins does show the plugins as installed.

    2: Removing the firefox dependency from the install script does not affect the install. The install works just fine. Note that I changed firefox to seamonkey in two places, 1. DEPENDS, 2. path to copy the plugins to. It installed successfully, and as mentioned in the other thread, seamonkey loads the plugins as displayed by about:plugins, however gmail still does not detect the presence of the plugins.

    Hope that clarifies.
  • erniaernia October 2010
    sorry, the question was posted to devs, i don't know if they read us
    i think that the package should not depends on firefox, for the same reasons that made Jozee create the libfirefox package and make get-flash plugin depends on libfirefox instead of firefox. those changes made flash-plugin works in midori too

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Apply for Membership

SliTaz Social