Page MenuHomeFreeBSD

makefs: Fix issues building as a cross-tool on non-FreeBSD
ClosedPublic

Authored by jrtc27 on Aug 11 2022, 12:03 AM.
Tags
None
Referenced Files
F115789549: D36135.diff
Mon, Apr 28, 4:59 PM
Unknown Object (File)
Wed, Apr 16, 10:01 PM
Unknown Object (File)
Mar 12 2025, 2:44 AM
Unknown Object (File)
Mar 10 2025, 4:54 AM
Unknown Object (File)
Feb 10 2025, 2:26 PM
Unknown Object (File)
Jan 27 2025, 12:34 AM
Unknown Object (File)
Jan 27 2025, 12:08 AM
Unknown Object (File)
Jan 18 2025, 6:50 AM

Details

Summary

This adds missing includes, uses the standard dirent.h rather than the
BSD-specific sys/dirent.h subset (which works on macOS but not Linux)
and works around Linux's lack of st_birthtim.

This allows usr.sbin/makefs to be added to LOCAL_XTOOL_DIRS again on
macOS and Linux so that disk images can be cross-built.

Fixes: 240afd8c1fcc ("makefs: Add ZFS support")

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 46852
Build 43741: arc lint + arc unit

Event Timeline

This revision is now accepted and ready to land.Aug 11 2022, 12:34 AM

Oh nice, didn't see these changes, I just went for the simple workaround in D36089