Re: [Sugar-devel] Bug 1240354 - SoaS live x86_64 20150706 does not login from live system user

2015-09-04 Thread Peter Robinson
On 4 Sep 2015 00:22, "Martin Abente"  wrote:
>
>
>
> On Thu, Sep 3, 2015 at 6:43 PM, James Cameron  wrote:
>>
>> The errors complain of missing symbols;
>>
>> - sugar_event_controller_get_state
>>
>> - acme_volume_alsa_new
>>
>> Which were both added after 0.98.
>>
>> On my F18 test systems, the package sugar-toolkit-0.98 brings in a
>> _sugarext.so file in /usr/lib/python2.7/site-packages/sugar/ which
>> does not have these symbols.
>>
>> If this file were being used instead, then the outcome may be as
>> reported.
>>
>> Is the package present?
>
>
> No, is not present. Also, that does not explain why the same 106 packages
work perfectly fine on fc23 when are built for fc22, while they fail when
built for fc23.
>
> As you mentioned in a previous reply, the only difference in build time I
also noticed, looking at the logs, is
the -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' flag. which is passed to
all gir-* (gobject introspection) calls.
>

Yes, it's a well advertised feature of F-23, but we're not the first distro
to enable it and unless there's dodgy stuff going on in sugar it should
cause no issues.

Peter
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Bug 1240354 - SoaS live x86_64 20150706 does not login from live system user

2015-09-04 Thread Sam P.
Hi James,

On Fri, Sep 4, 2015 at 8:44 AM James Cameron  wrote:

> @All, what is main.py and where are lines 1818 and 2637?
>
> src/jarabe/main.py is much smaller, only 425 lines.
>

That is the only main.py there is :)  Maybe it is an issue with gir?  It
isn't something that seems out of the ordinary anyway.


>
> Some other diagnosis methods to suggest:
>

I am running fedora rawhide (24).  I reinstalled the packages (dnf
reinstall sugar sugar-toolkit-gtk3) and they were reinstalled.  Rawhide
uses the fc23 packages for sugar, so hopefully this is relevant.

Sugar-runner gives the logs:

   ...
   ** (main.py:9674): WARNING **: Failed to load shared library
'libsugarext.so.0' referenced by the typelib: /lib64/libsugarext.so.0:
undefined symbol: sugar_event_controller_get_state
   ...
   GLib.Error: g-invoke-error-quark: Could not locate acme_volume_alsa_new:
'acme_volume_alsa_new': /lib64/libsugar-eventcontroller.so.0: undefined
symbol: acme_volume_alsa_new (1)

Interestingly it is trying to import the volume function from
sugar-eventcontroller.  It is actually in libsugarext.  Maybe that is
related to our issue?


> a.  in a fresh python process, try the relevant imports, e.g.
>
> from jarabe.view import gesturehandler
> from jarabe.model.sound import sound
>

The 1st imports fine.  However, attempting to create a GestureHandler
(hence invoking the functions in the library) cause an exception:
http://fpaste.org/263565/44136633/

The 2nd fails on import with:

g-invoke-error-quark: Could not locate acme_volume_alsa_new:
'acme_volume_alsa_new': /lib64/libsugar-eventcontroller.so.0: undefined
symbol: acme_volume_alsa_new (1)


>
> b.  verify a symlink is present from /usr/lib/libsugarext.so.0 to
> libsugarext.so.0.0.0 (or equivalent functionality, as this is a
> guess from my experience with F18),
>

Yes, it is there.


>
> c.  use strings to check libsugarext.so.0, see if
> sugar_event_controller_get_state is present,
>
> strings /usr/lib/libsugarext.so.0 | \
> grep sugar_event_controller_get_state
>

Yes, that works cool.  The volume function is also in the libsugarext as
expected.

Thanks,
Sam
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Bug 1240354 - SoaS live x86_64 20150706 does not login from live system user

2015-09-04 Thread James Cameron
[repost, no response seen]

Martin showed a log of

** (main.py:1818): WARNING **: Failed to load shared library
   'libsugarext.so.0' referenced by the typelib:
   /lib64/libsugarext.so.0: undefined symbol:
   sugar_event_controller_get_state

Compare with previous report
http://paste.fedoraproject.org/260680/69152144/

** (main.py:2637): WARNING **: Failed to load shared library
   'libsugarext.so.0' referenced by the typelib:
   /lib/libsugarext.so.0: undefined symbol:
   sugar_event_controller_get_state

The line number is different.

@All, what is main.py and where are lines 1818 and 2637?

src/jarabe/main.py is much smaller, only 425 lines.

Some other diagnosis methods to suggest:

a.  in a fresh python process, try the relevant imports, e.g.

from jarabe.view import gesturehandler
from jarabe.model.sound import sound

