Date: Sat, 28 Apr 2018 13:17:01 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 227825] Mk/Scripts/do-depends.sh misuses "pkg-static info -g" Message-ID: <bug-227825-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227825 Bug ID: 227825 Summary: Mk/Scripts/do-depends.sh misuses "pkg-static info -g" Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: Ports Framework Assignee: portmgr@FreeBSD.org Reporter: eugen@freebsd.org CC: ports-bugs@FreeBSD.org Using ports tree revision 468536: # pkg-static info -x perl5 perl5.26-5.26.2 # cd /usr/ports/net/p5-Socket6 # make =3D=3D=3D> p5-Socket6-0.28 depends on package: perl5>=3D5.26<5.27 - not f= ound Add "set -x" to start of Mk/Scripts/do-depends.sh and repeat: + set -e + . /usr/ports/Mk/Scripts/functions.sh + validate_env dp_RAWDEPENDS dp_DEPTYPE dp_DEPENDS_TARGET dp_DEPENDS_PRECLE= AN dp_DEPENDS_CLEAN dp_D EPENDS_ARGS dp_USE_PACKAGE_DEPENDS dp_USE_PACKAGE_DEPENDS_ONLY dp_PKG_ADD dp_PKG_INFO dp_WRKDIR dp_ PKGNAME dp_STRICT_DEPENDS dp_LOCALBASE dp_LIB_DIRS dp_SH dp_SCRIPTSDIR PORT= SDIR dp_MAKE dp_MAKEFLAG S + local envfault + eval ': ${dp_RAWDEPENDS?}' + : 'perl5>=3D5.26<5.27:lang/perl5.26' + eval ': ${dp_DEPTYPE?}' + : BUILD_DEPENDS + eval ': ${dp_DEPENDS_TARGET?}' + : install + eval ': ${dp_DEPENDS_PRECLEAN?}' + : + eval ': ${dp_DEPENDS_CLEAN?}' + : + eval ': ${dp_DEPENDS_ARGS?}' + : + eval ': ${dp_USE_PACKAGE_DEPENDS?}' + : + eval ': ${dp_USE_PACKAGE_DEPENDS_ONLY?}' + : + eval ': ${dp_PKG_ADD?}' + : /usr/local/sbin/pkg-static add + eval ': ${dp_PKG_INFO?}' + : /usr/local/sbin/pkg-static info -g + eval ': ${dp_WRKDIR?}' + : /usr/ports/net/p5-Socket6/work + eval ': ${dp_PKGNAME?}' + : p5-Socket6-0.28 + eval ': ${dp_STRICT_DEPENDS?}' + : + eval ': ${dp_LOCALBASE?}' + : /usr/local + eval ': ${dp_LIB_DIRS?}' + : /lib /usr/lib /usr/local/lib + eval ': ${dp_SH?}' + : /bin/sh + eval ': ${dp_SCRIPTSDIR?}' + : /usr/ports/Mk/Scripts + eval ': ${PORTSDIR?}' + : /usr/ports + eval ': ${dp_MAKE?}' + : make + eval ': ${dp_MAKEFLAGS?}' + : + [ -n '' ] + [ -n '' -o -n '' ] + set -u + anynotfound=3D0 + err=3D0 + unset FLAVOR + myifs=3D$' \t ' + IFS=3D: + set -- 'perl5>=3D5.26<5.27' lang/perl5.26 + IFS=3D$' \t ' + [ 2 -lt 2 -o 2 -gt 3 ] + pattern=3D'perl5>=3D5.26<5.27' + origin=3Dlang/perl5.26 + last=3D'' + [ -z 'perl5>=3D5.26<5.27' ] + [ -z lang/perl5.26 ] + origin=3D/usr/ports/lang/perl5.26 + depends_args=3D'' + target=3Dinstall + [ -n '' ] + fct=3Dfind_package + find_package 'perl5>=3D5.26<5.27' + /usr/local/sbin/pkg-static info -g 'perl5>=3D5.26<5.27' + echo '=3D=3D=3D> p5-Socket6-0.28 depends on package: perl5>=3D5.26<5.27= - not found' The script runs pkg-static info -g 'perl5>=3D5.26<5.27' but that's incorrect usage of "pkg-static info -g" which expects shell glob pattern. --=20 You are receiving this mail because: You are on the CC list for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-227825-7788>