Bug 253354 - Mk/Scripts/depends-list.sh: flavors are not processed properly when dependency is absolute path
Summary: Mk/Scripts/depends-list.sh: flavors are not processed properly when dependenc...
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Ports Framework (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Port Management Team
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-08 19:12 UTC by Maxim Sobolev
Modified: 2021-02-08 19:12 UTC (History)
2 users (show)

See Also:


Attachments
Patch to fix the issue. (1.27 KB, patch)
2021-02-08 19:12 UTC, Maxim Sobolev
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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