b.  verify a symlink is present from /usr/lib/libsugarext.so.0 to
libsugarext.so.0.0.0 (or equivalent functionality, as this is a
guess from my experience with F18),

c.  use strings to check libsugarext.so.0, see if
sugar_event_controller_get_state is present,

strings /usr/lib/libsugarext.so.0 | \
grep sugar_event_controller_get_state

-- 
James Cameron
http://quozl.linux.org.au/
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Image Processing using three.js and ANNs

2015-09-04 Thread Gonzalo Odiard
Hi Sneha,
Probably you know more about the probabilities of ANNs than us
I needed google to know the acronym meaning :)
What use you image can have related to education?
By example, can recognize images?
Could be used to recognize letters written by a kid?
By example to help a kid learn to write

Gonzalo

On Tue, Sep 1, 2015 at 11:30 PM, Sneha Mohanty  wrote:

> I am planning to do my final year Undergraduate project on the topic
> "Image Processing using three.js and ANNs" .
>
> Is there a way that someone can suggest , where the above topic can be
> implemented *usefully* in the sugar environment ?
>
> Please do let me know.
>
> Regards,
> Sneha
>
> ___
> Sugar-devel mailing list
> Sugar-devel@lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
>
>


-- 
Gonzalo Odiard
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Want to contribute

2015-09-04 Thread Gonzalo Odiard
Hi Utkarsh,
Do you have a development environment installed?
There are information on developer.sugarlabs.org
After that, what you would like to work on?
One option is check in our bug database (bugs.sugarlabs.org)
and try to solve some bug.
Another is start some project, by example implementing some webservice:
http://wiki.sugarlabs.org/go/Web_Services

On Thu, Sep 3, 2015 at 4:40 PM, Utkarsh Tiwari 
wrote:

> Hello!
>
>  I would like to contribute to some sugar project. Could anyone
> please guide me. I have developed around 5 activities. Want to work on some
> core project.
>
> Thank You.
>
> ___
> Sugar-devel mailing list
> Sugar-devel@lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
>
>


-- 
Gonzalo Odiard
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Bug 1240354 - SoaS live x86_64 20150706 does not login from live system user

2015-09-04 Thread Martin Abente
Hello Peter,

On Fri, Sep 4, 2015 at 5:50 AM, Peter Robinson  wrote:

>
> On 4 Sep 2015 00:22, "Martin Abente" 
> wrote:
> >
> >
> >
> > On Thu, Sep 3, 2015 at 6:43 PM, James Cameron  wrote:
> >>
> >> The errors complain of missing symbols;
> >>
> >> - sugar_event_controller_get_state
> >>
> >> - acme_volume_alsa_new
> >>
> >> Which were both added after 0.98.
> >>
> >> On my F18 test systems, the package sugar-toolkit-0.98 brings in a
> >> _sugarext.so file in /usr/lib/python2.7/site-packages/sugar/ which
> >> does not have these symbols.
> >>
> >> If this file were being used instead, then the outcome may be as
> >> reported.
> >>
> >> Is the package present?
> >
> >
> > No, is not present. Also, that does not explain why the same 106
> packages work perfectly fine on fc23 when are built for fc22, while they
> fail when built for fc23.
> >
> > As you mentioned in a previous reply, the only difference in build time
> I also noticed, looking at the logs, is
> the -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' flag. which is passed to
> all gir-* (gobject introspection) calls.
> >
>
> Yes, it's a well advertised feature of F-23, but we're not the first
> distro to enable it and unless there's dodgy stuff going on in sugar it
> should cause no issues.
>

I rebuilt [1] the sugar-toolkit-gtk3 106 packages for fc23, adding "%undefine
_hardened_build" [2,3] to the .spec file, and now Sugar works fine on fc23.

I could not figure out why having _hardened_build enable breaks sugar, but
it looks like disabling could be an option for now.

Refs:
1. http://people.sugarlabs.org/~tch/tests/fedora23/
2. https://bugzilla.redhat.com/show_bug.cgi?id=1214506#c2
3.
https://fedoraproject.org/wiki/Changes/Harden_All_Packages#Troubleshooting_steps_for_package_maintainers


> Peter
>
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Bug 1240354 - SoaS live x86_64 20150706 does not login from live system user

2015-09-04 Thread Martin Abente
Hey James,

I did these tests on a fc23 system with two different builds of the
sugar-toolkit-gtk3 106 package: (A) built for fc23, and (B) built for fc22.

On Fri, Sep 4, 2015 at 7:41 AM, James Cameron  wrote:

