Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F137784645
D11491.id30720.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
D11491.id30720.diff
View Options
Index: Mk/Scripts/qa.sh
===================================================================
--- Mk/Scripts/qa.sh
+++ Mk/Scripts/qa.sh
@@ -822,10 +822,45 @@
return $rc
}
+gemdeps()
+{
+ local msg
+ if [ "${PKGBASE%%-*}" = "rubygem" ]; then
+ while read -r l; do
+ if [ -n "${l}" ]; then
+ name=${l%% *}
+ vers=${l#* }
+ while read -r v; do
+ while read -r p; do
+ ${LOCALBASE}/bin/ruby -e "puts 'OK' if Gem::Dependency.new('${name}','${v}').match?('${name}','${p}')"
+ done <<-EOF | grep -qFx OK || msg="${msg}RubyGem dependency (${name} ["${v}"]) is not satisfied\n"
+ $(${LOCALBASE}/bin/gem list -e "${name}" \
+ | sed "s|.*(\(.*\))|\1|" \
+ | tr -d ' ' \
+ | tr , '\n')
+ EOF
+ done <<-EOF
+ $(while echo "${vers}" | grep -q '"'; do
+ echo "${vers}" | cut -d '"' -f2
+ vers=$(echo "${vers}"|cut -d '"' -f3-)
+ done)
+ EOF
+ fi
+ done <<-EOF
+ $(grep -a 'add_dependency' ${STAGEDIR}${PREFIX}/lib/ruby/gems/*/specifications/${PKGBASE#rubygem-}*.gemspec \
+ | sed 's|.*<\(.*\)>.*\[\(.*\)\])|\1 \2|' \
+ | sort -u)
+ EOF
+ if [ -n "${msg}" ]; then
+ printf "${msg}"
+ return 1
+ fi
+ 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
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 26, 8:11 PM (17 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
26224527
Default Alt Text
D11491.id30720.diff (1 KB)
Attached To
Mode
D11491: add a stage-qa target for USES=gem runtime dependencies
Attached
Detach File
Event Timeline
Log In to Comment