Bug 164423 - [bsd.port.mk] [patch] Pass MAKE_ENV to recursive make invocations
Summary: [bsd.port.mk] [patch] Pass MAKE_ENV to recursive make invocations
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Ports Framework (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Port Management Team
Depends on:
Reported: 2012-01-23 21:30 UTC by Greg Larkin
Modified: 2019-08-28 13:30 UTC (History)
1 user (show)

See Also:

bsd.port.mk.recursive-make-env.diff (3.42 KB, patch)
2012-01-23 21:30 UTC, Greg Larkin
no flags Details | Diff
bsd.port.mk.diff (7.88 KB, patch)
2012-11-02 14:58 UTC, Greg Larkin
no flags Details | Diff
bsd.port.mk.diff.sig (72 bytes, application/octet-stream; x-mac-type="0"; x-mac-creator="0")
2012-11-02 14:58 UTC, Greg Larkin
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Greg Larkin freebsd_committer 2012-01-23 21:30:12 UTC
bsd.port.mk contains several targets that recursively invoke make. If
the top-level make was invoked with a user-specified MAKE_ENV, it is not
passed to the recursive invocations.

Fix: The attached patch invokes recursive make processes with the environment
specified by the top-level MAKE_ENV variable.
How-To-Repeat: In order to configure a port and store the options file
in a non-standard location, the config target can be invoked like so:

    cd /usr/ports/devel/git && \
        make PORT_DBDIR=/tmp config

The options file /tmp/git/options will be created in this example.  If
the port is configured recursively, both of the following commands place
the options files in the standard /var/db/ports location:

    cd /usr/ports/devel/git && \
        make PORT_DBDIR=/tmp config-recursive

    cd /usr/ports/devel/git && \
        make MAKE_ENV+="PORT_DBDIR=/tmp" config-recursive
Comment 1 Edwin Groothuis freebsd_committer 2012-01-23 21:30:37 UTC
Responsible Changed
From-To: freebsd-ports-bugs->portmgr

bsd.port.mk is portmgr territory (via the GNATS Auto Assign Tool)
Comment 2 Greg Larkin freebsd_committer 2012-11-02 14:58:06 UTC
Hash: SHA1

I have attached an updated version of the patch that applies to the
current version of Mk/bsd.port.mk, as of Nov 2nd, 2012.
Version: GnuPG v1.4.12 (Darwin)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

Comment 3 Mark Linimon freebsd_committer freebsd_triage 2014-06-02 02:53:54 UTC
Infrastructure PR.
Comment 4 Gleb Popov freebsd_committer 2019-08-01 11:06:08 UTC
If this is still relevant, I'm happy to refresh patches.
Comment 5 Antoine Brodin freebsd_committer 2019-08-01 11:50:40 UTC
I don't think it's relevant.