Bug 273938 - Environment leakage causes build failures in some ports
Summary: Environment leakage causes build failures in some ports
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Ports Framework (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Port Management Team
Keywords: needs-qa
Depends on:
Reported: 2023-09-19 02:00 UTC by Greg Lehey
Modified: 2023-09-19 17:57 UTC (History)
2 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Greg Lehey freebsd_committer freebsd_triage 2023-09-19 02:00:36 UTC
This bug report is a follow-up on https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=273490.  In that case, tex-wb2c failed to build due to something (presumably a variable) inherited from the environment.  The workaround was to remove all environment and start a new shell:

  $ env -i HOME="$HOME" bash --norc

This is clearly not an isolated case, and finding the variable in question is difficult (I still haven't found mine).  But it should be possible to remove the environment at the start of the build.  This would affect the deliberate passing of variables to the build, so it needs some consideration.  This report is intended as a place holder during discussion.