Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F135353183
D19562.id54979.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D19562.id54979.diff
View Options
Index: Mk/Scripts/qa.sh
===================================================================
--- Mk/Scripts/qa.sh
+++ Mk/Scripts/qa.sh
@@ -925,10 +925,48 @@
return 0
}
+depends_blacklist()
+{
+ local dep rc instead
+
+ rc=0
+
+ for dep in ${UNIFIED_DEPENDS}; do
+ origin=$(expr "${dep}" : ".*:\([^@]*\)")
+ instead=""
+
+ case "$origin" in
+ lang/python|lang/python2|lang/python3)
+ # lang/python depends on lang/pythonX, but it's
+ # ok, it is also in the blacklist.
+ if [ ${PKGORIGIN} != lang/python ]; then
+ instead="USES=python:xy with a specific version"
+ fi
+ ;;
+ lang/gcc)
+ instead="USE_GCC"
+ ;;
+ lang/llvm)
+ instead="a dependency on lang/llvm\${LLVM_DEFAULT}"
+ ;;
+ www/py-django)
+ instead="one of the www/py-djangoXYZ port"
+ ;;
+ esac
+
+ if [ -n "${instead}" ]; then
+ err "The port depends on $origin it should be using $instead"
+ rc=1
+ fi
+ done
+
+ return $rc
+}
+
checks="shebang symlinks paths stripped desktopfileutils sharedmimeinfo"
checks="$checks suidfiles libtool libperl prefixvar baselibs terminfo"
checks="$checks proxydeps sonames perlcore no_arch gemdeps gemfiledeps flavors"
-checks="$checks license"
+checks="$checks license depends_blacklist"
ret=0
cd ${STAGEDIR} || exit 1
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 10, 1:14 AM (18 h, 29 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
25089971
Default Alt Text
D19562.id54979.diff (1 KB)
Attached To
Mode
D19562: A depends blacklist qa check.
Attached
Detach File
Event Timeline
Log In to Comment