-
Notifications
You must be signed in to change notification settings - Fork 2
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
fails to compile (cargo install
) on Alpine Linux (utmpx.h declarations)
#100
Comments
tl;dr A good way to allow Alpine builds is using // if not defined __timeval then define it
#[cfg(not(accessible(::uapi::c::__timeval)))]
#[doc(hidden)]
#[derive(Clone, Copy)]
#[repr(C)]
pub struct __timeval {
pub tv_sec: i32,
pub tv_usec: i32,
} These But there is currently no way to further distinguish at build-time that this is Alpine Linux, e.g. there is no The ideal mechanism is Currently, |
Version
|
cargo install
) on Alpine Linux (utmpx.h declarations)
Remove crate `uapi`, it causes numerous problems as outlined in the linked issues. Use hardcoded utmpx structures. Currently only handles one hardcoded structure, Linux Gnu utmpx struct. This is copied from uapi crate code. So this commit is effectively NFC. Issue #171 Issue #100 Issue #121 Issue #109 Issue #217 Issue #108
Refactor `utmpx` for Linux into cross-platform "FixedStruct" for fixed-size record structs. This includes acct, acct_v3, lastlog, lastlogx, utmp, and utmpx. This removes crate `uapi`. Refactor FileType to allow sub-variants. Add scraped logs from varying platforms. Update compare-current-and-expected with newly scraped logs. Add utility utmp-offsets for generating real offsets of fixed-size structs on any system. Issue #171 Issue #100 Issue #121 Issue #109 Issue #217
Refactor `utmpx` for Linux into cross-platform "FixedStruct" for fixed-size record structs. This includes acct, acct_v3, lastlog, lastlogx, utmp, and utmpx. This removes crate `uapi`. Refactor FileType to allow sub-variants. Add scraped logs from varying platforms. Update compare-current-and-expected with newly scraped logs. Add utility utmp-offsets for generating real offsets of fixed-size structs on any system. Issue #171 Issue #100 Issue #121 Issue #109 Issue #217
Refactor `utmpx` for Linux into cross-platform "FixedStruct" for fixed-size record structs. This includes acct, acct_v3, lastlog, lastlogx, utmp, and utmpx. This removes crate `uapi`. Refactor FileType to allow sub-variants. Add scraped logs from varying platforms. Update compare-current-and-expected with newly scraped logs. Add utility utmp-offsets for generating real offsets of fixed-size structs on any system. Issue #171 Issue #100 Issue #121 Issue #109 Issue #217
Refactor `utmpx` for Linux into cross-platform "FixedStruct" for fixed-size record structs. This includes acct, acct_v3, lastlog, lastlogx, utmp, and utmpx. This removes crate `uapi`. Refactor FileType to allow sub-variants. Add scraped logs from varying platforms. Update compare-current-and-expected with newly scraped logs. Add utility utmp-offsets for generating real offsets of fixed-size structs on any system. Issue #171 Issue #100 Issue #121 Issue #109 Issue #217
Remove crate `uapi`, it causes numerous problems as outlined in the linked issues. Use hardcoded utmpx structures. Currently only handles one hardcoded structure, Linux Gnu utmpx struct. This is copied from uapi crate code. So this commit is effectively NFC. Issue #171 Issue #100 Issue #121 Issue #109 Issue #217 Issue #108
Refactor `utmpx` for Linux into cross-platform "FixedStruct" for fixed-size record structs. This includes acct, acct_v3, lastlog, lastlogx, utmp, and utmpx. This removes crate `uapi`. Refactor FileType to allow sub-variants. Add scraped logs from varying platforms. Update compare-current-and-expected with newly scraped logs. Add utility utmp-offsets for generating real offsets of fixed-size structs on any system. Issue #171 Issue #100 Issue #121 Issue #109 Issue #217
Verified this built on Alpine 3.17 x64. |
Summary
cargo install super_speedy_syslog_searcher
fails on Alpine Linux 3.17.Current behavior
Reviewing the resident
utmpx.h
,Indeed, there is a
utmpx.ut_tv
but noutmpx.__timeval
.Suggested behavior
It should build and install.
Environment:
The text was updated successfully, but these errors were encountered: