On 23/02/2025 07:05, Marco Atzeri via Cygwin-apps wrote:
Hi Jon,

I just found on one of the python cygport's I took from Yaakov
the usage of REQUIRES_EXCLUDE_FROM, but the documentation
has nothing about it.
I think will be useful to add some info on documentation before we waste
time reinventing the wheel to remove "unwanted/optional" dependencies

$ grep -rH REQUIRES_EXCLUDE .
./lib/pkg_info.cygpart: for d in ${REQUIRES_EXCLUDE_FROM//:/ }

it is used in the "__list_deps() " function
-----------------------------------------------------
     for d in ${REQUIRES_EXCLUDE_FROM//:/ }
     do
         deps_prune+=" -o -path ${d#/} -prune"
     done
-----------------------------------------------------

Oh! Thanks very much for pointing this out!

I was thinking about how to implement this, given some recent discussions, and I think this is the better approach ("exclude certain paths from the dependency check", rather than "exclude certain dependencies from the requires output") since it's a lot less brittle in the face of changes.

I've added some brief documentation for this, which should appear in the next release.

REQUIRES_EXCLUDE_FROM

DESCRIPTION

A colon-separated list of pathname globs, which are excluded from automatic dependency detection.


Additional issue:
the cygport package page
https://cygwin.com/packages/summary/cygport-src.html

is reporting www.cygwin.com as Homepage , but should not be
https://cygwin.com/git/cygwin-apps/cygport.git  ?

It took some moments to find the repository

Due to some other reorganization I did of the website, cygport actually has a homepage now at:

https://sourceware.org/cygwin-apps/cygport.html

... so I'll change this to point there.

Reply via email to