**** BEGIN LOGGING AT Sun Feb 06 02:59:57 2022 Feb 06 08:58:12 Herrie: but, did I debug the wrong source code then ? luna-appmanager doesn't send "-f" and it seemed to be the issue in my traces Feb 06 09:01:50 https://github.com/webOS-ports/luna-appmanager/blob/herrie/appinstalld2/Src/base/application/ApplicationInstaller.cpp#L4018 <-- here Feb 06 09:27:14 Tofe: Not sure, maybe you had the old Preware code somehow Feb 06 09:27:55 https://github.com/webOS-ports/preware/commit/a489d27a43c639be2f9718155e344a21339bc2c5 Feb 06 09:28:56 com.palm.appinstaller = luna-appmanager call. com.webos.appInstallService = appinstalld2 call Feb 06 09:38:39 ok, yes, that must have been the reason Feb 06 09:38:45 well, anyway my PR isn't wrong Feb 06 09:38:54 just useless for us :) Feb 06 09:40:01 Herrie: your SRCREVs don't match, for librolegen and luna-appmanager Feb 06 09:40:37 Let me check Feb 06 09:40:53 and I don't see any commit of yours for the latter Feb 06 09:40:54 Could be I didn't update them after PR's were merged Feb 06 09:41:11 ah, no, yes, sorry Feb 06 09:44:44 /media/LuneOS/testing/webos-ports/tmp-glibc/work/aarch64-webos-linux/librolegen/2.1.0-20+gitAUTOINC+33b95b3490-r0/build/Configured/src/rolegen.cpp:21:10: fatal error: glib.h: No such file or directory Feb 06 09:44:54 that's weird, we do have glib as a DEPENDS Feb 06 09:45:15 Ah wait this one rings a bell Feb 06 09:46:41 I reverted https://github.com/webOS-ports/librolegen/commit/5efefa7a418bd0d25e5f28f490997c78664f0cc0 locally Feb 06 09:47:16 Then I dropped the original commit and the reverted commit in my tree, but seems when I PR-ed it the above commit is still there Feb 06 09:47:27 ok Feb 06 09:48:20 Try with https://github.com/webOS-ports/librolegen/commit/7ae0acab50df95d415fce95880c6c98f6fc88d12 Feb 06 09:49:07 that works, thanks Feb 06 09:49:31 and we can maybe remove glib-2.0 from DEPENDS ? Feb 06 09:49:43 ah no it's the contrary Feb 06 09:49:47 need more coffee Feb 06 09:50:02 Yeah not sure why I removed it in the first place to be honest Feb 06 09:50:16 Lack of coffee is my best guess Feb 06 09:51:11 your branch also takes my last changes for luna-downloadmgr ? Feb 06 09:51:21 I'd like to debug the systemd service for that one, too Feb 06 09:52:52 Let me check Feb 06 09:53:04 I had your initial ones but maybe not the last one Feb 06 09:53:45 yes, correct Feb 06 09:54:06 well, that'll do, the only missing piece is that LunaDownloadMgr isn't started automatically Feb 06 09:54:27 and that's either a dbus issue, or a systemd service issue, but it's not C++ code Feb 06 09:54:43 probably just a line missing in the recipe or so Feb 06 09:56:36 ok, updating my build for pinephone Feb 06 09:57:26 Ok it's there: https://github.com/webOS-ports/luna-downloadmgr/commit/454753be4a042375f392bbe7e5620eb57542ab19 Feb 06 10:05:33 thx Feb 06 10:06:54 build nearly finished Feb 06 10:11:22 I added some permission fixes in my build Feb 06 10:11:31 For the .sh Feb 06 10:12:18 But I somehow didn't have /dev/cgroup at my end in qemux86 Feb 06 10:15:58 https://github.com/webOS-ports/luna-downloadmgr/blob/herrie/test-fs/files/launch/luna-downloadmgr.sh Feb 06 10:42:09 my last log is: Feb 06 05:41:18 pinephone org.webosports.service.ipkg[2043]: Running command /usr/bin/luna-send -n 6 luna://com.webos.appInstallService/install '{"subscribe":true, "id": "com.palm.app-museum2", "ipkUrl": "file:///media/internal/downloads/com.palm.app-museum2_2.8.2_all.ipk"}' 2>&1 Feb 06 10:42:17 but I don't have more, like you Feb 06 10:44:55 ah, there is no "Install" section in the service file Feb 06 10:45:14 I wonder how they expect it to be executed then Feb 06 10:45:54 same as for luna-downloadmgr actually Feb 06 10:46:35 Tofe: Ah I manually restarted appinstalld2 before running Preware Feb 06 10:46:49 Maybe that's why Feb 06 10:46:57 So the API calls actually do something Feb 06 10:47:03 I think they have a "Requires=" in some other service that we don't have Feb 06 10:48:01 I propose we add an [Install] section so that it's started at boot Feb 06 10:50:33 and why are there two luna-downloadmgr.service files ? one in /lib, one in /etc Feb 06 10:50:52 Tofe: Hmmz yes that is not good for sure Feb 06 10:51:39 I fixed the .service files on the device, let's see now Feb 06 10:52:04 ok the two services are launched now Feb 06 10:53:43 ok I do get the "ar" error now Feb 06 10:53:59 The issue I had was that they weren't registering on boot so ls-monitor -i wouldn't give me output Feb 06 10:54:31 For both luna-downloadmgr and appinstalld2 calls Feb 06 10:58:01 ok, I have the place where it's handling an uri instead of a file path Feb 06 10:58:19 src/step/IpkParseStep.cpp line 42 Feb 06 12:03:35 ok, with my patch it now works Feb 06 12:06:55 Herrie: https://github.com/webOS-ports/appinstalld2/commits/herrie/rebased I added two commits here Feb 06 12:33:18 Tofe: Nice will test those later today, out for some sightseeing now Feb 06 12:36:06 I think for appinstalld2 what's missing still is a call to do the rescan so the icons in launcher get refreshed Feb 06 12:36:22 They have SAM in OSE which does it differently Feb 06 12:36:53 We could simply add the calls in the install and remove steps or add an additional step where it's being called Feb 06 12:37:13 I guess an additional step might be more future proof and portable Feb 06 12:41:26 Since they made the steps modular in appinstalld2 Feb 06 13:07:09 when I try to remove the app: LunaAppManager[1953]: cbRemove: name provided = [com.palm.app-museum2], getPackageInfoByPackageId FAIL, getPackageInfoByAppId FAIL - aborting remove Feb 06 13:07:29 I'll open an issue and we'll fix that later Feb 06 13:27:19 Yeah we probably need to update the call from luna-next-cardshell as well Feb 06 20:56:53 Tofe: Back and osme time to test things here Feb 06 21:37:46 Herrie: you change proposal for the Launcher seems correct to me, so I pushed it, but I didn't test it yet Feb 06 21:39:41 Tofe: OK Feb 06 21:39:47 I'm still fighting a bit with Preware here Feb 06 21:39:56 The remove there also doesn't work Feb 06 21:43:27 Seems I need to rename some package to pkg simply Feb 06 21:43:29 Testing that now Feb 06 21:43:49 I can confirm that the install and systemd fix work though Feb 06 21:45:05 Ah and the rescan also works fine Feb 06 21:54:59 good :) Feb 06 21:55:09 let's merge that then? Feb 06 21:59:55 Cardshell tested and works too Feb 06 22:00:07 Herrie: also I added this: https://github.com/webOS-ports/luna-downloadmgr/commit/fe2b509d2de5746f79f1e0d9a237399502499ed5 Feb 06 22:01:15 though these branch commits could need a bit of cleanup before a PR Feb 06 22:01:37 ah, good that LNC works, it was done completely in the dark :) Feb 06 22:01:57 Tofe: Yeah well it was hard to click the cross in Emulator so took a few tries Feb 06 22:02:03 But otherwise it's fine Feb 06 22:02:51 I think we can bump SRCREVs, PRs what's left, and merge all this Feb 06 22:03:06 Yeah it should be in pretty good state I would say Feb 06 22:03:13 but that'll be for tomorrow on my side, I'll go and sleep a bit :) Feb 06 22:03:19 And we can fix other things along the way Feb 06 22:03:23 Yeah no rush Feb 06 22:03:39 I PR-ed appinstalld2 from my side Feb 07 00:40:22 cool, nice to see more activity here, wondering what motivated this increase, is the Museum2 app the final killer-app we were waiting for? :) Feb 07 00:41:52 all I did recently was to test that kirkstone builds work OK with Gentoo (where I've returned from using Ubuntu in last years) **** ENDING LOGGING AT Mon Feb 07 02:59:56 2022