Commit 4f8b50af authored by anonym's avatar anonym
Browse files

Use the same version for the fake linux-compiler-gcc-7-x86 as the kernel.

The `apt-cache policy` approach doesn't work for tagged
snapshots (e.g. when building releases) since they include only the
exact packages we use.

Refs: #14976
parent 2c984b9b
......@@ -15,9 +15,13 @@ echo "Building dkms modules"
# (linux-headers-4.14+ depends on it, but Stretch hasn't GCC 7)
# XXX:Buster: remove this hack.
apt-get install --yes gcc-6
dpkg-query --showformat '${Version}\n' --show 'linux-image-*-amd64' \
| sort --version-sort | tail -n1
install_fake_package \
linux-compiler-gcc-7-x86 \
"$(apt-cache policy linux-compiler-gcc-7-x86 | awk '/ +Candidate:/ {print $2}')~0tails1"
ln -s /usr/bin/gcc-6 /usr/bin/gcc-7
# Any -dkms package must be installed *after* dkms to be properly registered
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment