]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
crunchgen: fix MK_AUTO_OBJ logic after r364166
authorkevans <kevans@FreeBSD.org>
Mon, 5 Oct 2020 20:57:44 +0000 (20:57 +0000)
committerkevans <kevans@FreeBSD.org>
Mon, 5 Oct 2020 20:57:44 +0000 (20:57 +0000)
commit4407b795711de25198d18ed9354d4b6a289c6894
tree277271ca577c272bb2c7d6b26a65211360adc8ac
parent638f0ed3c5abf851fb748a0b700f78f2cffe64a8
crunchgen: fix MK_AUTO_OBJ logic after r364166

r364166 converted echo -n `/bin/pwd` to a raw pwd invocation, leaving a
trailing newline at the end of path.  This caused a later stat() of it to
erroneously fail and the fallback to MK_AUTO_OBJ=no logic proceeded as
unexpected.

Harry Schmalzbauer bissected the resulting build failure he experienced
(stable/12 host, -HEAD build) down to r365887. This change is mostly
unrelated, except it switches the build to bootstrapped crunchgen - clue!

I then bissected recent crunchgen changes going back a bit since we wouldn't
observe the failure immediately with -CURRENT in most configurations, which
landed me on r364166. After many intense head-scratching minutes and printf
debugging, I realized that the newline was the difference. This is where our
tale ends.

Reported by: Harry Schmalzbauer, O. Hartmann, Mike Tancsa, kevans
MFC after: 3 days
usr.sbin/crunch/crunchgen/crunchgen.c