diff options
author | mat <mat@FreeBSD.org> | 2017-11-30 23:33:29 +0800 |
---|---|---|
committer | mat <mat@FreeBSD.org> | 2017-11-30 23:33:29 +0800 |
commit | 4b9fac224203752b835bc0bf378c002afcaafe9d (patch) | |
tree | c68f282f056cada60fad8fc282c20f9ffdbfd0ee /Tools | |
parent | 2a9aca2edb30e608fa805528df1ce87cc59e1e52 (diff) | |
download | freebsd-ports-gnome-4b9fac224203752b835bc0bf378c002afcaafe9d.tar.gz freebsd-ports-gnome-4b9fac224203752b835bc0bf378c002afcaafe9d.tar.zst freebsd-ports-gnome-4b9fac224203752b835bc0bf378c002afcaafe9d.zip |
Generic FLAVORS work.
- Enable FLAVORS.
- Make make describe flavors aware.
- Add a qa check for unique package names amongst flavors.
- Make MOVEDlint understand flavors.
- Add a bit of sanity check to make sure FLAVORS stay lowercase.
- Various fixes.
Reviewed by: portmgr
Sponsored by: Absolight
Differential Revision: https://reviews.freebsd.org/D12577
Diffstat (limited to 'Tools')
-rwxr-xr-x | Tools/scripts/MOVEDlint.awk | 31 |
1 files changed, 30 insertions, 1 deletions
diff --git a/Tools/scripts/MOVEDlint.awk b/Tools/scripts/MOVEDlint.awk index e2445ba44f41..60de5f90dd52 100755 --- a/Tools/scripts/MOVEDlint.awk +++ b/Tools/scripts/MOVEDlint.awk @@ -80,15 +80,44 @@ $3 !~ /^20[0-3][0-9]-[01][0-9]-[0-3][0-9]$/ { } lastdate = $3 + from_flavor="" + if ($1 ~ "@") { + from_flavor=$1 + sub("@.*", "", $1) + sub(".*@", "", from_flavor) + } + if (system("test -f " portsdir "/" $1 "/Makefile")) { delete missing[$1] } else { - printf "%5d: %s must be marked as resurrected\n", NR, $1 | sort + if (from_flavor != "") { + if (!system("test \"" from_flavor "\" = \"`make -C " portsdir "/" $1 " -VFLAVORS:M" from_flavor "`\"")) { + printf "%5d: %s still has the %s flavor\n", NR, $1, from_flavor | sort + } + # No else because the port is there but does not have the flavor, + # so it should be ok. + } else { + printf "%5d: %s must be marked as resurrected\n", NR, $1 | sort + } } if ($2) { + to_flavor="" + if ($2 ~ "@") { + to_flavor=$2 + sub("@.*", "", $2) + sub(".*@", "", to_flavor) + } + if (system("test -f " portsdir "/" $2 "/Makefile")) missing[$2] = NR + else + if (to_flavor != "") { + if (system("test \"" to_flavor "\" = \"`make -C " portsdir "/" $2 " -VFLAVORS:M" to_flavor "`\"")) { + printf "%5d: %s does not have the %s flavor\n", NR, $2, to_flavor | sort + error[NR] = 1 + } + } } # Produces too many false positives |