**** BEGIN LOGGING AT Sat Dec 03 03:00:01 2016 Dec 03 08:35:47 Morning! Dec 03 08:36:39 Herrie: I had a discussion on #sailfishos-porters, and one remark was quite interesting: (09:35:10) TheKit: [20:48:39] Tofe, SFOS builds patched libraries to be used with libhybris as overlay with regular Android rootfs Dec 03 08:37:12 The "regular Android rootfs" usage is quite appealing, as it is much more simple to put in place... Dec 03 08:38:34 it also means using a much smaller CM subset build, like they do Dec 03 08:39:53 Tofe: Ah OK Dec 03 08:40:02 I'm not sure why we have LXC tbh Dec 03 08:40:12 That was a design decision taken early on Dec 03 08:40:17 morphis: ^ ? Dec 03 08:40:37 to isolate android stuff Dec 03 08:41:10 the overlay approach should still be compatible with lxc Dec 03 08:42:51 Tofe: Ah OK. I'm all in favor for easier :) Dec 03 08:43:39 we would still have to simplify the android init.rc I think Dec 03 08:44:30 but that can also be done using the overlay, if I understand stuff correctly Dec 03 08:55:02 ok, so their way of doing it is that they mount the regular android filesystem on /system, and then they use things like "LD_LIBRARY_PATH=/usr/libexec/droid-hybris/system/lib/:/vendor/lib:/system/lib" so that libhybris's patchd libs are taken first Dec 03 08:55:36 I quite like it, it's pretty clean Dec 03 08:56:27 I'd like to give it a try :) Dec 03 08:58:12 Tofe: Feel free :) As long as it's replicatable I'm happy with it ;) Dec 03 08:59:39 Basically it means using mer-hybris's manifest with less custo (just the boot part), and building the hybris CM target instead of mako_userdebug Dec 03 09:00:04 for CM13 I began with that and it worked well Dec 03 09:00:15 so I'm confident for CM12.1 Dec 03 09:05:11 Tofe: OK :) Dec 03 09:13:08 hybris-hal target built ! Dec 03 09:27:08 :) Dec 03 10:54:59 ... and I have a working luna-next! Dec 03 10:55:10 with sound :p Dec 03 11:03:29 Tofe: Wow :D Dec 03 11:12:29 The steps I used so far: 1. in our fstab, add the /system mount point (take the data from the Android partition directly) 2. Build hal-hybris from the CM-12.1 sources 3. copy the system/ output into a dedicated directly on the device 4. modify lxc's config to have LD_LIBRARY_PATH use that dedicated directory first Dec 03 11:12:43 after a reboot I now have LunaAppManager crashing but I don't know why yet Dec 03 11:15:28 I think too many android services are started and might conflict with ours Dec 03 11:16:54 but it's very good news to be able to have something running after so little time, I think it means it's the right way to go Dec 03 12:17:17 Tofe: Yeah that's more progress in a few hrs compared to what took a lot longer previously? Dec 03 17:39:22 Herrie: yes Dec 03 17:40:07 I wonder why we don't currently use the CM install directly: is it because we fear it might screw up the install ? or because we don't want to rely on another OS' installation ? Dec 03 17:40:09 morphis: ^ Dec 03 17:49:35 Tofe: What do you mean by using it directly? Dec 03 17:51:04 I mount mmcblk0p21 onto /system Dec 03 17:51:29 then, the latter is bind-mounted for a usage within lxc container Dec 03 17:58:06 Maybe there's somethign in logs let me check Dec 03 17:59:16 Maybe it's just that we didn't find a good way use lxc with the CM install Dec 03 18:00:03 "Jul 09 20:11:21 it's just a technical decision if you go the lxc or the same-rootfs way" Dec 03 18:05:05 Tofe: No clues as to specifics why Dec 03 18:05:42 Ah: "Oct 30 13:20:34 OrokuSaki: we have a lxc container to separate the android system from the webOS one" Dec 03 18:05:55 "Oct 30 13:22:33 OrokuSaki: lxc is much more powerful than just a chroot" Dec 03 18:06:21 "Nov 14 10:58:27 we have systemd, yes but we need to bring somethings in line once the corresponding android service starts and as we're not starting android services with systemd (as android is running within a lxc container) we need some synchronization mechanism" Dec 03 18:06:55 Herrie: well then, looks like keeping lxc and using /system of CM would be best of both worlds Dec 03 18:23:52 Tofe: I'm sure morphis had a good reason ;) **** ENDING LOGGING AT Sun Dec 04 03:00:01 2016