svn commit: r469754 - in head/ports-mgmt/portlint: . src
Joe Marcus Clarke
marcus at freebsd.org
Mon May 21 15:57:50 UTC 2018
On 5/15/18 10:03, Mathieu Arnold wrote:
> On Sat, May 12, 2018 at 06:59:08PM +0000, Joe Marcus Clarke wrote:
>> if ($m{'fla'} ne '${PY_FLAVOR}') {
>> - &perror("FATAL", $file, -1, "directory for dependency ".
>> - "$m{'dep'} must be $m{'dir'}:\@\${PY_FLAVOR}");
>> + &perror("WARN", $file, -1, "you may want directory for ".
>> + "dependency $m{'dep'} to be $m{'dir'}:\@\${PY_FLAVOR}");
>> }
>> } else {
>> if ($m{'fla'} ne '${FLAVOR}') {
>> - &perror("FATAL", $file, -1, "directory for dependency ".
>> - "$m{'dep'} must be $m{'dir'}:\@\${FLAVOR}");
>> + &perror("WARN", $file, -1, "you may want directory for ".
>> + "dependency $m{'dep'} to be $m{'dir'}:\@\${FLAVOR}");
>
> Could you please only tell people to use PY_FLAVOR? Using FLAVOR
> directly dates back from when I was implementing the Python flavors and
> is a bad idea.
>
Does this look right:
diff -u -r1.463 portlint.pl
--- portlint.pl 12 May 2018 22:12:18 -0000 1.463
+++ portlint.pl 21 May 2018 15:57:25 -0000
@@ -1149,18 +1149,9 @@
# check Python flavor
my $bdir = basename($m{'dir'});
if ($bdir =~ /^py-/) {
- if (!defined($makevar{USE_PYTHON}) ||
- $makevar{USE_PYTHON} eq 'noflavors' ||
- $makevar{USE_PYTHON} eq '') {
- if ($m{'fla'} ne '${PY_FLAVOR}') {
- &perror("WARN", $file, -1, "you may want directory for ".
- "dependency $m{'dep'} to be $m{'dir'}:\@\${PY_FLAVOR}");
- }
- } else {
- if ($m{'fla'} ne '${FLAVOR}') {
- &perror("WARN", $file, -1, "you may want directory for ".
- "dependency $m{'dep'} to be $m{'dir'}:\@\${FLAVOR}");
- }
+ if ($m{'fla'} ne '${PY_FLAVOR}') {
+ &perror("WARN", $file, -1, "you may want directory for ".
+ "dependency $m{'dep'} to be $m{'dir'}:\@\${PY_FLAVOR}");
}
}
Joe
--
Joe Marcus Clarke
FreeBSD GNOME Team :: gnome at FreeBSD.org
FreeNode / #freebsd-gnome
http://www.FreeBSD.org/gnome
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/svn-ports-all/attachments/20180521/4b4a0a3b/attachment.sig>
More information about the svn-ports-all
mailing list