IRC log for #maemo-ssu on 20120903

00:41.20*** join/#maemo-ssu KrayonWork (~krayon@pdpc/supporter/28for7/krayon)
00:45.44DocScrutinizer05SpacedOut: echo "DROP TRIGGER call_duration_inbound; DROP TRIGGER call_duration_outbound;DROP TRIGGER call_duration_voip_in; DROP TRIGGER call_duration_voip_out;" | sqlite3 -batch /home/user/.rtcom-eventlogger/el-v1.db
00:46.02DocScrutinizer05will re-establish the buggy behaviour, if you really need it
00:47.20DocScrutinizer05SpacedOut: I understand your concerns, but please understand that there's no per se right for continuity of bugs
00:47.28SpacedOutThe tigger is a hack, I just don't need it since what I have does a much better job.
00:48.28DocScrutinizer05well, if you got a better fix, then share it and we'll happily consider to use it
00:48.37SpacedOutIf the  rtcom-eventlogger-async is intended to be a run all the time daemon perhaps it can run the code I have.
00:48.56DocScrutinizer05the trigger is no hack but a sub-optimal but working proper implementation
00:50.10DocScrutinizer05of course it would be better if the eventlogger itself would populate the call duration column
00:50.12SpacedOutThe package is minutemonitor already available for install.  It has a small daemon that listens to dbus to do a better job of matching up the call start/end and which entry to update.
00:51.10DocScrutinizer05aaah I see. An issue about concurrent calls. I wasn't even sure N900 can do that at all, until now
00:52.02DocScrutinizer05having a dbus monitoring daemon sounds pretty much like another hack to me
00:52.45DocScrutinizer05it should be rtcom-eventlogger itself doing the update of call duration col
00:54.07SpacedOutAgreed, it should be written by the same mechanism that writes the log in the first place, but the trigger blindly adds the elapsed time to the last phone entry, which is clearly the the wrong thing to do if the just ended call wasn't the last entry.
00:54.43DocScrutinizer05yep, which only can happen on concurrent calls
00:55.38DocScrutinizer05I think it's even mentioned in thread about original trigger "hack"
00:58.21DocScrutinizer05worst thing that can happen as I see it now is that inbound minutes get booked on an outbound call. IIRC I already discussed that with author of that patch back when
00:58.32SpacedOutIf I had those triggers, would sqlite3 show them with the `.table` command?
00:59.06DocScrutinizer05we might want to further investigate it there's room for improvements regarding that special situation
00:59.46DocScrutinizer05umm, it will show them with the correct command. I'm not expert enough to tell if .table is the right one
01:01.37DocScrutinizer05why do you anticipate complications/collisions when both your improved dbus-monitoring thingie as well as the database triggers are installed and active? Wouldn't your stuff overrider the triggers anyway?
01:02.44SpacedOutNo, it will only update the value if the current value is 0.
01:02.54DocScrutinizer05aaah
01:03.19DocScrutinizer05I fail to see the rationale behind that
01:04.26SpacedOutIf it somehow gets the wrong row it won't overwrite what's already there since the N900 software doesn't put anything other than a 0 there.
01:07.32DocScrutinizer05"somehow" isn't a goot term in an explanation of way of operation
01:07.38DocScrutinizer05good*
01:09.07DocScrutinizer05either it's deterministic, then we can find a way for co-existence. Or it's 'somehow' working 'sometimes', then it's hard to see how we could consider it as an alternative or problem
01:12.03SpacedOutIt's been a while since I wrote that software to remember the details.  I wrote it defensively, if things aren't as it expected it didn't mess with them.
01:13.36DocScrutinizer05well, I can tell you what to expect
01:14.36DocScrutinizer05either get rid of it, as suggested above, or get a 2s delay, then write the value unconditionally since you're sure it's better than what trigger does
01:16.28DocScrutinizer05meanwhile we may ponder if the additional benefit of corretly handling concurrent calls is worth running another dbus-scripting monitor
01:16.47DocScrutinizer05or we rather opt for fixing eventlogger
01:20.25SpacedOutIs there source available?  Isn't it being told what to do from something else anyway?
01:22.51DocScrutinizer05ATM I'm thinking about options to improve triggers to handle concurrent calls correctly
01:24.39DocScrutinizer05alas it's pretty hard to test since I think I can't do concurrent calls here, with my contract
01:26.53SpacedOutI'm seeing if I had any notes on what else was wrong with the tigger method, but I'm not finding anything.  I should compare the elapsed time to what I'm getting.
01:27.29SpacedOutVoIP gives the same results.
01:35.56merlin1991freemangordon: ping
01:39.04merlin1991this works async aswell, so I tried to compile microb-engine in my scratchbox again, this time I made a complete new sb target, added the cssu repos install the build dependencies and tried to build it, but it still failed
01:41.51SpacedOutDocScrutinizer05: The answer to my earlier question is a trigger is added to a table and printing that table's schema `.schema call_duration` prints any triggers there as well.  I don't have the call duration triggers loaded and removing them works for me, I just need to know to remove them.
01:43.20merlin1991freemangordon: here's the last few lines of output I get from the buildprocess: http://paste.debian.net/187324/
02:02.36DocScrutinizer05SpacedOut: keep an eye on changelogs (which I hope we'll publsih *prior* to rolling out actual update in the future [ merlin1991: hint hint]). Independently from changelog I'll try to keep in mind to leave you a note when we include triggers to CSSU
02:04.18DocScrutinizer05SpacedOut: not only triggers but also when we update/fix rtcom-eventlogger
02:05.03DocScrutinizer05SpacedOut: are we talking about S or T ?
02:05.05SpacedOutThat would be great.  Isn't rtcom-evenlogger closed source?
02:05.15DocScrutinizer05I don't know
02:06.02SpacedOutI thought it was just logging in response to being requested, which would mean it probably doesn't have the information, short of listening on dbus signals like I'm doing.
02:06.23SpacedOutWhat's S or T?
02:06.31DocScrutinizer05Stable or Testing
02:06.56DocScrutinizer05what's your cssu flavour?
02:08.00SpacedOutdeb http://repository.maemo.org/community-testing/ fremantle free non-free
02:08.03DocScrutinizer05nevertheless I'd like to know if your CSSU is T or S
02:08.11DocScrutinizer05T, ok
02:10.14DocScrutinizer05note to self (and mohammad, merlin1991): send SpacedOut a mail when cssu-t will include triggers for call duration, like http://maemo.cloud-7.de/maemo5/patches_n_tools/eventsdb_calllog_triggers.sh, or implement a fix for same issue to rtcom-eventlogger
02:11.45DocScrutinizer05reference: https://garage.maemo.org/pm/task.php?func=detailtask&project_task_id=1986&group_id=2300&group_project_id=3864
02:49.51*** join/#maemo-ssu amiconn_ (amiconn@rockbox/developer/amiconn)
03:51.56*** join/#maemo-ssu M13 (~Miranda@83.149.35.143)
05:37.46*** join/#maemo-ssu ekze (~nyan@bakaekze.ru)
06:59.22*** join/#maemo-ssu luf (~luf@ip-89-103-166-30.net.upcbroadband.cz)
07:28.07*** join/#maemo-ssu LaoLang_cool (~LaoLang_c@221.226.175.139)
07:38.14*** join/#maemo-ssu luf (~luf@ip-89-103-166-30.net.upcbroadband.cz)
08:31.09*** join/#maemo-ssu arcean (~arcean@aaes189.neoplus.adsl.tpnet.pl)
08:34.02*** join/#maemo-ssu M4rtinK (~M4rtinK@mail.melf.eu)
10:27.12*** join/#maemo-ssu jonwil (~jonwil@27-33-137-199.static.tpgi.com.au)
11:30.04*** join/#maemo-ssu iDont (~dennis@145.93.232.89)
12:01.00*** join/#maemo-ssu zeq (~s_j_newbu@2a01:348:1e3:1:e6ec:10ff:fe9a:d418)
12:13.06freemangordonmerlin1991: "unable to dump 00114800" - where is that error coming from?
12:13.23merlin1991that's the full output I get
12:13.32merlin1991I guess I could check the makefile of the folder
12:13.39freemangordonthe fuck :(
12:14.05freemangordonmerlin1991: i can build it for you, it is ok here
12:14.23freemangordonmight be related to host os, NFC
12:14.38merlin1991well you'd have todo it with sb gcc
12:14.41merlin1991maybe it's that?
12:14.51merlin1991that you compiled with newer gcc?
12:15.05freemangordonmerlin1991: don't think so
12:15.11freemangordonwell, lemme try it
12:27.54zeqI've been really busy decorating last couple of weeks. I'll hopefully have some time soon to get back working on the important things...
12:28.16*** join/#maemo-ssu Mephistopheles (~M13@170.133-224-87.telenet.ru)
12:32.58freemangordonzeq: well, take your time, men don't get married every day :P.
12:33.30freemangordonzeq: BTW my email was to make you aware that i've already did glibc thingie
12:33.51freemangordonto prevent you doing it once again
12:36.50zeqno worries, I just hate to say I'm going to do something then not having time to get it done!
12:37.38freemangordonwell, sometimes it happens, after all we are all volunteers with a real life to deal with :)
12:37.47zeqyup
12:38.08freemangordonwhat worries me is merlin1991 unable to build microb-engine
12:39.52zeqagainst the patched libc?
12:40.04zeqor at all?
12:40.25merlin1991zeq: at all
12:40.36merlin1991freemangordon: maybe some build dependency is missing?
12:41.27zeqfreemangordon: you can build it fine though?
12:41.52merlin1991zeq: I made a completely clean now sb target and got this: http://paste.debian.net/187324/
12:41.58merlin1991s/now/new/
12:43.45keriowould this be the same version as cssu-thumb, btw?
12:46.03zeqwhat gcc/build cflags
12:46.49zeq?
12:48.48zeqbinutils?
12:50.10zeqmerlin1991:  what version qemu devkit?
12:51.10merlin1991binutils 2.18.50.20070820-4+0m5 qemudevkit 0.13.90-0rabbit1
12:52.22merlin1991zeq: ^^
12:53.28zeqthis is the sb standard gcc?
12:54.18merlin1991yeah 4.2.1
12:58.55*** join/#maemo-ssu taziff (~Taziff@cyr108.internetdsl.tpnet.pl)
12:58.57DocScrutinizer05hi folks
13:00.21merlin1991moin
13:05.11freemangordonmerlin1991: still clonning the repo :(
13:05.32freemangordonmerlin1991: you can chech config.log for missing dependencies
13:05.36freemangordoncheck*
13:09.40merlin1991hm I have a few of ac_nonexistent.h: No such file or directory
13:09.48merlin1991int the various config.log files
13:10.50jon_ythat is not an error in itself
13:10.59jon_ylook lower
13:13.31merlin1991tbh I never read those logfiles, dunno really what to look for
13:13.47jon_yconfigure --help is a good start
13:14.10jon_yit is possible some errors are entirely optional
13:14.29jon_yor just checking the host capability
13:14.53jon_yI wouldn't expect win32 WaveOut test to pass on N900
13:15.36merlin1991I think this is the right log for the compile fail in question: http://cdnm.at/~christian/maemo/cssu/microb-engine/config.log
13:16.16jon_ymerlin1991: looks like it cut off half way
13:17.01jon_ylast check was checking for setlocale
13:17.36jon_yand the config.log doesn't look like it was from autotools
13:18.41jon_ymerlin1991: you omitting some stuff?
13:25.35merlin1991nope
13:25.42merlin1991that was a full scp of what I got locally
13:25.51jon_yit looks broken
13:26.26jon_ywell, pipe and tail both stdout/stderr, looks more reliable
13:27.13merlin1991how does one get stderr into stdout again?
13:27.44jon_ywith bash: configure > log.txt 2>&1
13:28.12jon_yor configure 2>&1 | tee log.txt
13:31.13merlin1991complete build log: http://cdnm.at/~christian/maemo/cssu/microb-engine/build.log
13:33.04jon_ybug from ./../../dist/bin/run-mozilla.sh?
13:33.41merlin1991what do you mean?
13:33.58jon_y./../../dist/bin/run-mozilla.sh ./../../dist/bin/js imacro_asm.js /home/christian/n900/cssu-testing/microb-engine/microb-engine/js/src/imacros.jsasm > imacros.c.tmp
13:34.01jon_yunable to dump 00114800
13:34.07jon_yit seems to be from ./../../dist/bin/run-mozilla.sh
13:34.41jon_yconfigure completed, so I don't think it's a dep problem
13:36.23merlin1991run-mozilla.sh seems to be just a wrapper
13:37.33jon_yyou'll need to go into it and find what is printing unable to dump 00114800
13:37.45jon_ytry sh -x ./../../dist/bin/run-mozilla.sh .....
13:37.46merlin1991it's actually /../../dist/bin/js
13:37.59merlin1991that thingy throws unable to dump 0011480
13:39.34jon_yyou'll need to find out why it's doing that
13:39.37merlin1991and it's a binary and the source to it does not contain any reference to "unable to dump" :/
13:39.59jon_ywhat does sh -x say?
13:40.09jon_ymaybe it calls another externel binary
13:40.32*** join/#maemo-ssu LaoLang_cool (~LaoLang_c@221.226.175.139)
13:41.52DocScrutinizer05set trace on in shell ;-)
13:42.56kerio~seen pali
13:42.59infobotpali <~pali@unaffiliated/pali> was last seen on IRC in channel #maemo, 6d 21h 21m 44s ago, saying: 'bye, I'm going offline for week or more...'.
13:43.10merlin1991http://cdnm.at/~christian/maemo/cssu/microb-engine/run.log
13:43.34merlin1991gotta run for now (exam)
13:44.18jon_yyup
13:44.19jon_ydist/bin/js
13:44.20jon_yunable to dump 00114800
13:44.26jon_yits js, whatever it is
13:46.44DocScrutinizer05js like javascript?
13:47.16jon_ymaybe, I don't know what dist/bin/js is
13:47.50jon_yneed to try strace dist/bin/js
13:50.07freemangordonbuild here started, lets see
13:50.29DocScrutinizer05jon_y: google *might* help:  https://bugzilla.mozilla.org/show_bug.cgi?id=462393 (loosely related)
13:50.31povbotBug 462393: was not found.
13:50.56DocScrutinizer05I suspect it's a js-version problem
13:58.30DocScrutinizer05http://vocamus.net/dave/?p=1319  maybe also contains helpful background info
13:58.42zeqyes js is javascript
13:58.45DocScrutinizer05seems it's actually a cmdline js "shell"
13:58.52zeqexactly so
13:59.08zeqit's a part of the mozilla build process
13:59.47zeqthat's why I suspected the qemu ^ but the version seems ok
14:01.08DocScrutinizer05I'd try something like "#~> dist/bin/js --version" and compare that between a working and a failing machine
14:02.05DocScrutinizer05also check the js related packages installed on your host
14:02.23DocScrutinizer05(whatever that might be)
14:02.47DocScrutinizer05I gather jre1.6 etc is completely unrelated
14:04.20freemangordonWTF, it fails here too, but on a different place
14:05.29freemangordon"/home/maemo/workspace/tmp/microb/microb-engine/netwerk/protocol/http/src/nsHttpAuthCache.cpp:391: error: prototype for 'nsresult nsHttpAuthEntry::Set(const char*, const char*, const char*, const char*, const nsHttpAuthIdentity*, nsISupports*)' does not match any in class 'nsHttpAuthEntry'"
14:10.22DocScrutinizer05hmm, dist/bin/js gets built before it's used it seems.
14:11.01DocScrutinizer05and I can't see a --version command to query actual version of js-binary
14:11.37DocScrutinizer05there's -j to "enable JIT trace"
14:11.47DocScrutinizer05whatever that means
14:12.13DocScrutinizer05meh, not my lawn
14:20.14freemangordonmerlin1991: going to diif the sources in CSSU and maemo-extras, after all it seems romaza had no commited everything :(
14:20.20freemangordon*romaxa
14:23.04zeqfreemangordon: is this he same microb-engine as you built for cssu-thumb?
14:23.15zeqor a new version?
14:23.49freemangordonzeq: yes, but I had the same error there, I was thinking it is because og gcc 4.7.2 and fixed it
14:23.56freemangordonhttps://gitorious.org/community-ssu/microb-engine/commit/88aac30c51f6150e866ab70c8e5a6b0cefdfd61d
14:24.13freemangordonnow it turns out the base sources are not OK :(
14:24.22zeqa new version then?
14:24.31zeqyes I can click ;)
14:25.19freemangordonzeq: it is the same version for -thumb, if I parse your question correctly
14:26.19zeqso it builds with your toolchain ok?
14:26.37freemangordonzeq: I am trying to build master branch with gcc 4.2.1
14:26.53freemangordonthe above commit is in thumb-testing branch
14:27.21freemangordondoing diff between what is in maemo-extras and what is in CSSU repo gives 1.5M file :(
14:30.24freemangordoni'll clone again to have a clean tree
14:30.45zeqI have the feeling I'm missing too much context to say much meaningful
14:32.37freemangordonzeq: romaxa said he has uploaded the latest microb-engine sources on garage
14:32.54freemangordonwe cloned that in CSSU and I applied the patches on top of it
14:33.23freemangordonnow it turns out romaxa didn't put everything on garage and we have broken sources
14:33.50freemangordonthat is why both me and merlin1991 fail to build microb-engine
14:34.31freemangordonI had to patch the same error i have now for thumb-testing branc, but I was thinking it is because of the new compiler
14:35.02zeqbut it was just a bug in the sources
14:37.26freemangordonzeq: makes no sense, no way a buggy source can pass through autobuilder :D
14:37.59freemangordonwhich means that sources on garage (uploaded by romaxa) differ with those in maemo-extras
14:38.03zeqis completely confused
14:38.17zeqok
14:38.32freemangordonzeq: there is microb-engine in maemo-extras, as tar.gz
14:38.49freemangordonthere is also microb-engine on garage, as SVN repo
14:38.56zeqromaxa's is upstream? maemo-extras is pactched maemo release?
14:38.57freemangordonwe were tol both are equal
14:39.33freemangordonthey are supposed to be equal, i.e. patched maemo version
14:40.15freemangordonthe one that comes with stock fremantle. we decided to use those from garage because of the commit history
14:40.31freemangordonfuuuck
14:41.07zeqthat makes sense
14:41.17freemangordoni should've done that diff earlier instead of having trust in what romaxa had said
14:41.33freemangordonzeq: it is the same as with IPC lite client ;)
14:41.37freemangordona total mess
14:42.21zeqI'm not a huge fan of mercurial mq from my experience trying to build IPCLite
14:42.35freemangordondid you succeed?
14:42.43zeqdid you?
14:42.47freemangordonI tried to build it, no success
14:42.58zeqI will try again when I get time
14:42.58freemangordonpatches do no ally
14:43.05freemangordondoes not make sense
14:43.15freemangordon*apply
14:43.15zeqI manually fixed up all the patches, but shouldn't have to
14:43.35freemangordonis on his way home, bbl
14:44.19zeqobviously it works for romaxa
14:44.29zeqdid you ask him how?
14:44.52zeqI've not really been online recently, as you've noticed
14:48.30zeqjust attempted to ask romaxa about IPCLite, if I get a reply I'll mention microb too
14:58.46*** join/#maemo-ssu LinuxCode (~LinuxCode@fedora/LinuxCode)
15:06.06*** join/#maemo-ssu arcean (~arcean@aacz110.neoplus.adsl.tpnet.pl)
15:11.42*** join/#maemo-ssu wmarone_ (~wmarone@c-67-174-151-253.hsd1.ca.comcast.net)
15:13.07*** join/#maemo-ssu DocScrutinizer06 (~HaleBopp@openmoko/engineers/joerg)
15:34.17*** join/#maemo-ssu zeq (~s_j_newbu@31.120.59.103)
15:51.27keriowill cssu eventually fix the optfs situation?
15:53.46ShadowJKwith what, read-only onenand and overlayfs on emmc?
15:54.25*** join/#maemo-ssu NIN101 (~NIN@p5DD28F60.dip0.t-ipconnect.de)
15:56.19kerioomap_hsmmc compiled in the kernel, early mount of /home and bindmount for /usr to /home/usr
15:56.20keriofor instance
15:56.39kerioi mean, *really* early mount
16:12.07freemangordonmerlin1991: ping
16:17.59*** join/#maemo-ssu zeq (~s_j_newbu@2a01:348:1e3:1:e6ec:10ff:fe9a:d418)
16:20.52*** join/#maemo-ssu wmarone_ (~wmarone@c-67-174-151-253.hsd1.ca.comcast.net)
16:57.46freemangordonmerlin1991: ping
17:07.37freemangordonzeq: what will happen if we run pselect() glibc on top of non-pselect kernel? I know you alredy answered it, but I forgot what was the answer :S
17:10.20zeqfreemangordon: pselect() will simply be unavailable.
17:10.53freemangordonaah, it won't boot :(. "Kernel version too low"
17:10.59zeqanything that tries to use it will fail with ENOSYS I think
17:11.15zeqeven better! :)
17:11.45freemangordonzeq: I think glibc has a check for the minimum kernel version, I've encountered that when tried to chroot ubunto on my n900
17:11.48zeqI'm not why you hit that though...
17:11.53freemangordon^^^
17:11.59freemangordon*ubuntu
17:12.29freemangordonwell, just thinking whether it will fallback to emulation
17:12.36zeqit does, but it should be 2.6.28 according to the glibc change for pselect
17:13.03freemangordonso it will simply refuse to boot
17:13.21freemangordonhmm, 2.6.28? well, it will boot then
17:13.59freemangordonthe point is - what will happen if soeone tries to boot with some old version of KP or with stock kernel?
17:15.53zeqas I said, it will run but pselect() will be unavailable
17:16.13zeqso anything that tries to use it will get upset
17:16.33zeqwe could have a check during boot
17:17.15freemangordonmerlin1991: I've rebased microb-engine on gitorious using the sources on maemo.org. You should be able to build it after git pull. It builds ok here
17:17.26zeqbut I'm not sure what action it could suggest at that point other than flashing the right kernel
17:17.37freemangordonzeq: so no fallback?
17:18.25zeqfreemangordon: that's right, there's either syscalls are used or emulation, it's either or.
17:18.46keriofreemangordon: well, kernel dependency is something that's been already tried out in cssu-thumb
17:18.47DocScrutinizer51emulate pselect() like it's been done since ages
17:19.05zeqs/there's/there are/
17:19.07kerioDocScrutinizer51: if the syscall fails?
17:19.13kerioew, performance D:
17:19.24zeqthat still makes so sense! :P
17:19.43zeqthat's up to the app
17:20.16freemangordonzeq: sorry, I am not sure I understand correctly. So, if syscall fails with ENOSYS, glibc will fallback to emulated pselect() behaviour?
17:20.56DocScrutinizer51glibc can fallback to emulation when kernel considered inappropriate
17:21.10kerioof course it can, but does it?
17:21.17freemangordonDocScrutinizer51: in theory or it is how it behaves now?
17:21.20DocScrutinizer51should at least, could
17:21.36DocScrutinizer51nfc how it behaves now
17:21.50freemangordonwell, that is what i ask :)
17:22.18freemangordonhow it behaves now (zeq's version of course)
17:22.26DocScrutinizer51yes, seen that and concur with your rationale
17:22.28*** join/#maemo-ssu taziff1 (~Taziff@cyr108.internetdsl.tpnet.pl)
17:22.58DocScrutinizer51it should fallback to emu
17:23.13freemangordon:nod:
17:23.39freemangordonthat will save us a lot of "dammit, my device don't boot after the last CSSU"
17:23.52freemangordon(after the last KP, you name it)
17:24.10DocScrutinizer51if you 'patch' own function addr table there won't even be a performance penalty (just an irrelevant sidenote)
17:24.53freemangordonDocScrutinizer51: cannot parse that, sorry, would you elaborate
17:25.13freemangordonpatch what? glibc or kernel?
17:25.17DocScrutinizer51see how LD-PRELOAD works
17:25.23keriofreemangordon: you don't need to check every time pselect() is called
17:25.37freemangordonkerio: sure
17:25.40kerioso the performance loss ends up being a very small constant for each program that loads libc, or possibly even less
17:26.19DocScrutinizer51you simply push a new symbol-addr tuple on glibc's symbol table
17:26.20freemangordonyep, I get that. the question is if it is implemented and if not, do zeq wants to implement it :P
17:26.31freemangordonkerio: ^^^
17:26.34DocScrutinizer51pointing to emu
17:26.47keriozeq: do eeeeeeet
17:27.08kerioby the way, is the kernel patch in KP51r1 already?
17:27.15freemangordonkerio: no
17:27.49DocScrutinizer51but actually nm, "overhead" for a conditional branch is negligible
17:28.09zeqseems rather hacky
17:28.40kerioDocScrutinizer51: maybe not, if you're running the thumb2 errata workaround
17:28.42kerio>:D
17:29.11DocScrutinizer51but indeed glibc on init could check kernel for pselect and config itself accordingly
17:29.37DocScrutinizer51kerio: eh?
17:29.56keriothe branch prediction cache is flushed on every context switch
17:30.17DocScrutinizer51so what? telling me news?
17:30.22zeqDocScrutinizer06: you mean patch glibc on boot?
17:30.28DocScrutinizer51yep
17:30.40DocScrutinizer51not 'patch', just init
17:31.07DocScrutinizer51each lib has its own init afaik
17:31.37DocScrutinizer51in this init check if proper pselect or emu shall get 'exported'
17:32.16freemangordonzeq: a runtime check whether the current running kernel supports pselect() (and others) and initializing a function pointer should do the job too
17:32.25zeqI see
17:32.33freemangordonone time check
17:32.56zeqI guess that could work
17:32.57freemangordonthat will save us a lot of headaches
17:33.00DocScrutinizer51freemangordon: I thought I tried to say exactly that
17:33.34freemangordonDocScrutinizer51: sure, but you said it in such a complicated way, that we poor developers got lost :P
17:33.41DocScrutinizer51the genuine function pointer is in symbol table
17:33.48freemangordonaah
17:33.54freemangordondidn't know that
17:34.27*** join/#maemo-ssu zeq1 (~s_j_newbu@2a01:348:1e3::a20)
17:34.44zeq1Sorry, battery went flat!
17:34.58DocScrutinizer51see LD_PRELOAD
17:35.15zeq1I wonder though, if it's so easy why glibc doesn't do that already?
17:35.55keriobecause there's no reason to, really
17:35.59freemangordonwell, usually you don't boot your linux with several kernel versions
17:36.08keriousually you boot your linux with linux 3
17:36.12kerioat least
17:36.14DocScrutinizer51(sorry, Imm off home, so you have to follow 2 derefs to get from LD-PRELOAD to the function call to mess with symbol table)
17:36.18freemangordonat least I don;t
17:37.15zeq1I guess it's mostly because in this case, other than ARM the version check is reliable and you simply can't boot with the wrong kernelk
17:37.16zeq1s/kernelk/kernel/
17:37.28merlin1991freemangordon: I'll try to build it as soon as I've sorted my pc
17:37.57freemangordonmerlin1991: ok
17:37.59merlin1991(new ssd to replace the broken one, which leads to new windows installation, which in turn needs a new grub installation :D)
17:38.16DocScrutinizer51afk shopping
17:38.17freemangordonzeq1: well, I guess n900 won;t boot too
17:38.39zeq1I don't remember if it does boot or not
17:38.47freemangordonfailing pselect in udev does not sounds like the system will boot :D
17:38.48zeq1many things will be broken for sure
17:39.12zeq1I think if I remember it does actually boot... but you can't run apt/dpkg ;)
17:39.44zeq1I'm probably making that up though
17:39.55zeq1I can't really remember what I tested with now
17:40.09zeq1I remember....
17:40.34zeq1... I installed the syscall glibc on a kernel that didn't support it, but didn't reboot
17:40.56zeq1so I don't know if it would have rebooted, didn't dare try
17:41.12zeq1used my backup libc to recover via LD_LIBRARY_PATH
17:41.46freemangordonzeq1: now you have a devel device you my want to try it :P
17:42.02zeq1it's certainly much safer :)
17:42.28zeq1my devel device works much better than my non-devel device btw
17:42.38freemangordonhehe
17:42.53freemangordonsame here, but that is normal
17:43.08freemangordonyou actually don;t have sim, IM accounts, etc, etc
17:44.06zeq1not only that
17:44.29zeq1but also there's a problem with the charging/booting with the other n900
17:45.23zeq1it usually cycles a couple of times to boot - rather weird.  it works fine when it's up though.
17:45.34zeq1I shouldn't turn it off ;)
17:46.09zeq1but you're also right, about the performance being better, I put it down to not having so much crap running :)
17:49.49zeq1My hildon-desktop build works really well on it.  nice and smooth with no OC :)
18:04.09*** join/#maemo-ssu arcean (~arcean@aacz110.neoplus.adsl.tpnet.pl)
18:18.11amiconnHmm, bugs.maemo.org certificate expired a month ago...
18:21.56DocScrutinizer06fact is, users *might* correctly install a non-pselect() kernel incl modules, which _should_ just work, but will (or may) spoil their day just due to glibc. A method *insdie* glibc to fall back to a possibly suboptimal but working emulation for pselect() would be a sane thing to implement
18:22.21*** join/#maemo-ssu MrPingu (~Thunderbi@86.92.226.97)
18:25.12freemangordonDocScrutinizer06: :nod:
18:33.53DocScrutinizer06freemangordon: (function pointer, symbol table) man dlsym; not exactly to the point but close enough to make your way from there
18:35.06kerioDocScrutinizer06: users aren't supposed to know that there's such a thing as a "kernel"
18:35.34freemangordonDocScrutinizer06: I think zeq1 is knowledgeable enough to be able to implement it :)
18:37.17DocScrutinizer06I hope so. >> If a dynamic library exports a routine named _init(), then that code is executed after the load-       ing, before dlopen() returns.
18:40.07*** join/#maemo-ssu trumee (~parul@78-105-131-61.zone3.bethere.co.uk)
18:41.08freemangordonDocScrutinizer06: any idea if I can find n950 screen?
18:41.51keriohahaha wat
18:42.56freemangordonan accident
18:43.09keriobuy vi__'s n950
18:43.28freemangordonkerio: I need a screen, not a whole device
18:43.40DocScrutinizer06in this code check for pselect() support in kernel, and if not provided, change addr-pointer to pselect() to the emulation
18:43.42DocScrutinizer06I.E dlsym("pselect") returns a pointer to true pselect() or pselect-emu, depending on result of support check in _init
18:45.01DocScrutinizer06never heard of any
18:45.21DocScrutinizer06completely unclear what display is used
18:45.32keriomaybe it's the same as the n9
18:45.37DocScrutinizer06digitizer for sure is unavailable
18:45.47freemangordonkerio: it is bigger
18:45.47DocScrutinizer06kerio: BS
18:45.56kerioi said maybe!
18:46.00DocScrutinizer06N950 is LCD, N9 is amoled
18:46.09kerio...wait, really?
18:46.17keriowho thought amoled was a good idea? :s
18:46.18DocScrutinizer06yes, really
18:46.32freemangordonDocScrutinizer06: I took the picture of backover and controller
18:46.51freemangordoncontroller is atmel, but it seems like made for Nolia
18:46.57freemangordon*Nokia
18:48.18freemangordonMXT-NOK1 :D
18:48.41DocScrutinizer06eeew
18:50.15DocScrutinizer06well, google suggests it's not *completely* unknown, might be related/same mxt224
18:51.08*** join/#maemo-ssu trumee (~parul@78-105-131-61.zone3.bethere.co.uk)
18:51.20DocScrutinizer06http://www.alibaba.com/product-gs/612807164/MXT_NOK1_MXT224.html
18:52.30freemangordonwell, might be, but anyway controller is ok.
18:52.48DocScrutinizer06http://www.aliexpress.com/store/product/1pcs-LOT-Original-Electronic-component-MXT224-CCU-MXT-NOK1/808897_568510723.html
18:52.50freemangordonthe screen has 2 black stripes around half mm wide
18:53.18DocScrutinizer06yeah, seems eventually everybody runs into that
18:54.12freemangordonotherwise it works ok, just looks ugly :D
18:56.46freemangordonmaybe I should try and ask Nokia Bulgaria, who knows
18:57.10freemangordonthough I can imagine their surprise when the see the device :D
19:07.26keriohahaha
19:12.14*** part/#maemo-ssu MrPingu (~Thunderbi@86.92.226.97)
19:14.37*** join/#maemo-ssu trumee (~parul@78-105-131-61.zone3.bethere.co.uk)
19:18.33DocScrutinizer06freemangordon: zeq1: if (! pselect-supported-in-kernel) {dlopen("glibc-helper-fakePselect.so")}
19:18.48DocScrutinizer06^^^ in glibc _init
19:19.46DocScrutinizer06if nothing smarter comes to mind
19:29.35zeq1pselect-supported-in-kernel() would have to call pselect() and see if it works
19:30.24freemangordonzeq1: hmm, it should call __syscall aiui
19:30.32freemangordonand check for enosys
19:30.41zeq1yes, that's what I mean
19:30.51freemangordonyes, any problem with that?
19:31.09zeq1(since pselect() is the glibc wrapper)
19:31.54zeq1it's probably quite doable, especially since it's wrapped anyway
19:33.01zeq1could modify the code on init to swap the syscall with a branch?
19:33.40freemangordonwell, if it is function ptr there should be no problem
19:34.34zeq1you're right, just include both functions and set the pointer accordingly after a test during init
19:34.47freemangordonexactly
19:34.53DocScrutinizer05exactly
19:36.56zeq1needs to go get something to eat
19:49.37*** join/#maemo-ssu SpacedOut (david@SubSpace.fries.net)
20:03.28DocScrutinizer05LOL
20:03.32DocScrutinizer05jr@halebop:/> ld --help|wc -l
20:03.33DocScrutinizer051357
20:06.03kerioonly 242 on maem
20:06.05kerioo
20:06.19kerioand only 1 on os x :D
20:11.16keriold64: For information on command line options please use 'man ld'.
20:34.06*** join/#maemo-ssu arcean (~arcean@aacz110.neoplus.adsl.tpnet.pl)
20:49.33*** join/#maemo-ssu BCMM (~ben@unaffiliated/bcmm)
21:10.34*** join/#maemo-ssu nox- (noident@freebsd/developer/nox)
21:14.44freemangordonmerlin1991: ping
21:23.31keriohmm, would you guys be ok with adding the extra commands in busybox-power to the cssu busybox package, if properly optified?
21:23.31kerioDocScrutinizer05: mostly you ;)
21:24.36freemangordonkerio: read how the Friday's conversation ended
21:24.57DocScrutinizer05kerio: I fail to see how you'd possibly do that, unless you follow my suggestion to optify whole busybox-power and leave init busybox alone
21:25.35freemangordonDocScrutinizer05: iirc we agree that iDont will split bb in two
21:25.43kerioyay
21:26.01DocScrutinizer05kerio: if you haven't noticed yet, you can't split busybox, it's one monolithic binary
21:26.03freemangordonleaving what is needed in rootfs and moving the resit in /opt
21:26.13kerioDocScrutinizer05: you can, however, put the symlinks somewhere else
21:26.20DocScrutinizer05pffff
21:26.31freemangordonDocScrutinizer05: according to iDont it is possible
21:27.03freemangordon(should be)
21:27.26kerio/bin/busybox as close as the stock one as possible, maybe with patches and bugfixes after they are checked and tested, and with the same amount of features as the stock busybox
21:27.47kerioand then /opt/busybox/busybox which is basically the current busybox-power
21:27.50freemangordonkerio: lets not start that again, read the logs
21:28.10freemangordonit's been covered
21:30.03DocScrutinizer05kerio: that's basically what I suggested, and that's basically two unrelated shell binaries
21:31.20DocScrutinizer05and yes, I'm absolutely fine with that, since init and basic core system won't care about that stuff in /opt
21:32.02keriothe thing is, it could definetely be optional
21:33.33DocScrutinizer05that's the main point
21:33.54DocScrutinizer05another point being that even when you opt-in it won't eat space in rootfs
21:34.27DocScrutinizer05and it will not introduce (per se) new risks into init process done by busybox basic
21:35.37DocScrutinizer05and all the bb-p fans should be happy with that as well
21:36.35DocScrutinizer05except those that still think it MUST NOT be optional, since busybox-power is so cool we have to forcefeed it to the rest of the world
21:37.23DocScrutinizer05no matter what
21:40.36DocScrutinizer05but it seems the most offensive and vocal fan of that "save the world" approach has actually taken an off-time from IRC
21:41.03DocScrutinizer05I couldn't bother less to search tmo for his latest insults and lies
21:44.10merlin1991freemangordon: pong
21:45.15merlin1991My box is doing the 3rd reboot whilst installing 1 servicepack, windows sucks
21:45.41merlin1991But I have grub in place by now :)
21:48.07*** join/#maemo-ssu krayon (~fallen@pdpc/supporter/28for7/krayon)
22:21.29DocScrutinizer05[2012-08-31 14:40:39] <merlin1991> kerio: it would use conflict: something which in ham only throws the use pc-suite to update error
22:23.29DocScrutinizer05merlin1991: some "ideas": instead of "use PC suite mode" notification/error, we need a requester "conflicts! press yes for installing new and uninstalling the conflicting old. Press no to abort installation of new"
22:26.34DocScrutinizer05merlin1991: another "idea": since cssu-extras is supposed to not kill old HAM, could we already get one or two optional packages (possibly void dummy test packages, or anything we wanna get anyway into extras like bb-p) and check it works like expected with 'old' HAM, I.E. doesn't show up (aiui)
22:33.48merlin1991DocScrutinizer05: as long as a package isn't in a user/* section *old* ham just ignores it
22:34.17merlin1991it's even better on harm, when you dl a deb that isn't in such a section the pkgmrg fails with a generic error :D
22:34.59DocScrutinizer05err
22:43.56DocScrutinizer05afk for late night beer
23:38.59*** join/#maemo-ssu wmarone_ (~wmarone@c-67-174-151-253.hsd1.ca.comcast.net)

Generated by irclog2html.pl Modified by Tim Riker to work with infobot.