Date: Tue, 22 May 2018 22:08:07 +0800 From: Sunpoet Po-Chuan Hsieh <sunpoet@freebsd.org> To: Mathieu Arnold <mat@freebsd.org> Cc: Joe Marcus Clarke <marcus@freebsd.org>, ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: Re: svn commit: r469754 - in head/ports-mgmt/portlint: . src Message-ID: <CAMHz58TmiArCRSV9JDtMRyxBRMYKMrHRYzXXF2UNpaun7YFq1Q@mail.gmail.com> In-Reply-To: <20180522135231.bdudnyrreswcumwe@ogg.in.absolight.net> References: <201805121859.w4CIx8jx035047@repo.freebsd.org> <20180515140351.oyfapiqygprxomvq@ogg.in.absolight.net> <333774c1-c120-2582-9a60-1b1c784cdd5b@freebsd.org> <20180522135231.bdudnyrreswcumwe@ogg.in.absolight.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, May 22, 2018 at 9:52 PM, Mathieu Arnold <mat@freebsd.org> wrote: > On Mon, May 21, 2018 at 11:57:36AM -0400, Joe Marcus Clarke wrote: > > 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: > > Mmmm, I think it does, yes. Though the check is probably wrong, it > should probably not be looking for /^py-/ in the second field, but for > ${PYTHON_PKGNAMEPREFIX} in the first field. > Please also include the check of ${PYTHON_PKGNAMESUFFIX}. > > 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}"); > > } > > } > > > > > > -- > Mathieu Arnold >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAMHz58TmiArCRSV9JDtMRyxBRMYKMrHRYzXXF2UNpaun7YFq1Q>