-
Notifications
You must be signed in to change notification settings - Fork 191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unbreak build on FreeBSD #119
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure what the situation is wrt realtime priority compute is *BSD (or id thats even supported at all)
Would you be able to see if that's working? On Linux at least we need NICE for that.
I've removed |
Did you have the chance to test if gamescope was working fine on FreeBSD with this PR? |
|
OK, thanks for the status update! |
FreeBSD recently stubbed |
On BSD systems only the super-user may lower priority values. meson.build:40:0: ERROR: Dependency "libcap" not found, tried pkgconfig and cmake src/main.cpp:7:10: fatal error: 'sys/capability.h' file not found #include <sys/capability.h> ^~~~~~~~~~~~~~~~~~ src/main.cpp:244:2: error: unknown type name 'cap_t' cap_t caps = cap_get_proc(); ^ src/main.cpp:244:15: error: use of undeclared identifier 'cap_get_proc' cap_t caps = cap_get_proc(); ^ src/main.cpp:247:3: error: unknown type name 'cap_flag_value_t' cap_flag_value_t nicecapvalue = CAP_CLEAR; ^ src/main.cpp:247:35: error: use of undeclared identifier 'CAP_CLEAR' cap_flag_value_t nicecapvalue = CAP_CLEAR; ^ src/main.cpp:248:23: error: use of undeclared identifier 'CAP_SYS_NICE' cap_get_flag( caps, CAP_SYS_NICE, CAP_EFFECTIVE, &nicecapvalue ); ^ src/main.cpp:248:37: error: use of undeclared identifier 'CAP_EFFECTIVE' cap_get_flag( caps, CAP_SYS_NICE, CAP_EFFECTIVE, &nicecapvalue ); ^ src/main.cpp:250:24: error: use of undeclared identifier 'CAP_SET' if ( nicecapvalue == CAP_SET ) ^
DragonFly and FreeBSD adopted a similar API to Linux. Other sytems maybe interested as well, so add a warning. src/steamcompmgr.cpp:51:10: fatal error: 'sys/prctl.h' file not found #include <sys/prctl.h> ^~~~~~~~~~~~~ src/steamcompmgr.cpp:3118:9: error: use of undeclared identifier 'PR_SET_CHILD_SUBREAPER' prctl( PR_SET_CHILD_SUBREAPER, 1, 0, 0, 0 ); ^
Is this ready? |
Yes apart from
|
You can feel free to make the SDL window init stuff a condition variable instead. The muted abuse was just convenient. |
Runtime is still broken: need to file bugs as those are non-trivial.
Depends on emersion/libliftoff#52