/srv/irclogs.ubuntu.com/2008/06/28/#ubuntu-mozillateam.txt

asacall fine?00:00
asacbimberi: yeah. ap might not be happy with 1:00:01
asacyou could also try 1:~00:01
asacVenus_Mars: the install location of components dir is not fixed00:01
asacat best wrap your component into an extension00:02
Venus_MarsI did it into extension and error console says "Failed to load XPCOM component: /home/nithin/.mozilla/firefox/gu81otyy.default/extensions/oggPusher@xiph.org/components/MyComponent.so"00:02
asacthis device is really cool ;)00:03
asacjust works I'd say00:03
asacVenus_Mars: i guess it wont load in xul components dir too00:03
Venus_Marswhen I did a nspr logging this was the output http://pastebin.org/4663200:04
asacyour component is probably wrong ;)00:04
Venus_Marsand the output of ldd -r MyComponent.so is http://pastebin.org/4663400:04
asacVenus_Mars: there is a missing symbol ;)00:04
Venus_Marsthere must be some problem with compiling.. may be should change compiling flags in Makefile00:05
asacnot sure. if you build with -fPIC and -shared it should probably work00:05
Venus_MarsI dint get you00:06
Venus_Marsthe makefile is at http://www.it.iitb.ac.in/~nithind/src/Makefile00:06
bimberiasac: ok, trying 1:~00:06
Venus_Marshttp://developer.mozilla.org/en/docs/XPCOM_Glue00:07
asacVenus_Mars: id say that its your code ;)00:08
asacVenus_Mars: yes. you get the right flags with libxul00:08
asac(XPCOM_Glue)00:08
Venus_Marsxpcom_glue shows a table which says -L/path/to/sdk/lib -lxpcomglue00:09
Venus_Marsas linker flags00:09
asacVenus_Mars: read more carefully ;)00:09
asachint: there are two type of glues ;)00:09
Venus_Marsiam thinking to use the standalone glue. am I wrong?00:10
asacyes00:11
asacstandalone is for standalone ... i dont think your component has a main method ;)00:11
Venus_Marsokie but the makefile is not using -lxpcomglue_s -lxpcom -lnspr400:14
asacVenus_Mars: it should (pkg-config)00:15
Venus_Marsecho `pkg-config --cflags libxul`00:15
Venus_Mars-fshort-wchar -I/usr/include/xulrunner-1.9/stable -I/usr/include/nspr00:15
asacVenus_Mars: yes, but those are cflags00:15
asacwhat you look for here are "linker" flags00:15
asacVenus_Mars: now that i am looking, i see the problem ;) ... look closer :)00:16
asachint: your linker flags are indeed bogus ;)00:16
Venus_Marsit should be  -L00:16
Venus_Mars?00:17
asacwhat variable stand for linker flags?00:17
Venus_Mars--libs?00:19
Venus_MarsI guess I should replace --cflags with --libs00:20
asachow could you find out?00:20
Venus_Marsman pkg-config00:20
asacone way ;) not sure if that tells you everything :)00:22
asacman, give it a try ... go00:23
Venus_Marsam I missing anything more?00:23
asaccant tell00:24
Venus_MarsWell I tried, still its not able to load00:24
Venus_Mars:(00:24
asacare linker flags correct now?00:24
asacsame issue or something else00:24
Venus_Marshttp://pastebin.org/4663900:25
Venus_Marsthe output of ldd -r MyComponent.so00:25
asacthats not really meaningful as you cannot even resolve libxul and libxpcom00:26
Venus_Marsyeah, so what can be done about libxul.so?00:27
asaclooking for compiler warnings would be a good start00:27
asacVenus_Mars: thats not your problem00:27
asacyou have to look elsewhere00:27
asacyou just cant use ldd -r that way00:27
Venus_MarsI dint get compiler warnings00:27
Venus_Marswhat should I do ?00:28
asacwhats the error you are getting ;)00:29
asacdid you install all files required?00:29
Venus_Marssymbol missing00:29
Venus_MarsNo, firefox is failing to load the component00:29
asacso which files did you install where?00:30
Venus_MarsI am installing through extension00:31
Venus_MarsI have created  components dir in my extension rootdir and then copied MyComponent.so in  components00:31
Venus_Marsand the bundle it into .xpi00:31
Venus_Marsand then I open it with firefox00:32
Venus_MarsAm I meaningful?00:33
asacinstall  the .xpt as well00:33
Venus_MarsYeah I have included IMyComponent.xpt as well00:34
Venus_Marswell my plugin is accessible www.it.iitb.ac.in/~nithind/firefox-extension00:39
Venus_MarsI mean the extension00:39
Venus_Marsstill no clue?00:41
bimberiasac: "Conflicts: j2re1.4 (<< 1:~)" works too.01:36
Venus_Marsasac: I have figured it out finally01:54
Venus_Marsthere is one forum which suggest for changed in the linking order01:54
Venus_Mars $(FILES) $(GECKO_SDK_PATH)/lib/libxpcomglue_s.a $(GECKO_LDFLAGS)01:54
Venus_Marsthis linking order could make the undefined symbols vanish01:54
Venus_MarsIts a magic01:54
jetsaredimanyone know why on kubuntu html form fields don't have any borders in firefox 3?05:36
Kamping_Kaiserhi :)08:33
Kamping_Kaiserin the $PROJECT.mk file theres a MOZCLIENT_FILE which contains the project version - what is that path relative to?08:34
Kamping_Kaiser(i'm kgoetz from before, incase anyone wasnt aware :)). i'm still finding it all mildly confusing.08:45
gnomefreakasac fta_ and/or Jazzva the HTML Validator needs to be discussed as i just got done reading an email about it, please get in touch with me so we can decide if this is something we really want to add.10:00
gnomefreakwell i guess nevermind i didnt see asac's post to it10:01
gnomefreakasac: when are we adding NM0.7 or are we not going to? As i understand it is stable or will be shortly10:04
Jazzvaasac, I'll be back around 18h... off to the exam.10:12
JazzvaIf all of you decide we don't need htmlvalidator, I'm fine with that :)10:12
Jazzvasee ya later10:13
gnomefreakpersonally i dont like the amount of work that would be involved. I thought xulrunner was for plugins not so much extensions, im sure we can get it to work but packaging them separate i feel is better than adding it to build in a package10:17
gnomefreak[reed]: your last name isnt Friedman, please say no!10:27
gnomefreakwhos here?11:08
gnomefreaki think we can trash htmlvalidator due to the way it needs to be packaged and it is missing any license and nowher eon any of its upstream pages says anything about a license. I added post on bug report for someone to email upstream <gave email address> so please feel free to email him11:51
=== fta_ is now known as fta
ftaKamping_Kaiser: MOZCLIENT_FILE is relative to the VCS dir, except if you requested a MOZDIR12:23
gnomefreakrzr: you didnt get the email about mozillsquad due to not having email address on LP page. so i might make a note on the page to include a comment like that12:23
gnomefreakdamn i havent seen that name in ages12:24
gnomefreakhes been using his other one12:24
gnomefreakdoes anyone happent o knwo the file to edit start up processes like bluetooth and trackerd ect...12:25
Kamping_Kaiserfta, thanks12:28
ftaKamping_Kaiser, could you paste your .conf ?12:29
Kamping_Kaiserfta, i havent made any changes yet, just trying to understand the firefox-3.0.conf before i do12:30
Kamping_Kaiserexcept when i try and find it in the mozilla-devscripts source package i cant see it :/ only in bzr12:31
ftayep, i've refactored mozclient in mozilla-devscripts and it's not released yet. it will be in 0.0912:32
ftaasac, i want to release 0.09 ^^ wanna sponsor me ?12:32
Kamping_Kaiserah, i see. is firefox-3.0.mk.in the correct file to edit if i'm editing the 0.7 source package?12:34
gnomefreakfta: can you add sunbird 0.9 to devscripts please. its about to release rc1 and i would like to get it in PPA for testing12:34
ftagnomefreak, i already have lightning-sunbird12:35
gnomefreakit will grab rcs?12:35
ftayes12:35
gnomefreakoh ok i thought it was just stable12:35
ftafrom MOZILLA_1_8_BRANCH12:35
gnomefreakah ok12:35
ftadoesn't matter, use the proper CVS TAG12:35
gnomefreakk12:36
ftathat way, it's the same as fetching a tarball and repacking it12:36
gnomefreakyep i like devscripts for that reason including nobinonly ;)12:37
Kamping_Kaiserfirefox-3.0.mk.in is quite a bit longer (and more complex) then firefox-3.0.conf :\12:39
ftayou'd better use 0.09 from bzr otherwise you will have to redo everything once it's released12:40
gnomefreakfta: that was for Kamping_Kaiser right?12:41
ftagnomefreak, yes12:41
Kamping_Kaiserfta, hm, ok.12:42
ftaKamping_Kaiser, it should be similar, except the wrapped lines12:42
Kamping_Kaiserfta, so i need to customise m-d and instlal the package, then i can use the custom .conf from my new m-d to build a customised FF3 - is that correct?12:43
ftawell, you only used touched the mozclient part of m-d so it should not me needed to build, just to create the tarball12:46
fta-used12:46
Kamping_Kaiser!pastebin12:51
ubottupastebin is a service to post multiple-lined texts so you don't flood the channel. The Ubuntu pastebin is at http://paste.ubuntu.com (make sure you give us the URL for your paste - see also the channel topic)12:51
Kamping_Kaiserre paste of my .conf: only one line in it so far - http://paste.ubuntu.com/2349512:53
Kamping_Kaisersome lucky person is 8 away froma  23456 get12:53
Kamping_Kaiser*1112:53
ftaKamping_Kaiser, so you only changed MOZCLIENT_APPNAME right ?12:55
Kamping_Kaiserfta, yes.12:55
Kamping_Kaiseri /just/ made the change (i havent worked on this at all today)12:55
* Kamping_Kaiser changes copyright notice13:01
gnomefreakcan i use mozdate and mozbranch?13:02
ftayes13:03
ftagnomefreak, what do you want to do ?13:04
gnomefreakfor sunbird 0.913:04
ftause a tag13:04
ftanot a date13:04
gnomefreakok and i still neeed branch right?13:05
ftayes13:05
ftain fact no, it's in the project file by default13:05
ftabut there's no sunbird 0.9 tag yet13:06
gnomefreakso no way to grab it?13:06
gnomefreaki miss the old readme file13:06
ftahttp://paste.ubuntu.com/23501/13:06
gnomefreakso i guess im waiting13:07
ftawas it announced ?13:07
gnomefreaki got an announcement that rc1 will be released in a day or 313:07
gnomefreaki dont remember exact date. but string freeze is now13:08
gnomefreakone of the 100 mozilla mailing lists im on13:08
gnomefreaki want to say it was dev-app mailing list13:08
gnomefreakdoes it have to be announced if its on ftp.mozilla?13:09
ftaoh, i saw the string freeze too but it doesn't mean the tag is there13:10
ftayes, i guess the sunbird team will blog about it13:10
ftais it just me or grep -i is broken in intrepid ?13:10
ftahttp://paste.ubuntu.com/23503/13:12
Kamping_Kaiserfta, i've created a new .conf file (in src/mozclient/), do i need to create a new .mk.in?13:13
ftayes, and edit the Makefile accordingly13:13
ftathe .mk file is only useful if you want a get-orig-source in your debian/rules13:14
gnomefreakfta: works here gnomefreak@Development:~$ echo FOOBAR | grep -i FOO13:15
gnomefreakFOOBAR13:15
gnomefreakatleast that is working afaict13:15
gnomefreakoh nevermind it should be in lowercase13:15
ftano13:15
gnomefreakit should because -i == ignores case13:16
ftano, it should stay untouched13:17
ftamust13:17
gnomefreakatleast according to --help13:17
gnomefreak-i, --ignore-case         ignore case distinctions13:17
ftayes13:17
gnomefreakdefine untouched13:17
gnomefreakyour pastebin Hardy is how it should be right?13:18
ftabut ignore case during the test, but the output is not transformed, just filtered13:18
ftayes13:18
gnomefreakwell my intrepid works that way13:18
gnomefreakso i would have to say it works13:18
gnomefreakfta@cube:~ $ echo FOOBAR | grep -i FOO13:18
gnomefreakFOOBAR13:18
gnomefreakthat is how it should output it13:19
ftayes13:19
gnomefreakintrepid for me13:19
gnomefreakgnomefreak@Development:~$ echo FOOBAR | grep -i FOO13:19
gnomefreakFOOBAR13:19
gnomefreakHost 'Development', running Linux 2.6.26-2-generic - Cpu0: Intel 1681 MHz; Up: 3:48; Users: 4; Load: 0.11; Free: [Mem: 26/248 Mio] [Swap: 605/729 Mio] [/: 23913/38173 Mio]; Vpenis: 36.2 cm;13:19
gnomefreakfta: you have this version of grep? 2.5.3~dfsg-5ubuntu13:20
gnomefreak2.5.3~dfsg-5ubuntu113:20
ftayes13:20
gnomefreaksorry didnt paste the 113:20
gnomefreaknot sure why yours isnt working13:21
gnomefreakim guessing you did todays 6 packages but grep wasnt one of them IIRC13:21
gnomefreakThe following NEW packages will be installed: discover discover-data libdiscover213:21
gnomefreakThe following packages will be upgraded: debhelper debianutils gdebi gdebi-core hotkey-setup xserver-xorg-video-ati xserver-xorg-video-radeon13:21
gnomefreakthose packages?13:21
ftait's been broken for days13:22
gnomefreakhmmmm13:22
gnomefreakit works without -i for you13:22
ftayes13:22
gnomefreakdo the rest of the flags work?13:22
gnomefreakor atleast some of them (theres a crap load of flags to use)13:23
ftayes13:23
ftafta@ix:~ $ echo FOOBAR | grep -v FOO13:23
ftafta@ix:~ $ echo FOOBAR | grep -c FOO13:23
fta113:23
gnomefreakfta: what happens if you use ' around FOO13:23
ftano difference13:23
ftai've already tested tons of stuff13:23
ftai guess it's a locale issue13:24
ftabut i can't see what's wrong13:24
gnomefreakit shouold affect other flags unless you built your own/hacked it?13:25
ftai didn't13:26
gnomefreaki dont see why you would hack or build grep because honestly it already is full of crap13:26
gnomefreakit works if you use real files?13:27
gnomefreakoh thanks for reminding me to look stuff up13:27
* gnomefreak didnt know what an ibex is until just now and it looks like ill never see one :(13:28
fta66-match_icase.patch13:30
ftaThis fixes13:31
fta    echo Y | LC_ALL=en_US.UTF-8 grep -i '[y]'13:31
ftaThe expected output is:13:31
fta    Y13:31
ftaWithout this patch, it works on non UTF-8 environment, but fails on UTF-813:31
ftaenvironment.13:31
ftafta@ix:~$ echo Y | LC_ALL=en_US.UTF-8 grep -i '[y]'13:31
ftafta@ix:~$13:31
ftagnomefreak, does it work for you ?13:34
ftaintrepid13:34
gnomefreakno outpu13:34
gnomefreakt13:34
ftaare you using utf8 as locale ?13:35
gnomefreakgnomefreak@Development:~$ echo Y | LC_ALL=en_US.UTF-8 grep -i '[y]'13:35
gnomefreakgnomefreak@Development:~$13:35
fta$ echo $LANG13:35
ftaen_US.UTF-813:35
gnomefreaklol13:35
gnomefreakC13:35
gnomefreaknot sure where the hell that came from13:36
gnomefreakgnomefreak@Development:~$ echo $LANG13:36
gnomefreakC13:36
ftaok, so it was expected13:37
ftafta@ix:~$ echo Y | LC_ALL=C grep -i '[y]'13:37
ftaY13:37
gnomefreaki get Y13:39
ftai guessed ;)13:39
ftadebian bug 38770413:42
ubottuDebian bug 387704 in grep "grep: -i breaks \W in some locales (perhaps UTF-8 locales only)" [Normal,Open] http://bugs.debian.org/38770413:42
gnomefreakoh i think im C because i have it in .bashrc to get rid of locale errors/warnings in my chroots (i found no other way to apply it only to chroots13:43
ftai correctly setup locales in chroots too13:44
ftabug 24371713:49
ubottuLaunchpad bug 243717 in grep "case sensitive grep broken with UTF8 in intrepid, breaking scripts" [Undecided,New] https://launchpad.net/bugs/24371713:49
asachi15:09
ftahi15:10
asacfta: so 0.09?15:11
ftaasac, it's stable enough for my taste, and already big15:11
ftai'm ready to close it if you want to sponsor me15:12
VolansHi asac :)15:12
asacfta: typo: "taggued mozilla/client.mk"15:12
ftawhere?15:13
armin76bumbed15:13
asacoh wait let me pull the latest :)15:13
asacfta: you still appear to like "uncommitting" :) ... diverged15:13
ftai sometimes do that in the next second when i realize something is wrong, but not later15:14
asacfta: well. but i had the uncommitted change ;)15:15
asacso either i pulled in that second or you waited longer ;)15:15
asacthe changelog is incredible long15:15
asacnot really useful15:16
asacimo15:16
asaci think we could make one entry for all the new VARAIBLES15:16
asacanother for all added VCS backend15:16
asacanother for all added projects15:16
ftaas i said, it's big, i wanted this in long ago15:17
asacyeah. still the content could be compressed to something comprehensible ;)15:17
asacanyway. can do it that way15:17
asacfix the typo inthe changelog if you want ;)15:18
asacoh even two times taggued ;)15:18
ftafixed15:18
asacfta: have you tested it?15:19
ftasure15:19
asacfta: i think what we want for 0.10 is kind of make check ;)15:19
asace.g. that produces several origs, etc.15:20
fta?15:20
ftaexplain15:20
asactest-cases15:20
asacthat we can run with make check15:20
ftaoh15:20
armin76!info libnss3 intrepid15:20
ubottuPackage libnss3 does not exist in intrepid15:20
fta-0d15:20
armin76!info libnss intrepid15:20
ubottuPackage libnss does not exist in intrepid15:20
armin76bah15:20
asaci dont feel in the position to test each and every combination of project/backend anymore :)15:20
asacwhich means its time to do automated tests15:20
asac!info libnss3-0d15:21
ubottulibnss3-0d (source: nss): Transition package for Network Security Service libraries. In component main, is optional. Version 3.12.0.2+1.9-0ubuntu0.8.04.1 (hardy), package size 16 kB, installed size 84 kB15:21
asac!info libnss3-1d15:21
ubottulibnss3-1d (source: nss): Network Security Service libraries. In component main, is optional. Version 3.12.0.2+1.9-0ubuntu0.8.04.1 (hardy), package size 991 kB, installed size 2596 kB15:21
armin76fta: bumb!15:21
armin76when are you guys going to fix the ppc segfault? :P15:22
asacarmin76: we rely on contributions for that15:23
armin76just make it compile with -O115:23
armin76looks like its a bug on glibc or something, because i've been told that guile and glibc-2.8 do the same on ppc15:24
asacfta: you think you can come up with a basic script that gets latest xpi for a given AMOID from addons.mozilla.org before your leave?15:32
asacthat would help us a lot to setup new upstream branches manually i guess15:32
ftapossible15:32
asacand can certainly be reused in the final auto syncher15:32
asacfta: so whats your idea about how to code this? parse HTML?15:33
Volansasac, fta can I help in some way for that?15:33
asacVolans: yeah. what we need is a simple script that gets latest .xpi for a given AMOID from addons.mozilla.org15:33
asaci think one way would be to parse the website15:33
asacbut i think there is a smarter way15:34
Volansyes for sure... I will try15:34
asacas firefox queries addons.mozilla.org as well, there probably exists an xml interface15:34
ftahttp://paste.ubuntu.com/23524/ better ?15:36
Volansasac: I have found that if you do:15:36
asachttp://lxr.mozilla.org/seamonkey/source/toolkit/mozapps/extensions/src/nsAddonRepository.js15:36
Volans wget https://addons.mozilla.org/it/firefox/downloads/file/AMOID/15:36
asacthats the code that queries addons15:36
Volansit download the last public version15:36
Volansafter some redirect15:36
asacfta: definitly more compressed. though mostly just the file references missing i guess15:37
ftathat doubles the size15:38
ftapeople could still read bzr logs or code.lp15:38
asacyeah. thats ok15:38
asaci mean i woudl have been fine with the other changelog too. but this is better15:38
asacfta: i guess you have Vcz-Bzr in control?15:39
ftayes15:39
asacmaybe add it as reference to copyright too (if not already done)15:39
asacand README ;)15:39
asacVolans: why "it" :)15:39
asac?15:39
asaccan i replace that with nothing? or "en"?15:40
Volanssorry... I was visiting with browser and auto localizations o mozilla site ;)15:40
asacVolans: so what is the genuine URL to use for that?15:40
Volanslet me try15:40
ftaasac, closed & pushed15:41
asacgbood15:41
asacdoing some basic tests and will upload if those work ;)15:42
ftai want to change that: http://mxr.mozilla.org/mozilla/source/browser/app/Makefile.in#42915:42
asacthat specific line or that area?15:43
ftanot sure if we want to set SKIP_COPY_XULRUNNER or patch to make a symlink or something else15:43
ftafor xulapps15:43
ftathere's no way to pass SKIP_COPY_XULRUNNER from configure, or at least i don't know of any15:43
asacfta: what do you want to prevent?15:44
ftaship a full copy of xulrunner in each xulapp15:44
asacok the SKIP_COPY_XULRUNNER15:45
asacso how is it set atm?15:45
asacor is it just a "not-used" feature?15:45
ftathis is prism with my new build system: http://paste.ubuntu.com/23529/15:45
Volansasac: finally  wget  https://addons.mozilla.org/en-US/downloads/file/AMOID/ works, but wget made 3 redirect before download the final file on order to autodetect the destination program (FF, TB, SM) and the name of the latest file to be downloaded15:47
asacVolans: hm15:47
asacm15:47
Volansif you use HTTP instead of HTTPS he made another redirect... I don't know why he continues do https and http request15:47
ftaasac, SKIP_COPY_XULRUNNER is nowhere else, just in this test15:48
asacfta: ok, so its a left-over15:48
asacfta: have you tested that setting it actually works?15:48
Volanswhat trouble you asac, too much redirect?15:48
ftano, according to blame, it has been added in one shot with mozilla bug 390361 and the whole block never changed since15:49
ubottuMozilla bug 390361 in Build Config "Fix FF+XR builds to copy XR to make a complete package" [Normal,Resolved: fixed] http://bugzilla.mozilla.org/show_bug.cgi?id=39036115:49
ftathey want the xulapp to be independent of xul at runtime15:49
ftai don't think we want that15:50
asacyes. i understand that pov15:50
asacfta: depends15:50
asacfta: what kind of dependence do we need?15:50
Volansthe final link asac is something like this:  http://releases.mozilla.org/pub/mozilla.org/addons/AMOID/FILENAME-APP.xpi15:51
Volanswhit APP = 'fx' for firefox and similar... but you have to find the correct FILENAME! without dosn't work15:51
ftain our ff3 package, I patched it to set SKIP_COPY_XULRUNNER long ago15:51
ftathat's installer_shouldnt_copy_xulrunner.patch15:51
ftawe will need xulrunner-1.9 as dep, like ff315:52
asacfta: ok. but we still copy the stub right?15:53
ftaasac, ^^, or we can let each xulapp decides15:53
ftayes15:53
asaci think firefox is somewhat special15:54
Volansasac: wait I have found it! :D15:55
Volansfor example: http://releases.mozilla.org/pub/mozilla.org/addons/3863/15:55
Volansopen it in browser15:55
Volansis a watchable folder!15:55
asacnote that I am with you with the point that we want to skip xulrunner copies15:55
asacVolans: good15:56
asacthats nice15:56
Volansand I can assure you that there are only public versions... I have one waiting for approval and it is not in list15:56
Volansthen watching http://releases.mozilla.org/pub/mozilla.org/addons/AMOID/ can be the best choice if you want to avoid automatic redirect from addons.mozilla.org site15:57
asacVolans: ok you can get the version, by: xpath  -q -e '/RDF/Description/em:version/text()' install.rdf15:59
asacand if that fails its an attribute of Description:15:59
ftaasac, worse case, i can add a symlink in an "else" block.. it will then be in ff3 too but that shouldn't hurt15:59
asac/RDF/Description/@em:version16:00
ftahm, no. the symlink will not survive xul updates16:00
Volansasac: you want to made this check after download the xpi file that we suppose to be the latest?16:01
asacVolans: no. i want two scripts: 1st. download-latest <AMOID> <TARGET_DIR>16:03
asac2nd. get-xpi-info VERSION <XPI_FILE>16:03
Volansbash script?16:03
asacget-xpi-info NAME <XPI_FILE>16:03
asacVolans: whatever ;)16:03
Volansfta: you are already working on that or I can start from scratch?16:04
ftai'm already working on that16:04
asacfta: so can you give us download-latest?16:05
asac;)16:05
VolansI can help you in some way?16:05
ftanot at that point, it's still half in my brain16:05
Volansand in you files? :)16:06
ftabut if you think i'm too slow, go ahead, i'll drop the ball16:06
asacfta: its just about the two scripts :)16:06
ftaget-xpi-info is currently something that is in my old shell script16:07
ftabut i wanted a class in the main framework16:07
ftainstead of a shell script16:07
asacfta: ok. we dont need get-xpi-info now16:07
asacwhat i want is basically just download-latest16:08
Volansfta:  in what language you are writing the framework?16:08
ftaVolans, OO perl16:08
ftalike mozclient16:08
ftamaybe even cleaner16:08
* Volans never coded in perl....16:09
ftawith external plugins in any langage16:09
asacfta: did you review the config branch?16:09
ftayes, i had questions but you were offline16:09
asacfta: still have them in your mind?16:09
ftahm, nope, i'll have another look later today, after i'm back from sports16:10
asacfta: so what interface would a download-latest plugin have? isnt download-latest-amo <BRANCHID> <TARGET_DIR) ok?16:10
asacor would it rather be generic download <CONFIG_DIR>16:11
asacmaybe with <VERSION> == LATEST if ommitted16:11
Volansasac: where this framework should run? (server based, your pc, etc...)16:12
asacVolans: we have a semi-spec for that16:12
asacVolans: it should not matter where its run in the end16:13
asacits just that it need permissions to proper branches16:13
asachttps://wiki.ubuntu.com/MozillaTeam/Firefox3Extensions/LargeScaleMaintenance16:13
* Volans looks16:14
ftaVolans, by framework, i mean a set of classes used by all the binaries, to parse conf files, do amo parsing, do xpi parsing, do branch management, etc16:14
asacVolans: the current focus is on the "Auto Updater"16:14
asacwhich consists of two parts: "auto upstream branch synchs"16:15
asacand "auto branch merging"16:15
Volansok16:15
asacwe could talk about both as "tasks"16:15
asacfor the syncher ;)16:15
asacaka BOT16:15
asacso we have a configuration format proposal here:16:16
asachttps://code.edge.launchpad.net/~mozillateam/firefox-extensions/BOT.TASKS16:16
asacthats the configuration tree we would give the bot16:16
asac(just a first pitch)16:16
asacthe idea is that you can run the bot with a task config: bot upstream/amo/firefox-3.0.HEAD16:17
asacerr firebug.HEAD :)16:17
asacand the bot would know about all the magic to sync the upstream branch16:18
asacby loading plugins and so on16:18
asacthe configuration is a tree configuration. the bot would first load upstream/config, then load upstream/amo/config and then would load upstream/amo/firebug.HEAD config to get the complete configuration.16:19
asacjust look at the files in the BOT.TASKS branch16:20
VolansI understand... only a question: why not to do a separate bot only for sync with AMO xpis that run on cron and alert you and all the people needed when a new upstream version is out?16:21
asacVolans: we dont want to alert everyone that new upstream version is out, we want to alter the right people that there is a new merge ready to be signed off / or that needs manual interaction16:22
Volansthen all the BOT will run on a cron basis...16:22
Volanss/all/the whole/16:22
asacVolans: yes.16:24
asacthe bot would basically run over the config tree and process each config file (which represents a task)16:24
Volansyou can made a choice that I think is no very restrictive... insert the basename of the xpi in the config file16:25
asacVolans: why?16:25
asacwe just need AMOID16:25
asacVolans: look at the config file . there already is a name for the upstream branch.16:25
Volanswhen I upload a new version of my extension on AMO site... the site will change the name automatically based on extension name and version adding also a APPLICATION suffix at the end, maybe can help for finding the latest version16:26
asacVolans: if its required we can add it. just hoped there is something that doesnt require us to intepret the version16:29
ftaleaving for 2h~3h. please write down your ideas & concerns16:30
ftac u16:30
Volansasac: problem... I have found a AMOID not present in oregon state archive...16:31
Volansdamnit16:31
* Volans doing random tests to verify if it works in every case16:31
Volanssorry.... my fault I have used fileid instead of AMOID... works! :D16:33
asacVolans: i have written a protoype bot that reads the config hierarchy16:33
asachttps://code.edge.launchpad.net/~mozillateam/firefox-extensions/BOT16:33
asacruntask is a shell script that parses the config as specified16:34
asacand runs the task plugin found for the config16:34
asace.g. in the example its "UPSTREAM"16:34
Volansyeah I see16:35
asacso you run runtask upstream/amo/flashblock.ubuntu.HEAD16:35
asacto test ;)16:35
asacshould probably be AMO_UPSTREAM ;)16:37
asacor UPSTREAM will exists and uses GET_LATEST_AMO + UPDATE_BZR_TREE16:38
asac:)16:38
asacmost likely thats the right idea ;)16:38
Volansok, I'm reading the sh script... you write bash with different style16:39
asacmost likely. never really tried to look for "clean" scripting ;)16:39
Volansno is clear... only tests... I use [] in if and other tests... you the "test" statement16:40
asacyeah16:40
asacVolans: i am always confused by what is available in which sh-dialect16:41
asacso i use what appears to be "most" primitive ;)16:41
asacwithout actually knowing anything ;)16:41
Volanscorrect... I use always bash not sh... but just for "habitude!16:44
Volans"16:44
asacso runalltasks would basically just be: "find -type f /path/to/BOT.TASKS/ | grep -v config$"16:44
asacerr flip arguments of find obviously :)16:44
Volansor better making a config file with all the BOT.TASK files and parse it line per line16:45
asacfind -type f /path/to/BOT.TASKS/ | grep -v config$ | xargs runtask16:45
Venus_Marshi Volans16:45
asacflipped again16:45
Volanshi Venus_Mars16:45
Volansasac: in order to test it I have to download also a task tree from the previous branch?16:46
Volans(~mozillateam/firefox-extensions/BOT.TASKS)16:48
asacVolans: no that happens automatically iirc16:48
asacyes: bzr branch $ENV_TASKS_BRANCH $tasksconfigdir16:48
Volansasac: sorry, probably I don't have understand something... I run:  ./runtask upstream/amo/config17:06
asacVenus_Mars: btw, i found a better example for you :)17:07
Volansor  ./runtask upstream/amo/flashblock.ubuntu.HEAD with different results17:07
asachttp://developer.mozilla.org/en/docs/Creating_XPCOM_Components:Using_XPCOM_Utilities_to_Make_Things_Easier17:07
asacjust get the webblock.cpp17:07
asacand build it like:17:07
asacgcc -o /usr/lib/xulrunner-1.9/components/libnssample.so -shared -fPIC nsSample.cpp `pkg-config --cflags --libs libxul`17:08
asac(with sudo ;))17:08
asacwell nsSample.cpp is webblock.cpp ;)17:08
asacweblock2.cpp ;)17:08
asachehe17:08
Venus_MarsYeah I got this link yesterday but was almost exhausted...17:09
Venus_MarsYeah today I may try with more experiments17:09
asacVenus_Mars: just try that ;)17:09
asacthen you can use:17:09
asacsh /usr/lib/xulrunner-1.9/run-mozilla.sh /usr/bin/xpcshell-1.917:09
asacjs> Components.classes['@company.com/sample'].createInstance()17:09
asac[xpconnect wrapped nsISupports]17:09
asac;)17:09
Venus_Marsyeah sure....17:10
asacafter that, stop reinventing the wheel and code you xpcom components in a proper build system where you dont have to fight things you dont want to fight17:11
Venus_Marsheh17:11
Venus_Marsyeah17:11
=== asac_ is now known as asac
=== asac__ is now known as asac
Venus_Marsasac: want some examples where an extension can you upload files19:05
VolansVenus_Mars: the site where it can upload or what?19:19
Venus_Marsupload files to a site19:20
VolansI don't have undestand you question Venus_Mars.... what kind of examples you want?19:21
Venus_Marsa javascript which ll upload a local file to a remote system19:21
Volansyou don't have already found such similar extensions?19:22
Volans(iirc in the past talk we had)19:22
Venus_Marswell, their code involves lot of classes...simply untraceable19:23
* Volans dinner time... come back later19:40
Jazzvadoes anyone know if gnomefreak set the membership for ubuntu-mozillasquad to auto-expire one month after joining the team?19:56
[reed]do members of MozillaTeam _have to_ get e-mail for everybody that joins ubuntu-mozillasquad?19:59
[reed]:(19:59
armin76haha20:10
armin76asac: i wonder if the sparc segfault could be related to some -O flag...-O3?20:14
armin76s/segfault/bus error20:14
armin76nope20:20
armin76i've rebuilt it using mozilla's default and it doesn't give bus error here20:21
Jazzva[reed], Mozilla Team is the owner of ubuntu-mozillasquad so far... So, I suppose the answer is yes. Maybe it can be turned off somewhere, or something. :)20:28
* Volans back.... :)22:29

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!