Thursday, 2018-12-27

olAll works fine:00:00
ol[mersdk@SailfishSDK test]$ vi tstrm.c00:00
ol[mersdk@SailfishSDK test]$ sb2 -t SailfishOS-armv7hl gcc -g tstrm.c -o tstrm00:00
ol[mersdk@SailfishSDK test]$ sb2 -t SailfishOS-armv7hl ln -s foo bar00:00
ol[mersdk@SailfishSDK test]$ sb2 -t SailfishOS-armv7hl ls -l bar00:00
ollrwxrwxrwx 1 1001 nemo 3 Dec 26 23:59 bar -> foo00:00
ol[mersdk@SailfishSDK test]$ sb2 -t SailfishOS-armv7hl ./tstrm bar00:01
ol[mersdk@SailfishSDK test]$ sb2 -t SailfishOS-armv7hl ls -l bar00:01
olls: cannot access bar: No such file or directory00:01
tortoisedochmm00:01
tortoisedocarm00:01
tortoisedocive been running this on i48600:01
tortoisedocbut i guess that shouldnt matter00:01
tortoisedoc?00:01
tortoisedocgotta bail, 2am here ;_;00:03
tortoisedocthanks ol for helping in this !00:03
*** feodoran_ is now known as feodoran03:21
tortoisedocol : how do you set this flag?06:53
tortoisedoc (the dont follow symlink one)06:53
tortoisedocis it a command line option?06:53
tortoisedochow comes it's not default?06:53
tortoisedocol : I guess this patch is yours https://github.com/mer-packages/scratchbox2/pull/5/files06:55
tortoisedocol : just saw your comment on the pr07:00
tortoisedoci will then update the pr and add the flag to the remove gate07:01
tortoisedoc....though it seems a bit unusual for it not to have the dont_resolve_final_symlink07:07
tortoisedoc(especially considering rm doesnt follow the same approach at all)07:08
tortoisedocah here we go : ERROR: unsupported modifier 'dont_resolve_final_symlink(pathname)' ERROR: unsupported modifier 'dont_resolve_final_symlink(path)' ERROR: unsupported modifier 'dont_resolve_final_symlink(path)'07:11
tortoisedocol : replied to your comment07:17
tortoisedocit might be sb2 cannot handle these specific corner cases for GATEs07:19
tortoisedocas10:32
tortoisedocping10:32
tortoisedocol : could it be the dont_resolve_last_symlink is not enabled for i486?10:50
tortoisedocdoes obs use scratchbox for building?11:47
tortoisedocmal : ping ^?11:47
abransontortoisedoc: only for arm builds I think11:49
tortoisedocabranson : thanks11:54
*** ecloud is now known as ecloud_wfh11:56
*** frinring_ is now known as frinring12:38
oltortoisedoc (IRC): ARM binaries are interpreted by qemu, that is run with libsb2 preloaded. Hence, remove() library function call happens inside a progrem that qemu emulates. What qemu sees is unlink() system call, and this is what qemu() actually does. Hence, even if the program uses remove(), qemu uses unlink(), and a gate for unlink() in preloaded libsb2 has dont_resolve_final_symlink flag.13:34
olOn the other hand, i486 binary is run without qemu, so preloaded libsb2 uses a gate for remove() directly.13:35
tortoisedocol: thanks for your comment, fixed and tested my sb2 and everything seems ok. here's the pr for the remove gate :https://git.merproject.org/mer-core/scratchbox2/merge_requests/1616:58
tortoisedocol: re-pushed18:12

Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!