Page MenuHomeFreeBSD

Mk: Wrap FLAVORED 'make clean' in ports_env
Needs ReviewPublic

Authored by bdrewery on Jul 12 2021, 10:36 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Oct 22, 4:11 AM
Unknown Object (File)
Sun, Oct 19, 11:19 AM
Unknown Object (File)
Sun, Oct 19, 11:19 AM
Unknown Object (File)
Sat, Oct 18, 9:42 PM
Unknown Object (File)
Sun, Oct 5, 4:59 AM
Unknown Object (File)
Sat, Oct 4, 1:20 AM
Unknown Object (File)
Sep 13 2025, 9:09 PM
Unknown Object (File)
Aug 15 2025, 12:03 AM
Subscribers

Details

Reviewers
None
Group Reviewers
portmgr
Summary

This mostly removes the FLAVORS-times multiplier of make variable executions.
For example in security/openssh-portable (3 FLAVORS) it decreases the time
from 17.6s to 6.7s on my system. Much of the cost in that example is
Uses/compiler.mk.

Test Plan

Before:

~/git/ports/main/security/openssh-portable # /usr/bin/time make clean
===>  Cleaning for openssh-portable-8.6.p1,1
===>  Cleaning for openssh-portable-hpn-8.6.p1,1
===>  Cleaning for openssh-portable-gssapi-8.6.p1,1
       17.62 real         8.57 user         8.82 sys

After:

~/git/ports/main/security/openssh-portable # /usr/bin/time make clean
===>  Cleaning for openssh-portable-8.6.p1,1
===>  Cleaning for openssh-portable-hpn-8.6.p1,1
===>  Cleaning for openssh-portable-gssapi-8.6.p1,1
        6.53 real         4.12 user         2.45 sys

Diff Detail

Repository
rP FreeBSD ports repository
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 40452
Build 37341: arc lint + arc unit