]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Switch to our fork of h2o to mitigate http2 rapid reset
authorRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 11 Oct 2023 08:41:45 +0000 (10:41 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 11 Oct 2023 09:46:44 +0000 (11:46 +0200)
builder-support/debian/dnsdist/debian-buster/control
builder-support/debian/dnsdist/debian-buster/rules
builder-support/dockerfiles/Dockerfile.debbuild
builder-support/dockerfiles/Dockerfile.rpmbuild

index 624f518e52b0c3acda2a192d7d9d514bcd773ec8..f42fa0ad13e9f651230a768bd50eba291a25616d 100644 (file)
@@ -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],
index e9a2a8cf1a36a93b8cafa9ed314a327b0acd3e83..04da6b44e2016e9a2d55fb93172f85f25e408830 100755 (executable)
@@ -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
index 46b315d74b0ac2e3cce51cc64759139ca819b9e4..29f10e8e27ebff1da166548d0acad3e955164828 100644 (file)
@@ -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
index 82334e51f1d206e7773ac16deae437ae377f6606..ee316caa0d1c4305a94c7093300300587c6ebe48 100644 (file)
@@ -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 \