Bug 204510

Summary: Mk/bsd.options.mk: Trigger _OFF helpers for OPTIONS_EXCLUDE_${OPSYS}
Product: Ports & Packages Reporter: Jan Beich <jbeich>
Component: Ports FrameworkAssignee: Mathieu Arnold <mat>
Status: Closed FIXED    
Severity: Affects Only Me CC: portmgr, ports-bugs
Priority: --- Keywords: patch, patch-ready
Version: LatestFlags: koobs: merge-quarterly?
Hardware: Any   
OS: Any   
Attachments:
Description Flags
v1 koobs: maintainer-approval+

Description Jan Beich freebsd_committer freebsd_triage 2015-11-13 00:35:07 UTC
Created attachment 163071 [details]
v1
Comment 1 Jan Beich freebsd_committer freebsd_triage 2015-11-13 01:11:23 UTC
ports r382333 added OPTIONS_EXCLUDE_${OPSYS} support but missed one more place where available options are enumerated. This leads to inconsistency in how option helpers work when used together with OPTIONS_EXCLUDE*.

OPTIONS_EXCLUDE_DragonFly has very few consumers most of which use !${PORT_OPTIONS:MFOO} rather than _OFF helpers. So, test with

  $ make clean all OPSYS=DragonFly -C devel/fb-adb
Comment 2 Mathieu Arnold freebsd_committer freebsd_triage 2015-11-13 10:08:51 UTC
This looks good, please commit.
Comment 3 Kubilay Kocak freebsd_committer freebsd_triage 2015-11-13 10:23:17 UTC
Comment on attachment 163071 [details]
v1

Maintainer (portmgr, antoine) approved.
Comment 4 Mathieu Arnold freebsd_committer freebsd_triage 2015-11-13 13:28:54 UTC
there are other missing, I'll fix.
Comment 5 Mathieu Arnold freebsd_committer freebsd_triage 2015-11-13 13:50:05 UTC
Well, there were no other problems, but I did things a bit differently in the end.
Comment 6 commit-hook freebsd_committer freebsd_triage 2015-11-13 13:51:03 UTC
A commit references this bug:

Author: mat
Date: Fri Nov 13 13:50:35 UTC 2015
New revision: 401514
URL: https://svnweb.freebsd.org/changeset/ports/401514

Log:
  Refactor the list of all excluded options so that the second place it is
  needed is not forgotten any more.

  PR:		204510
  With hat:	portmgr
  Sponsored by:	Absolight

Changes:
  head/Mk/bsd.options.mk
Comment 7 commit-hook freebsd_committer freebsd_triage 2015-11-13 13:51:05 UTC
A commit references this bug:

Author: mat
Date: Fri Nov 13 13:50:45 UTC 2015
New revision: 401515
URL: https://svnweb.freebsd.org/changeset/ports/401515

Log:
  Remove this hack, now that the framework is fixed.

  PR:		204510
  Submitted by:	jbeich
  Sponsored by:	Absolight

Changes:
  head/devel/fb-adb/Makefile