[sugar] google gears rpm update

David Van Assche dvanassche
Wed Jul 9 03:41:58 EDT 2008


Hi,
   I've run into some more obstacles and learned a little more about
gears...

1. Having built gears from the svn trunk source for both Fedora and Ubuntu
(sudo make BROWSER=FF3 CC=gcc34 CXX=g++34 MKSHLIB=g++34 MODE=opt -- for
Fedora), I have verified that on an already installed gears in firefox, if
you replace the 2 files libgears.so and gears.xpt, this updates the system
to the latest gears (in this case 4.2.0) This leads me to believe that those
2 files are the ones we need to manually place in the
/usr/lib/mozilla/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/ but doing that
doesn't work though it should (
http://developer.mozilla.org/en/docs/Installing_extensions)

2. This leads me to the conclusion that there must be some files being
generated elsewhere that somehow activate the gears libraries... (carried
within the .xpi), that are not available at the svn trunk. I have mailed the
google gears devs, but have not received an answer on this, though looking
through the gears mailing list, I see that they say unless one leaves the
BROWSER= empty, it doesnt create the full installer...

3. Taking out the BROWSER=FF3 and leaving it BROWSER= makes the build crash
with:

.................................................386/common/unit_test.o
-lgtk-x11-2.0 -L../third_party/gtk/linux/lib
../third_party/gtk/linux/lib/libgtk-x11-2.0.so: undefined reference to
`gdk_screen_get_font_options_libgtk_only'
../third_party/gtk/linux/lib/libgtk-x11-2.0.so: undefined reference to
`gdk_screen_set_resolution_libgtk_only'
../third_party/gtk/linux/lib/libgtk-x11-2.0.so: undefined reference to
`gdk_screen_set_font_options_libgtk_only'
../third_party/gtk/linux/lib/libgtk-x11-2.0.so: undefined reference to
`gdk_screen_get_resolution_libgtk_only'
collect2: ld returned 1 exit status
make[1]: *** [bin-opt/linux-i386/common/notifier_test] Error 1
make: *** [default] Error 2


4. Seeing as Gears is currently a beta product for developers only, this
leads me to wonder whether its best not to make an rpm that installs the
regular linux.xpi components and then from the svn trunk source copies the
.so and the xpt over the ones the installed from the .xpi... this seems
ugly, but until all the files are generated from the trunk build, I don't
know how else to do it.

5. That said, seeing as BROWSER=FF3 is what we want, maybe someone with
mozilla experience might know where to put what. There is also a chrome
directory created, which I'm not sure is important, nor where it would go
exactly (the .xpi puts everything in
./mozilla/firefox/firefox-profile-id/extensions/gears-id/chrome) but we want
it system wide, not user profile wide (right?)

So... I have a finished rpm spec file, with everything it requires, but
unless I get the missing files that are in the .xpi, I've now come as far as
I can go. This means 2 paths forwards...

1. wait till the gears devs give me an answer/fix the compile so all items
get created

2. create a hackish rpm that would install the .xpi and then the svn trunk
components manually on top...

Kind Regards,
David Van Assche
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.laptop.org/pipermail/sugar/attachments/20080709/540d9253/attachment.htm 



More information about the Sugar-devel mailing list