Bug 281732 - ports-mgmt/portmaster: fails to build ports with gmake error: : invalid option -- D
Summary: ports-mgmt/portmaster: fails to build ports with gmake error: : invalid optio...
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Stefan Eßer
URL: https://github.com/freebsd/portmaster...
Keywords:
Depends on:
Blocks: 277961 278198 280076 281730
  Show dependency treegraph
 
Reported: 2024-09-26 19:12 UTC by O. Hartmann
Modified: 2025-01-15 15:06 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (se)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description O. Hartmann 2024-09-26 19:12:51 UTC
Several ports can not be build using ports-mgmt/portmaster resulting in an error ending in 

: invalid option -- D; see for instance 

PR #281730, #280076, #277954, #278684, #278887 (and more already solved)

In most cases, a workaround is to replace in build target sections according to /usr/ports/CHANGES:

20240229:
AUTHOR: tijl@FreeBSD.org
[...]

replacing used ${SETENV} by ${SETENVI} ${WRK_ENV}.

While portmaster fails on the reported ports, poudriere and native build via make works as expected. portmaster does well, as poudriere and make, after patching according to the scheme mentioned above.
Comment 1 Ed Maste freebsd_committer freebsd_triage 2025-01-15 15:04:57 UTC
URL above is the portmaster patch for this issue. It's still likely the case that individual ports should migrate to ${SETENVI} for robustness.