libera/#maemo-leste/ Friday, 2021-12-31

freemangordonWizzup: again, we shall find what is really broke, I doubt this is the only problematinc package08:28
freemangordonweird, in VM apt log I see no triggers for shared-mime-info08:58
freemangordonWizzup: is it possible to create some quick-n-dirty image in the builder that installs hildon-update-category database only09:12
freemangordonhmm09:15
freemangordonmaybe my trigger is wrong09:15
freemangordonugh09:22
freemangordonwhat happens is that update-mime-database is called for empty /usr/share/mime/packages directory it seems09:24
freemangordonlemme test something09:24
freemangordonWizzup: what I guess happens is that shared-mime-info triggers are triggered before packages is being fully configured09:49
freemangordonno idea why that happens, but this is what I suspect09:49
freemangordonparazyd: any idea? ^^^09:50
freemangordonWizzup: please respin image build when you are around10:09
parazydfreemangordon: I don't know how the triggers work nor what the ones you linked are supposed to do.10:12
freemangordonparazyd: yeah, ok, docs a bit vague10:14
freemangordonI suspect that shared-mime-info postinst is being called before backage is being fully expanded (or whatever the term)10:15
freemangordon*package10:15
freemangordonthat seems to happen in the builder only10:17
parazydaha10:18
freemangordonmaybe apt is called with some special parameters?10:18
parazydThere's a possibility that the chroot divert is blocking this from happening.10:18
freemangordonblocking?10:19
parazydhttps://github.com/parazyd/libdevuansdk/blob/master/zlibs/helpers#L16510:19
parazydBut no though10:19
parazydThis is just invoke-rc.d10:19
freemangordonmhm10:19
freemangordonit is rather a bug in dpkg, invoking postinst for triggers before package is expanded10:20
freemangordonthat's what I suspect10:20
parazydapt is also always called with DEBIAN_FRONTEND=noninteractive10:20
parazydI can't think of anything else10:20
freemangordonmaybe we can workaround that by having shared-mime-info being installed in an earlier stage10:21
freemangordonis that possible?10:21
freemangordonthough I now changed hildon-update-category-database to have pre-depends on shared-mime-info10:22
freemangordonhoping that shared-mime-info will be configured by the time hildon-update-category-database install starts10:22
freemangordonparazyd: BTW, do I have login on jenkins?10:23
freemangordonin the UI that is10:23
parazydI believe so. Let me check. Should I make you one if you don't?10:23
freemangordondon;t know, what I can do from there?10:24
freemangordoncan I run image builds?10:24
parazydYes10:24
parazydWe can put the pkg here: https://github.com/maemo-leste/image-builder/blob/master/beowulf.config#L3210:24
parazydI'm not sure of the implications10:24
freemangordonthere shouldn't be any, iiuc10:25
freemangordonlets first try with my latest changes, if that doesn;t help we can try and move10:25
parazydok10:25
freemangordonok, so please either create account for me or start leste-image-droid3-dev image build10:26
mighty17[m]freemangordon: does glmark2-es2-*/glxgears run for you in the pvr mesa?10:27
freemangordonnever tried glxmark, but glmark2-es2 runs just fine10:28
freemangordonboth drm and x11 ones10:28
freemangordonnot sure if I tried WL one10:28
freemangordonthere is no point trying glxmark IMO, it will run through llvmpipe if it runs at all10:28
parazydok, I triggered it10:29
parazydYou don't have an account btw.10:30
parazydpm'd10:30
freemangordonok, if this build is still broken, I'll ping you to make the change in the image builder scripts10:38
freemangordonthanks!10:38
freemangordona side note - I think we shall enable openrc parallel boot10:39
parazydmhm I think that's safe now.10:40
freemangordonmhm10:40
freemangordonwho shall do that?10:41
parazydIt's easy enough to use sed from image-builder, but I'm not sure if Wizzup wants to handle this from a package.10:41
freemangordonlets wait for him then10:42
freemangordonhmm, what is wrong with the word "master" so jenkins is moving away from it?!?10:47
parazydYeah...10:54
freemangordonno, I really don;t understand. I mean white/black lists, good, someone may feel offended (though, maybe we shall remove the colors themselves then :) ), but "master"?10:56
freemangordonunless it has some meaning unknown to me10:56
freemangordonmaybe some native speaker can explain10:57
freemangordonI mean - do we still have slavery so a slave can feel offended?10:57
freemangordonparazyd: it seems shared-mime-info is already installed in stage 2(iiuc) it seems it is pulled as a dependency10:59
freemangordonno, it is "thirdstage"11:00
freemangordonhmm, is that normal: "scandir: Value too large for defined data type"11:01
parazyd11:01 <freemangordon> hmm, is that normal: "scandir: Value too large for defined data type"11:21
parazydWhere does this appear?11:21
parazydRegarding shared-mime-info, I think it's not part of the usual debootstrap11:22
parazydWhat I could do, is add an array that we can fill with package names and have them installed during the initial debootstrap.11:22
parazydThat could help with a few specific ones11:22
freemangordonparazyd: here https://phoenix.maemo.org/view/Images/job/leste-image-droid3-dev/6/console11:23
freemangordonmaybe some openrc warning11:24
parazydhmm I haven't seen that before11:24
freemangordonhmm, don;t see that in the VM image build11:25
wunderwungiel[m]Hej11:51
wunderwungiel[m]Hello11:51
freemangordonparazyd: still broken :(11:54
wunderwungiel[m]Is Matrix or IRC chat more active?11:55
wunderwungiel[m]?11:56
Wizzupwe don't have matrix12:09
Wizzupif it exists, it's bridged to irc12:09
freemangordonWizzup: no matter what I do, droid3 images are broken re mime12:11
freemangordonit looks like there is no /usr/share/mime/packages/freedesktop.org.xml during image build12:12
freemangordonor, /usr is bindmounted somewhere else12:12
freemangordonlike, if you move /usr/share/mime/packages/freedesktop.org.xml somewhere else and execute update-mime-database, you will get exactly the same /usr/share/mime/ content as on the build image12:13
freemangordonI don;t see how libhildonmime can possibly break this12:13
Wizzupthis is not really my terrain12:15
Wizzupit sounds like arm-sdk is perhaps just broken then12:15
freemangordonhmm, what about this: Err:1 https://maedevu.maemo.org/leste beowulf InRelease12:16
freemangordonat the end of the image build12:17
freemangordonTemporary failure resolving 'maedevu.maemo.org'12:17
freemangordoncould it be dns change breaking that?12:17
Wizzupyes, but it cannot cause this12:19
Wizzupit is part of this:12:19
Wizzupapt-get update12:19
Wizzupapt-get clean12:19
Wizzupupdatedb12:19
Wizzupupdate-ca-certificates12:19
Wizzupupdatedb is just locate related12:19
Wizzupca certs clearly aren't causing the mime problems12:19
freemangordonsure12:19
Wizzupand it's the last step12:19
freemangordonwe have one more error though12:20
WizzupI was just inclined to blame libhildonmime because to my knowledge we were seeing ok images before12:20
freemangordon"scandir: Value too large for defined data type"12:20
Wizzuplet me see12:20
Wizzuphm12:20
Wizzupseems to be openrc/sysvinit related12:21
freemangordonmhm12:21
WizzupI think those should be unrelated, but we can go back to images that did work and look at the log12:22
freemangordonWizzup: how hard is to create a simple image that installs hildon-update-category-database (and deps) only?12:22
WizzupI don't know, parazyd would know12:22
freemangordonas now it takes 2 hours to test changes12:22
freemangordonWizzup: so, only -dev images are broken, rifght?12:23
Wizzupno12:23
freemangordon*rigth12:23
Wizzupeverything is broken12:23
Wizzupexcept for apparently your vm image12:23
freemangordonVM is not12:23
Wizzupn900 is also broken12:23
freemangordonno, VM image is not12:23
freemangordonalso, the new hildon-update-category-database is only in -devel12:24
freemangordonso it cannot affect stable images12:24
Wizzuplast non-devel change is 2021-09-30 it seems12:24
freemangordonint the vm image it is the old version12:25
freemangordon3.x12:25
Wizzup3.1.0?12:25
freemangordonmhm12:25
WizzupI mean I can verify and boot the n900 image but someone already did that and reported purple and black12:25
Wizzupso I am not sure if that makes sense12:25
freemangordonno12:25
Wizzupand we don't have -devel n900 images12:25
freemangordonbut, does it install from beowulf-devel?12:26
Wizzupno12:26
Wizzupof course not12:26
Wizzuponly -devel images fetch from beowulf-devel12:26
freemangordonunless I miss something, 4.x of libhildonmime is in -devel only12:26
Wizzupyes12:27
Wizzupso something else perhaps broke it12:27
freemangordonno way then this to break shared-mime-info12:27
Wizzupwe'd have to go back in time to see which is the last good image12:27
freemangordonyeah12:27
freemangordonVM one is still good :)12:27
Wizzupbut I'm at a loss here and it's been years since I managed to even run arm-sdk locally12:27
Wizzupso I'm hoping parazyd can fix this12:27
freemangordonand it doesn;t have "scandir: Value too large for defined data type" error12:27
Wizzuphttps://bugzilla.redhat.com/show_bug.cgi?id=141167#c3312:29
Wizzupnot super related12:29
freemangordonn900 image log: Setting up hildon-update-category-database (3.1.0+2m7.1) ...12:29
Wizzupcould be the backing filesystem or something12:29
Wizzupfreemangordon: right no surprise there12:29
Wizzupparazyd: are you available to look at this? we want to give an image to a lima dev who said he's wanting to boot it on a pinephone and try to fix our problem or give hints12:30
parazydNot today, sorry12:30
Wizzup:(12:30
freemangordonwell, I can try and run armsdk here, but, which repo to clone?12:31
freemangordonor it hasn;t moved recently?12:31
parazydgit clone https://github.com/maemo-leste/image-builder --recursive12:31
parazydRun it in a VM where an account has nopasswd sudo12:32
freemangordonleste VM?12:32
parazydJust Devuan or something12:32
freemangordonleste is devuan, no :)12:33
parazydSure :D12:33
freemangordonWizzup: maybe initial bootstrap is > 2GB12:35
Wizzupsure, but what modern fs would not support that12:36
freemangordonsome 32 bit one?12:36
freemangordon:)12:36
freemangordonand that would explain why 64bit VM doesn;t have the issue12:36
freemangordonlemme see what is the situation on PP12:36
Wizzuphttps://phoenix.maemo.org/job/leste-image-pinephone-dev12:39
Wizzupno scandir error12:39
freemangordonuncompressing12:39
Wizzupok12:39
freemangordonmhm12:40
freemangordon/usr/share/mime is fine12:40
freemangordonUnpacking hildon-update-category-database (4.0.0+2m7)12:41
freemangordonso, it is something on 32bits12:41
freemangordonnot related to libhildonmime12:41
freemangordonI am going to revert changes in it and force-push12:42
freemangordonok?12:42
freemangordonWizzup: ^^^12:42
mighty17[m]`ls /sys/bus/mmc/drivers/mmcblk12:42
mighty17[m]bind       mmc0:1117  mmc1:0001  uevent     unbind`12:42
mighty17[m]any idea why mmc4:001 is not in here?12:43
mighty17[m]`samsung-espresso3g:/sys/bus/platform/drivers/omap_hsmmc# ls12:43
mighty17[m]4809c000.mmc  480b4000.mmc  480d5000.mmc  bind          uevent        unbind` we have it here12:43
mighty17[m]`480d5000.mmc` but no mention of it in dmesg or anywhere12:43
Wizzupfreemangordon: revert what12:43
mighty17[m]only happens on a cold boot, any clues?12:44
Wizzupfreemangordon: ok, maybe something else is up then, I can try to think about that for a moment12:45
freemangordonrevert changes I made in libhildonmime12:45
freemangordonWizzup: iiuc, it is some cpio archive, maybe it cannot be more than 2GiB on 32 b its12:46
freemangordonWizzup: so, are you ok with me reverting libhildonmime changes and overwriting the history?12:48
Wizzupfreemangordon: sure I guess, but I wonder if triggers should really return non-0, but idk12:48
freemangordonok, I'll leave it as it is then12:49
freemangordonI'll just pull those changes in master12:49
Wizzupparazyd: where is this sysvinit -> openrc transition in the arm-sdk12:50
Wizzupparazyd: maybe this is part of the openrc package?12:51
Wizzupfreemangordon: I don't think cpio is used at this stage, but it's hard to confirm12:52
Wizzupanything I grep for I can't find it12:53
Wizzupit loads something called zuper or something12:53
freemangordonmhm12:54
Wizzupseems to be random zsh stuff12:54
WizzupI can't find the entry point lol12:55
Wizzupbuild_image_dist doesn't even occur anywhere12:55
Wizzupmaybe more gets fetched on demand?12:56
freemangordoninstall dependencies atm, need some time :)12:56
Wizzupjust grepping for cpio also shows just an env var12:56
Wizzupmagic12:56
Wizzupsame for fsck and anything else basically12:57
Wizzupmkfs just doesn't occur12:57
Wizzupparazyd: where is this missing code?12:57
Wizzuplol ok I'll wait for you fmg13:00
WizzupI can't even figure out what kind of fs is being used13:00
Wizzupbind mount or otherwise13:00
freemangordoniirc it was loop13:01
Wizzupin any case I am pretty sure the cpio stuff is not being used and we can disable it as well13:01
Wizzupidk it's nowhere to be found13:01
WizzupI think all the magic is in some libdevuansdk13:03
Wizzupbut it's not checked out13:03
Wizzupyeah there it is13:03
freemangordonzsh: command not found: build_image_dist13:05
freemangordon:(13:05
Wizzupthe usage of this is a bit awkward13:06
Wizzupdid you load the sdk stuff13:06
Wizzupcheck the readme13:06
Wizzupyou need to source sdk and stuff13:06
freemangordonyes13:07
freemangordonI did13:07
Wizzupmaybe try build_ + tab tab13:07
freemangordonah :_13:08
freemangordon:)13:08
Wizzupdo we not allow root login on our new images?13:54
Wizzuptoor doesn't work over ssh13:55
Wizzupclearly everything must stand in our way of debugging atm :)13:55
Wizzupeven changing password doesn't work13:56
Wizzupdoes anyone recall wth we have to do to get access? :D13:56
freemangordonuser:user13:57
freemangordonI found it the hard way :)13:57
Wizzup:(13:57
Wizzupok, at least new mesa is on the pinephone image13:58
freemangordonugh, build-dep results in 509 MB14:04
Wizzupfor?14:04
freemangordonshared-mime-info14:04
Wizzupmhm14:06
freemangordonhmm, I should have disabled manual pages14:06
freemangordonthe one I built fails to generate mime cache too14:15
Wizzupwhat does strace say?14:17
freemangordonI cannot strace in chroot14:18
WizzupI think you can disable that via sysctl14:18
freemangordonI will rather put printfs()14:18
Wizzupk14:19
freemangordonWizzup: well, if you provide what to set via sysctl, I am finr14:20
mighty17[m]tmlind: https://github.com/Unlegacy-Android/android_kernel_ti_omap4/commit/e01587a794fa2ee14d3559a7d919af7e386a03e4 is this commit needed for mainline?14:20
Wizzupfreemangordon: try sysctl -w kernel.yama.ptrace_scope=014:20
wunderwHello :)14:20
wunderwI'm writing from N90014:20
* mighty17[m] tries to figure out why sdio doesnt get loaded on cold boot and gets when booted from twrp :(((14:20
Wizzupwunderw: confirmed the issue you saw on the new image is a broader problem we're fixing now14:20
wunderwGood :)14:21
wunderwInstalled IRC plugin for conversations and now I enjoy IRC on Fremantle :D14:21
Wizzupyeah, we'll have that in leste eventually soon14:21
Wizzup(well, deadline is 1 month from now)14:21
Wizzup;)14:21
freemangordon/usr/bin/strace: ptrace(PTRACE_TRACEME, ...): Function not implemented14:22
Wizzupfreemangordon: is /proc mounted14:22
freemangordonno :(14:23
Wizzupin chroot: mount -t proc none /proc14:23
Wizzupor use --rbind from outside chroot14:23
wunderwIs this chat only for Leste or mainly for N900?14:23
freemangordondidn;t help14:23
Wizzupwunderw: not sure what you mean but for leste14:23
wunderwOk14:23
Wizzupfreemangordon: ok, then I don't really know why14:23
Wizzupmaybe qemu related or something14:24
freemangordonwill continue with prints14:24
freemangordonmhm14:24
Wizzupdo you strace from within chroot?14:24
freemangordonyes14:24
freemangordonyou mean I shall strace from outside?14:24
Wizzupno, I don't think that makes sense14:24
freemangordonWizzup: readdir returns null when trying to find the files in /usr/share/mime/packages14:36
freemangordonls works on that14:36
freemangordonI am lost14:36
freemangordonugh, errno is 7514:38
freemangordonOS error code  75:  Value too large for defined data type14:38
freemangordonhehe14:38
freemangordonhttps://github.com/rust-lang/cargo/issues/871914:40
freemangordonhttps://bugs.launchpad.net/qemu/+bug/180591314:40
freemangordon"The bug also affects shared-mime-info. update-mime-database uses readdir "14:41
freemangordon:D14:41
freemangordonhttps://lkml.org/lkml/2018/12/27/15514:43
Wizzupfreemangordon: hm... so qemu bug?14:46
freemangordonnot really14:46
Wizzupwell one suggestion seems to be to have a 32bit host14:47
WizzupI can spin up another vm now for that14:47
Wizzupif parazyd can set that up that is14:47
freemangordonmhm14:47
freemangordonwe need 32bits VM14:47
Wizzupparazyd: what do you think ^^14:47
Wizzupparazyd: shall I set up https://files.devuan.org/devuan_beowulf/installer-iso/devuan_beowulf_3.1.1_i386_netinstall.iso for you/14:48
Wizzupfreemangordon: btw this is not fixed in newer kernel? or ?14:48
freemangordonstill reading LKML14:49
tmlindmighty17[m]: no that's not needed, see the recent mainline wl1251 patches on how the mmc core can handle non-standard devices14:50
tmlindsee commit 187b164945c4 ("mmc: core: transplant ti,wl1251 quirks from to be retired omap_hsmmc")14:51
mighty17[m]Ohk will look, thanks15:00
mighty17[m]tmlind: that only works for wl1251? what about other chips?15:08
mighty17[m]also doesnt explain mmc not working from cold boot :(15:08
Wizzupfreemangordon: lmk if you have another suggestion15:09
Wizzupotherwise I will do the netinstall for 32 bit15:09
freemangordonstill reading through bugreports15:11
freemangordonwe're not the only ones to be bitten by that15:12
freemangordonWizzup: hmm, seems it might not help15:18
freemangordonbut better try it15:19
freemangordon(32 bits on 32 bits)15:19
tmlindmighty17[m]: you can add support for other chips15:23
freemangordonWizzup: I don't think we have a solution but to use 32 bits15:27
Wizzupfreemangordon: ok15:38
mighty17[m]tmlind: not merged yet? also from where do we get `card->*` info?15:51
Wizzupfreemangordon: setting it up now16:06
freemangordonok16:46
mighty17[m]<mighty17[m]> "tmlind: not merged yet? also..." <- anyways this is a quirk for wl1251 only? as i've never seen it for bcm4330, plus we're  moving to sdhci so it should be gone as well? im pretty confused and overwhelmed xD16:49
Wizzupfreemangordon: the vm is all set up waiting for parazyd to set up jenkins17:57
Wizzupand then we should be good to go17:57
freemangordonWizzup: does it make sense to clone armsdk there and spin image build?18:11
freemangordonarmsdk it is not *that* hard once you get used to it :p18:12
Wizzupfreemangordon: hm?18:15
Wizzupfreemangordon: I'd rather wait for parazyd to add it to the CI so that we can assign the 32 bit image builder to all 32 bit arches18:15
Wizzups/arches/image builds/18:15
Wizzupunless you want me to try and see if it works ok18:15
freemangordonyeah, that was the point. up to you though18:16

Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!