**** BEGIN LOGGING AT Thu Apr 05 03:00:05 2018 Apr 05 07:05:19 Morning! Apr 05 07:19:35 morphis__: ping Apr 05 08:59:43 Tofe: Did your image succeed building? Apr 05 09:13:17 Morning Apr 05 09:13:20 Herrie|Laptop: yes Apr 05 09:13:39 On my way to flash it Apr 05 09:20:16 Herrie|Laptop: "LunaSysService[1571]: [] [pmlog] LunaSysService Main#231 {"FUNC":"int main(int, char**)"} Failed to register service com.webos.service.systemservice: Invalid permissions for com.webos.service.systemservice" Apr 05 09:21:25 Tofe: Yes that's where I'm stuck too :P Apr 05 09:22:35 "failed to parse JSON file /usr/share/ls2/roles/pub/com.webos.service.systemservice.backupRegistration.json with error: Schema error. 19: Missing required key" Apr 05 09:23:26 "Deprecated ls2 permissions model is used (separated role files for public/private bus)." Apr 05 09:23:53 It looks like it uses uses only one role file per app Apr 05 09:24:39 Tofe: Yeah I was a bit stuck there too Apr 05 09:24:55 The thing is that we end up with these files in usr/share/ls2/roles/prv and pub Apr 05 09:25:04 While the rpi image doesn't have them there Apr 05 09:25:12 where does it have them? Apr 05 09:25:14 And we also have them in the /usr/share/luna-service2 Apr 05 09:26:31 Just the whole structure of the ls2 bus (pub/priv went away) and also the associated files changed Apr 05 09:27:33 do you have an example of a new json file? Apr 05 09:27:33 I.e. there's this now: https://github.com/webosose/luna-service2/tree/master/files/sysbus Apr 05 09:28:01 Sorry that was the wrong luna :P Apr 05 09:28:02 https://github.com/webosose/luna-sysservice/tree/master/files/sysbus Apr 05 09:29:35 so now there is "perm", "role" and "api" ? Apr 05 09:29:48 Yes seems so Apr 05 09:29:55 I'm trying to see if LG has documentation on it Apr 05 09:30:05 ok Apr 05 09:30:08 And on device there's also a manifest Apr 05 09:30:10 quite an impacting change Apr 05 09:30:27 Well it should be mainly be backwards compatible (i.e. old stuff should still work) Apr 05 09:30:38 But deprecated so should be migrated at some point Apr 05 09:30:44 But that shouldn't be urgently necessary for now Apr 05 09:30:47 To get things working Apr 05 09:31:08 Once we have things working & migrated we can look into our bits that need updating Apr 05 09:31:14 Still, if we don't migrate our com.webos.service.systemservice, it won't work Apr 05 09:31:33 Tofe: Well that one SHOULD have been migrated Apr 05 09:31:41 ah ok yes Apr 05 09:31:43 Since we migrated the systemservice Apr 05 09:31:51 right Apr 05 09:31:58 But somehow things went awol somewhere Apr 05 09:32:10 Also has to do with the webos-initscripts Apr 05 09:32:20 As you can see I had to do quite some hackidy hack there Apr 05 09:32:31 Since we're trying to do a minimal migration for now Apr 05 09:32:38 So needed to disable bits that we didn't migrate yet Apr 05 09:32:48 And add our systemd recipes that needed updating Apr 05 09:33:04 The backupregistration json comes from https://github.com/webosose/luna-sysservice/blob/master/files/conf/com.webos.service.systemservice.backupRegistration.json Apr 05 09:33:49 ok Apr 05 09:34:17 FYI /usr/share/luna-service2 now has the following folders: api-permissions.d, client-permissions.d, containers.d, groups.d, manifests.d, roles.d and services.d Apr 05 09:34:34 The files in manifests.d are generated somehow on the fly I guess Apr 05 09:34:39 Or by bitbake Apr 05 09:34:51 I suspect issue might be in webos_system_bus.class somehow Apr 05 09:35:28 I never that area so well Apr 05 09:35:47 but yes, it's very probably a recipe action Apr 05 09:35:56 +knew Apr 05 09:36:42 Well webos_system_bus is identical for us and OSE now, so that shouldn't be it Apr 05 09:37:01 Just not sure how we end up with files in /usr/share/ls2/ AND luna-service2 Apr 05 09:37:11 While the RPi3 image from OSE only has it in luna-service2 Apr 05 09:38:34 maybe the directories are configured differently Apr 05 09:39:10 webos_filesystem_paths.bbclass for example Apr 05 09:39:39 I unified those too ;) Apr 05 09:39:51 Only difference are 2 paths Apr 05 09:39:53 Non related Apr 05 09:40:45 well, I mean, recipes use webos_sysbus_pubrolesdir Apr 05 09:40:47 I.e. https://github.com/webOS-ports/meta-webos-ports/blob/pyro/meta-luneui/classes/webos_filesystem_paths.bbclass#L21 and https://github.com/webOS-ports/meta-webos-ports/blob/pyro/meta-luneui/classes/webos_filesystem_paths.bbclass#L50 Apr 05 09:48:50 Tofe: Ehm might have a clue Apr 05 09:49:43 I updated https://github.com/webOS-ports/luna-service2/tree/webosose by replacing existing files with the OSE ones Apr 05 09:49:51 Which didn't delete the original ones..... Apr 05 09:49:57 oh. Apr 05 09:50:06 So I guess we'd try to point to original upstream there Apr 05 09:50:11 And patch where needed Apr 05 09:50:20 ok Apr 05 09:51:00 Seems this might be the culprit: https://github.com/webOS-ports/luna-service2/commit/8ef1da946885325b9c99b973ee76f74bce70c007 Apr 05 09:51:31 Our changes there were minimal anyway Apr 05 09:52:17 https://github.com/webOS-ports/luna-service2/commits/webOS-ports/master Apr 05 09:52:19 well this commit just creates the directory, not its content Apr 05 09:52:28 True, but maybe other bits do somewhere Apr 05 09:52:57 Herrie|Laptop: it's still 20 commits :p Apr 05 09:53:52 Tofe: Well 7 real ones it seems Apr 05 09:54:23 let's try to do a rebase Apr 05 09:54:30 ah no it won't work Apr 05 09:54:32 grrrr Apr 05 09:57:22 Herrie|Laptop: I'll try some kind of rebase Apr 05 09:58:38 or maybe just fix the current branch Apr 05 10:05:11 Tofe: Well rebase might be a better idea Apr 05 10:05:19 Or we can just try upstream see what happens :P Apr 05 10:05:36 no, we need our commits Apr 05 10:05:53 a rebase isn't really possible as they didn't include even the legacy commits Apr 05 10:06:01 but I'll try something Apr 05 10:06:38 Tofe: Well seems they moved some stuff to https://github.com/webosose/luna-service2-security-conf Apr 05 10:22:18 Tofe: On the new LS2 bits: http://webosose.org/develop/js-services/built-in-js-service/develop-configure-js-service/#title4 Apr 05 10:29:11 Here's my rebase; some bits, like QtWebEngineProcess config, totally disappeared... https://github.com/Tofee/luna-service2/commits/tofe/webosose-rebase Apr 05 10:30:28 Tofe: Yeah Apr 05 10:30:32 They must have moved elsewhere Apr 05 10:30:40 Question is where Apr 05 10:31:04 yep... Apr 05 10:31:22 maybe it's now handled in a nice generic way? Apr 05 10:38:40 Good question.... Apr 05 10:39:11 Would be good if we would have knowledgeable LG birdies around :P Apr 05 10:40:00 Tofe: Just when you rebuild ls2 you'll need to rebuild qtwe again too :P Apr 05 10:45:10 oh... great Apr 05 13:13:30 Tofe: OK I've been digging a bit deeper into the whole ls changes and ran into some interesting bits: https://github.com/webosose/meta-webosose/blob/7c8e550398dd3ef7ab26f59023ede177f6f9830c/meta-webos/classes/webos_app_generate_security_files.bbclass Apr 05 13:15:20 Which seems to take care of generating security files for apps. We might need that in the future ;) Apr 05 13:16:40 And this python script that's being used by the image bbclass: https://github.com/webosose/meta-webosose/blob/7c8e550398dd3ef7ab26f59023ede177f6f9830c/meta-webos/lib/verify_ls2_acg.py Apr 05 13:17:14 I.e. in https://github.com/webosose/meta-webosose/blob/7c8e550398dd3ef7ab26f59023ede177f6f9830c/meta-webos/classes/webos_image.bbclass#L57 Apr 05 13:17:30 Just documentation is non existing for both so not very helpful :P Apr 05 13:29:55 And then there's also still these scripts: https://github.com/webosose/luna-service2/tree/b74b1859372597fcd6f0f7d9dc3f300acbf6ed6c/files/scripts/internal Apr 05 13:53:34 Tofe: I guess it doesn't hurt to add the python script to the webos_image.bbclass Apr 05 15:53:30 Tofe: It might be an idea to get rid of the com.webos.* files from /usr/share/ls2/roles/pub and usr/share/ls2/roles/prv in recovery before booting first time on device? Apr 05 15:54:03 Just to see what it does Apr 05 20:28:07 I set up a Mastodon instance for webOS community at webos.direct - feel free to register. Not developer oriented, just casual webOS community group Apr 05 22:15:47 Tofe: FYI deleting those files from /usr/share/ls2/roles/prv and pub "solves" the issue Apr 05 22:16:00 At least with luna-sysservice Apr 05 22:16:20 https://bpaste.net/show/3541b8e495fb Apr 05 22:16:25 Still doesn't boot but well Apr 05 22:25:35 Ooh eventually got an UI here now Apr 05 22:26:17 https://bpaste.net/show/7f98177efdf8 Apr 05 22:27:16 Seems like now we'd need to do some permission fixing :P Apr 05 22:27:54 Tofe: BTW this was with upstream luna-service2, not yours. I need to test yours still **** ENDING LOGGING AT Fri Apr 06 03:00:00 2018