Skip to content

Commit 90c0791

Browse files
Merge pull request #385 from the-snowwhite/fix_build_and_mksocfpga
Fix build and mksocfpga
2 parents 7b65086 + 41bbb56 commit 90c0791

2 files changed

Lines changed: 10 additions & 27 deletions

File tree

debian/buildsystem/Dockerfile

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,17 @@ RUN apt-get update && \
118118
apt-get clean;
119119

120120
# Kitware is publishing pre-built binaries only for amd64 and arm64 architectures!
121+
RUN curl \
122+
--connect-timeout 30 \
123+
--max-time 30 \
124+
--retry 30 \
125+
--retry-delay 5 \
126+
--retry-max-time 40 \
127+
https://api.github.com/repos/kitware/cmake/releases/latest --output /tmp/parsefile --silent
128+
121129
RUN curl -1vLf \
122-
$(curl -s https://api.github.com/repos/kitware/cmake/releases/latest | \
123-
jq -r --arg FILE "cmake-\d{1,}\.\d{1,}\.\d{1,}(-.{1,})?-linux-$(dpkg-architecture -qDEB_BUILD_GNU_CPU)\.sh" \
124-
'.assets | .[] | select(.name? | match($FILE)) | .browser_download_url') \
130+
$( jq -r --arg FILE "cmake-\d{1,}\.\d{1,}\.\d{1,}(-.{1,})?-linux-$(dpkg-architecture -qDEB_BUILD_GNU_CPU)\.sh" \
131+
'.assets | .[] | select(.name? | match($FILE)) | .browser_download_url' /tmp/parsefile) \
125132
--output /tmp/cmake.sh && \
126133
bash /tmp/cmake.sh --skip-license --prefix=/usr/local
127134

debian/buildsystem/debian-distro-settings.json

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,6 @@
1717
"distributionCodename": "Focal",
1818
"baseImage": "ubuntu:focal",
1919
"releaseNumber": 20.04
20-
},
21-
{
22-
"distributionID": "Ubuntu",
23-
"distributionCodename": "Hirsute",
24-
"baseImage": "ubuntu:hirsute",
25-
"releaseNumber": 21.04
26-
},
27-
{
28-
"distributionID": "Ubuntu",
29-
"distributionCodename": "Jammy",
30-
"baseImage": "ubuntu:jammy",
31-
"releaseNumber": 22.04
3220
}
3321
],
3422
"allowedCombinations": [
@@ -52,10 +40,6 @@
5240
"osVersionNumber": 20.04,
5341
"architecture": "amd64"
5442
},
55-
{
56-
"osVersionNumber": 22.04,
57-
"architecture": "amd64"
58-
},
5943
{
6044
"osVersionNumber": 18.04,
6145
"architecture": "armhf"
@@ -68,10 +52,6 @@
6852
"osVersionNumber": 20.04,
6953
"architecture": "armhf"
7054
},
71-
{
72-
"osVersionNumber": 22.04,
73-
"architecture": "armhf"
74-
},
7555
{
7656
"osVersionNumber": 18.04,
7757
"architecture": "arm64"
@@ -83,10 +63,6 @@
8363
{
8464
"osVersionNumber": 20.04,
8565
"architecture": "arm64"
86-
},
87-
{
88-
"osVersionNumber": 22.04,
89-
"architecture": "arm64"
9066
}
9167
],
9268
"imageNameRoot": "machinekit-hal-@DISTRIBUTION@-builder-v.@TAG@"

0 commit comments

Comments
 (0)