Page MenuHomeFreeBSD

Golang ports: use ${WRKDIR} for build artifacts
ClosedPublic

Authored by lytboris_gmail.com on Nov 30 2022, 1:56 PM.
Referenced Files
Unknown Object (File)
Aug 4 2025, 11:29 PM
Unknown Object (File)
Jul 28 2025, 9:44 AM
Unknown Object (File)
Jul 26 2025, 6:51 AM
Unknown Object (File)
Jul 26 2025, 6:24 AM
Unknown Object (File)
Jul 25 2025, 10:15 PM
Unknown Object (File)
Jul 13 2025, 2:16 AM
Unknown Object (File)
Jun 27 2025, 8:47 PM
Unknown Object (File)
Jun 27 2025, 3:54 PM
Subscribers
None

Details

Summary

Golang uses $TMPDIR for it's build artifacts by default now. This could lead into issues when /tmp is RAM-backed or no-exec.

So it's better to use ${WRKDIR} as working directory, the same way most of other software does.

Test Plan

Configure tmpfs-based /tmp with 512M quota and try to build net-mgmt/telegraf with or without patch proposed

Diff Detail

Repository
R11 FreeBSD ports repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

lytboris_gmail.com created this revision.
lytboris_gmail.com edited the test plan for this revision. (Show Details)

LGTM, thanks. I'll commit this after I'm done with updating Go ports.

This revision is now accepted and ready to land.Dec 8 2022, 12:15 PM
This revision was automatically updated to reflect the committed changes.