> [repost, no response seen]
>
> Martin showed a log of
>
> ** (main.py:1818): WARNING **: Failed to load shared library
>'libsugarext.so.0' referenced by the typelib:
>/lib64/libsugarext.so.0: undefined symbol:
>sugar_event_controller_get_state
>
> Compare with previous report
> http://paste.fedoraproject.org/260680/69152144/
>
> ** (main.py:2637): WARNING **: Failed to load shared library
>'libsugarext.so.0' referenced by the typelib:
>/lib/libsugarext.so.0: undefined symbol:
>sugar_event_controller_get_state
>
> The line number is different.
>
> @All, what is main.py and where are lines 1818 and 2637?
>
> src/jarabe/main.py is much smaller, only 425 lines.
>
> Some other diagnosis methods to suggest:
>
> a.  in a fresh python process, try the relevant imports, e.g.
>
> from jarabe.view import gesturehandler
> from jarabe.model.sound import sound
>

A) built for fc23: does NOT work, showing the same error as I the logs
previously posted.
B) built for fc22: does work, and sugar works too.


>
> b.  verify a symlink is present from /usr/lib/libsugarext.so.0 to
> libsugarext.so.0.0.0 (or equivalent functionality, as this is a
> guess from my experience with F18),
>

A) built for fc23: symlink IS present.
B) built for fc22: symlik IS present.


>
> c.  use strings to check libsugarext.so.0, see if
> sugar_event_controller_get_state is present,
>
> strings /usr/lib/libsugarext.so.0 | \
> grep sugar_event_controller_get_state
>

A) built for fc23: the string IS present ("acme_volume_alsa_new" is string).
B) built for fc22:  the string IS present ("acme_volume_alsa_new" is
string).


> --
> James Cameron
> http://quozl.linux.org.au/
> ___
> Sugar-devel mailing list
> Sugar-devel@lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
>
>
On Fri, Sep 4, 2015 at 7:41 AM, James Cameron  wrote:

> [repost, no response seen]
>
> Martin showed a log of
>
> ** (main.py:1818): WARNING **: Failed to load shared library
>'libsugarext.so.0' referenced by the typelib:
>/lib64/libsugarext.so.0: undefined symbol:
>sugar_event_controller_get_state
>
> Compare with previous report
> http://paste.fedoraproject.org/260680/69152144/
>
> ** (main.py:2637): WARNING **: Failed to load shared library
>'libsugarext.so.0' referenced by the typelib:
>/lib/libsugarext.so.0: undefined symbol:
>sugar_event_controller_get_state
>
> The line number is different.
>
> @All, what is main.py and where are lines 1818 and 2637?
>
> src/jarabe/main.py is much smaller, only 425 lines.
>
> Some other diagnosis methods to suggest:
>
> a.  in a fresh python process, try the relevant imports, e.g.
>
> from jarabe.view import gesturehandler
> from jarabe.model.sound import sound
>
> b.  verify a symlink is present from /usr/lib/libsugarext.so.0 to
> libsugarext.so.0.0.0 (or equivalent functionality, as this is a
> guess from my experience with F18),
>
> c.  use strings to check libsugarext.so.0, see if
> sugar_event_controller_get_state is present,
>
> strings /usr/lib/libsugarext.so.0 | \
> grep sugar_event_controller_get_state
>
> --
> James Cameron
> http://quozl.linux.org.au/
> ___
> Sugar-devel mailing list
> Sugar-devel@lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
>
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Bug 1240354 - SoaS live x86_64 20150706 does not login from live system user

2015-09-04 Thread Jerry Vonau


> On September 4, 2015 at 6:12 PM Jerry Vonau  wrote:
> 
> 
> 
> 
> > On September 4, 2015 at 12:37 PM Martin Abente
> >  wrote:
> > 
> > 
> > Hello Peter,
> > 
> > On Fri, Sep 4, 2015 at 5:50 AM, Peter Robinson 
> > wrote:
> > 
> > >
> > > On 4 Sep 2015 00:22, "Martin Abente" 
> > > wrote:
> > > >
> > > >
> > > >
> > > > On Thu, Sep 3, 2015 at 6:43 PM, James Cameron 
> > > > wrote:

> > > >> Is the package present?
> > > >
> > > >
> > > > No, is not present. Also, that does not explain why the same 106
> > > packages work perfectly fine on fc23 when are built for fc22, while
> > > they
> > > fail when built for fc23.
> > > >
> > > > As you mentioned in a previous reply, the only difference in build
> > > > time
> > > I also noticed, looking at the logs, is
> > > the -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' flag. which is
> > > passed to
> > > all gir-* (gobject introspection) calls.
> > > >
> > >
> > > Yes, it's a well advertised feature of F-23, but we're not the first
> > > distro to enable it and unless there's dodgy stuff going on in sugar
> > > it
> > > should cause no issues.
> > >
> > 
> 
> Added both bugs listed in bugzilla as blockers for Bug 1199775 -
> (harden-failure)
> 
> > I rebuilt [1] the sugar-toolkit-gtk3 106 packages for fc23, adding
> > "%undefine
> > _hardened_build" [2,3] to the .spec file, and now Sugar works fine on
> > fc23.
> >
> 
> Comparing build.logs on F23 with/without hardened_build these stick out
> vs
> F22:
> -DGLIB_MIN_REQUIRED_VERSION=GLIB_VERSION_2_42
> -DGLIB_MAX_ALLOWED_VERSION=GLIB_VERSION_2_44
> 
> Think those flags get pulled into the buildroot via gtk3-devel[1] with
> the
> change introduced in July[2] , glib2 with F22 having 2.44 and F23 having
> 2.45
>

