Commit d56633a3 authored by intrigeri's avatar intrigeri
Browse files

Fix Linux 4.14 headers installation with a fake linux-compiler-gcc-7-x86 package (refs: #14976).

parent 5b864570
......@@ -7,6 +7,17 @@ echo "Building dkms modules"
. /usr/share/amnesia/build/variables
# Import install_fake_package
. /usr/local/lib/tails-shell-library/build.sh
# Install gcc-6 and fake linux-compiler-gcc-7-x86
# (linux-headers-4.14+ depends on it, but Stretch hasn't GCC 7)
# XXX:Buster: remove this hack.
apt-get install --yes gcc-6
install_fake_package \
linux-compiler-gcc-7-x86 \
"$(apt-cache policy linux-compiler-gcc-7-x86 | awk '/ +Candidate:/ {print $2}')~0tails1"
# the -dkms package must be installed *after* dkms to be properly registered
apt-get install --yes build-essential dkms
......
......@@ -12,6 +12,7 @@ echo "Removing unwanted packages"
# - libgcc1 (apt depends on it)
# - cpp, cpp-* (big parts of GNOME depend on it)
apt-get --yes purge \
'^linux-compiler-*' \
'^linux-kbuild-*' \
'^linux-headers-*' \
build-essential debhelper dkms dpkg-dev \
......
Supports Markdown
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