Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 03 May 2020 00:41:17 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 244239] ports-mgmt/portlint: strange output for security/p5-IO-Socket-SSL
Message-ID:  <bug-244239-7788-HYCKnn4rvF@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-244239-7788@https.bugs.freebsd.org/bugzilla/>
References:  <bug-244239-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D244239

--- Comment #3 from Sergei Vyshenski <svysh.fbsd@gmail.com> ---
Hi,

A note for discussion.

Subroutine of /usr/local/bin/portlint named
sub get_makevar_shallow {}
forms argument list for "make" as follows (see line 3821):

$cmd =3D join(' -dV -V ', "make $makeenv MASTER_SITE_BACKUP=3D''", map { "'=
$_'" }
@_);

which causes exactly reported garbage:

$ cd /usr/ports/security/p5-IO-Socket-SSL
$ make MASTER_SITE_BACKUP=3D'' -dV -V 'RUN_DEPENDS'
p5-Net-SSLeay>=3D1.59:security/p5-Net-SSLeay=20
p5-Mozilla-CA>=3D20130114:www/p5-Mozilla-CA ${${:UIDN}_${:URUN}_DEPENDS}
${${:UIPV6}_${:URUN}_DEPENDS} ${PERL5_DEPEND}:lang/${PERL_PORT}
$ portling -AC
WARN: Makefile: for new port, make $FreeBSD$ tag in comment section empty, =
to
make SVN happy.
WARN: Makefile: no port directory /usr/ports/UIPV6}_${ found, even though i=
t is
listed in BUILD_DEPENDS.
0 fatal errors and 2 warnings found.

The "-dV" flag for make suppresses variable expansion, and seems irrelevant=
 for
the ports with conditional dependency list.=20
If this flag is omitted from line 3821 of /usr/local/bin/portlint, that is:

$cmd =3D join(' -V ', "make $makeenv MASTER_SITE_BACKUP=3D''", map { "'$_'"=
 } @_);

the garbage is gone:

$ cd /usr/ports/security/p5-IO-Socket-SSL
$ make MASTER_SITE_BACKUP=3D'' -V 'RUN_DEPENDS'
p5-Net-SSLeay>=3D1.59:security/p5-Net-SSLeay=20
p5-Mozilla-CA>=3D20130114:www/p5-Mozilla-CA p5-URI>=3D1.50:net/p5-URI
p5-IO-Socket-INET6>0:net/p5-IO-Socket-INET6 perl5>=3D5.30.r1<5.31:lang/perl=
5.30
$ portling -AC
WARN: Makefile: for new port, make $FreeBSD$ tag in comment section empty, =
to
make SVN happy.
0 fatal errors and 1 warning found.

Sorry for slow thinking, and not sure though if the proposed change fits for
the rest of the world.

Regards, Sergei

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-244239-7788-HYCKnn4rvF>