That was not fruitful, just had to check for my own curiosity.

> > I could not figure out why having _hardened_build enable breaks sugar,
> > but
> > it looks like disabling could be an option for now.
> 
> I have a theory that hardened_build enforces those flags while 2.45 is
> installed in the buildroot but doesn't fail the building.

Nope, makes no difference with hardened_build in effect. The debugging link
[3] as hardened_build is enforcing -fPIE, so debugging is at 3b for who
ever take the next steps.

Jerry
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Bug 1240354 - SoaS live x86_64 20150706 does not login from live system user

2015-09-04 Thread James Cameron
So to briefly restate.

Problem: Sugar does not start on F23.

Diagnosis: the shared library libsugarext.so.0 cannot be loaded,
because of a missing symbol, yet the symbol can be found with
strings(1).

Workaround #1: use F22 packages.

Workaround #2: use Martin's packages which were a rebuild of
sugar-toolkit-gtk3 with .spec file change

%undefine _hardened_build

As this was a Fedora change, I think we need some advice on
compatibility with Fedora build hardening.  We don't see the same
thing with the build hardening on Debian or Ubuntu yet.

-- 
James Cameron
http://quozl.linux.org.au/
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Bug 1240354 - SoaS live x86_64 20150706 does not login from live system user

2015-09-04 Thread Jerry Vonau


> On September 4, 2015 at 12:37 PM Martin Abente
>  wrote:
> 
> 
> Hello Peter,
> 
> On Fri, Sep 4, 2015 at 5:50 AM, Peter Robinson 
> wrote:
> 
> >
> > On 4 Sep 2015 00:22, "Martin Abente" 
> > wrote:
> > >
> > >
> > >
> > > On Thu, Sep 3, 2015 at 6:43 PM, James Cameron 
> > > wrote:
> > >>
> > >> The errors complain of missing symbols;
> > >>
> > >> - sugar_event_controller_get_state
> > >>
> > >> - acme_volume_alsa_new
> > >>
> > >> Which were both added after 0.98.
> > >>
> > >> On my F18 test systems, the package sugar-toolkit-0.98 brings in a
> > >> _sugarext.so file in /usr/lib/python2.7/site-packages/sugar/ which
> > >> does not have these symbols.
> > >>
> > >> If this file were being used instead, then the outcome may be as
> > >> reported.
> > >>
> > >> Is the package present?
> > >
> > >
> > > No, is not present. Also, that does not explain why the same 106
> > packages work perfectly fine on fc23 when are built for fc22, while
> > they
> > fail when built for fc23.
> > >
> > > As you mentioned in a previous reply, the only difference in build
> > > time
> > I also noticed, looking at the logs, is
> > the -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' flag. which is
> > passed to
> > all gir-* (gobject introspection) calls.
> > >
> >
> > Yes, it's a well advertised feature of F-23, but we're not the first
> > distro to enable it and unless there's dodgy stuff going on in sugar it
> > should cause no issues.
> >
> 

Added both bugs listed in bugzilla as blockers for Bug 1199775 -
(harden-failure)

> I rebuilt [1] the sugar-toolkit-gtk3 106 packages for fc23, adding
> "%undefine
> _hardened_build" [2,3] to the .spec file, and now Sugar works fine on
> fc23.
>

Comparing build.logs on F23 with/without hardened_build these stick out vs
F22:
-DGLIB_MIN_REQUIRED_VERSION=GLIB_VERSION_2_42
-DGLIB_MAX_ALLOWED_VERSION=GLIB_VERSION_2_44

Think those flags get pulled into the buildroot via gtk3-devel[1] with the
change introduced in July[2] , glib2 with F22 having 2.44 and F23 having
2.45
 
> I could not figure out why having _hardened_build enable breaks sugar,
> but
> it looks like disabling could be an option for now.

I have a theory that hardened_build enforces those flags while 2.45 is
installed in the buildroot but doesn't fail the building.

Jerry


1. https://github.com/GNOME/gtk/blob/master/configure.ac
2. http://osdir.com/ml/commits.gnome/2015-07/msg04431.html
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel