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)
Apr 21 2024, 9:17 AM
Unknown Object (File)
Apr 21 2024, 9:17 AM
Unknown Object (File)
Apr 21 2024, 9:17 AM
Unknown Object (File)
Apr 21 2024, 9:03 AM
Unknown Object (File)
Apr 19 2024, 8:45 PM
Unknown Object (File)
Apr 11 2024, 6:16 PM
Unknown Object (File)
Jan 5 2024, 5:47 AM
Unknown Object (File)
Dec 20 2023, 6:52 AM
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.