ol | tortoisedoc (IRC): Are you woring on Christmas? I'm just eating, drinking, roasting turkey. | 00:44 |
---|---|---|
*** feodoran_ is now known as feodoran | 03:22 | |
willspoke | hello, i had purchased sailfish x for my xperia x, and recently just bought an xa2 ultra. i purchased another sailfish x (mistake maybe?), but i am not sure that it will install on the xa2. | 07:54 |
willspoke | my question is, do i request a refund? | 07:55 |
pketo | willspoke: contact care and we can convert it to xa2 license when that is available | 07:58 |
willspoke | pketo: thank you. i will do this. | 08:01 |
tortoisedoc | yellow | 08:22 |
tortoisedoc | lbt : ping | 08:23 |
tortoisedoc | in the mer sdk, what's the difference between the "toolings" and chroot folder (under /srv/mer)? | 08:28 |
tortoisedoc | and is there some documentation about it somewhere? | 08:29 |
tortoisedoc | I could only find the Mer Wiki, but there's only installation instructions :) | 08:29 |
*** frinring_ is now known as frinring | 10:18 | |
fasdfd | Is sailfishx available for Xperia X Compact too or only Xperia X? | 14:11 |
r0kk3rz | theres a hack available for the x compact | 14:34 |
r0kk3rz | but officially its the X and XA2 | 14:35 |
fasdfd | I read in the FAQ that I can't transfer the license to another phone unless it breaks, so if it breaks, can I buy a different model and transfer it to that? | 14:41 |
r0kk3rz | no idea tbh | 15:01 |
tadzik | I got my license transferred when the phone got stolen, I think jolla will be cool with it if you have a good reason for the transfer | 15:20 |
*** svartoyg is now known as svartoyg_afk | 18:19 | |
*** ahjolinna_ is now known as ahjolinna | 20:01 | |
*** svartoyg_afk is now known as svartoyg | 21:01 | |
tortoisedoc | yellow | 21:15 |
tortoisedoc | so in case anyone is interested, I got my sb2 updated, *but* it appears my test exe *still* uses the old code | 21:33 |
tortoisedoc | is there some magic static linking somewhere? | 21:33 |
tortoisedoc | (in fact, my upgraded sb2 is used only for the bash, but not for the exe) | 21:34 |
mal | tortoisedoc: why do you try to update sb2? | 22:08 |
tortoisedoc | mal : I am not sure yet, need to verify, but in order to do so, I need to update | 22:12 |
tortoisedoc | it seems my newly created target has it's own libsb2 | 22:12 |
tortoisedoc | that might explain | 22:12 |
tortoisedoc | but surely its weird | 22:12 |
tortoisedoc | mal: are there instructions on how to debug sb2?(im thinking about testing mainly= | 22:17 |
zuserm | Hi. In QML how do I update a Page when I navigateForward/navigateBackwards in the PageStack? | 22:40 |
tortoisedoc | \O/ | 23:06 |
tortoisedoc | it works | 23:06 |
tortoisedoc | amazing | 23:06 |
tortoisedoc | I dont know what I did but just exiting and re-entering the chroot a few times fixed it | 23:06 |
tortoisedoc | mal : the problem I saw is as follows | 23:06 |
tortoisedoc | I have a symlink pointing to a non-existing file | 23:06 |
tortoisedoc | for example | 23:07 |
tortoisedoc | ln -s /tmp/nonexisting /tmp/mylink | 23:07 |
tortoisedoc | nor | 23:07 |
tortoisedoc | *now rm /tmp/mylink -> works great | 23:07 |
tortoisedoc | but from a c executable, the code remove("/tmp/mylink") | 23:08 |
tortoisedoc | will not work, as sb2 will expand the link to the (non-existing) file, hence remove will fail | 23:08 |
tortoisedoc | the problem seems to be in the path resolution, which resolves the path to the "bitter end" | 23:08 |
tortoisedoc | i.e. the non-existing file | 23:09 |
tortoisedoc | I made a small patch on sb2 which checks the symlink's target existance before resolving it | 23:09 |
tortoisedoc | and if it doesnt exist, it won't expand the symlink, but just report it as a "regular" file | 23:09 |
tortoisedoc | this is the cludge, because | 23:09 |
tortoisedoc | a) rm /some/symlink does *not* remove the file pointed by the symlink, but just the symlink (posix standard) | 23:10 |
tortoisedoc | b) my patch in sb2 makes sb2 "think" the symlink is a file, and not a symlink | 23:10 |
tortoisedoc | i will make a pull-request | 23:12 |
tortoisedoc | so you can review this | 23:12 |
tortoisedoc | hrm | 23:30 |
tortoisedoc | cant push to mer-core | 23:30 |
tortoisedoc | must fork :[ | 23:30 |
tortoisedoc | mal : https://git.merproject.org/mer-core/scratchbox2/merge_requests/15 | 23:33 |
tortoisedoc | ol : https://git.merproject.org/mer-core/scratchbox2/merge_requests/15 | 23:33 |
tortoisedoc | (i figure ol is a mantainer) | 23:33 |
ol | No, I'm not. | 23:33 |
ol | I have a fork as sell. | 23:33 |
ol | tortoisedoc (IRC): Why do you need to fix that? sb2 already has logic to handle this case properly. | 23:40 |
tortoisedoc | ol : where? | 23:40 |
ol | There is no "foo" file. Then I do the following. | 23:40 |
ol | [mersdk@SailfishSDK test]$ ln -s foo bar | 23:40 |
ol | [mersdk@SailfishSDK test]$ sb2 ls -l bar | 23:41 |
ol | lrwxrwxrwx 1 1001 nemo 3 Dec 26 23:39 bar -> foo | 23:41 |
ol | [mersdk@SailfishSDK test]$ sb2 rm bar | 23:41 |
ol | [mersdk@SailfishSDK test]$ sb2 ls -l bar | 23:41 |
ol | ls: cannot access bar: No such file or directory | 23:41 |
tortoisedoc | ol : give me a moment | 23:41 |
tortoisedoc | ill make a quick repo on github then you can test yourself | 23:41 |
ol | I've already tested, as you see. | 23:42 |
tortoisedoc | you are rushing, young jedi | 23:43 |
ol | I think, again there's somethong wrong with your setup again. Before trying to "fix" anything, test in Sailfish SDK first. | 23:43 |
tortoisedoc | ol : i reproduced in both vm and mer sdk | 23:45 |
tortoisedoc | grr | 23:45 |
tortoisedoc | of course github doesnt like my key now :[ | 23:45 |
ol | From your MR description: | 23:46 |
ol | > "remove" for example differs in unlinkat in that sense that it does not follow the symlink, but removes the link (and not the pointed-at file). | 23:46 |
ol | And sb2 already handles this case correctly. | 23:46 |
ol | Look ar the source code, file "preload/interface.master" lines 662..665. See "dont_resolve_final_symlink" flag? This flag is there exactly for this purpose. | 23:48 |
tortoisedoc | well if its there it hasnt been working for me, neither in the mer sdk | 23:48 |
tortoisedoc | nor in the vm | 23:48 |
ol | Did you see the log I've posed above? | 23:49 |
tortoisedoc | the ln -s foo bar? | 23:49 |
ol | I've removed a symlink pointing to nonexistent file successfully using sb2. | 23:49 |
tortoisedoc | (and on?) | 23:50 |
ol | No, everything after that. | 23:50 |
tortoisedoc | thats not my test case setup | 23:50 |
ol | What's the difference? | 23:50 |
tortoisedoc | in my test case, I create the symlink within sb2 | 23:50 |
ol | The result is eactly the same: | 23:51 |
ol | [mersdk@SailfishSDK test]$ sb2 ln -s foo bar | 23:51 |
ol | [mersdk@SailfishSDK test]$ sb2 ls -l bar | 23:51 |
ol | lrwxrwxrwx 1 1001 nemo 3 Dec 26 23:50 bar -> foo | 23:51 |
ol | [mersdk@SailfishSDK test]$ sb2 rm bar | 23:51 |
ol | [mersdk@SailfishSDK test]$ sb2 ls -l bar | 23:51 |
ol | ls: cannot access bar: No such file or directory | 23:51 |
tortoisedoc | nemo? | 23:52 |
ol | Sailfish SDK. | 23:52 |
tortoisedoc | so vm? | 23:52 |
tortoisedoc | im sorry my github is taking so long, apparently my key is not associated with the account anymore, and I cant login due to too many attempts for now | 23:53 |
tortoisedoc | ill do it tomorrow | 23:53 |
ol | Why do you need Github? | 23:54 |
tortoisedoc | you've got a point there :) | 23:55 |
ol | I'm in Sailfish SDK VM. | 23:55 |
tortoisedoc | ol : here you go https://git.merproject.org/tortoisedoc/sb2foofile | 23:56 |
tortoisedoc | compile the test.c | 23:56 |
ol | Don't be congused with "nemo" group name: sb2 just uses mapped "/etc/goup" file. | 23:56 |
tortoisedoc | and then either run the test_remove_unexisting_link.sh from within the sb2 | 23:56 |
tortoisedoc | or the run_sb2_rm_test.sh from outside | 23:57 |
tortoisedoc | (I usually compile within the vm / mer sdk) | 23:57 |
tortoisedoc | ol : so sb2 relies on SBOX_MAP_PATH_DONT_RESOLVE_FINAL_SYMLINK to enable the last symlink | 23:59 |
tortoisedoc | s~enable~disable/enable | 23:59 |
Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!