Page MenuHomeFreeBSD

D62043.1795955977.diff
No OneTemporary

Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None

D62043.1795955977.diff

diff --git a/Mk/Scripts/qa.sh b/Mk/Scripts/qa.sh
--- a/Mk/Scripts/qa.sh
+++ b/Mk/Scripts/qa.sh
@@ -701,15 +701,15 @@
# If we don't already depend on it, and we don't provide it
if ! listcontains ${dep_file_pkg} "${LIB_RUN_DEPENDS} ${PKGORIGIN}"; then
# If the package has a flavor, check that the dependency is not on that particular flavor.
+ # Don't skip the bookkeeping below with a "continue",
+ # or the unused LIB_DEPENDS check misses this library.
flavor=$(pkg annotate -q -S "$(pkg which -q "${dep_file}")" flavor)
- if [ -n "${flavor}" ]; then
- if listcontains ${dep_file_pkg}@${flavor} "${LIB_RUN_DEPENDS} ${PKGORIGIN}"; then
- continue
- fi
+ if [ -z "${flavor}" ] || \
+ ! listcontains ${dep_file_pkg}@${flavor} "${LIB_RUN_DEPENDS} ${PKGORIGIN}"; then
+ err "${file} is linked to ${dep_file} from ${dep_file_pkg} but it is not declared as a dependency"
+ proxydeps_suggest_uses ${dep_file_pkg} ${dep_file}
+ rc=1
fi
- err "${file} is linked to ${dep_file} from ${dep_file_pkg} but it is not declared as a dependency"
- proxydeps_suggest_uses ${dep_file_pkg} ${dep_file}
- rc=1
fi
else
err "${file} is linked to ${dep_file} that does not belong to any package"

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 29, 12:39 PM (12 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42064904
Default Alt Text
D62043.1795955977.diff (1 KB)

Event Timeline