LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File sbcl-1.1.13-personality.patch of Package sbcl (Project devel:languages:misc)

---
 src/runtime/linux-os.c |    4 ++++
 1 file changed, 4 insertions(+)

--- a/src/runtime/linux-os.c
+++ b/src/runtime/linux-os.c
@@ -288,6 +288,10 @@ os_init(char *argv[], char *envp[])
                     setenv("SBCL_IS_RESTARTING", "T", 1);
                     runtime[i] = '\0';
                     execv(runtime, argv);
+                    } else {
+                     /* if /proc isn't available (like in chroot builds, like mock),
+                      * try using execvp with argv[0] instead */
+                            execvp(argv[0], argv);
                 }
             }
             /* Either changing the personality or execve() failed. Either