From: Vincent Bernat Date: Sun, 2 Feb 2020 13:11:44 +0000 (+0100) Subject: tests: provide a Dockerfile to build with wheezy X-Git-Tag: 1.0.5~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=69a0de1dc81a8d22832cd7caff28b8f7cb794803;p=thirdparty%2Flldpd.git tests: provide a Dockerfile to build with wheezy This is for testing with a really old userland. --- diff --git a/tests/Dockerfile.wheezy b/tests/Dockerfile.wheezy new file mode 100644 index 00000000..bf0aa28f --- /dev/null +++ b/tests/Dockerfile.wheezy @@ -0,0 +1,17 @@ +# Build on Wheezy. We use i386 because it's on amd64, it would require +# a kernel with vsyscalls enabled. +FROM i386/debian:wheezy + +RUN sed -i \ + -e 's/deb.debian.org/archive.debian.org/' \ + -e 's/security.debian.org/archive.debian.org/' \ + -e '/wheezy-updates/d' \ + /etc/apt/sources.list +RUN apt-get -qqy -o Acquire::Check-Valid-Until=false update +RUN apt-get -qqy install build-essential devscripts fakeroot + +COPY . /usr/src/lldpd +WORKDIR /usr/src/lldpd + +RUN mk-build-deps -i debian/control -t "apt-get -o Debug::pkgProblemResolver=yes -qqy" +RUN debian/rules build && fakeroot debian/rules binary