Bug 275307

Summary: ports-mgmt/portmaster ignoring TRYBROKEN from /etc/make.conf
Product: Ports & Packages Reporter: alexvpetrov
Component: Individual Port(s)Assignee: Stefan Eßer <se>
Status: Closed FIXED    
Severity: Affects Only Me Flags: bugzilla: maintainer-feedback? (se)
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   

Description alexvpetrov 2023-11-24 13:51:33 UTC
portmaster-3.27 ignoring TRYBROKEN from /etc/make.conf

Example:
.if ${.CURDIR:M*/net-im/telegram-desktop}
TRYBROKEN=        yes
.endif
Comment 1 Stefan Eßer freebsd_committer freebsd_triage 2023-11-29 19:42:10 UTC
(In reply to alexvpetrov from comment #0)

The --try-broken option is meant to allow building ports marked as BROKEN or IGNORE.

But I do agree that setting TRYBROKEN for some port in /etc/make.conf is a useful enhancement, which will be provided in an upcoming update of portmaster.
Comment 2 commit-hook freebsd_committer freebsd_triage 2023-11-29 19:43:21 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=202ed6ce2a2eeb154080bfbabe5ce57a74d1d6ec

commit 202ed6ce2a2eeb154080bfbabe5ce57a74d1d6ec
Author:     Stefan Eßer <se@FreeBSD.org>
AuthorDate: 2023-11-29 19:36:45 +0000
Commit:     Stefan Eßer <se@FreeBSD.org>
CommitDate: 2023-11-29 19:36:45 +0000

    ports-mgmt/portmaster: upgrade to version 3.28

    This version supports TRYBROKEN passed in the process environment or
    in a Makefile (or, e.g., in /etc/make.conf as a per port setting) and
    treats it as equivalent to the --try-broken option.

    PR:             275307

 ports-mgmt/portmaster/Makefile | 2 +-
 ports-mgmt/portmaster/distinfo | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)