We need to provide a struct passwd that is compatible with the target
system and this is not the case when cross-building from macOS/Linux.
It should also be a problem when bootstrapping for an i386 target from a
FreeBSD amd64 host since time_t does not match across those systems.
However, pwd_mkdb always truncates integer values to 32-bit so this
difference does not result in different databases.
Details
Details
- Reviewers
emaste jhb brooks - Commits
- rS363992: Allow bootstrapping pwd_mkdb on Linux/macOS
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
This seems fine.
usr.sbin/pwd_mkdb/pwd.h | ||
---|---|---|
61 ↗ | (On Diff #75309) | Does this want to be #include_next instead? |
usr.sbin/pwd_mkdb/pwd.h | ||
---|---|---|
61 ↗ | (On Diff #75309) | Unfortunately that doesn't work. Using a relative path ensures that the file from ${SRCTOP}/include is used. |