Page MenuHomeFreeBSD

Ping: Make build reproducible
ClosedPublic

Authored by cperciva on Mon, Oct 13, 4:01 PM.
Tags
None
Referenced Files
F132458575: D53075.id164101.diff
Fri, Oct 17, 2:46 AM
F132458565: D53075.id164123.diff
Fri, Oct 17, 2:46 AM
F132458561: D53075.id.diff
Fri, Oct 17, 2:46 AM
Unknown Object (File)
Thu, Oct 16, 5:45 PM
Unknown Object (File)
Thu, Oct 16, 10:30 AM
Unknown Object (File)
Thu, Oct 16, 5:55 AM
Unknown Object (File)
Thu, Oct 16, 3:41 AM
Unknown Object (File)
Wed, Oct 15, 10:52 PM
Subscribers

Details

Summary

As recently fixed in sockstat (9934558460e4), having tests/Makefile
include files from the parent directory with SRCS= ../foo.c results
in a race condition as the parent build and the tests build try to
produce the same object file but contain different paths.

Use .PATH to tell make to find sockstat.c in the parent directory
but place the object file in the current object directory.

MFC after: 3 days
Sponsored by: https://www.patreon.com/cperciva

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Mon, Oct 13, 7:03 PM
jrtc27 added inline comments.
sbin/ping/tests/Makefile
3

I think convention is to put .PATH before the first need for it, not after? Doesn't functionally matter though.

emaste added inline comments.
sbin/ping/tests/Makefile
3

It's logical to put the .PATH before the source IMO, yeah.

This revision was automatically updated to reflect the committed changes.