problemi synaptic+beryl su XGL

Problemi riscontrati nella Feisty (Ubuntu 7.04) in fase di sviluppo.
Avatar utente
jewelz
Prode Principiante
Messaggi: 157
Iscrizione: lunedì 7 novembre 2005, 20:48

problemi synaptic+beryl su XGL

Messaggio da jewelz »

Premetto: uso driver fglrx, XGL e beryl dal repo ufficiale per feisty. Ho constatato due problemi:
1- è impossibile far partire beryl-manager in autostart: ho provato con ogni genere di script, killando lo gnome window decorator, ritardando l'avvio di 10 secondi, ma tutto è stato inutile: se dopo l'avvio lo faccio partire invece va tutto bene, salvo il fatto che dopo qualche secondo i processi di beryl-manager diventano due
2 - a volte la finestra di synaptic diventa totalmente bianca e il sistema non risponde più ai click del mouse, ovvero muovo il cursore dove mi pare ma quando clicco non succede niente. La cosa strana è che quando riavvio il server x con ctrl+alt+backspace, appena dopo aver fatto il login, mi dice chè l'AT-SPI è crashato ma tutto procede comunque per il meglio.
Ho segnalato il bug a launchpad ma uno della bugsquad me lo ha rifiutato dicendomi che loro non risolvono problemi legati a beryl. Ho tentato di dirgli che il problema secondo me dipendeva da qualche problema di synaptic o delle tecnologie assistive ma non ho ricevuto risposte. Qualcuno ha constatato un comportamento simile, o ha idee su come risolvere la questione?
Avatar utente
jewelz
Prode Principiante
Messaggi: 157
Iscrizione: lunedì 7 novembre 2005, 20:48

Re: problemi synaptic+beryl su XGL

Messaggio da jewelz »

visto che questi problemi ormai sono nella norma per beryl, torno a compiz: mancherà qualche plugin ma almeno funziona.
Avatar utente
telperion
Rampante Reduce
Rampante Reduce
Messaggi: 5407
Iscrizione: lunedì 10 luglio 2006, 18:20

Re: problemi synaptic+beryl su XGL

Messaggio da telperion »

Se hai voglia prova i miei pacchetti
Avatar utente
jewelz
Prode Principiante
Messaggi: 157
Iscrizione: lunedì 7 novembre 2005, 20:48

Re: problemi synaptic+beryl su XGL

Messaggio da jewelz »

provati, ho pure provato a compilarmi da solo l'ultima svn (a proposito, ho trovato uno script che genera da solo i pacchetti, magari potrebbe esserti utile, premetto che è di 3v1n0 e che lo trovi sul forum internazionale, se vuoi te lo linko).
Avatar utente
telperion
Rampante Reduce
Rampante Reduce
Messaggi: 5407
Iscrizione: lunedì 10 luglio 2006, 18:20

Re: problemi synaptic+beryl su XGL

Messaggio da telperion »

jewelz ha scritto: provati, ho pure provato a compilarmi da solo l'ultima svn (a proposito, ho trovato uno script che genera da solo i pacchetti, magari potrebbe esserti utile, premetto che è di 3v1n0 e che lo trovi sul forum internazionale, se vuoi te lo linko).
Guarda che

make debs

nel trunk, genera e installa gìa da sè i pacchetti, senza ricorrere a script "esoterici".

Se apri il makefile  con un editor di testi trovi tutte le opzioni.
 
Avatar utente
jewelz
Prode Principiante
Messaggi: 157
Iscrizione: lunedì 7 novembre 2005, 20:48

Re: problemi synaptic+beryl su XGL

Messaggio da jewelz »

guarda che è molto omodo, fai ./nomescript e scarica e compila da solo, ti ritrovi tutti i deb nella cartella /debs, e poi puoi inserire il tuo nome nelle info del pacchetto molto semplicemente... provalo e poi ti renderai conto che è comodo

Codice: Seleziona tutto

#!/bin/bash

packager="jewelz (tnx 2 trevi)"
packager_email="a.catalucci@gmail.com"
package_sufix="jewsvn"

#to test settings-dump properly
export DISPLAY=""

DEFPREFIX="/usr"
MYPREFIX=${PREFIX:-$DEFPREFIX}
DISTRODIR="distro-specific-build-files"
DISTRODIR_USER="distro-specific-build-files-user"
PRIOPKGS="beryl-core beryl-plugins"
SVNURL="svn://svn.beryl-project.org/beryl"

autogenpkg_cmd="./autogen.sh --prefix=$MYPREFIX"
buildpkg_cmd="fakeroot dpkg-buildpackage -b -us -uc" #-nc -k0xEDD1E155
repkg_cmd="fakeroot ./debian/rules binary"

if ( [ ! -d "beryl/trunk/.svn" ] && [ ! -d "beryl/trunk" ] ); then
    echo "No svn folder found! Downloading it..."
    echo ""
    if ! svn co $SVNURL -N; then
        echo "There are problems retriving svn data. Exiting..."
        exit 2;
    fi
    cd ./beryl
    if ! svn co $SVNURL/trunk; then
        echo "There are problems retriving svn data. Exiting..."
        exit 2;
    fi
    cd ./trunk
