IRC log of #maemo-ssu for Sunday, 2012-09-09

Sicelobtw, lol, as nice as ke-recv is, now i have too much stuff being indexed from my ext3 SD card with Nemo. i could edit tracker.cfg, but that would affect other μSD00:33
Siceloi'll be umounting for now00:33
*** _rd has quit IRC00:40
*** NIN101 has quit IRC01:12
kerioDocScrutinizer05: have you found a way to fix qt?01:55
DocScrutinizer05mickname: I think I recently read somewhere in a changelog or commit comment: "stop unnecessary rotation when switching tasks bla bla bla"01:58
DocScrutinizer05mickname: *maybe* it's a bugfix in most recent microB which freemangordon and others are working on01:59
DocScrutinizer05or was it fireforx? or the rendering engine?01:59
DocScrutinizer05Sicelo: nice point, indeed we should think about how to solve that. Are you aware ke-recv mounting script has a hook to selectively avoid mounting of particular partitions depending on whatever you can probe via cmdline?02:02
DocScrutinizer05probably the proper fix would be to augment trackerd.cfg semantics to exclude not only by path globs but maybe also by calling arbitrary extrernal binaries/scripts with parameter $pathname and not indexing that $pathname when that calle dbinary/script returns non-zero02:04
kerioDocScrutinizer05: how do we differentiate a partition with Nemo on vs a data partition with music on?02:04
DocScrutinizer05e.g by uSD/parrtition UUID=02:05
DocScrutinizer05?02:05
keriono, i meant a new uSD02:06
DocScrutinizer05eh?02:06
DocScrutinizer05not at all02:06
keriowhat should we default to then?02:06
DocScrutinizer05or you might want to chack if a nemo-specific file is on the partition02:06
DocScrutinizer05check, wtf??02:06
DocScrutinizer05my typing sucks even more than usually02:07
kerioi'm not talking about just nemo02:07
keriosi02:07
keriowhoops, wrong window02:07
kerioDocScrutinizer05: there's no good rationale, apart from asking the user, for indexing or not indexing a partition02:08
DocScrutinizer05well, nothing a script couldn't do, don't you think so?02:08
DocScrutinizer05[2012-09-09 01:04:18] <DocScrutinizer05> probably the proper fix would be to augment trackerd.cfg semantics to exclude not only by path globs but maybe also by calling arbitrary extrernal binaries/scripts with parameter $pathname and not indexing that $pathname when that calle dbinary/script returns non-zero02:09
nox-sounds slow02:17
DocScrutinizer05not as slow as trackerd ;-P02:22
nox-:)02:22
DocScrutinizer05kidding aside, it's only called once per trackerd index run02:22
nox-ah just for the top dir it wants to index?02:23
DocScrutinizer05for whatever shell pattern matches the condition02:23
nox-ok but wont the script be called for every subdir it wants to index then at least?02:26
DocScrutinizer05if we'd call it for every file/dir that'd be obviously nonsense, so we only call it for special patterns in exclude statement of trackerd.cfg. This exclude statement has a list of... patterns, which either get excluded unconditionally (that's what we already have) or will call a binary when a special syntax for the pattern is used02:26
nox-ah ok02:26
DocScrutinizer05yeah, I'm a slow coder but a fast and usually exact architect02:28
nox-:)02:28
* nox- just misunderstood...02:28
*** LaoLang_cool has joined #maemo-ssu03:23
*** M4rtinK has quit IRC03:40
*** arcean has quit IRC04:10
*** nox- has quit IRC04:57
*** nox- has joined #maemo-ssu04:58
*** ekze has quit IRC05:20
*** ekze has joined #maemo-ssu05:21
*** amiconn has quit IRC05:43
*** amiconn_ has joined #maemo-ssu05:43
*** amiconn_ is now known as amiconn05:43
*** nox- has quit IRC05:55
*** freemangordon has quit IRC06:14
*** DocScrutinizer05 has quit IRC06:33
*** DocScrutinizer05 has joined #maemo-ssu06:33
*** illuminata has left #maemo-ssu08:49
*** _rd has joined #maemo-ssu09:19
*** krayon has joined #maemo-ssu09:31
*** _rd has quit IRC09:40
*** LaoLang_cool has quit IRC09:52
*** _rd has joined #maemo-ssu10:58
*** _rd has quit IRC11:04
*** NIN101 has joined #maemo-ssu11:21
*** LaoLang_cool has joined #maemo-ssu11:38
*** timo^ has joined #maemo-ssu11:42
*** _rd has joined #maemo-ssu11:46
*** M4rtinK has joined #maemo-ssu11:54
*** LaoLang_cool has joined #maemo-ssu12:01
*** M4rtinK has quit IRC12:11
*** M4rtinK has joined #maemo-ssu12:15
*** arcean has joined #maemo-ssu12:46
*** LaoLang_cool has quit IRC13:09
*** LaoLang_cool has joined #maemo-ssu13:10
keriodo you guys think we could ever add proper /etc/shadow support?13:48
*** LaoLang_cool has quit IRC14:31
*** timo^ has quit IRC14:42
*** _rd has quit IRC14:43
*** toxaris has joined #maemo-ssu14:51
*** _rd has joined #maemo-ssu15:56
*** _rd has quit IRC16:02
*** timo^ has joined #maemo-ssu16:32
DocScrutinizer05kerio: please first check if support maybe already is in place. after all it's just about format of /etc/passwd entries and a few system calls that set or compare passwords18:01
kerioit's not a syscall18:03
keriohow i know there's no /etc/shadow support:18:04
kerio/etc/shadow: No such file or directory18:04
DocScrutinizer05meh18:10
DocScrutinizer05touch /etc/shadow18:10
DocScrutinizer05and yes, it seems password support is a tad scarce, anyway there's  (3)getpwent et al18:11
DocScrutinizer05>> The getpwent() function returns a pointer to a structure containing the broken-out fields of a record from the password database (e.g., the local password       file /etc/passwd, NIS, and LDAP).18:11
DocScrutinizer05I'd hope this includes support for /etc/shadow as well18:12
DocScrutinizer05probably a compile time option18:13
DocScrutinizer05...whether those calls support shadow, LDAP, NIS/YP18:13
DocScrutinizer05(sorry for my noobish comments, I never looked into all that until now)18:14
kerioooh, /usr/bin/passwd is suid18:23
kerioand not busybox18:23
keriofor obvious reasons18:23
*** toxaris has quit IRC18:23
kerioooooooh18:24
kerio"/etc/shadow" is a string in /usr/bin/passwd18:24
kerioi don't know how to test this though18:25
*** toxaris has joined #maemo-ssu18:25
DocScrutinizer05just create a proper entry in /etc/passwd and corresponding entry in /etc/shadow18:28
DocScrutinizer05[2012-09-09 17:25:00] <kerio> "/etc/shadow" is a string in /usr/bin/passwd  ### that's what I meant18:29
DocScrutinizer05in sudo you might find getpwent used and thus no reference to /etc/shadow18:30
*** toxaris has quit IRC18:30
kerioDocScrutinizer05: how the hell do i check if i can login as the new user18:31
DocScrutinizer05anyway you need to check (1)passwd how it determines whether to use shadow or not. Maybe it's already sufficient to touch /etc/shadow18:31
DocScrutinizer05su - newuser ?18:31
kerioDocScrutinizer05: oh you silly18:31
keriodo i have to remind you that su is actually busybox18:31
DocScrutinizer05MEEE? ;-P18:31
keriowhich is not suid root?18:31
kerioand thus doesn't actually do *anything*18:32
*** toxaris has joined #maemo-ssu18:32
keriohmm18:32
keriook, passwd actually seems to work18:32
keriobut there's no cool hashing support in crypt(3)18:33
kerioso we're still stuck with 8-character passwords18:33
DocScrutinizer05>>18:34
DocScrutinizer05   Glibc Notes18:34
DocScrutinizer05       The glibc2 version of this function supports additional encryption algorithms.18:34
kerioDocScrutinizer05: well your man page is full of lies18:34
DocScrutinizer05lol, your system is full of lies18:34
DocScrutinizer05btw use friggin sudo if you got no proper su on your system ;-D18:36
kerio/usr/bin/ld: Warning: /usr/lib/gcc/arm-linux-gnueabi/4.2.1/libgcc_s.so: Unknown EABI object attribute 3418:37
kerioah balls18:37
keriowtf is this shit18:37
keriolibc6-dev is already the newest version.18:37
DocScrutinizer05maybe ld isn't, though18:39
DocScrutinizer05which would pretty much explain it18:39
keriowell what's the ld i'm supposed to use?18:39
DocScrutinizer05:shrug:18:39
kerio(this is on the n900, mind you)18:39
keriomeh, fuck this, i'm removing the dev stuff18:40
keriohuh, why do i have gcc-4.2-base installed?18:42
kerioinstalled manually, i mean18:43
DocScrutinizer05btw (maybe overly) simple test if sudo reads from /etc/shadow: mkfifo /etc/shadow18:46
DocScrutinizer05cat /etc/shadow will block on read18:46
DocScrutinizer05so I hope would sudo18:46
kerioDocScrutinizer05: even better, echo -n >/etc/shadow18:47
DocScrutinizer05so what?18:47
DocScrutinizer05how will you know if sudo reads shadow file then?18:47
kerioso sudo reads an empty file, and doesn't actually get stuck18:47
keriobecause the write succeeds :)18:47
kerioi meant with /etc/shadow as a fifo18:48
DocScrutinizer05sudo does writes to shadow?18:48
keriono, sudo reads from shadow18:48
kerioif you read from a pipe, you get stuck18:48
keriounless there's something writing on the other side18:48
DocScrutinizer05that's the idea18:48
DocScrutinizer05but of course you can use strace sudo to find out whether it reads from shadow file or not18:52
kerioDocScrutinizer05: which debian is fremantle supposed to be similar to?19:25
DocScrutinizer05err19:25
keriowas it etch?19:26
NIN101there not too many similiarities besides the package format and a few other things...19:30
keriohm, i should really repartition this :s19:31
keriomeh, let's do this19:31
kerioleeroooooooooooooooy jeeeeeeeeeeenkinsss19:31
*** _rd has joined #maemo-ssu20:01
keriocdebootstrap_0.5.9_armel.tar.gz is pretty neat :D20:06
*** arcean has quit IRC20:10
Sicelowhat is it?20:15
* Sicelo checks to see what difference exists between that one and debootstrap20:17
*** arcean has joined #maemo-ssu20:20
kerioSicelo: cdebootstrap is a binary20:22
kerioand it has a distro-independent, statically-compiled tarball20:22
keriothat should work pretty much everywhere20:22
kerioDocScrutinizer05: i have no idea how to chroot \_o_/20:39
kerioi mean, what should be exposed inside of the jail?20:39
kerioman, this stuff is hard20:41
keriofor instance, what to do with /dev/pts?20:46
kerioi already have a fake /etc/mtab20:46
kerioshould i try to make newinstance for devpts work?20:46
kerioi don't even know if it's in 2.6.28 or if it was added later20:46
kerioman, no wonder the easydebian guys made such a mess20:48
*** timo^ has quit IRC21:12
Sicelo:P21:15
Sicelowhat do you want out of it kerio?21:15
kerioSicelo: i don't know! D:21:16
kerioi just wanted a working gcc21:17
DocScrutinizer05that's been the point where I stopped posting wise statements last time we discussed the topic21:17
DocScrutinizer05;-P21:17
kerio._.21:18
DocScrutinizer05kerio: for a gcc you probably need not much more than a working shell21:20
DocScrutinizer05IOW you don't care about much of the original infra getting "re-used" in your chroot21:21
kerioeh, i suppose you're right21:21
kerioi'm not even entirely sure chrooting like this is a sensible thing to do, considering that debian uses different libraries anyway21:21
DocScrutinizer05:nod:21:21
DocScrutinizer05given the rationale that gcc shouldn't run a s root generally, you'll most likely get away with symlinks for a few of the fat library pathes from / to /opt21:22
*** toxaris has quit IRC21:24
DocScrutinizer05I E much like you would do on any arbitrary other linux system: chreate new user, place user's home in a convenient place, get some symlinks form /usr/src to /opt/usr/src etc21:24
DocScrutinizer05su - developeruser21:25
DocScrutinizer05profit21:25
*** toxaris has joined #maemo-ssu21:26
*** toxaris has quit IRC21:28
*** toxaris has joined #maemo-ssu21:30
*** _rd has quit IRC21:35
*** toxaris has quit IRC21:35
*** toxaris has joined #maemo-ssu21:37
*** toxaris has quit IRC21:40
* kerio ponders about optifying /usr/lib/gcc/arm-linux-gnueabi21:41
DocScrutinizer05sounds as sane as it gets21:42
*** toxaris has joined #maemo-ssu21:42
DocScrutinizer05nah21:42
DocScrutinizer05optify /usr/lib/gcc !21:43
keriok21:43
*** toxaris has quit IRC21:43
DocScrutinizer05# (*) only optify the lowest base folder possible21:44
DocScrutinizer05#     ie          /foo/bar21:44
DocScrutinizer05#     instead of  /foo/bar/one21:44
DocScrutinizer05(from /etc/maemo-optify-auto-opt.conf)21:44
*** toxaris has joined #maemo-ssu21:46
DocScrutinizer05merlin1991: aiui you're involved in migration task from Nokia/Akamai servers to community infra?21:46
keriohow do i manually trigger the boot/postinst optification?21:46
DocScrutinizer05merlin1991: I just wonder *how much* of the Nokia closed blobs repos (and src?) Nokia will allow to move?21:46
DocScrutinizer05maemo-optify-auto-opt.sh        maemo-optify-firstboot.sh       maemo-optify-lib.sh             maemo-optify-make-mountbind.sh21:47
DocScrutinizer05pick sth21:47
kerio(by the way, isn't -firstboot horrendously dangerous?)21:48
*** toxaris has quit IRC21:48
DocScrutinizer05(it's the thing that actually does the whole magic of *creating* /opt ;-D)21:48
kerio(i know, but if you launch it again it fucks up your /opt)21:48
DocScrutinizer05yeah, probably XP21:48
keriomeh, i'm rebooting21:49
DocScrutinizer05# minimal script to cleanup /home/opt under very specific circumstances.21:49
DocScrutinizer05# will copy contents of rootfs /opt to /home-opt to allow image to be optified.21:49
DocScrutinizer05# will only run if do-not-clean-home-opt does not exist.21:49
DocScrutinizer05# postinst will create this file if used within scratchbox.21:50
*** timo^ has joined #maemo-ssu21:50
*** toxaris has joined #maemo-ssu21:50
DocScrutinizer05# IMPORTANT! this is called from upstart scripts, so make sure there are no21:51
DocScrutinizer05# error codes returned21:51
keriooh lol21:51
DocScrutinizer05seems it's called each boot21:51
DocScrutinizer05and knows what to (not) do21:51
DocScrutinizer05#only clean the /home/opt if needed21:52
DocScrutinizer05[ -e $optifyflagfile ] &&  return 021:52
keriowell this is dumb21:52
kerioit doesn't want to work21:52
DocScrutinizer05# if /home is not mounted r/w for some reason -- bail out21:53
DocScrutinizer05# if the /opt->/home/opt mountbind exists -- bail out21:53
kerioi see21:53
DocScrutinizer05  # we have come back into this function AFTER the binding has occured21:54
*** toxaris has quit IRC21:54
DocScrutinizer05  log "opt-boottime :: mount /home/opt->/opt exists, already optified, quitting."21:54
DocScrutinizer05# move /opt contents to /home/opt only if they exist21:54
DocScrutinizer05# ensure we update the donotclean flag now so we do not run again.21:54
DocScrutinizer05.21:55
DocScrutinizer05# use a variable to store do-not-clean file location21:55
DocScrutinizer05optifyflagfile="/var/lib/maemo-optify-firstboot-do-not-clean-home-opt"21:55
*** toxaris has joined #maemo-ssu21:55
DocScrutinizer05~ # ls -l /var/lib/maemo-optify-firstboot-do-not-clean-home-opt21:56
DocScrutinizer05-rw-r--r--    1 root     root            0 Mar  6  2011 /var/lib/maemo-optify-firstboot-do-not-clean-home-opt21:56
kerioI SEE21:56
DocScrutinizer05;-P21:56
kerioanyway, i did the optification manually21:57
kerioi have no idea how maemo-optify-auto-opt.sh is supposed to work21:57
DocScrutinizer05shouldn't be too hard, given there's stuff like cp -l21:57
kerioew21:58
kerioi just mv'd21:58
keriowell, cp-a'd and then rm'd21:58
kerioand then ln-s'd21:58
kerioverbing is my new favourite thing21:59
*** toxaris has quit IRC21:59
DocScrutinizer05kerio:22:00
DocScrutinizer05# get_optified_path: check if entry or any of its parent dirs was already optified22:00
DocScrutinizer05# conditions: the entry is a symlink and points to equivalent path under /opt22:00
kerioit's /usr/lib/gcc22:01
DocScrutinizer05I gather the supposed operation mode is: echo /usr/lib/gcc >>/etc/maemo-optify-auto-opt.conf22:01
*** toxaris has joined #maemo-ssu22:01
kerioi did22:01
DocScrutinizer05then on next boot it will get optified aiui22:02
DocScrutinizer05or run maemo-optify-auto-opt.sh manually22:02
kerioi did both, but /usr/lib/gcc wasn't optified22:03
DocScrutinizer05should do the same22:03
kerioi did that manually, no biggie22:03
*** toxaris has quit IRC22:03
DocScrutinizer05still puzzling, I'll eventually look into it22:03
*** toxaris has joined #maemo-ssu22:05
*** _rd has joined #maemo-ssu22:09
*** toxaris has quit IRC22:16
*** toxaris has joined #maemo-ssu22:18
*** Sc0rpius has joined #maemo-ssu22:21
*** toxaris has quit IRC22:30
*** toxaris has joined #maemo-ssu22:33
*** toxaris has quit IRC22:34
*** toxaris has joined #maemo-ssu22:35
*** nox- has joined #maemo-ssu22:38
*** BCMM has joined #maemo-ssu22:47
*** DocScrutinizer51 is now known as DocPyrotizer22:58
amiconnfireforks? o.O23:22
*** NIN101 has quit IRC23:23
*** arcean has quit IRC23:25
*** arcean has joined #maemo-ssu23:41
*** toxaris has quit IRC23:41

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