Commit 25556fc2 authored by Tails developers's avatar Tails developers
Browse files

Generate fake gcc package on the fly

parent 648f042f
......@@ -20,9 +20,26 @@ apt-get install --yes build-essential dkms dpatch
# /usr/src/linux-headers-3.*-common/scripts/gcc-version.sh
# is the one who says they should be run using that version.
apt-get install --yes gcc-${available_gcc_version}
# Install custom fake GCC-4.8 package required by linux-headers-3.14
apt-get install --yes gcc-${wanted_gcc_version}
ln -s /usr/bin/gcc-${available_gcc_version} /usr/bin/gcc-${wanted_gcc_version}
# Create and install fake GCC package
apt-get install --yes equivs
cat > /root/gcc-${wanted_gcc_version}.control << EOF
Section: devel
Priority: optional
Homepage: https://tails.boum.org/
Standards-Version: 3.6.2
Package: gcc-${wanted_gcc_version}
Maintainer: Tails developers <amnesia@boum.org>
Architecture: all
Description: (Fake) GNU C compiler
Work around the fact that our Linux headers depend on gcc-${wanted_gcc_version},
which is unavailable on Wheezy.
EOF
cd /root ; equivs-build /root/gcc-${wanted_gcc_version}.control
dpkg -i gcc-${wanted_gcc_version}_1.0_all.deb
ln -sf /usr/bin/gcc-${available_gcc_version} /usr/bin/gcc-${wanted_gcc_version}
rm /root/gcc-${wanted_gcc_version}.control /root/gcc-${wanted_gcc_version}_1.0_all.deb
# Versions of the module prior to 4.2 do not built on 3.8 and later [Debian #704130].
# Install version from Wheezy backports.
......
......@@ -21,7 +21,7 @@ apt-get --yes purge \
make \
module-assistant \
po-debconf \
virtualbox-guest-dkms
equivs virtualbox-guest-dkms
### Deinstall a few unwanted packages that were pulled by tasksel
### since they have Priority: standard.
......
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