ol | All works fine: | 00:00 |
---|---|---|
ol | [mersdk@SailfishSDK test]$ vi tstrm.c | 00:00 |
ol | [mersdk@SailfishSDK test]$ sb2 -t SailfishOS-armv7hl gcc -g tstrm.c -o tstrm | 00:00 |
ol | [mersdk@SailfishSDK test]$ sb2 -t SailfishOS-armv7hl ln -s foo bar | 00:00 |
ol | [mersdk@SailfishSDK test]$ sb2 -t SailfishOS-armv7hl ls -l bar | 00:00 |
ol | lrwxrwxrwx 1 1001 nemo 3 Dec 26 23:59 bar -> foo | 00:00 |
ol | [mersdk@SailfishSDK test]$ sb2 -t SailfishOS-armv7hl ./tstrm bar | 00:01 |
ol | [mersdk@SailfishSDK test]$ sb2 -t SailfishOS-armv7hl ls -l bar | 00:01 |
ol | ls: cannot access bar: No such file or directory | 00:01 |
tortoisedoc | hmm | 00:01 |
tortoisedoc | arm | 00:01 |
tortoisedoc | ive been running this on i486 | 00:01 |
tortoisedoc | but i guess that shouldnt matter | 00:01 |
tortoisedoc | ? | 00:01 |
tortoisedoc | gotta bail, 2am here ;_; | 00:03 |
tortoisedoc | thanks ol for helping in this ! | 00:03 |
*** feodoran_ is now known as feodoran | 03:21 | |
tortoisedoc | ol : how do you set this flag? | 06:53 |
tortoisedoc | (the dont follow symlink one) | 06:53 |
tortoisedoc | is it a command line option? | 06:53 |
tortoisedoc | how comes it's not default? | 06:53 |
tortoisedoc | ol : I guess this patch is yours https://github.com/mer-packages/scratchbox2/pull/5/files | 06:55 |
tortoisedoc | ol : just saw your comment on the pr | 07:00 |
tortoisedoc | i will then update the pr and add the flag to the remove gate | 07:01 |
tortoisedoc | ....though it seems a bit unusual for it not to have the dont_resolve_final_symlink | 07:07 |
tortoisedoc | (especially considering rm doesnt follow the same approach at all) | 07:08 |
tortoisedoc | ah 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 |
tortoisedoc | ol : replied to your comment | 07:17 |
tortoisedoc | it might be sb2 cannot handle these specific corner cases for GATEs | 07:19 |
tortoisedoc | as | 10:32 |
tortoisedoc | ping | 10:32 |
tortoisedoc | ol : could it be the dont_resolve_last_symlink is not enabled for i486? | 10:50 |
tortoisedoc | does obs use scratchbox for building? | 11:47 |
tortoisedoc | mal : ping ^? | 11:47 |
abranson | tortoisedoc: only for arm builds I think | 11:49 |
tortoisedoc | abranson : thanks | 11:54 |
*** ecloud is now known as ecloud_wfh | 11:56 | |
*** frinring_ is now known as frinring | 12:38 | |
ol | tortoisedoc (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 |
ol | On the other hand, i486 binary is run without qemu, so preloaded libsb2 uses a gate for remove() directly. | 13:35 |
tortoisedoc | ol: 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/16 | 16:58 |
tortoisedoc | ol: re-pushed | 18:12 |
Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!