6 boolean_deps="req \(.*\) not found"
7 common_deps="cpuinfo\(|uname\(release\)|-multilib-|\/eclipse\/|statifier|kernel-tools-perf-vdso"
8 x32_deps="libreoffice|nodejs|firefox|seamonkey|thunderbird"
9 if [ $1 = "x32" ]; then
10 grep -Ev "($boolean_deps|$common_deps|$x32_deps)"
12 grep -Ev "($boolean_deps|$common_deps)"
16 # group errors by same error kind
20 sed -ne 's/.*req \(.*\) not found.*/\1/p' $t | sort -u | while read dep; do
21 grep -F "req $dep not found" $t
26 # convert pkg name to src.rpm name
35 # create list of N-V-R.A.rpm -> src-N pairs from error report
36 # error: arcconf-7.0.18786-1: req libstdc++.so.5()(64bit) not found
37 sed -ne 's/error: \(.*\): req .* not found/\1/p' $t | sort -u | \
38 xargs -d '\n' poldek --noignore -Q "$@" --cmd ls -q -s | \
39 sed -rne "s/^([^\t ]+)[\t ]+(.+)-[^-]+-[^-]+\.src\.rpm$/\1\t\2/p" >$t3
41 local pkg error message srpm
42 while read error pkg message; do
43 # error: arcconf-7.0.18786-1: req libstdc++.so.5()(64bit) not found
44 srpm=$(awk -vpkg="${pkg%:}" '$1 == pkg {printf("%s.spec", $2)}' $t3)
45 if [ -z "$srpm" ]; then
46 echo >&2 "srpms: No match for [${pkg%:}]"
48 echo "$error [$srpm] $pkg $message"
60 -O "auto directory dependencies = yes" \
61 --ignore "*-debuginfo-*" \
62 --ignore "opera-plugin32-*" \
63 --ignore "nspluginwrapper-*" \
64 --ignore "mbrola-voice-*" \
67 --ignore "kde4-kdenetwork-kopete-protocol-skype-*.x86_64" \
68 --ignore "libpurple-protocol-skype-*.x86_64" \
69 --ignore "nagios-plugin-check_cciss-*" \
71 --verify=deps -Q "$@" | filter_deps $arch | group_deps | pkg2src "$@" | sort
77 gen_list $arch -O "unique package names = yes" "$@"
82 for arch in x86_64 i686 x32 ; do
83 if [ "$arch" = x86_64 ]; then
88 gen_list $arch -s $ftpdir/PLD/$arch/RPMS/ -s $ftpdir/PLD/noarch/RPMS/ > $t && cat $t > $HOME/www/main$outfext
89 gen_list_uniq $arch -s $ftpdir/PLD/$arch/RPMS/ -s $ftpdir/PLD/noarch/RPMS/ -s $ftpdir/ready/$arch/RPMS/ -s $ftpdir/ready/noarch/RPMS/ > $t && cat $t > $HOME/www/main-ready$outfext
90 gen_list_uniq $arch -s $ftpdir/PLD/$arch/RPMS/ -s $ftpdir/PLD/noarch/RPMS/ -s $ftpdir/ready/$arch/RPMS/ -s $ftpdir/ready/noarch/RPMS/ -s $ftpdir/test/$arch/RPMS/ -s $ftpdir/test/noarch/RPMS/ > $t && cat $t > $HOME/www/main-ready-test$outfext
93 chmod 644 $HOME/www/*.txt