IRC log of #maemo-ssu for Saturday, 2011-06-25

*** Aranel has quit IRC01:13
*** arcean has quit IRC03:01
*** arcean has joined #maemo-ssu03:01
*** arcean has quit IRC03:01
*** M4rtinK has quit IRC03:05
*** jonwil has joined #maemo-ssu03:32
jonwilWho here is a developer for the CSSU?03:32
jonwilI have something that is a candidate for the CSSU03:33
* MohammadAG guesses libsms? :P03:33
jonwilyes :)03:34
jonwilthe libsms sutff03:34
jonwilstuff03:34
MohammadAGit's a binary patch right?03:34
jonwilyes03:34
jonwilIts clear that Nokia will never fix the bug, never release source code for libsms and never release the info that would be required to write a compatible replacement for libsms.03:35
MohammadAGtrue03:35
jonwilhence a binary patch is the best option to make Cell Broadcast SMS work03:35
jonwilThat or some kind of runtime patch to the memory of libsms.so whilst it runs inside CSD.03:36
MohammadAGthis can be done with patch right?03:36
jonwilyes fixing Cell Broadcast SMS can be done with a simple 3 byte binary patch03:36
MohammadAGsince we can't ship binaries03:36
merlin1991jonwil: what does the binary patch actually change?03:38
jonwilWhat the code does is it grabs the info_length from the tSMS_SubGSMCBMessage structure and puts it in r303:39
jonwilThe specs I have (from www.wirelessmodemapi.com) specify that a value of 0xFF for this field means the field should be ignored03:40
jonwilWhat the old code did is it said "if length = 0xFF, length = 0"03:40
jonwilwhich of course meant thing didnt work03:41
jonwilWhat my patch does (and what the matching code in the recently published Harmattan libsms does) is to say "if length > 0x52, length = 0x52"03:41
jonwil0x52 being the value of SMS_CB_MESSAGE_CONTENT_SIZE03:41
jonwiland the size of the content_of_message array in the tSMS_SubGSMCBMessage structure03:41
jonwilMy limited testing (in so far as I can only get the one Cell Broadcast SMS as that03:46
jonwilthat's all my local tower will send me03:46
jonwilshows that it works03:46
jonwiland I get a decoded and usable SMS out of it03:46
jonwilso what is the best way forward?03:49
*** the_lord has joined #maemo-ssu03:49
merlin1991finding out the best way to apply the binary patch with a deb without shipping the full binary03:50
merlin1991and of having it removed on uninstall again03:51
merlin1991s/of/ofc/03:51
jonwilI have absolutely no clue how to do that03:53
merlin1991neither have I, but I'm just a tester / docs guy :D03:54
jonwilI think maybe the LD_PRELOAD idea is a better one although I dont know how LD_PRELOAD would work in this case (ARM linux, position-independent-code etc)04:09
jonwilCloning the one function involved is definatly possible though :)04:09
* jonwil thinks we need some technical advise as to how things should be done :)04:20
*** the_lord has quit IRC04:21
MohammadAGI'm assuming "patch" can't do binary patches?04:27
jonwilAs far as I know, no it cant04:33
*** m0use has joined #maemo-ssu04:38
*** the_lord has joined #maemo-ssu04:39
the_lordDocScrutinizer: http://www.meegoexperts.com/2011/06/nokia-talking-hack-friendly-developer-mode-n9/ how about that?04:40
jonwilI think we need to find someone who knows a lot about Debian packaging who can tell us how we can do a reversible binary patch via a .deb file (or alternately somehow modify the /etc/event.d/csd file to LD_PRELOAD our LD_PRELOAD library if we go that way)04:53
jonwilSo really we have 4 different issues here, the first is figuring out the best way to deal with the libsms bug, the second is finding some code to decode the Cell Broadcast SMS's, the third is finding more info on CBSMS so we can make sure said code properly decodes all the different possible Cell Broadcast messages and the forth is to figure out how the different Cell Broadcast SMS messages...05:18
jonwil...should be displayed and write a UI for them05:18
jonwilIs there a CSSU mailing list or something that might be better to discuss this?05:28
*** Sc0rpius has quit IRC05:35
*** Jade has quit IRC05:40
MohammadAGmaemo-developers, prefix the message with [CSSU]05:50
jonwilok, will post there with a subject like [CSSU] Advice wanted on the best way to package bugfix for closed libsms library05:59
jonwilok, sent06:31
jonwilLets hope some of the CSSU gurus can advise as to the way forward06:31
*** psycho_oreos has quit IRC07:14
*** DocScrutinizer has quit IRC07:31
*** DocScrutinizer has joined #maemo-ssu07:31
*** the_lord has quit IRC07:38
*** psycho_oreos has joined #maemo-ssu07:52
DocScrutinizerjonwil: merlin1991: I'm about to write the patcher function, unpatch is simple isn't it? just keep backup of file08:31
jonwilyeah08:32
jonwilit would be08:32
DocScrutinizerjust figuring how to best script binary patching with busybox08:33
DocScrutinizersomething along the line >>> od | sed | prin <<<08:34
DocScrutinizerprint even08:34
DocScrutinizeras I'm not aware of any proper generic binary patching tool08:35
jonwilAny further ideas on how to do the patching?10:03
DocScrutinizerI'm working on it10:18
jonwilok10:18
jonwilsounds good :)10:18
DocScrutinizercoming up with a patch app shortly10:18
jonwilnice10:20
jonwilI think I will ask on the ofono mailing list about the ofono Cell Broadcast SMS code10:41
jonwiland how I can reuse the decoding logic for my own SMS work10:41
Jaffajonwil: In the middle or replying tp your post. Thanks for taking the effort.10:52
jonwilgreat10:53
JaffaBut browser crashed, so I'll have to finish it later.10:53
jonwilok10:53
JaffaShort version: I think binary patching10:53
jonwilShould I go ahead and post on the ofono mailing list asking about the ofono Cell Broadcast SMS decoding logic and how I can use it?10:54
jonwilOr is there a better way to do that?10:54
JaffaDoesn't do any harm to ask more questions and get more ppl involved10:54
JaffaYour emails aren't "I haz problems. Can u help?" after all10:55
*** psycho_oreos has quit IRC11:01
*** jonwil has quit IRC11:12
*** M4rtinK has joined #maemo-ssu11:25
*** m0use has quit IRC12:57
*** psycho_oreos has joined #maemo-ssu13:16
*** psycho_oreos has quit IRC13:32
*** Milhouse has quit IRC13:37
*** Milhouse has joined #maemo-ssu13:47
*** Milhouse has joined #maemo-ssu13:47
*** M4rtinK has quit IRC13:47
*** psycho_oreos has joined #maemo-ssu14:17
*** jonwil has joined #maemo-ssu14:26
thp"I haz problems. U fix ofono! kthxbye @}->--"14:39
*** Jade has joined #maemo-ssu15:13
*** Jade has joined #maemo-ssu15:13
*** arcean has joined #maemo-ssu15:14
DocScrutinizergood luck with getting answers from ofono ;-P15:28
DocScrutinizerall I heard was these guys are as responsive as Nokia at large. Wait... probably ofono and Nokia is only marginally different, both in staff and standards on replying to "outsider" requests15:30
DocScrutinizerYMMV, dunno15:31
*** BCMM has joined #maemo-ssu17:11
*** BCMM has quit IRC18:55
jonwil~19:51
thpbtw, is anybody working on portrait mode desktop now that we've got awesome 'mixed windows in portrait mode' support in the task switcher?20:11
merlin1991thp: there was a lot of talk and idea gathering some time ago, but I don't think anybody is working on it20:16
thpmerlin1991: any blockers where community members can help?20:16
merlin1991ping MohammadAG he should know about it :D20:17
merlin1991are you still @ europython?20:17
merlin1991I just noticed a feature from the n900 wich I misso on ubuntu :D20:18
merlin1991can't move to the rightmost screen from the 1st one (leftmost)20:18
MohammadAGI suck at C is the blocker for me20:20
MohammadAGno one's working on it20:20
merlin1991MohammadAG: I think the final idea was to have some fancy algorithm calculate the initial position of items, but have stored positions for both modes (portrait / landscape) right?20:22
MohammadAGyes20:23
MohammadAGJaffa had the algorithm20:23
DocScrutinizerjonwil: patcher almost done, ttyl20:26
thpmerlin1991: back in vienna since 9am today20:29
thpmerlin1991: now for some final java exercise work for uni, probably skipping DIF20:30
DocScrutinizerJaffa: I disagree about depending every patch on mp-fremantle-community-pr21:35
DocScrutinizerJaffa: this mp should only bundle essential things that modify the system in a way that has global impact on the way things work.21:37
DocScrutinizerthe patch to the sms lib is really unrelated to anything, and system will live on happily not matter if it's stock and patched, or cssu and patched, or not patched at all21:38
DocScrutinizerthe patcher (I just finished on it) should rather get pulled in by anything actually dealing with the resulting smscb messages21:39
DocScrutinizerI'd absolutely agree on hosting this whole package on cssu, but as a separate deliberately installable package, not as part of the metapackage21:40
*** jonwil has quit IRC21:43
*** M4rtinK has joined #maemo-ssu21:45
DocScrutinizercould smebody enlighten me about which of the libsms.so, in which version (bytelength fine) jonwil is talking when he elaborates on how to bytepatch it for SMSCB?22:02
DocScrutinizerFQN + bytelength welcome22:02
DocScrutinizermy libs with name *libsms* all don't hafe the right value at the given addr :-/22:03
DocScrutinizerhave*22:03
*** Sc0rpius has joined #maemo-ssu22:07
*** freemangordon-n9 has joined #maemo-ssu22:23
*** freemangordon-n9 has quit IRC23:16
JaffaDocScrutinizer: Yes, if there's an app which you need to do anything with it, then sure. But what do you mean "hosted by the CSSU"23:22
JaffaDocScrutinizer: That doesn't make sense.23:22
DocScrutinizerwe got a repo, no?23:23
JaffaWhy use it rather than Extras?23:23
DocScrutinizerthought that repo can host pkgs, just like extras-devel23:23
JaffaThe only advantage of the CSSU repo is that HAM will allow it to be treated as a system repo. Which an end-user CB SMS & libsms-binary-patch doesn't need23:24
DocScrutinizerno particular reason, never mind23:24
DocScrutinizernot for this one23:24
DocScrutinizeryes23:24
JaffaCool :)23:24
DocScrutinizerJaffa: can you reproduce jonwil's patching?23:24
DocScrutinizermy lib seems to differ completely23:25
JaffaI haven't had a chance to try23:25
DocScrutinizerplus there are even 4 different libsms.so arounf on my 2 N900 ;-P23:25
DocScrutinizerplus there are even 4 different libsms.so arounf on my 2 N900 ;-P23:26
DocScrutinizert900:~# ls -l /usr/lib/libsms.so.0.0.023:26
DocScrutinizer-rw-r--r--    1 root     root        45392 Nov 16  2009 /usr/lib/libsms.so.0.0.023:26
DocScrutinizert900:~# uname -a23:26
DocScrutinizerLinux t900 2.6.28.10power46 #1 PREEMPT Sun Dec 12 03:11:24 EET 2010 armv7l unknown23:26
DocScrutinizer.23:26
DocScrutinizerIroN900:~# ls -l `find /usr -name '*libsms*'`23:26
DocScrutinizerlrwxrwxrwx 1 root root    15 2010-06-23 06:08 /usr/lib/libsms.so.0 -> libsms.so.0.0.023:26
DocScrutinizer-rw-r--r-- 1 root root 79964 2009-12-15 14:41 /usr/lib/libsms.so.0.0.023:26
DocScrutinizerlrwxrwxrwx 1 root root    21 2010-06-23 06:07 /usr/lib/libsms-utils.so.0 -> libsms-utils.so.0.0.023:26
DocScrutinizer-rw-r--r-- 1 root root 42932 2009-12-16 11:31 /usr/lib/libsms-utils.so.0.0.023:26
DocScrutinizer-rw-r--r-- 1 root root  7836 2010-02-04 10:50 /usr/lib/rtcom-eventlogger/plugins/libsms.so23:26
DocScrutinizeron CSSU PR1.323:27
DocScrutinizerI'm puzzled23:27
DocScrutinizerthe t900 2.6.28.10power46 is a PR1.2 based system still23:28
DocScrutinizerso 45392 Nov 16  2009 /usr/lib/libsms.so.0.0.0 is PR1.2 (too short for patching ;-P), while 79964 2009-12-15 14:41 /usr/lib/libsms.so.0.0.0 doesn't have matching original values at the DD78 etc locations23:31
DocScrutinizerwhere's jonwil when you need him??23:31
merlin1991did /quit 2 hrs ago :D23:33
DocScrutinizermaybe he notices the new mail in maemo-developers@maemo.org23:34
MohammadAGmerlin1991, can you help with something23:41
MohammadAGfakeroot: preload library `libfakeroot-sysv.so' not found, aborting.23:41
merlin1991what should I do?23:42
merlin1991:D23:42
merlin1991MohammadAG:  ^^23:44
*** arcean has quit IRC23:46
MohammadAGmerlin1991, find where libfakeroot-sys.so is in the sysroot23:50
merlin1991on ubuntu?23:50
MohammadAGor under /scratchbox23:51
DocScrutinizercould some of you please post here: the output of   >#   md5sum /usr/lib/libsms.so.0.0.0; plus what's your fiasco version you're using (international|US|...) and the version if not PR1.323:51
MohammadAG7 minutes till the harmattan SDK's done23:52
MohammadAGmerlin1991, well, your PC23:52
MohammadAG6d9560f64f97dd18ccbd3119229717ae  /usr/lib/libsms.so.0.0.023:52
DocScrutinizerMohammadAG: which locale-fiasco?23:53
MohammadAGglobal23:54
DocScrutinizeryep, that's confirmed by now23:54
DocScrutinizerwonder ehat jonwil is using, maybe USA?23:54
DocScrutinizerwhat*23:54
merlin1991MohammadAG: http://pastebin.com/CWNsSyEY23:59

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