Add linuxcnc with lcec and cia402 in path

This commit is contained in:
2023-09-28 15:08:57 +03:00
parent 5ae090fd81
commit 8ce471ee1e
4 changed files with 179 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
diff --git a/src/rtapi/uspace_common.h b/src/rtapi/uspace_common.h
index 8dde420142..f9ff6f0cb2 100644
--- a/src/rtapi/uspace_common.h
+++ b/src/rtapi/uspace_common.h
@@ -381,9 +381,11 @@ static int detect_env_override() {
static int detect_realtime() {
struct stat st;
- if ((stat(EMC2_BIN_DIR "/rtapi_app", &st) < 0)
- || st.st_uid != 0 || !(st.st_mode & S_ISUID))
- return 0;
+ //setuid programs are forbidden from the nix store, a wrapper outside of the store is created instead
+ //this check fails under those circumstances, disable it and hope for the best
+ /* if ((stat(EMC2_BIN_DIR "/rtapi_app", &st) < 0) */
+ /* || st.st_uid != 0 || !(st.st_mode & S_ISUID)) */
+ /* return 0; */
return detect_env_override() || detect_preempt_rt() || detect_rtai() || detect_xenomai();
}