#    ln -sf "../$0" .beryl/trunk/makedebs
#     echo -e "\nPlease, enter in ./trunk/ directory and run ./makedebs"
#     ./makedebs
#     exit
elif [ -d "beryl/trunk" ]; then
#     echo -e "Please, enter in ./trunk/ directory and run ./makedebs"
    cd ./beryl/trunk/
    if ! svn info &> /dev/null; then
        echo "The svn directory isn't here, please remove the 'beryl/trunk' dir and run again this script."
        echo "Whould you like this script make this (all your 'beryl/trunk' data will be removed)?"
        read -p " [Y/n]: " -n1 continue;
        if [ "$continue" != "$(echo Y | tr [:upper:] [:lower:])" ]; then
            echo ''
            exit 2
        else
            cd ../
            rm -rf trunk
            if ! svn co $SVNURL/trunk; then
                echo "There are problems retriving svn data. Exiting..."
                exit 2;
            fi
            cd ./trunk
        fi
    fi
#    ./makedebs &
#    exit
else
    echo "There are some errors with build directoryes, please report this to the Author"
    exit 2
fi

svn_ver="$(svn info --xml|grep 'revision=' --max-count=1|cut -d'"' -f2)"

if [ -f "./VERSION" ]; then
    . "./VERSION"
    base_ver="$VERSION"
    VERSION=""
fi

function svn_comp_ver() {
    svn info --xml|grep "\<commit" -A4|grep 'revision=' --max-count=1|cut -d'"' -f2
}

function svn_comp_date () {
    svn info --xml |grep "\<commit" -A4|grep 'date' --max-count=1|cut -d'>' -f2 |cut -d'T' -f1| sed "s/-//g"
}

function errorcontrol() {
    item="$1"
    if [ -z "$(echo $* | grep "batch")" ]; then
        echo -e "\nProblems occurred while building $item packages... Continue Building?"
        read -p " [Y/n]: " -n1 continue;
        if [ "$continue" != "$(echo Y | tr [:upper:] [:lower:])" ]; then
            echo -e "$report\n";
            exit 2
        fi
    else
        echo -e "\nProblems occurred while building $item packages. Skipping as requested..."
    fi
}

