[Bug 276478] Mk/*: Build with a clean environment

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 23 Jan 2024 19:17:54 UTC

Tijl Coosemans <tijl@FreeBSD.org> changed:

           What    |Removed                     |Added
 Attachment #247801|0                           |1
        is obsolete|                            |

--- Comment #4 from Tijl Coosemans <tijl@FreeBSD.org> ---
Created attachment 247897
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=247897&action=edit

To fix the build failures this patch introduces a WRK_ENV variable and adds the
following environment variables to it: HOME (elixir ports), PWD (go ports),
UNAME_* (nss, python, reduce-psl), PATH (rubygem ports).

Also add TERM to restore colored output to terminals.  This does not affect
output to files.  And TMPDIR for users who define that.

math/gap: This build failure is unrelated.  The port Makefile defines
SHEBANG_FILES=. which means shebangfix touches every file changing their
timestamp.  This causes the build to think some Makefile.in files are
out-of-date so it tries to regenerate them with automake without regenerating
prerequisite autotools files.  Perhaps shebangfix could restore timestamps like
run-autotools-fixup does, but that's for somebody else to look into.

You are receiving this mail because:
You are on the CC list for the bug.