Page MenuHomeFreeBSD

Allow bootstrapping pwd_mkdb on Linux/macOS
ClosedPublic

Authored by arichardson on Aug 3 2020, 2:50 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Mar 12, 2:53 PM
Unknown Object (File)
Sat, Mar 7, 2:35 PM
Unknown Object (File)
Thu, Feb 26, 1:20 PM
Unknown Object (File)
Feb 8 2026, 4:07 AM
Unknown Object (File)
Feb 7 2026, 6:27 PM
Unknown Object (File)
Jan 31 2026, 1:23 AM
Unknown Object (File)
Dec 10 2025, 8:57 PM
Unknown Object (File)
Nov 21 2025, 1:45 AM
Subscribers

Details

Summary

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.

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 32722
Build 30166: arc lint + arc unit

Event Timeline

arichardson created this revision.

This seems fine.

usr.sbin/pwd_mkdb/pwd.h
61

Does this want to be #include_next instead?

This revision is now accepted and ready to land.Aug 3 2020, 5:45 PM
usr.sbin/pwd_mkdb/pwd.h
61

Unfortunately that doesn't work. Using a relative path ensures that the file from ${SRCTOP}/include is used.

This revision was automatically updated to reflect the committed changes.