Add specific openbsd feature to disable use of utmpx#5613
Add specific openbsd feature to disable use of utmpx#5613lcheylus wants to merge 5 commits intouutils:mainfrom
Conversation
Signed-off-by: Laurent Cheylus <foxy@free.fr>
- add target_os cfg for pline function - add target_os cfg for auditd function (void on OpenBSD) Signed-off-by: Laurent Cheylus <foxy@free.fr>
Signed-off-by: Laurent Cheylus <foxy@free.fr>
- build.rs: add openbsd in krate list - Cargo.toml: add feature openbsd => no utmpx support - Fixes uutils#5596 Signed-off-by: Laurent Cheylus <foxy@free.fr>
Signed-off-by: Laurent Cheylus <foxy@free.fr>
| # or ... | ||
| cargo build --release --features unix | ||
| # or ... | ||
| cargo build --release --features openbsd |
There was a problem hiding this comment.
sorry but why do you want a new category ?
openbsd should be in unix
There was a problem hiding this comment.
No, openbsd cannot be in "unix" because it includes feat_require_unix_utmpx, unsupported on OpenBSD.
| default = ["feat_common_core"] | ||
| ## OS feature shortcodes | ||
| macos = ["feat_os_macos"] | ||
| openbsd = ["feat_os_openbsd"] |
There was a problem hiding this comment.
sorry but i am not a fan of creating an exception for openbsd
I guess it is for utmpx?
There was a problem hiding this comment.
To disable support of utmpx (not supported on OpenBSD), I created a new specific feature "openbsd" not including feat_require_unix_utmpx, see #5596 for detailed explanations. @tertsdiepraam agreed my proposal.
There was a problem hiding this comment.
still, i don't think we want exceptions for every distro or unix :(
what about creating a "fake" utmpx for openbsd ? and the command would return "unsupported"
There was a problem hiding this comment.
OK, I could try another solution:
- close this PR and remove my work to add a specific feature "openbsd" => include openbsd in "unix" as others Unixes OS
- create a fake utmpx support => unsupported for tools where it's required :
pinky,uptime,usersandwho - in a second time, implement an "alternative utmpx" support for OpenBSD for
pinky,uptime,usersandwhobinaries.
Do you agree ?
|
PR canceled after discussion with @sylvestre |
openbsdfeature