Page MenuHomeFreeBSD

D11491.id30455.diff
No OneTemporary

D11491.id30455.diff

Index: Mk/Scripts/qa.sh
===================================================================
--- Mk/Scripts/qa.sh
+++ Mk/Scripts/qa.sh
@@ -822,10 +822,46 @@
return $rc
}
+gemdeps()
+{
+ if [ "${PKGBASE%%-*}" = "rubygem" ]; then
+ ret=$(
+ find . -type f -path '*/specifications/*\.gemspec' -print0 |
+ xargs -0 grep -a add_runtime_dependency |
+ sed 's|.*<\(.*\)>.*\[\(.*\)\])|\1 \2|' |
+ while read -r l; do
+ name=${l%% *}
+ vers=${l#* }
+ while echo "$vers" | grep -q '"'; do
+ echo "$vers" | cut -d '"' -f2
+ vers=$(echo "$vers"|cut -d '"' -f3-)
+ done |
+ while read -r v; do
+ bad=$(
+ echo "puts 'BAD' if not Gem::Dependency.new('$name','$v').match?('$name','$(
+ ${LOCALBASE}/bin/gem list -e "$name" |
+ sed "s|.*(\(.*\))|\1|"
+ )')" |
+ ${LOCALBASE}/bin/ruby
+ )
+ if [ "$bad" ]; then
+ echo "$name" "$v" : not satisfied
+ fi
+ done
+ done
+ )
+ if [ "$ret" ]; then
+ echo "$ret"
+ return 1
+ fi
+ else
+ return 0
+ fi
+}
checks="shebang symlinks paths stripped desktopfileutils sharedmimeinfo"
checks="$checks suidfiles libtool libperl prefixvar baselibs terminfo"
-checks="$checks proxydeps sonames perlcore no_arch"
+checks="$checks proxydeps sonames perlcore no_arch gemdeps"
ret=0
cd ${STAGEDIR}

File Metadata

Mime Type
text/plain
Expires
Thu, Jul 9, 1:33 AM (14 h, 39 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34868563
Default Alt Text
D11491.id30455.diff (1 KB)

Event Timeline