function buildpkg() {
    rm -f ../*.deb

    if [ -f "./VERSION" ]; then
        . "./VERSION"
        base_comp_ver="$VERSION"
        VERSION=""
    fi

    if [ -z "$base_comp_ver" ]; then
        if [ -n "$base_ver" ]; then
            base_comp_ver="$base_ver"
        else
            base_comp_ver=$(dpkg-parsechangelog|grep --max-count=1 -F "Version:" |cut -d" " -f2|sed "s/-[0-9]ubuntu[0-9]/-1/");
        fi
    fi

    if [ -n "$(echo $* | grep "repack")" ]; then
        action="repack"
    elif [ -n "$(echo $* | grep "rebuild")" ]; then
        action="rebuild"
    else
        action="build"
    fi

    if [ $action = "rebuild" ]; then
        build="0"
        tstpkg="$(cat debian/control |grep "^Package" -m1| cut -d" " -f2)"
        for oldpkg in ../../../debs/${tstpkg}_*.deb; do
            pkgbuild="$(expr "$(dpkg-deb --field "$oldpkg" Version)" : ".*+${package_sufix}\(.*\)")"
            if [ "$pkgbuild" -ge "$build" ]; then
                build=$(($pkgbuild + 1))
            fi
        done
    else
        build="0"
    fi

    source_package=$(dpkg-parsechangelog|grep --max-count=1 -F "Source:" |cut -d" " -f2)

    if [ -f "/etc/lsb-release" ]; then
        distro="$(cat /etc/lsb-release|grep DISTRIB_CODENAME | cut -d'=' -f2)"
    fi

    if [ -z "$distro" ]; then
        distro="unstable";
    fi

    version="${base_comp_ver}+svn$(svn_comp_date)-r$(svn_comp_ver)+${package_sufix}${build}"
    echo -e "$source_package ($version) $distro; urgency=low\n\n  * Upgrade to SVN build $(svn_comp_ver)\n\n -- $packager <$packager_email>  $(LANG=en_US date +"%a, %d %b %Y %T %z")\n" > "./debian/changelog"
    sed "$(cat "../$DISTRODIR_ITEM/$item/debian/control" | grep "^Maintainer:" -n -m1 | cut -d':' -f1)cMaintainer: $packager <$packager_email>" "../$DISTRODIR_ITEM/$item/debian/control" > "./debian/control"
    cat "../$DISTRODIR_ITEM/$item/debian/changelog" >> "./debian/changelog"

    if [ $action = "repack" ]; then
        cmd2run="$repkg_cmd"
    else
        cmd2run="$buildpkg_cmd"
    fi

    if ! $cmd2run; then #fakeroot dh_gencontrol -u"-v$version"
        errorcontrol $item
        report="$report\nBUILD FAILED for $item"
        return 2
    fi

    if [ -f pkgxtra.sh ]; then
        chmod +x pkgxtra.sh
        echo -e "\nRunning extra scripts for $item..."
        if ! ./pkgxtra.sh $action; then
            errorcontrol $item
            report="$report\nBUILD FAILED for extrascripts on $item"
            return 2
        fi
    fi

    mv -f ../*$package_sufix*.deb ../../../debs/
    mkdir -p ../../../debs-old
    mv -f ../*.changes ../../../changelogs &> /dev/null

    for package in $(cat debian/control |grep Package| cut -d" " -f2); do
        for deb in $(find ../../../debs/ -maxdepth 1 -type f | grep "${package}_.*\.deb"); do
            if  [ -z $(dpkg-deb --field "$deb" Version | grep -F "$version") ]; then
                mv -f "$deb" ../../../debs-old;
            fi
        done
    done

    rm -rf ./debian
}

mkdir -p ../../changelogs
mkdir -p ../../debs
#rm -f ../debs/*.deb

ITEMS="$PRIOPKGS"

for beryldir in $DISTRODIR/* $DISTRODIR_USER/*; do
    if [ -n "$(echo $beryldir | grep -F "$DISTRODIR_USER")" ]; then
        itemdir="${beryldir/$DISTRODIR_USER\//}"
    else
        itemdir="${beryldir/$DISTRODIR\//}"
    fi
    #echo $itemdir
    if ( [ -d $beryldir ] && [ -d $beryldir/debian ] && [ -f $itemdir/autogen.sh ] ); then
        
        for userberyldir in $*; do
            if ( [ "$userberyldir" = "$itemdir" ] ); then
                USERITEMS="$USERITEMS $itemdir"
            fi
        done
        
        found="false"
        for item in $ITEMS; do
            if [ "$item" = "$itemdir" ]; then
                found="true"
            fi
        done
        
        if [ "$found" != "true" ]; then
            ITEMS="$ITEMS $itemdir";
        fi
    fi;
done;

if [ "$USERITEMS" != "" ]; then
    ITEMS="$USERITEMS"
fi

# if [ -n "$(echo "$*" | grep -v -F "$beryldir")" ]; then
#             ITEMS="$ITEMS $beryldir";
# fi

if ( [ -z "$(echo $* | grep "batch")" ] ); then
    echo -e "\nChecking svn for updates..."
    if ! svn up; then
        report="$report\nSVN UP FAILED"
        sleep 5
        #exit 1
        #errorcontrol "$item"
    fi
fi

#ITEMS="beryl-core beryl-plugins beryl-settings beryl-manager emerald emerald-themes beryl-dbus"
for item in $ITEMS; do
    cd $item
    chmod +x autogen.sh &> /dev/null

    rm -rf ./debian
    #ln -s ../$DISTRODIR/$item/debian
    if [ -d "../$DISTRODIR/$item/debian" ]; then
        DISTRODIR_ITEM="$DISTRODIR"
    elif [ -d "../$DISTRODIR_USER/$item/debian" ]; then
        DISTRODIR_ITEM="$DISTRODIR_USER"
    else
        report="$report\nBUILD FAILED for $item"
        errorcontrol "$item"
    fi
    
    cp -ar ../$DISTRODIR_ITEM/$item/debian ./

    if [ ! -e ./.build-done ]; then
        echo 0 > "./.build-done";
    fi

    latest_ver="$(cat ./.build-done)"

    if [ "$(svn_comp_ver)" -gt "$latest_ver" ]; then
        echo -e "\nBuilding $item..."
        if $autogenpkg_cmd && buildpkg; then
            report="$report\n$item built OK"
            if [ "$item" = "beryl-core" ]; then
                wait
                echo -e "\a"
                if ! (sudo dpkg -i ../../../debs/{beryl-dev,libberylsettings}*.deb && wait); then
                    errorcontrol "$item"
                fi
            fi
            echo "$(svn_comp_ver)" > ./.build-done
        else
            report="$report\nBUILD FAILED for $item"
            wait
            errorcontrol "$item"
        fi
    elif ( [ "$(svn_comp_ver)" -le "$latest_ver" ] && ( [ -n "$(echo $* | grep "rebuild")" ] || [ -f "./.rebuild" ] ) ); then
        echo -e "\nRebuilding $item..."
        if make clean && buildpkg rebuild; then
            rm -f "./.rebuild"
            report="$report\n$item rebuilt OK"
        else
            report="$report\nREBUILD FAILED for $item"
            errorcontrol "$item"
        fi
    elif
        ( [ "$(svn_comp_ver)" -eq "$latest_ver" ] && ( [ -n "$(echo $* | grep "repack")" ] || [ -f "./.repack" ] ) ); then
            echo -e "\nRepacking $item..."
            rm -f "./.repack"
            buildpkg repack;
            report="$report\n$item repackaged OK"
    else
        report="$report\n$item already built"
    fi
    cd ../
done

echo -e "\n$report\n";
Scrivi risposta

Ritorna a “Feisty 7.04”

Chi c’è in linea

Visualizzano questa sezione: 0 utenti iscritti e 1 ospite