Bug 235793

Summary: ports-mgmt/portmaster: Does not support 'TRYBROKEN=yes'
Product: Ports & Packages Reporter: Yasuhiro KIMURA <yasu>
Component: Individual Port(s)Assignee: Stefan Eßer <se>
Status: Closed FIXED    
Severity: Affects Some People CC: meta, w.schwarzenfeld
Priority: --- Flags: bugzilla: maintainer-feedback? (se)
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
svn-diff-trybroken
none
svn-diff-trybroken_2
none
svn-diff-trybroken_3 none

Description Yasuhiro KIMURA 2019-02-17 04:06:28 UTC
portmaster does not support 'TRYBROKEN=yes'.

root@eastasia[1242]# TRYBROKEN=yes portmaster www/havp

===>>> Port directory: /usr0/freebsd/ports/head/www/havp

        ===>>> This port is marked BROKEN
        ===>>> fails to build


        ===>>> If you are sure you can build it, remove the
               BROKEN line in the Makefile and try again.
root@eastasia[1243]# portmaster -m TRYBROKEN=yes www/havp

===>>> Port directory: /usr0/freebsd/ports/head/www/havp

        ===>>> This port is marked BROKEN
        ===>>> fails to build


        ===>>> If you are sure you can build it, remove the
               BROKEN line in the Makefile and try again.
root@eastasia[1244]#
Comment 1 Walter Schwarzenfeld freebsd_triage 2019-08-16 17:33:30 UTC
Created attachment 206621 [details]
svn-diff-trybroken

It is a workaroud patch.

Works in your example:

portmaster -m -DTRYBROKEN www/havp
Comment 2 Walter Schwarzenfeld freebsd_triage 2019-08-16 18:13:45 UTC
Created attachment 206623 [details]
svn-diff-trybroken_2

Changed it slightly:
you can use
portmaster -m -DTRYBROKEN www/havp
or
portmaster -m -DTRYBROKEN=yes  www/havp
Comment 3 Walter Schwarzenfeld freebsd_triage 2020-01-23 20:32:45 UTC
Created attachment 210995 [details]
svn-diff-trybroken_3

Update patch after ports r523835.
Comment 4 commit-hook freebsd_committer 2020-01-26 18:19:19 UTC
A commit references this bug:

Author: se
Date: Sun Jan 26 18:19:01 UTC 2020
New revision: 524227
URL: https://svnweb.freebsd.org/changeset/ports/524227

Log:
  Add option --try-broken

  This option makes portmaster try to build ports that are marked as
  BROKEN or IGNORE.

  Passing this option implies the "-m -DTRYBROKEN" option.

  The change is inspired by (but not based on) the patch suggested by
  Walter Schwarzenfeld.

  PR:		235793
  Reported by:	Yasuhiro KIMURA
  Approved by:	antoine (implicit)

Changes:
  head/ports-mgmt/portmaster/Makefile
  head/ports-mgmt/portmaster/files/patch-files_portmaster.8
  head/ports-mgmt/portmaster/files/patch-portmaster
Comment 5 Stefan Eßer freebsd_committer 2020-01-26 18:22:46 UTC
Thank you for providing the patch!

I have chosen to add this feature in a different way, but have been able to use your patch as the starting point ...