From: Remi Gacogne Date: Wed, 11 Oct 2023 08:41:45 +0000 (+0200) Subject: dnsdist: Switch to our fork of h2o to mitigate http2 rapid reset X-Git-Tag: rec-5.0.0-alpha2~17^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=115db75920b73f07c356308df1b83ba296850e2a;p=thirdparty%2Fpdns.git dnsdist: Switch to our fork of h2o to mitigate http2 rapid reset --- diff --git a/builder-support/debian/dnsdist/debian-buster/control b/builder-support/debian/dnsdist/debian-buster/control index 624f518e52..f42fa0ad13 100644 --- a/builder-support/debian/dnsdist/debian-buster/control +++ b/builder-support/debian/dnsdist/debian-buster/control @@ -10,7 +10,6 @@ Build-Depends: debhelper (>= 10), libedit-dev, libfstrm-dev, libgnutls28-dev, - libh2o-evloop-dev, liblmdb-dev, libluajit-5.1-dev [!arm64 !s390x], liblua5.3-dev [arm64 s390x], diff --git a/builder-support/debian/dnsdist/debian-buster/rules b/builder-support/debian/dnsdist/debian-buster/rules index e9a2a8cf1a..04da6b44e2 100755 --- a/builder-support/debian/dnsdist/debian-buster/rules +++ b/builder-support/debian/dnsdist/debian-buster/rules @@ -36,8 +36,6 @@ override_dh_auto_clean: dh_auto_clean override_dh_auto_configure: - # LIBS has been added because Ubuntu Bionic and Cosmic don't have the fix for https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=908124 pulled in - LIBS='-lwslay' \ ./configure \ --host=$(DEB_HOST_GNU_TYPE) \ --build=$(DEB_BUILD_GNU_TYPE) \ @@ -61,7 +59,8 @@ override_dh_auto_configure: --with-ebpf \ --with-service-user='_dnsdist' \ --with-service-group='_dnsdist' \ - $(CONFIGURE_ARGS) + $(CONFIGURE_ARGS) \ + PKG_CONFIG_PATH=/opt/lib/pkgconfig override_dh_auto_build-arch: dh_auto_build -- V=1 diff --git a/builder-support/dockerfiles/Dockerfile.debbuild b/builder-support/dockerfiles/Dockerfile.debbuild index 46b315d74b..29f10e8e27 100644 --- a/builder-support/dockerfiles/Dockerfile.debbuild +++ b/builder-support/dockerfiles/Dockerfile.debbuild @@ -16,6 +16,12 @@ RUN mv pdns-recursor*.deb /dist; mv pdns-recursor*.ddeb /dist || true @ENDIF @IF [ -n "$M_dnsdist$M_all" ] +RUN mkdir /libh2o && cd /libh2o && \ + apt-get update && apt-get install -y cmake curl libssl-dev zlib1g-dev && \ + curl -L https://github.com/PowerDNS/h2o/archive/refs/tags/v2.2.6+pdns2.tar.gz | tar xz && \ + CFLAGS='-fPIC' cmake -DWITH_PICOTLS=off -DWITH_BUNDLED_SSL=off -DWITH_MRUBY=off -DCMAKE_INSTALL_PREFIX=/opt ./h2o-2.2.6-pdns2 && \ + make install + RUN builder/helpers/build-debs.sh dnsdist-${BUILDER_VERSION} RUN mv dnsdist*.deb /dist; mv dnsdist*.ddeb /dist || true diff --git a/builder-support/dockerfiles/Dockerfile.rpmbuild b/builder-support/dockerfiles/Dockerfile.rpmbuild index 82334e51f1..ee316caa0d 100644 --- a/builder-support/dockerfiles/Dockerfile.rpmbuild +++ b/builder-support/dockerfiles/Dockerfile.rpmbuild @@ -52,8 +52,8 @@ RUN touch /var/lib/rpm/* && if $(grep -q 'release 7' /etc/redhat-release); then # this is fine because --allowerasing is only there to deal with libcurl conflicting with libcurl-minimal on some el9 images RUN touch /var/lib/rpm/* && mkdir /libh2o && cd /libh2o && \ yum install -y --allowerasing curl libcurl openssl-devel cmake || yum install -y curl libcurl openssl-devel cmake && \ - curl -L https://github.com/h2o/h2o/archive/v2.2.6.tar.gz | tar xz && \ - CFLAGS='-fPIC' cmake -DWITH_PICOTLS=off -DWITH_BUNDLED_SSL=off -DWITH_MRUBY=off -DCMAKE_INSTALL_PREFIX=/opt ./h2o-2.2.6 && \ + curl -L https://github.com/PowerDNS/h2o/archive/refs/tags/v2.2.6+pdns2.tar.gz | tar xz && \ + CFLAGS='-fPIC' cmake -DWITH_PICOTLS=off -DWITH_BUNDLED_SSL=off -DWITH_MRUBY=off -DCMAKE_INSTALL_PREFIX=/opt ./h2o-2.2.6-pdns2 && \ make install RUN touch /var/lib/rpm/* && if $(grep -q 'release 7' /etc/redhat-release); then \