Tuesday, 2021-02-16

T42<thisisthethirdshoukosaccount> @thisisthethirdshoukosaccount [when running this, rpm/dhd/helpers/build_packa …], Bump05:43
T42<thisisthethirdshoukosaccount> @thisisthethirdshoukosaccount [I was trying to build sfos 4.0.1], Bump05:43
T42fhdfh %lastname% was added by: fhdfh %lastname%08:57
T42<elros34> @thisisthethirdshoukosaccount check permissions in $ANDROID_ROOT/hybris/ and whether you use correct name for droid-hal-version spec file09:43
T42<thisisthethirdshoukosaccount> but how do I do that? I have been building 3.3, 3.4 the same way, I never got this error before09:44
T42<elros34> ls -al /path/to/diirectory. Do you have latest submodules?  If yes the your error probably happens at line 176 in util.h. What happen when you execute: dirname $(find hybris -name droid-hal-version-$DEVICE.spec)09:50
T42<thisisthethirdshoukosaccount> @elros34 [ls -al /path/to/diirectory. Do you have latest …], https://paste.ubuntu.com/p/45TKwpdmTm/09:54
T42<thisisthethirdshoukosaccount> dirname $(find hybris -name droid-hal-version-$DEVICE.spec)09:54
T42<thisisthethirdshoukosaccount> returns nothing (running in platformsdk)09:54
T42<elros34> dirname returns nothing? so do you have hybris/droid-hal-version-$DEVICE/rpm/droid-hal-version-$DEVICE.spec?10:00
T42<edp_17> @elros34 : Hi, Can you help me out on how to build firejail for shos, please? (There is no spec file, so I cannot simply use the rpm/dhd/helpers/build_packages.sh)10:05
T42<elros34> there is spec file in rpm directory. Do you use correct repo from github.com/sailfishos?10:07
T42<edp_17> Nope, I used this: https://github.com/netblue30/firejail10:08
T42<edp_17> I'll use the other you mentioned. Thanks!10:08
T42<elros34> that is submodule10:08
piggzlbt: hi, any joy with aarch64 builds on OBS ?10:25
T42<edp_17> @elros34 : Interesting. I've built firejail and now I get a different error message: https://paste.ubuntu.com/p/VkdvKVxtN2/11:22
T42<edp_17> This means there must be too something else to make it work on sfos, right?11:23
T42<edp_17> My build got: firejail-0.9.63+git5-1.5.1.jolla.armv7hl, while Jolla's: firejail-0.9.63+git5-1.armv7hl11:24
T42<edp_17> Sorry, there reverse. Jolla's: firejail-0.9.63+git5-1.5.1.jolla.armv7hl11:24
T42<elros34> mb2 have --do-prep (it might be different in 4.0.1.x) options which will apply patches from rpm/ directory. You need to run it once otherwise you will miss all jolla's patches11:25
T42<elros34> mb2  -t target build --prepare11:27
T42<edp_17> Should I just simply issue this command in PlatformSDK?11:28
T42<edp_17> How will it know to appy patches for firejail?11:28
T42<elros34> obviously you need to run it in package directory11:30
T42<edp_17> What's the target?11:31
mal@edp_17 how are you building it? what patches are you talking about?11:32
T42<edp_17> @edp_17 [What's the target?], Ok, I got that.11:32
T42<elros34> https://sailfishos.org/wiki/Building_packages11:32
T42<edp_17> I got this: https://pastebin.ubuntu.com/p/7zGJqXyg67/11:33
maladd -p after build11:33
T42<edp_17> I got the same error.11:35
T42<edp_17> Okay, I needed to remove the --prepare11:35
T42<edp_17> It is running now.11:36
T42<edp_17> @elros34 , mal: I've changed O_PATH to O_RDONLY in this line: https://github.com/netblue30/firejail/blob/ce7dd15609d5ab9016c6dbf3fdf8833dcf12d4f2/src/firejail/fs.c#L488 and now I am getting a different error: https://pastebin.ubuntu.com/p/XTbXnKbpfc/11:51
T42<edp_17> Any idea?11:51
malwhat was the original error11:53
T42<edp_17> https://paste.ubuntu.com/p/53fVC4wdfB/11:53
T42<edp_17> mal ^^11:54
malwhich device and kernel?11:54
T42<elros34> so O_PATH cause fstatvfs failure?11:54
T42<edp_17> mal: Note 4 (treltexx) kernel 3.10.911:55
malhave you tried to strace the failing process?11:56
T42<edp_17> @elros34 : "Firejail uses O_PATH quite extensively, and if your kernel is 3.x it might not support some operations. In particular fstat(2) is used frequently on these descriptors, so Firejail will be broken badly on kernels before 3.6. Can you change O_PATH to O_RDONLY and check if it works (= if you get a different error)?"11:56
T42<edp_17> mal: I don't know how to do that. Simply use: strace command?11:57
T42<edp_17> mal: https://paste.ubuntu.com/p/66RDQNzDy8/11:58
T42<edp_17> @elros34 : Who advised that change (O_PATH to ORDONLY) mentioned two kernel patches:12:00
T42<edp_17> https://github.com/torvalds/linux/commit/55815f70147dcfa3ead5738fd56d3574e2e3c1c212:00
T42<edp_17> https://github.com/torvalds/linux/commit/9d05746e7b16d8565dddbe3200faa1e669d23bbf12:00
T42<edp_17> I've tried to apply them but failed to build the kernel. Probably there are other patches/commits to apply but I am struggling to find them.12:01
maltry reverting this https://github.com/shr-distribution/linux/commit/9b67aeff9256ad337e22b0f3b228b7ec01ff2a2012:01
T42<edp_17> I don't have that in my kernel, so don't need to revert.12:02
T42<edp_17> That bit in my kernel looks like this: https://github.com/edp17/android_kernel_samsung_exynos5433/blob/cm-14.1-treltexx/fs/stat.c#L6012:03
T42<edp_17> Line 63 and 64 are different. Does it matter?12:04
mallooks ok12:04
T42<edp_17> mal: thanks.12:05
T42<elros34> so have you tried that: vfs: allow O_PATH file descriptors for fstatfs()  patch?12:11
T42<edp_17> I have not tried to apply them one by one. I've tried to apply both at the same time.12:13
T42<elros34> you are missing that one so that is why I asked12:14
T42<edp_17> Wait, no I was wrong. I just double checked and found that patch applied on statfs.c12:14
T42<edp_17> I have 'struct fd f = fdget_raw(fd);' instead of nel built successfully but have not installed it on device because I thought reverted both changes.12:15
T42<edp_17> I perhaps should try installing the new kernel and check whenther that works with the original or the amended firejail.12:16
T42<edp_17> Leave it with me. I'll try and report.12:16
T42<elros34> amended firejail fail with same kind of error just in different place12:17
T42<edp_17> Yes, but as I said I use the original kernel where that patch is not there.12:18
T42<elros34> ok. If O_PATH works on my 3.0 kernel then it's matter of finding right patches to get it working on 3.1012:19
T42<edp_17> Have you tried?12:20
T42<elros34> I have working 4.0.1 sfos with firejail since beginning of EA release without any additional patches12:21
T42<elros34> I got only some warning like: prctl(NO_NEW_PRIVS) probably because missing kernel feautures12:22
T42<edp_17> 😳 You have working 4.0.1 on your device with kernel version 3.0 without any additional patches? 4.0.1 doesn't even boot on my Nexus 5 (kernel 3.4)12:24
T42<edp_17> Well, it boots but stuck on the boot logo.12:24
T42<edp_17> Yeah! With the new kernel, firejail works! (with my modified O_PATH and O_RDONLY one and with Jolla's original firejail too)12:29
T42<edp_17> So, this patch was required into kernel: https://github.com/torvalds/linux/commit/9d05746e7b16d8565dddbe3200faa1e669d23bbf12:29
T42<elros34> great job!12:29
T42<edp_17> Thanks!12:30
T42<edp_17> Now I re-install all jolla app and try them.12:31
T42<edp_17> Ho can I reinstall sailfish-browser?12:40
T42<edp_17> @edp_17 [Ho can I reinstall sailfish-browser?], I got that now.12:50
piggzrinigus: mal: maybe OBS will stay ... it is sort of advertised on the new sailfishos.org website, under "Infrastructure for your ecosystem" unless that refers to something else?12:59
riniguspiggz: hard to say. something with business...13:59
rinigus... in that section13:59
T42<thisisthethirdshoukosaccount> @elros34 [dirname returns nothing? so do you have hybris …], seems like I made some submodule blunder, but I've fixed it now I think...14:17
T42<thisisthethirdshoukosaccount> But now I am getting this error:14:17
T42<thisisthethirdshoukosaccount> Error <creator>[02/16 14:12:53] : URLGrabber error: https://releases.jolla.com/jolla-apps/ - [Errno 14] HTTPS Error 404 - Not Found14:17
T42<thisisthethirdshoukosaccount> Do I have to remove this repo from ks file or replace it with some other?14:17
T42<elros34> that suggest wrong release set in .hadk.env, latest is
T42<thisisthethirdshoukosaccount> @elros34 [that suggest wrong release set in .hadk.env, l …], so do I need to update target and tooling and build again? or I need to clean up?14:21
T42<elros34> Depends on what release you use now, is for sure incorrect14:22
T42<thisisthethirdshoukosaccount> @elros34 [Depends on what release you use now, i …], did dhd/submodules also updated between and
T42<elros34> there was not release so just set correct in .hadk.env14:48
T42<edp_17> @elros34 : Do we have a permanent solution to avoid the /proc/pid/environ error? Can I use the same workaround in the SDK that you suggested for the device (remove busybox-symlinks-psmisc and install psmisc-tools)?15:07
T42<elros34> didn't try it but 'Recommends: psmisc-tools' in patterns should be enough I guess15:10
T42<edp_17> I just built a new image and psmisc-tools was already in there. I just needed to remove busybox-symlinks-psmisc and reboot.15:11
T42<edp_17> This can be the reason why bluetooth doesn't work: https://pastebin.ubuntu.com/p/j47Zg5JHDT/15:18
T42<edp_17> It is moaning about /dev/ttySAC3, but that worked prior sfos 4.015:19
T42<elros34> are you sure that is the issue? Your logs showed that brcm_patchram_plus finished without errors. Now you are running it as user instead root15:21
T42<elros34> your previous logs*15:21
T42<edp_17> Yeah, I just tried with root and I could run it. BT still doesn't work though.15:21
T42<elros34> what about rfkill unblock bluetooth. Are you aware that some users reports bluetooth issues on forum?15:22
T42<edp_17> No, I wasn't aware of that.15:25
T42<thisisthethirdshoukosaccount> @elros34 [what about rfkill unblock bluetooth. Are you a …], this worked for me on ubuntu touch but didn't work on sfos15:26
T42<thisisthethirdshoukosaccount> https://github.com/SailfishOS-MI-A2/droid-config-jasmine_sprout/commit/857ab725b1640f60b6824b90491edcca7460b2b615:27
T42<thisisthethirdshoukosaccount> is something wrong with my service?15:27
T42<elros34> I don't know whether this script will help but systemd services looks wrong. multi-user.target.wants/droid-post-startup.service should be symlink not service file itself. graphical.target.wants/droid-post-startup.service also looks like file not symlink15:30
T42<edp_17> I have found one problem, the bluetooth-rfkill-event service is in /lib/systemd rather than /usr/lib/systemd15:33
T42<elros34> You should choose one: graphical.target.wants or multi-user.target.wants. According to service file it should be graphical.target15:33
T42<elros34> @thisisthethirdshoukosaccount ^15:33
T42<thisisthethirdshoukosaccount> @elros34 [You should choose one: graphical.target.wants …], okay, I will try it once my image is built, mic gave error,15:43
T42<thisisthethirdshoukosaccount> Info[02/16 15:35:32] : Script returned with non zero status, failing.15:43
T42<thisisthethirdshoukosaccount> Error <creator>[02/16 15:35:33] : Failed to execute %pre script with /bin/bash15:43
T42<thisisthethirdshoukosaccount> last time I had to migrate my packages, do I have to do it again?15:46
T42<elros34> Do you mean migrate to meta packages? According to your repo you already did it so no15:47
T42<thisisthethirdshoukosaccount> yes..15:47
T42<edp_17> I've moved the bluetooth-rfkill-event service into /usr/lib/systemd and it looks like bt is switched on correctly but in reality the dot oly flashes next to the Bluetooth otption in Settings. In short, it doesn't work.15:55
T42<thisisthethirdshoukosaccount> While running mic it says this, does this look okay?15:58
T42<thisisthethirdshoukosaccount> [02/16 15:57:56] : mic 1.0.2 (Sailfish OS (Pallas-Yllästunturi))15:58
T42<thisisthethirdshoukosaccount> Info[02/16 15:57:56] : Substitute macro variable @ARCH@ with armv7hl15:58
T42<thisisthethirdshoukosaccount> Info[02/16 15:57:56] : Substitute macro variable @RELEASE@ with
T42<elros34> @edp_17 try few times. It doesn't always work for me at first time in 4.0.1.x. Also update your bluetooth-rfkill-event sources15:59
T42<edp_17> Thanks @elros34 , I'll try that!16:01
piggzmal: what does the function do under settings > reset phone ?16:14
piggza user reported they did that, and when phone restarted it was just showing the dead android robot !16:14
malpiggz: factory reset16:28
piggzmal: what does that invovle though?16:29
T42<edp_17> @elros34 : didn't work. I updated blurtooth-rfkill-event and rebuilt the package. I also tried to turn bt on/off multiple times. :(16:29
T42<elros34> what about that rfkill command? does it power up bluetooth at least?16:31
T42<elros34> or from forum, systemctl restart bluetooth.service16:31
T42<edp_17> I have rebooted. That should restart bluetooth service.16:33
T42<elros34> sure the point is that   bluetooth.service might be started too early after reboot that is why restarting it could help some users from forum16:34
T42<edp_17> rfkill says:16:35
T42<edp_17> bluetooth bcm4358 Bluetooth unblocked unblocked16:35
T42<edp_17> bluetooth hci0 unblocked unblocked16:35
T42<edp_17> When I turn bt on the first line changes to:16:36
T42<edp_17> bluetooth bcm4358 blocked unblocked16:36
T42<eugenio_g7> piggz: iirc it should reflash the os from the squashfs images present in the android system partition16:36
malpiggz: reinstalls the whole thing from some partition16:36
malpiggz: if you want ot prevent that https://github.com/mer-hybris/droid-config-sony-seine/commit/edb53237bab0ecc14c15854d179463d0cd8f447f16:37
T42<edp_17> @edp_17 [When I turn bt on the first line changes to:16:37
T42<edp_17> b …], And the line with hci0 disappear.16:37
piggzmal: @eugenio_g7 thanks ... iirc, i install the recovery image on the pro1, but the volla where this happened isnt a/b so maybe i didnt install the imge16:38
malpiggz: yes, if there is no suitable partition for the recovery image then you probably want to disable that16:39
T42<elros34> @edp_17 no idea how this bcm4358, hci0 should looks like. I only have hci0. Soft unblocking/blocking enables/disables bluetooth. hcitool scan works?16:44
T42<edp_17> @elros34 : hcitool not found. Do you know which package has it?17:44
T42<elros34> bluez5-tools or something like that17:47
T42<edp_17> That was it, thanks. It says: Scanning ...17:49
T42<edp_17> And nothing happens, even if I toggle the bt on/off/on/...etc in top menu and/or Settings.17:50
T42<edp_17> I started as user.17:52
T42<edp_17> I rebooted. Now hcitool scan says: Device is not available: No such device17:55
T42<elros34> you need to first enable bluetooth to scan17:57
T42<edp_17> Okay. So, when bt is turned on, it says Scanning ... Then it returns with nothing. When bt is off, it says Device is not available...17:58
T42<edp_17> Yeah, I just realised. :)17:58
T42<elros34> but you have some discoverable bluetooth device next to you?:)18:00
T42<edp_17> You didn't say that I need that. ;-)18:05
T42<edp_17> Yes, if there is a discoverable bt device nearby, hcitool scan finds it.18:05
T42<edp_17> It looks like bt works, only the ui doesn't show that.18:05
T42<elros34> pure guess, maybe try jolla-settings without sailjail18:10
T42<edp_17> I think jolla-settings doesn't use sailjail but will double check and try. Thanks.18:11
T42<edp_17> Yeah, I started jolla-settings from command line but no difference.20:22

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