Skip to content

Commit 27ed0a8

Browse files
committed
Scripts to help download all requirements for gnuradio, mostly working, not all dependencies solved
Signed-off-by: Jed Reynolds <[email protected]>
1 parent 3163af5 commit 27ed0a8

File tree

2 files changed

+158
-0
lines changed

2 files changed

+158
-0
lines changed

gnuradio-dependencies.bash

+96
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
#!/bin/bash
2+
files=(
3+
gr-osmosdr
4+
hackrf
5+
PyQt4
6+
PyQwt
7+
SDL
8+
SoapySDR
9+
airspyone_host
10+
boost-program-options
11+
boost-serialization
12+
codec2
13+
comedilib
14+
dbusmenu-qt
15+
fftw-libs-single
16+
flex
17+
freeglut
18+
gnuradio
19+
gr-fcdproplus
20+
gr-iqbal
21+
gsl
22+
hidapi
23+
jack-audio-connection-kit
24+
kde-filesystem
25+
libffado
26+
libgfortran
27+
libmng
28+
libosmo-dsp
29+
libquadmath
30+
libsodium
31+
libxml++
32+
log4cpp
33+
log4cpp-devel
34+
openblas
35+
openblas-serial
36+
openblas-threads
37+
openpgm
38+
phonon
39+
portaudio
40+
python-rpm-macros
41+
python2-cheetah
42+
python2-devel
43+
python2-nose
44+
python2-numpy
45+
python2-numpy-f2py
46+
python2-pyopengl
47+
python2-pyqt4-sip
48+
python2-rpm-macros
49+
python2-scipy
50+
python2-sip
51+
python2-tkinter
52+
python2-wxpython
53+
python3-rpm-generators
54+
qt
55+
qt-common
56+
qt-x11
57+
qwt
58+
qwt5-qt4
59+
rtl-sdr
60+
tix
61+
tk
62+
uhd
63+
wxGTK3-gl
64+
wxGTK3-media
65+
zeromq
66+
phonon-backend-gstreamer
67+
sni-qt
68+
)
69+
70+
#G=/var/tmp/deps_list.txt
71+
#echo "" > $G
72+
urls_file="urls_file.txt"
73+
echo "" > $urls_file
74+
75+
while read L; do
76+
[[ x$L = x ]] && continue
77+
o=${L:0:1}
78+
o=${o,,}
79+
80+
# where would be a logical place to see if the package has already been installed , use rpm -qa "$L"
81+
echo "https://archives.fedoraproject.org/pub/archive/fedora/linux/updates/30/Everything/x86_64/Packages/${o}/${L}.rpm"
82+
done < deps_list.uniq.txt > $urls_file
83+
exit
84+
85+
# ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- -----
86+
function f() {
87+
for f in "${files[@]}"; do
88+
dnf repoquery --deplist --queryformat '%{name}.%{%arch}' "$f" \
89+
| grep 'provider:' \
90+
| sort | uniq \
91+
| grep -v '\.i686' \
92+
>> $G
93+
echo -n "."
94+
done
95+
}
96+

gnuradio-offline-install.bash

+62
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
#!/bin/bash
2+
3+
[ ! -f urls_file.txt ] && echo "Where is urls_list.txt?" && exit 1
4+
DLD=/home/lanforge/Downloads
5+
installed_list=()
6+
already_downloaded_list=()
7+
not_found_list=()
8+
candidate_list=()
9+
10+
while read L; do
11+
# echo "$L"
12+
bzname=`basename $L`
13+
short=${bzname%.fc30*}
14+
if [[ x$short = x ]]; then
15+
echo "bad substitution on $L"
16+
continue
17+
fi
18+
echo -n "Looking for $short"
19+
20+
rez=`rpm -qa ${short}*`
21+
# echo "result $?"
22+
if [[ x$rez = x ]]; then
23+
echo -n "$bzname is not installed"
24+
if compgen -G "${DLD}/${bzname}"; then
25+
echo " already downloaded"
26+
already_downloaded_list+=($bzname);
27+
else
28+
wget -q -O "${DLD}/${bzname}" "$L"
29+
if (( $? != 0 )); then
30+
letterurl="${L%/*}/"
31+
needle="${short:0:13}"
32+
echo -n " need to look for ${letterurl}${needle} ..."
33+
some_match=`curl -sq "${letterurl}" | grep -- "$needle"`
34+
if (( $? != 0 )) || [[ x$some_match = x ]]; then
35+
echo "Unable to find $short"
36+
not_found_list+=("$L")
37+
else
38+
echo "possible candidate"
39+
candidate_list+=("$some_match")
40+
fi
41+
fi
42+
fi
43+
fi
44+
done < urls_file.txt
45+
echo ""
46+
echo "Installed list: "
47+
printf "%s, " "${installed_list[@]}"
48+
49+
echo ""
50+
echo "Already downloaded list: "
51+
printf " %s\\n" "${already_downloaded_list[@]}"
52+
53+
echo ""
54+
echo "Not found list: "
55+
printf " %s\\n" "${not_found_list[@]}"
56+
57+
echo ""
58+
echo "Candidate list: "
59+
printf " %s\\n" "${candidate_list[@]}"
60+
61+
62+
echo "done."

0 commit comments

Comments
 (0)