Summary: | ports-mgmt/portlint: warn about not using option helpers | ||
---|---|---|---|
Product: | Ports & Packages | Reporter: | Jan Beich <jbeich> |
Component: | Individual Port(s) | Assignee: | Joe Marcus Clarke <marcus> |
Status: | Open --- | ||
Severity: | Affects Only Me | CC: | w.schwarzenfeld |
Priority: | --- | Keywords: | feature, needs-patch |
Version: | Latest | Flags: | bugzilla:
maintainer-feedback?
(marcus) |
Hardware: | Any | ||
OS: | Any |
Description
Jan Beich
2015-08-16 23:09:32 UTC
Are you asking for literal examples below? Meaning that if something is spotted with a += assignment, I should recommend FOO_* helpers? That is doable, but being able to detect the specific option would be difficult. Anything with "/^\.[[:space:]]*if.*PORT_OPTIONS/,/^\.[[:space:]]*endif/" awk/sed range can potentially be converted. If they aren't enough sometimes one can write custom helpers e.g., # From multimedia/openh264 DEBUG_BUILD_DEPENDS_OFF= ${DEBUG_BUILD_DEPENDS_OFF_${ARCH}} DEBUG_BUILD_DEPENDS_OFF_amd64= nasm:${PORTSDIR}/devel/nasm DEBUG_BUILD_DEPENDS_OFF_i386= nasm:${PORTSDIR}/devel/nasm Contrary to comment 0 no need to emphasize on patterns like += to avoid a lot of false positives from other conditionals, shared files or slave ports. Forgotten to close? |