Saturday, 2023-04-22

Mister_Magistermal: pingggggggg  uhhh why does invoker prevent dbus service starting?18:40
Mister_Magistermal: fix for voicecall https://forum.sailfishos.org/t/access-to-contacts-is-not-possible-without-privileged-group/1534418:58
Mister_Magisternot this one18:58
Mister_Magisterhttps://github.com/sailfishos/voicecall/pull/1018:58
Mister_Magisterhere18:58
malon which device?18:59
Mister_Magistermal: it's voiceall issue19:11
Mister_Magisternot device issue19:11
Mister_Magistervoicecall/invoker/sfos issue19:11
Mister_Magistermal: issue was also not present on 4.319:15
Mister_Magisterso it's regression19:15
malwhat does it really cause?19:16
Mister_Magistermal: it causes dbus service to not start19:18
malso why doesn't that cause issues on official devices?19:19
TominI very much doubt that's the case. From my Xperia 10 II with 4.5.0: https://pastebin.com/XBHpqvW319:24
malMister_Magister: you are sure it's not adaptation issue like that some sandboxing or something is causing issue, can't remember if invoker does sandboxing19:28
Mister_Magistermal: it does19:28
Mister_Magisterit causes issue on all devices19:28
malon all or all your devices?19:29
Mister_Magisteron all of devices19:29
Mister_Magisternot all of my devices19:29
Mister_Magisterall of devices19:29
malsome examples19:29
malwhich have been reported of the official devices19:29
Mister_MagisterXperia 10 II19:29
malwhere is such report and logs19:29
Mister_Magisteri'll provide you that19:30
malI still haven't heard what that actually breaks19:30
Mister_Magistergive me day19:30
Mister_Magistermal: breaks starting dbus service19:30
mallike functionality19:30
Mister_Magisteroh wait19:30
Mister_Magisterxperia 10 III too19:30
malyou keep saying dbus but how do you see that in normal use19:30
Mister_Magisteri use it to talk to yottagram19:30
Mister_Magisterhttps://openrepos.net/comment/41761#comment-4176119:30
mallike calls are not working at all, something else+19:30
Mister_Magisterheres guy reportiing it on 10 III19:30
Mister_Magisteri know it's not wokring on 10 II19:31
Mister_Magisternot working on all of my ports19:31
malhow do you explain that paste from Tomin19:31
Mister_Magisternot working on pixel 419:31
Mister_Magistermal: sure i'll explain19:32
Mister_Magistermal: https://paste.opensuse.org/pastes/0ba29697862919:34
Mister_Magisterhow do you explain this paste19:34
malso it's not really voicecall-manager being the issue but something in sandboxing preventing third-party apps from accessing it19:37
Tominvoicecall-manager is not sandboxed AFAICT19:37
Tominare you sure that the issue is not that your plugin is not loaded when invoker is used for launch?19:37
Mister_MagisterTomin: could be19:37
Mister_Magisterstill invoker issue19:37
malstrace time?19:37
Mister_Magisterwould you look at that19:38
Mister_MagisterTomin madlad is right on the money https://paste.opensuse.org/pastes/025ff76d584e19:38
malquestion is why does that happen19:39
Mister_Magisterthat's for jolla to figure xd19:40
Tomininvoker makes stracing more complicated because it won't be the process itself but the process is created from booster service. in this case booster-qt519:40
malstrace -f might be more useful to see all threads etc19:40
Mister_Magistermal: just tried, same thing19:40
TominI think you need to attach strace to the correct booster process and then launch it via invoker19:40
malMister_Magister: so did you sheck what you see in strace in both cases in place where is tries to load plugins19:41
Tominbut I don't think we have any instructions on how to do that. and I don't know if it is really that simple19:41
Tomininvoker really just connects to a socket and tells another process to do fork-exec19:42
Tominso it naturally won't be loading those plugins19:42
Mister_MagisterTomin: https://paste.opensuse.org/pastes/2c78a1e6e43219:43
Mister_Magisteri did what you asked19:43
Mister_Magisterit doesn't even take yottagram plugin into consideration19:44
Mister_Magisteracts like it's not there19:44
Mister_Magisterit's not permissions issue either19:45
Mister_Magisteroh wait i might be wrong19:45
Mister_Magisterline 162019:46
Mister_Magisteror 113219:46
Mister_Magisterwould be useful if voicecall-manager outputted anything but here we are19:47
Mister_Magisterye it's loading it19:49
Mister_Magisterbut dbus service is not starting19:49
Mister_Magisterso we did circle and are back at the beginning19:49
malwhen stracing use something like -s 2048 so it won't cut out things19:52
Mister_Magisterofcourse its my fault19:52
Tominyeah, looks like that. It's a strange issue. I can't say right now why would invoker make such a difference, but I think the PR is not the solution. It's something else, I just don't know yet what it should be. -> off to bed for now19:52
Mister_MagisterFailed to load plugin: Cannot load library /usr/lib64/voicecall/plugins/libyottagram-voicecall-plugin.so: (/usr/lib64/voicecall/plugins/libyottagram-voicecall-plugin.so: undefined symbol: _ZTI24AbstractVoiceCallHandler)", iov_len=31419:53
malthat is bad19:53
Mister_Magisterthen why its not the case without invoker19:53
malwhat provides that symbol?19:54
Mister_Magisterand what invoker adds anyway, nothing19:54
Mister_Magisteri have no clue lol19:54
maltry to find19:54
mallike comparing what libs invoked and non-invoked loads and see if you can find something19:54
Mister_Magistermal: https://github.com/sailfishos/voicecall/blob/master/lib/src/abstractvoicecallhandler.h19:55
malmaybe your plugin is missing some linking?19:55
Mister_Magisterlike the libvoicecall that jolla removed?19:55
Mister_Magisterbecause and let me quote "it's not used"19:55
Mister_Magisterwhile voicecall literally links against it?19:55
Mister_Magister:)19:55
Mister_Magisterhttps://github.com/sailfishos/voicecall/commit/dd9305a56fbdc103c5d513f5a07257d4a5f3b9a119:56
Mister_Magister"This provides nothing to develop with, it's pointless."19:56
Mister_Magisteralso again, it's not the case without invoker19:56
Mister_Magisterand despite removing the .so, plugins link against it still https://github.com/sailfishos/voicecall/blob/master/plugins/plugin.pri#L1119:57
* Mister_Magister is slowly going insnae19:57
malhave you tried hacking it so that during your build it has the so symlink and links to it?19:59
maland see if that helps19:59
Mister_Magisterhow will that help if .so is not there19:59
Mister_Magisteralso issue is not present without voicecall19:59
Mister_Magisteralso19:59
Mister_Magisterhacking is not the way19:59
malthat .so is only for linking during build, it's not on device19:59
Mister_Magisterit's jolla's fault one way or another20:00
malhow about you try that and it it helps then make a PR to request adding the devel package back explaining the issue in detail20:00
Mister_Magistermal: but how will linking against some symlink to nowhere help?20:01
malargh, don't you understand how linking works during build20:01
mallet me check something20:02
Mister_Magisterfeel free20:02
malyou can check in build target and see that those .so files are always just symlinks20:02
Mister_Magistermal: the only libvoicecall.so i see is in the /usr/lib64/qt5/qml/org/nemomobile/voicecall/libvoicecall.so20:02
Mister_Magisterwhat?20:03
maljust example from target libturbojpeg.so -> libturbojpeg.so.020:03
Mister_Magisterye but they link to some final file20:03
Mister_Magistermal: i'm not sure what are you trying to fix20:04
Mister_Magisterbuilding?20:04
malcan't you just do what I said, add the .so symlink which will point to libvoicecall.so.1 to your target, then make your package link against voicecall and then build it and try on device20:05
malif that helps with invoker then you have your answer20:05
Mister_Magisterwhat  libvoicecall.so.1?20:05
mallike /usr/lib64/libvoicecall.so.1 or lib if 32-bit20:06
malyou can see in the commit you linked20:06
Mister_Magistermal: there's no such file20:07
malso you don't have voicecall installed+20:07
mal?20:07
Mister_Magisterthere's no libvoicecall.so .1 or anything like that20:07
Mister_Magisterno you can clearly see it was removed20:08
malonly .so was removed, the others are still there if you have the voicecall-qt5 package installed, which is probably not the case by default in target20:08
attahThe regular package provides libvoicecall.so.1, libvoicecall.so.1.0 and libvoicecall.so.1.0.020:08
Mister_Magisterwait20:09
Mister_Magisteryou're right20:09
Mister_Magistermy bad20:09
malso after you install that you add the symlink I asked and then try the build20:09
Mister_Magisteraight i follow you now20:09
Mister_Magisterproblem is getting to the target20:10
malsb220:10
Mister_Magisterbecause jolla did some magic in the sd20:10
Mister_Magistersb2 won't work20:10
mal"sb2 -t some_target -R -m sdk-install some_command" if it has issues remove that "-m sdk-install"20:11
malI use sb2 all the time20:11
Mister_Magisterlol that's not the "jolla way"20:11
Mister_Magister../SailfishOS/bin/sfdk tools exec SailfishOS-4.5.0.18-aarch64 ls /usr/lib64/libvoicecall.so.1 says no such file20:11
malI never learned the new commands so I just do everything the old way20:11
Mister_Magisterxd20:11
Mister_Magisterhmm20:12
malI have a big text file with all kinds of commands sorted by topic, like git command, sb2 stuff etc20:12
Mister_Magisteri jsut added linking against voicecall and it just compiled20:12
Mister_Magisterweird20:12
maldid you remember to add the linking to your package build20:13
mallike -lvoicecall20:13
attahmal: that's .bash_history for me, and C-p:history-search-backward in .inputrc20:13
Mister_Magisteri jsut said i jsut added it20:13
Mister_Magisteri include plugin.pri from voicecal20:14
malattah: yeah, that works also but easier to have them all in one place20:14
Mister_Magisterlemme try clean build20:14
malwhen some commands are rarely used20:14
attahwell... i guess i just set some madness-sized history limit20:15
Mister_Magisterwhat's history limit?20:15
Mister_Magisterxddd20:15
Mister_Magisteri don't even use bash, fish is way better at suggesting commands20:16
Mister_Magisterit even does it based on dir you're in20:16
Mister_Magisterwhen i'm in sfos workspace and do ../ it automatically suggest the sfdk command20:16
attahthat seems confusing... but ok20:17
attahSFOS should come with fish as a default just because the name though20:17
Mister_Magisterman i had such good day then i decided to figure out why voicecall is broken20:18
Mister_Magisterattah: lol but then sdk breaks20:18
attaheven now after years of posixifying?20:18
Mister_Magisterattah: :)20:20
Mister_Magisterit's jolla, do you expect stuff to work? lol20:20
attahgenerally... yes?20:20
attah"Sailfish OS is the worst OS - except for all the others"20:21
Mister_Magistersweet summer child20:21
Mister_Magisterjolla has strange policy to actively seek and prevent users from making apps and from the apps to work20:22
Mister_Magisternot to mention qt is at 6.5 and wer are 5.6 it's almost same thing :)20:22
attahInteresting challenge sometimes20:25
attahWell... qt licensing isn't exactly friendly... and gpl3 with phones sold with locked bootloaders might not exactly mix20:26
attahI have been contemplating buying some EFF lawyer time to weigh in on that... but so far i have had better things to do20:28
Mister_Magistermal: ye sfos targets are a magic, i can't add symlink20:31
Mister_Magisteri created it in .default but that didn't work20:32
Mister_Magisterand i can't access the target the build is using20:32
Mister_Magisterthere are two targets .default and without .default20:33
Mister_Magistermaybe voicecall is not installed after all20:35
malwhy wouldn't you be able to add it to target20:35
Mister_Magisterhttps://www.youtube.com/watch?v=P22x0V1OWeI20:36
Mister_Magisteradded voicecall-qt5 to buildrequires, maybe i'm just dumb and talking out off my ass20:37
malMister_Magister: just tested and did it the manual way i.e. "sb2 -t some_target -R" and then in the terminal went to /usr/lib64 and ran ln -s20:37
malthat "sb2 -t some_target -R" opens a terminal in the target20:38
Mister_Magistermal: ye i didn't have voicecall installed my bad20:38
Mister_Magistermal: kay that worked20:51
Mister_Magisterlong story short20:52
Mister_Magisterit wasn't so useless after all20:52
malso a PR to revert the devel package removal and explain that when invoker is used the linking to voicecall is needed for it to find that one symbol20:57
Mister_Magistermal:20:57
Mister_Magisterhttps://github.com/sailfishos/voicecall/pull/1120:57
Mister_Magisteralredy done20:57
malmaybe mention the missing symbol in the PR20:57
Mister_Magisterdone20:58

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