Bug 253354

Summary: Mk/Scripts/depends-list.sh: flavors are not processed properly when dependency is absolute path
Product: Ports & Packages Reporter: Maxim Sobolev <sobomax>
Component: Ports FrameworkAssignee: Port Management Team <portmgr>
Status: New ---    
Severity: Affects Some People CC: bapt, ports-bugs
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
Patch to fix the issue. none

Description Maxim Sobolev freebsd_committer freebsd_triage 2021-02-08 19:12:00 UTC
Created attachment 222275 [details]
Patch to fix the issue.

Our ports framework supports "off-side" dependencies, when the port we depend on is outside /usr/ports. That logic however is not followed when dealing with @foo at the end of the reference, causing warnings to be issued.

Consider the following dependency line:

RUN_DEPENDS=    ${PYTHON_PKGNAMEPREFIX}dal>0:/sobomax/myports/devel/py-dal@${PY_FLAVOR}

The make package, make clean and some other targets would issue the following warning:

[ssp-root@sipit_rack ~/builder/SSP/py-sippyapi.base]$ make clean
py27-sippyapi.base-202012161500_4: "/sobomax/myports/devel/py-dal@py27" non-existent -- dependency list incomplete
===>  Cleaning for py27-sippyapi.base-202012161500_4
py36-sippyapi.base-202012161500_4: "/sobomax/myports/devel/py-dal@py36" non-existent -- dependency list incomplete
===>  Cleaning for py36-sippyapi.base-202012161500_4

I believe this is a recent regression, after rev.510950 (overlays support) by @bapt.

https://svnweb.freebsd.org/ports/head/Mk/Scripts/depends-list.sh?r1=471988&r2=510950