[Debian-olpc-devel] Bug#563436: Bug#563436: Bug#563436: Bug#563436: Bug#563436: Bug#563436: sugar-0.88: sugar depends on python-numpy and python-pygames

David Farning dfarning at ubuntu.com
Mon Jan 4 19:18:50 UTC 2010


On Mon, Jan 4, 2010 at 4:55 AM, Jonas Smedegaard <dr at jones.dk> wrote:
> On Sun, Jan 03, 2010 at 10:34:12PM -0600, David Farning wrote:
>>
>> The difference is that they expect to be able to install bundles via
>> install_activity_bundle.  From a technical POV the issue seems similar to
>> how how Debian handles mozilla add ons.  There are instances where users
>> will want the ability to use and install addons, without being limited by
>> their underlying distribution choice.
>
> Seems equal to my "User B" (even emphasized by installing parts of the Sugar
> environment through .xo bundles).
>
> If not, please elaborate.
>
>
>> The solution seem to be to create a meta package which (1) pulls in
>> the dependencies sacha mentioned and (2) recommends a collection of
>> activities.  If a user/deployer prefers to install activities via
>> install_activity_bundle they can install the meta package containing
>> the dependencies without the activities themselves.  Then they can
>> install things via ASLO.
>
> Do you mean some other package than my proposed honey-NN?

No, I have come full circle to agree with the proposed honey-NN

>> Either way, while this may be a huge philosophical difference,
>> technically it should be straight forward.  Go a head and package
>> according to debian standards and expectations.  We can add a couple
>> of changes downstream for handling ALSO installs.  If and when those
>> changes prove useful, we can talk about pushing them into Debian.
>
> What downstream hacks do you have in mind? Is it not currently working to
> install .xo bundles in Debian, or am I missing the point?

Below is a snippet of  the script to used to preinstall .xo when
constructing the Ubuntu-Sugar-Remix.  I think that SoaS does something
similar.


<snip>
## Install activities bundles ##
BUNDLE_LIST="org.laptop.community.TypingTurtle \
    org.laptop.WebActivity \
    org.laptop.Log \
    org.sugarlabs.IRC \
    com.garycmartin.Moon \
    org.laptop.sugar.ReadEtextsActivity \
    com.ywwg.CartoonBuilderActivity \
    vu.lux.olpc.Speak \
    org.laptop.ViewSlidesActivity \
    org.sugarlabs.InfoSlicer \
    org.worldwideworkshop.olpc.FlipSticks \
    org.worldwideworkshop.olpc.JigsawPuzzle \
    org.worldwideworkshop.olpc.SliderPuzzle \
    org.laptop.community.Colors \
    org.squeak.FreeCell \
    org.laptop.Analyze \
    org.laptop.Develop \
    org.laptop.TamTamEdit \
    org.laptop.TamTamJam \
    org.laptop.TamTamMini \
    org.laptop.TamTamSynthLab \
    org.laptop.Memorize \
    org.worldwideworkshop.JokeMachineActivity \
    vu.lux.olpc.Maze \
    org.worldwideworkshop.olpc.storybuilder \
    org.worldwideworkshop.PollBuilder \
    org.gnome.Labyrinth \
    org.laptop.RecordActivity \
    org.laptop.Oficina \
    tv.alterna.Clock \
    org.laptop.physics \
    org.laptop.sugar.GetIABooksActivity \
    org.laptop.Arithmetic"

BUNDLE_CACHE_DIR=${REMASTER_HOME}/bundle_cache
ASLO_SP='0.86'
ASLO_URL='http://activities.sugarlabs.org/services/update-aslo.php'
ASLO_LINK='.//{http://www.mozilla.org/2004/em-rdf#}updateLink'

function install_activity_bundles()
{
    mkdir -p $BUNDLE_CACHE_DIR

    echo "Preparing directory for activities"
    if [ -e ${REMASTER_DIR}/usr/share/sugar/activitie ]; then
    	remove_directory ${REMASTER_DIR}/usr/share/sugar/activities ||
failure "Failed to remove directory
${REMASTER_DIR}/usr/share/sugar/activities"
    fi
    mkdir -p ${REMASTER_DIR}/usr/share/sugar/activities

    for bundle_id in ${BUNDLE_LIST} ; do
	curl -4 -s -L "$ASLO_URL?id=$bundle_id&appVersion=$ASLO_SP" >
$BUNDLE_CACHE_DIR/metadata
	url=$(python -c "from xml.etree.ElementTree import parse;
url=parse('$BUNDLE_CACHE_DIR/metadata').find('$ASLO_LINK'); print url
is not None and url.text or ''")
	if [ -z "$url" ]; then
	    echo "Can not find url for $bundle_id" >&2
	    continue
	fi
	remote_file=$(basename $(curl -4 -s -L -w %{url_effective} -I $url | tail -1))
	bundle=$BUNDLE_CACHE_DIR/$remote_file
	if [ ! -f $bundle ] ; then
	    curl -4 -L $url > $bundle
	fi
	cp -p $bundle ${REMASTER_DIR}/usr/share/sugar/activities
    done

    pushd ${REMASTER_DIR}/usr/share/sugar/activities
    unp *.xo
    popd
}

install_activity_bundles
<snip>

david

> Kind regards,
>
>  - Jonas
>
> --
> * Jonas Smedegaard - idealist & Internet-arkitekt
> * Tlf.: +45 40843136  Website: http://dr.jones.dk/
>
>  [x] quote me freely  [ ] ask before reusing  [ ] keep private
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (GNU/Linux)
>
> iQIcBAEBCgAGBQJLQckuAAoJECx8MUbBoAEhhCUP/jz39DL3bj6YdwpFGKZkLRY4
> zoF7//+lsaTHanSJzvuqPJXUU5yWr72IUWHr0SPNYtjmhOgeAjP+IzAKTBmsCgHV
> Rp9WfZg/XKiy2TWAvDMxQGOZlHb7fqeZRV5FLJXJKteRRtd229R71rpnf0Pw/xdl
> YUeLtTh0585y6nWLUO53yGTD2J6WoszO6vo9WfS+r+VmOGK10Ampii5yqp4SGyVJ
> EX7MX17h9ahT4qcAf6N/JSd3tcd4EIvOit/xf7sjC6DqYCnIuPC+95380RKeB5w6
> 8GCPWoh8jG7kAdq0l9Up3yG6ZjP3ZwQHIfHHdJuHYonVNwzH46G4d5daMGwVcS+Y
> WBAj2SlrFLnbQSoxbkwQqQslEuyeZnBmKVlx1SnFoT3bam7EeJnqmt2prEEvxu4B
> KWEa9EJT48YCJk1U//vPC3VdzWctj1rZgtXJUXrA7hjHKid0w6joxPpst2ER2Ajn
> CvAFmZnbqsTfbem3vIfzK/ZiB42SeZtFxIqHMqAZD+RHJ7r+kMqZdsiL9oLpwZ7j
> bSn2D9Fk/R3c1eWSbVONl0t6hN8ns0BAZVcAaHLnqRGxS5vEZGKWpGdHec8upI4q
> tt/vbW1UMnkQbtiyAfZYy29lZCceF5lEYJcWSeghvxVoebIqJ72r5id/m+lvVoQ+
> oqH9RRCldmWv5yAJSvEF
> =fxjW
> -----END PGP SIGNATURE-----
>
>





More information about the Debian-olpc-devel mailing list