Re: get_relocated_path: the configured paths are not looked for?

2023-04-23 Thread Akihiko Odaki
On 2023/04/24 3:37, Michael Tokarev wrote: 23.04.2023 21:33, Michael Tokarev пишет: $ cd /tmp; printf '#include \nint main(){puts("Hello!");return 0;}' > hello.c; cp /usr/bin/gcc .; ./gcc hello.c; ./a.out ; ./gcc --version; ls -l gcc; cd /tmp Hello!

Re: get_relocated_path: the configured paths are not looked for?

2023-04-23 Thread Michael Tokarev
23.04.2023 21:33, Michael Tokarev пишет: $ cd /tmp; printf '#include \nint main(){puts("Hello!");return 0;}' > hello.c; cp /usr/bin/gcc .; ./gcc hello.c; ./a.out ; ./gcc --version; ls -l gcc; cd /tmp Hello! execve("/tmp/../lib/gcc/x86_64-linux-gnu/12/cc1", [...]) Since this is merged-usr

Re: get_relocated_path: the configured paths are not looked for?

2023-04-23 Thread Michael Tokarev
23.04.2023 21:24, Akihiko Odaki wrote: The output ends with: gcc: fatal error: cannot execute 'cc1': execvp: No such file or directory compilation terminated. $ cd /tmp; printf '#include \nint main(){puts("Hello!");return 0;}' > hello.c; cp /usr/bin/gcc .; ./gcc hello.c; ./a.out ; ./gcc

Re: get_relocated_path: the configured paths are not looked for?

2023-04-23 Thread Akihiko Odaki
On 2023/04/24 3:10, Michael Tokarev wrote: 23.04.2023 20:39, Akihiko Odaki пишет: On 2023/04/23 22:22, Michael Tokarev wrote: 23.04.2023 14:47, Akihiko Odaki пишет: https://salsa.debian.org/qemu-team/qemu/-/commit/e017f53a8550d0bcaaca81c6dacac8ec34295cf0 fwiw. I seriously think you better

Re: get_relocated_path: the configured paths are not looked for?

2023-04-23 Thread Michael Tokarev
23.04.2023 20:39, Akihiko Odaki пишет: On 2023/04/23 22:22, Michael Tokarev wrote: 23.04.2023 14:47, Akihiko Odaki пишет: https://salsa.debian.org/qemu-team/qemu/-/commit/e017f53a8550d0bcaaca81c6dacac8ec34295cf0 fwiw. I seriously think you better consult GCC and other package maintainers to

Re: get_relocated_path: the configured paths are not looked for?

2023-04-23 Thread Akihiko Odaki
On 2023/04/23 22:22, Michael Tokarev wrote: 23.04.2023 14:47, Akihiko Odaki пишет: https://salsa.debian.org/qemu-team/qemu/-/commit/e017f53a8550d0bcaaca81c6dacac8ec34295cf0 fwiw. I seriously think you better consult GCC and other package maintainers to have consensus on handling this kind of

Re: get_relocated_path: the configured paths are not looked for?

2023-04-23 Thread Michael Tokarev
23.04.2023 14:47, Akihiko Odaki пишет: https://salsa.debian.org/qemu-team/qemu/-/commit/e017f53a8550d0bcaaca81c6dacac8ec34295cf0 fwiw. Also, that works only if the version changed. For example, consider the case where you patched a module downstream. To compare the behaviors of the patched and

Re: get_relocated_path: the configured paths are not looked for?

2023-04-23 Thread Akihiko Odaki
On 2023/04/23 20:31, Michael Tokarev wrote: 23.04.2023 14:22, Akihiko Odaki пишет: On 2023/04/23 19:28, Michael Tokarev wrote: 20.04.2023 08:29, Akihiko Odaki wrote: On 2023/04/19 16:32, Michael Tokarev wrote: Hello! Today I discovered an interesting issue here: I copied a system-installed

Re: get_relocated_path: the configured paths are not looked for?

2023-04-23 Thread Michael Tokarev
23.04.2023 14:22, Akihiko Odaki пишет: On 2023/04/23 19:28, Michael Tokarev wrote: 20.04.2023 08:29, Akihiko Odaki wrote: On 2023/04/19 16:32, Michael Tokarev wrote: Hello! Today I discovered an interesting issue here: I copied a system-installed binary into another directory, in order to

Re: get_relocated_path: the configured paths are not looked for?

2023-04-23 Thread Akihiko Odaki
On 2023/04/23 19:28, Michael Tokarev wrote: 20.04.2023 08:29, Akihiko Odaki wrote: On 2023/04/19 16:32, Michael Tokarev wrote: Hello! Today I discovered an interesting issue here: I copied a system-installed binary into another directory, in order to debug an unrelated issue. Just to

Re: get_relocated_path: the configured paths are not looked for?

2023-04-23 Thread Michael Tokarev
20.04.2023 08:29, Akihiko Odaki wrote: On 2023/04/19 16:32, Michael Tokarev wrote: Hello! Today I discovered an interesting issue here: I copied a system-installed binary into another directory, in order to debug an unrelated issue. Just to discover it does not work, being unable to find any

Re: get_relocated_path: the configured paths are not looked for?

2023-04-19 Thread Akihiko Odaki
On 2023/04/19 16:32, Michael Tokarev wrote: Hello! Today I discovered an interesting issue here: I copied a system-installed binary into another directory, in order to debug an unrelated issue. Just to discover it does not work, being unable to find any modules or data files. Here's how the

get_relocated_path: the configured paths are not looked for?

2023-04-19 Thread Michael Tokarev
Hello! Today I discovered an interesting issue here: I copied a system-installed binary into another directory, in order to debug an unrelated issue. Just to discover it does not work, being unable to find any modules or data files. Here's how the strace of typical qemu-system-i386 run looks