]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
builder-support: Prepare to make Debian-style source artifacts 12628/head
authorKevin P. Fleming <kevin@km6g.us>
Wed, 8 Mar 2023 14:28:38 +0000 (09:28 -0500)
committerKevin P. Fleming <kevin@km6g.us>
Wed, 8 Mar 2023 14:28:38 +0000 (09:28 -0500)
Debian requires an 'orig' tarball to be part of the source artifact
set (along with the .dsc and .debian.tar.xz files), so the
debbuild-prepare Dockerfile will now make a copy of the sdist-provided
tarball with the proper name.

builder-support/dockerfiles/Dockerfile.debbuild-prepare

index 2c8626e1e4b5ad5605750c4311a00c2b5aa94f1a..7f03177fe68435bf57bd1046ff8254cad7d98bf3 100644 (file)
@@ -17,12 +17,18 @@ COPY --from=sdist /sdist /sdist
 
 @IF [ -n "$M_authoritative$M_all" ]
 RUN tar xvf /sdist/pdns-${BUILDER_VERSION}.tar.bz2
+# create copy of source tarball with name that dpkg-source requires
+RUN cp /sdist/pdns-${BUILDER_VERSION}.tar.bz2 pdns_${BUILDER_VERSION}.orig.tar.bz2
 @ENDIF
 
 @IF [ -n "$M_recursor$M_all" ]
 RUN tar xvf /sdist/pdns-recursor-${BUILDER_VERSION}.tar.bz2
+# create copy of source tarball with name that dpkg-source requires
+RUN cp /sdist/pdns-recursor-${BUILDER_VERSION}.tar.bz2 pdns-recursor_${BUILDER_VERSION}.orig.tar.bz2
 @ENDIF
 
 @IF [ -n "$M_dnsdist$M_all" ]
 RUN tar xvf /sdist/dnsdist-${BUILDER_VERSION}.tar.bz2
+# create copy of source tarball with name that dpkg-source requires
+RUN cp /sdist/dnsdist-${BUILDER_VERSION}.tar.bz2 dnsdist_${BUILDER_VERSION}.orig.tar.bz2
 @ENDIF