|
16 | 16 |
|
17 | 17 | os="${distro}${release}" |
18 | 18 |
|
19 | | -if [ "$arch" = "arm64" ] || [ "$arch" = "riscv64" ] || [ "${os}" = "debian13" ] |
| 19 | +if [ "$arch" = "riscv64" ] || [ "${os}" = "debian13" ] |
20 | 20 | then |
21 | | - apt-get install -y devscripts libfuse3-dev cmake cpio libcap-dev libssl-dev libfuse-dev pkg-config libattr1-dev python3-dev python3-setuptools python3-dev python3-setuptools uuid-dev libz-dev lsb-release |
| 21 | + apt-get install -y devscripts libfuse3-dev cmake cpio golang libcap-dev libssl-dev libfuse-dev pkg-config libattr1-dev python3-dev python3-setuptools python3-dev python3-setuptools uuid-dev libz-dev lsb-release |
22 | 22 | cd /tmp |
23 | 23 | wget https://github.com/cvmfs/cvmfs/archive/refs/tags/cvmfs-${cvmfsversion}.tar.gz |
24 | 24 | tar xzf cvmfs-${cvmfsversion}.tar.gz |
25 | 25 | cd cvmfs-cvmfs-${cvmfsversion} |
26 | 26 | mkdir /root/deb |
27 | | - sed -i 's/Architecture: i386 amd64 armhf arm64/Architecture: i386 amd64 armhf arm64 riscv64/' packaging/debian/cvmfs/control.in |
28 | | - sed -i 's/python-dev/python3-dev/' packaging/debian/cvmfs/control.in |
29 | | - sed -i 's/python-setuptools/python3-setuptools/' packaging/debian/cvmfs/control.in |
| 27 | + sed -i 's/amd64 armhf arm64/amd64 armhf arm64 riscv64/' packaging/debian/cvmfs/control* |
| 28 | + sed -i 's/python-dev/python3-dev/' packaging/debian/cvmfs/control* |
| 29 | + sed -i 's/python-setuptools/python3-setuptools/' packaging/debian/cvmfs/control* |
| 30 | + # debian13 has libfuse3-4 |
| 31 | + [ $os = "debian13" ] && sed -i 's/libfuse3-3/libfuse3-4/' packaging/debian/cvmfs/control* |
30 | 32 | if [ "$arch" = "riscv64" ] |
31 | 33 | then |
32 | 34 | # valgrind is not available (yet) for RISC-V |
33 | | - sed -i 's/, valgrind//' packaging/debian/cvmfs/control.in |
| 35 | + sed -i 's/, valgrind//' packaging/debian/cvmfs/control* |
34 | 36 | # for RISC-V we need to run autoreconf, see: |
35 | 37 | # https://github.com/cvmfs/cvmfs/pull/3446 |
36 | 38 | wget https://github.com/cvmfs/cvmfs/pull/3446.patch |
|
0 commit comments