2016-07-20 08:28:48 @kido hey _ohm :) 2016-07-20 08:30:51 _ohm sup 2016-07-20 08:36:01 @kido doing great and you ? interested in asteroid ? 2016-07-20 14:44:08 SylvieLorxu kido: I'm working on asteroid-settings a bit now to try to add a language selector, but I'm having some issues compiling it. Specifically, when I run qmake I get "Project ERROR: Package qdeclarative5-boostable not found". I can't find any info on that package anywhere on the Internet. Do you have any pointers perhaps? 2016-07-20 14:44:59 @kido SylvieLorxu: yep, the SDK is totally broken 2016-07-20 14:45:03 @kido you need to recompile a new one 2016-07-20 14:45:11 @kido the Qt version doesn't even match anymore 2016-07-20 14:45:29 @kido and it doesn't include the mapplauncherd's caching features 2016-07-20 14:45:41 @kido the easiest is to work from your OE build tree 2016-07-20 14:46:19 @kido go to build/tmp-glibc/work/arm-*/asteroid-settings/git*/git/, modify the code run ../temp/run.do_configure && ../temp/run.do_compile && ../temp/run.do_install && adb push ../image / 2016-07-20 14:46:31 @kido and it will be much easier :) 2016-07-20 14:47:03 SylvieLorxu I see. Well, in that case I suppose I'll first bitbake a complete AsteroidOS image on this machine :P 2016-07-20 14:47:34 SylvieLorxu Thanks for the pointers, I'll check that out as soon as I can 2016-07-20 14:54:14 @kido alright :) 2016-07-20 14:55:34 @kido SylvieLorxu: btw, you might want to take a look at that https://git.merproject.org/mer-core/nemo-qml-plugin-systemsettings/blob/master/src/languagemodel.cpp which uses a jolla file: "/usr/share/jolla-supported-languages" but someone with a SFOS can probably give one to you 2016-07-20 14:56:22 @kido anyway it just seems to be a standard QSettings format with Name, LocaleCode, Region and RegionLabel fields 2016-07-20 14:57:25 @kido but it gives you a handy function to overwrite /var/lib/environment/ceres/locale.conf's LANG envvar 2016-07-20 14:59:48 Mister_Magister hello everybody :v 2016-07-20 15:01:33 SylvieLorxu kido: I actually already found that file and I was basing my work on it :) 2016-07-20 15:01:58 @kido hi 2016-07-20 15:02:04 SylvieLorxu I saw you using org.nemo.systemsettings for the time so I immediately went to research where that DateTime came from and found that 2016-07-20 15:02:06 SylvieLorxu Hi Mister_Magister 2016-07-20 15:02:42 @kido SylvieLorxu: cool :) we can also change the file path to remove the "jolla-" part from the nemo-qml-plugin-systemsettings OE recipe 2016-07-20 15:03:20 SylvieLorxu kido: That's probably going to be necessary, but I'm first going to see how much does work as expected :) 2016-07-20 16:48:30 SylvieLorxu kido: Somehow can't build AsteroidOS again, tzdata-timed is failing but... the log seems rather useless? https://dpaste.de/6L7P 2016-07-20 16:49:15 SylvieLorxu That's literally all info I have :( 2016-07-20 16:50:50 @kido https://git.merproject.org/mer-core/tzdata-timed/blob/master/Makefile#L39 2016-07-20 16:51:21 @kido so this script fails https://git.merproject.org/mer-core/tzdata-timed/blob/master/scripts/zone-list.sh 2016-07-20 16:58:20 SylvieLorxu I guess I could go and add "set -x" to the top of that file 2016-07-20 16:59:09 SylvieLorxu Oh, I can't, it removes the file from the build directory first 2016-07-20 16:59:22 @kido too bad, that was a good idea 2016-07-20 17:00:01 SylvieLorxu I'll try bitbake with -v and if that gets nothing useful with -DDD 2016-07-20 17:00:15 @kido bitbake -v won't change anything 2016-07-20 17:01:46 @kido do you have a /usr/bin/zic on your host (build) system? 2016-07-20 17:01:53 @kido /usr/sbin/zic * 2016-07-20 17:02:44 SylvieLorxu I have zic but it's in /usr/bin/ 2016-07-20 17:02:56 @kido then you got your problem 2016-07-20 17:02:58 SylvieLorxu Well that's probably it 2016-07-20 17:03:00 @kido https://git.merproject.org/mer-core/tzdata-timed/blob/master/scripts/zone-list.sh#L46 2016-07-20 17:03:11 SylvieLorxu What a stupid script lol 2016-07-20 17:03:54 SylvieLorxu Guess I'll ln -s, going to replace Gentoo with Fedora in a few days anyway so... 2016-07-20 17:04:03 @kido yep, I remember having thought it's really bad to use host tools like this from the build 2016-07-20 17:04:16 @kido check if there is a zic in the arm sysroot 2016-07-20 17:04:33 @kido of OE, in build/tmp-glibc/sysroots/ if I remember correctly 2016-07-20 17:05:31 SylvieLorxu Nope 2016-07-20 17:06:12 * SylvieLorxu just made a syslink 2016-07-20 17:06:16 SylvieLorxu "What could possibly go wrong" 2016-07-20 17:06:42 @kido it seems that we could DEPENDS on zic-native https://layers.openembedded.org/layerindex/recipe/46516/ 2016-07-20 17:06:48 @kido but it is provided by meta-debian... 2016-07-20 17:06:53 @kido I don't think we want that 2016-07-20 17:07:02 SylvieLorxu Well I don't remember this build issue on Debian 2016-07-20 17:07:09 SylvieLorxu It may be Gentoo-specific 2016-07-20 17:08:30 @kido well, a clean fix would be to modify zone-list.sh to test for /usr/bin/zic and /usr/sbin/zic and set $zic to the appropriate path ... then git add, git commit, git format-patch HEAD~, and move the patch to https://github.com/AsteroidOS/meta-asteroid/tree/master/recipes-nemomobile/timed/tzdata-timed 2016-07-20 17:08:56 SylvieLorxu Or simply run "zic" 2016-07-20 17:09:04 SylvieLorxu Which will grab whatever zic is in $PATH first 2016-07-20 17:09:08 @kido sure 2016-07-20 17:09:27 SylvieLorxu :P 2016-07-20 17:09:36 @kido but remove https://git.merproject.org/mer-core/tzdata-timed/blob/master/scripts/zone-list.sh#L50 2016-07-20 17:10:14 SylvieLorxu That should've really been printed to the logs 2016-07-20 17:11:22 SylvieLorxu Oh well, all seems fine for now :P 2016-07-20 17:11:44 SylvieLorxu And I thought I quick "quickly start adding this feature", haha 2016-07-20 17:12:33 @kido yeah, there are always some surprises... :) 2016-07-20 17:17:44 @kido hey Lrs121 2016-07-20 17:17:59 Lrs121 hello 2016-07-20 17:18:40 @kido when do we make asteroid-launcher work on your zenwatch? :) now that we have adb it shouldn't be that hard 2016-07-20 17:22:28 Lrs121 just about any time will do 2016-07-20 17:22:55 @kido so let's do this today then :) 2016-07-20 17:23:36 Lrs121 i did, im trying to find the pastbin link i had 2016-07-20 17:23:48 @kido ok, because you never sent it to the channel 2016-07-20 17:24:19 @kido oh my bad pastebin.com/4RZZmDHj 2016-07-20 17:24:27 @kido excuse me 2016-07-20 17:25:03 Lrs121 yup thats it 2016-07-20 17:25:06 @kido okay can you compile strace with bitbake and push the image/ to the watch 2016-07-20 17:25:31 @kido bitbake strace and adb push build/tmp-glibc/work/arm*/strace/*/image / 2016-07-20 17:26:05 Lrs121 is that to be pushed into android or asteroid? 2016-07-20 17:29:08 @kido asteroid :) 2016-07-20 17:30:59 Lrs121 ok, its building now. ive got to set up a linux system in the mean time so ill be away for a bit. 2016-07-20 17:31:12 @kido I think you are missing .sparrow.so symlinks in /system/lib/hw 2016-07-20 17:31:25 @kido but strace will make it clear 2016-07-20 17:31:58 @kido and paste the result 2016-07-20 18:38:39 SylvieLorxu Another weird build error. Maybe I should just give up for now and try again in a few days when I'll not be on Gentoo anymore anyway: https://dpaste.de/kjZp 2016-07-20 18:56:28 @kido SylvieLorxu: nop, this one is my fault 2016-07-20 18:56:34 @kido I changed something recently and broke that 2016-07-20 18:56:37 @kido just let me a minute 2016-07-20 18:58:01 SylvieLorxu Pfew :P 2016-07-20 18:58:09 SylvieLorxu Was already worried it was me again :P 2016-07-20 19:01:23 @kido SylvieLorxu: bitbake -c cleanall asteroid-timer asteroid-stopwatch 2016-07-20 19:01:30 @kido and git pull from src/meta-asteroid 2016-07-20 19:01:35 @kido then build again, it should be fine 2016-07-20 19:01:53 @kido sorry for that :) 2016-07-20 19:02:23 SylvieLorxu kido: Okay, thanks :) 2016-07-20 19:10:53 @kido hi itsme_ 2016-07-20 19:12:06 itsme_ hi! 2016-07-20 19:12:33 itsme_ nice project! 2016-07-20 19:13:12 @kido indeed, it's a quite interesting project :) do you have a smartwatch? 2016-07-20 19:13:30 itsme_ yes, the lg g 2016-07-20 19:13:57 @kido cool! have you tried it yet? 2016-07-20 19:14:18 itsme_ not yet, but i'll try it later 2016-07-20 19:14:51 @kido cool, keep us updated if you meet any issue 2016-07-20 19:15:12 @kido it's always nice to see someone trying to project 2016-07-20 19:15:16 @kido the project 2016-07-20 19:16:51 itsme_ ;) of cource, i'm courious about it! 2016-07-20 19:20:04 SylvieLorxu itsme_: Oh cool you have the same watch I do :) 2016-07-20 19:20:29 SylvieLorxu Aside from the battery usage issues and the missing functionality (but hey, it's a new project), it runs great on that device :) 2016-07-20 19:20:38 SylvieLorxu Yay my build succeeded 2016-07-20 19:20:43 SylvieLorxu Now I can continue developing haha 2016-07-20 19:20:51 itsme_ ;) 2016-07-20 19:20:54 itsme_ 123 2016-07-20 19:21:24 @kido SylvieLorxu: well... it's not really a *new* project so there shouldn't be many missing features 2016-07-20 19:22:03 SylvieLorxu kido: Well, comparing it to Android Wear with the amount of developers and so... :P 2016-07-20 19:22:12 SylvieLorxu Anyway, the only real missing thing is syncing notifications and so 2016-07-20 19:22:17 @kido that's right 2016-07-20 19:22:19 SylvieLorxu But that's "soon(TM)" 2016-07-20 19:22:50 itsme_ okay, this feature is very important for me 2016-07-20 19:24:24 @kido yep I need to get back to work on the bluetooth protocol, it doesn't motivate me a loth though 2016-07-20 19:24:46 itsme_ but it's open source! eventually I can try it 2016-07-20 19:25:16 @kido sure, and if you want to contribute in anyway this is also welcome :) 2016-07-20 19:33:10 SylvieLorxu itsme_: Right now the installation method won't replace Android Wear anyway 2016-07-20 19:33:20 SylvieLorxu So there's not much to worry about. If you don't like it, just reboot your watch :) 2016-07-20 19:44:30 itsme_ yes, i saw it. but i really want an alternative to this closed source android 2016-07-20 19:45:39 SylvieLorxu Same for me, which is why I bought a smartwatch to try out AsteroidOS and why I'm making minor contributions to it :) 2016-07-20 20:04:10 SylvieLorxu kido: How did you figure out you needed to import org.nemomobile.time 1.0 for the TimePage? My LanguagePage breaks the complete settings app and I /think/ that has to do with a missing import, but I can't figure out what I should import 2016-07-20 20:05:52 @kido I needed it for WallClock 2016-07-20 20:06:12 @kido I just imported what I needed 2016-07-20 20:07:40 SylvieLorxu Okay, thanks, that'll probably help 2016-07-20 20:08:18 SylvieLorxu Jul 20 20:10:22 dory lipstick[6435]: qrc:/LanguagePage.qml:27:5: Language is not a type 2016-07-20 20:08:25 SylvieLorxu Yeah, indeed seems like a dependency thing 2016-07-20 20:09:10 SylvieLorxu Jul 20 20:11:10 dory lipstick[6516]: qrc:/LanguagePage.qml:21:1: module "org.nemomobile.language" is not installed 2016-07-20 20:09:13 SylvieLorxu Pff, it never ends lol 2016-07-20 20:09:18 SylvieLorxu I don't even know if language is what I need 2016-07-20 20:09:28 SylvieLorxu I can't find a list of what org.nemomobile things there are 2016-07-20 20:10:09 Lrs121 well it took a while but i got it. http://pastebin.com/H45RCEfQ 2016-07-20 20:14:38 Lrs121 kido: just a cusory look tells me you're probably right 2016-07-20 20:16:52 @kido SylvieLorxu: isn't import org.nemomobile.systemsettings 1.0 2016-07-20 20:16:54 @kido enough? 2016-07-20 20:17:02 @kido because org.nemomobile.language just doesn't exist 2016-07-20 20:17:48 SylvieLorxu kido: I would think it's enough because languagemodel is part of it: https://git.merproject.org/mer-core/nemo-qml-plugin-systemsettings/blob/master/src/languagemodel.h 2016-07-20 20:17:55 SylvieLorxu But it isn't, because it claims "Language" doesn't exist 2016-07-20 20:18:15 SylvieLorxu Although I'd think it would be? https://git.merproject.org/mer-core/nemo-qml-plugin-systemsettings/blob/master/src/languagemodel.h#L41 2016-07-20 20:18:34 @kido Lrs121: mmhh, but it doesn't even try to load the default gralloc module in /system/lib/hw/ so it might not be this issue right now 2016-07-20 20:20:57 SylvieLorxu kido: Oh, binding LanguageModel works 2016-07-20 20:21:09 @kido :) 2016-07-20 20:22:07 @kido Lrs121: could you paste me the result of "find /system/" please? 2016-07-20 20:27:44 Lrs121 here you are http://pastebin.com/RA1GmpST 2016-07-20 20:28:10 @kido thank you 2016-07-20 20:35:00 @kido Lrs121: try a: ln -s /vendor/lib/egl/libGLESv2_adreno.so /vendor/lib/egl/libGLES.so 2016-07-20 20:41:05 Lrs121 kido: were still at the splash 2016-07-20 20:41:43 @kido mhhhh 2016-07-20 20:46:47 @kido Lrs121: mv /system/lib/libGLESv2.so /system/lib/libGLESv2.so-bkp && cp /vendor/lib/egl/libGLESv2_adreno.so /system/lib/libGLESv2.so 2016-07-20 20:53:14 Lrs121 no such luck 2016-07-20 20:53:27 Lrs121 ill be back 2016-07-20 20:53:40 @kido ok 2016-07-20 21:03:27 Lrs121 kido: ok whats next? 2016-07-20 21:04:35 @kido Lrs121: you can add asteroid-launcher-dbg, valgrind, gdb and strace to this IMAGE_INSTALL https://github.com/AsteroidOS/meta-asteroid/blob/master/classes/asteroid-image.bbclass#L10 and rebuild an image 2016-07-20 21:05:00 @kido it will be *much* larger but it will allow you to run gdb on asteroid-launcher and get a backtrace of what's going on 2016-07-20 21:05:10 @kido just before that 2016-07-20 21:05:27 @kido please send me a new paste of what strace says after the two changes I asked you to make 2016-07-20 21:05:50 @kido it might not be enough to make asteroid-launcher work but it might have helped, so I need as many traces as you can get 2016-07-20 21:07:49 SylvieLorxu kido: Do you have any clue about what kind of files are normally in /usr/share/jolla-supported-languages/? Or perhaps any clue where I could find the files? I can't really test if detecting languages work if the directory is empty 2016-07-20 21:08:30 @kido Nokius, locusf could you get us what's in that directory from your jolla phones? :) 2016-07-20 21:09:18 Nokius sec 2016-07-20 21:10:29 Nokius cat /usr/share/jolla-supported-languages/de.conf 2016-07-20 21:10:29 Nokius Name=Deutsch 2016-07-20 21:10:29 Nokius LocaleCode=de_DE.utf8 2016-07-20 21:10:29 Nokius Region=Deutschland 2016-07-20 21:10:30 Nokius RegionLabel=Region: %1 2016-07-20 21:10:46 Nokius there are more languages all they support 2016-07-20 21:10:55 @kido thanks! :) 2016-07-20 21:11:13 Lrs121 kido: heres the strace from the current image with the lib changes 2016-07-20 21:12:04 SylvieLorxu Oh, that's all? Thanks Nokius 2016-07-20 21:20:13 SylvieLorxu Great, now I'm making some progress 2016-07-20 21:20:20 SylvieLorxu The screen shows "Deutsch" now in the language selector 2016-07-20 21:21:03 @kido good 2016-07-20 21:30:40 @kido Lrs121: this time I'm pretty sure that you sent nothing ;) 2016-07-20 21:34:43 SylvieLorxu Jul 20 21:36:20 dory lipstick[8694]: Language model unable to open locale configuration file for writing: "/var/lib/environment/ceres/locale.conf" - "No such file or directory" 2016-07-20 21:35:18 SylvieLorxu There seems to be no /var/lib/environment/ceres at all 2016-07-20 21:35:58 SylvieLorxu But I've seen ceres mentioned before in AsteroidOS somewhere 2016-07-20 21:36:06 SylvieLorxu Ah, username 2016-07-20 21:36:40 Lrs121 http://pastebin.com/9rE07CWE 2016-07-20 21:36:55 Lrs121 How about now? 2016-07-20 21:37:03 @kido SylvieLorxu: mkdir /var/lib/environment/ceres 2016-07-20 21:37:13 @kido another change is probably need in the asteroid-launcher.service 2016-07-20 21:37:48 @kido SylvieLorxu: you might need to add it here https://github.com/AsteroidOS/meta-asteroid/blob/master/recipes-asteroid/asteroid-launcher/asteroid-launcher/asteroid-launcher.service#L7 2016-07-20 21:38:56 SylvieLorxu kido: Ah, okay. Yeah, this is going to end up being multiple pull requests to different places :P 2016-07-20 21:39:01 SylvieLorxu Thanks for the pointer, as always 2016-07-20 21:39:38 @kido Lrs121: ok, so those were bad ideas ;) 2016-07-20 21:40:04 @kido in your new image use gdb and valgrind and we will see what happens 2016-07-20 21:41:24 Lrs121 kido: sounds good its building now. Ill report back when its done 2016-07-20 21:42:03 @kido :) 2016-07-20 21:42:21 @kido Lrs121: we can also ask the #sailfishos-porters guys for help on this 2016-07-20 21:57:41 SylvieLorxu kido: Selecting and changing a language works now (picture for the curious: https://lut.im/9CA2U7vp2q/YeLEOBAPBUt3UtQm.jpg), if the device is set up with a default language (easy fix). However, I did ruin the settings app by adding an extra panel and I can't figure out how to fix that: https://lut.im/vcITfs6E4o/FOeiKEBvDl7ccMtu.jpg :( 2016-07-20 21:58:16 @kido SylvieLorxu: good job! :) 2016-07-20 21:58:58 @kido make sure it actually sets the LANG envvar when running an app and if qsTr works as expected 2016-07-20 22:01:08 SylvieLorxu Hmm, it doesn't seem to set LANG, but I'm going to play with qsTr and see 2016-07-20 22:01:42 SylvieLorxu Oh wait that probably needs that change to make it read the locale.conf file as an environment var 2016-07-20 22:01:59 SylvieLorxu I can figure this out surely :) 2016-07-20 22:07:07 SylvieLorxu kido: Actually, just another question, my apologies... How is the file system build? I need to make sure that a few files exist in certain locations when the OS is pushed to the device. How would I go about that? 2016-07-20 22:07:49 @kido how is the file system build? that is a large question 2016-07-20 22:08:57 SylvieLorxu kido: How would I make sure /var/lib/environment/ceres/locale.conf is prepopulated with "LANG=en_GB.utf8"? 2016-07-20 22:09:37 @kido you need to modify the OpenEmbedded recipes 2016-07-20 22:11:38 SylvieLorxu kido: I understood that, but I can't really figure out where that should go, those recipes are huge. I was thinking of adding the command https://github.com/AsteroidOS/meta-asteroid/blob/master/classes/asteroid-image.bbclass#L12 but that seems... wrong, kinda 2016-07-20 22:11:54 @kido SylvieLorxu: indeed, it's not the right place to do so 2016-07-20 22:12:37 @kido basically when you run bitbake asteroid-image it tries to build an image https://github.com/AsteroidOS/meta-asteroid/blob/master/recipes-core/image/asteroid-image.bb which inherits the asteroid-image class https://github.com/AsteroidOS/meta-asteroid/blob/master/classes/asteroid-image.bbclass which defines the packages to install 2016-07-20 22:12:51 @kido and a couple of other core things (like the ceres user) 2016-07-20 22:13:19 @kido those *packages* are built from *recipes* which build *stuff* (well this is not a technical word but anyway) from sources 2016-07-20 22:13:38 @kido take the example of tha asteroid-launcher recipe here https://github.com/AsteroidOS/meta-asteroid/blob/master/recipes-asteroid/asteroid-launcher/asteroid-launcher_git.bb 2016-07-20 22:14:02 @kido it gets sources from github, build things and then generate a couple of packages, like asteroid-launcher or asteroid-launcher-dbg or asteroid-launcher-dev and so on 2016-07-20 22:14:42 @kido the recipe inherits qmake5 which specifies how to configure, compile and install a repository that uses a .pro file 2016-07-20 22:15:11 @kido it autodetects what's supposed to be in the debug or devel packages 2016-07-20 22:15:51 @kido and it also tries to autodetect the runtime dependencies (RDEPENDS) from the build dependencies (DEPENDS) 2016-07-20 22:16:06 @kido but sometimes this is not enough 2016-07-20 22:16:32 @kido sometimes you want to patch the code, so you add a patch file to SRC_URI and it patches your code before building it automagically 2016-07-20 22:16:59 @kido sometimes you want to add runtimes or build dependencies that are not detected correctly (for example the QML modules) 2016-07-20 22:17:43 @kido sometimes you want to add files to ship in the different packages so you can add a list of files with += to the FILES_${PN} envvar (${PN} is replaced by asteroid-launcher) 2016-07-20 22:18:13 @kido sometimes you want to change the config before building so you can add a do_configure_prepend() target with a bash scripts that does what you want to do 2016-07-20 22:18:46 @kido sometimes you want to modify the install insturctions so you add a do_install_append() script that will be executed after the normal "make install" inherited from qmake5 etc... 2016-07-20 22:18:57 @kido basically you inherit something and you extend it to suit your needs 2016-07-20 22:19:14 @kido a good recipe looks like this https://github.com/AsteroidOS/meta-asteroid/blob/master/recipes-asteroid/asteroid-calendar/asteroid-calendar_git.bb 2016-07-20 22:20:26 @kido but in case you have a specific need: like adding a file which is not shipped by the source codes in a directory that is not included yet you can just add it in a subdirectory https://github.com/AsteroidOS/meta-asteroid/tree/master/recipes-asteroid/asteroid-launcher/asteroid-launcher 2016-07-20 22:20:39 @kido add a file:// to SRC_URI https://github.com/AsteroidOS/meta-asteroid/tree/master/recipes-asteroid/asteroid-launcher/asteroid-launcher 2016-07-20 22:21:45 @kido and add the necessary directory to the destination build directory (which is ${D}, which is the image/ directory in your recipe build tree) 2016-07-20 22:21:56 SylvieLorxu I think that's indeed what I will do then. asteroid-launcher feels a bit of a weird place, but I suppose it's the "center" of the OS so in a way it makes sense 2016-07-20 22:22:29 @kido I agree that we might want a new recipe for internationalization 2016-07-20 22:22:53 @kido but for now if you want to keep things simple you can just modify it here 2016-07-20 22:23:57 SylvieLorxu I think I'll just modify it there for the time being, you're way better versed with the build system and you can always tell me "Do this and that" when I send a pull request :P 2016-07-20 22:24:07 @kido right 2016-07-20 23:59:17 itsme_ sorry, i never worked with bitbake. when i start ' bitbake asteroid-image' I get the error 'The BBPATH variable is not set' on my debian system. have you a quick tip?