debian-devscripts: add hardening-check-obey-binutils-env-vars.patch

This commit is contained in:
Robert Scott 2023-02-13 00:20:17 +00:00
parent 6941b3b4a0
commit 2428000c66

View File

@ -1,4 +1,4 @@
{lib, stdenv, fetchurl, xz, dpkg
{lib, stdenv, fetchurl, fetchpatch, xz, dpkg
, libxslt, docbook_xsl, makeWrapper, writeShellScript
, python3Packages
, perlPackages, curl, gnupg, diffutils, nano, pkg-config, bash-completion, help2man
@ -19,6 +19,14 @@ in stdenv.mkDerivation rec {
hash = "sha256-j0fUVTS/lPKFdgeMhksiJz2+E5koB07IK2uEj55EWG0=";
};
patches = [
(fetchpatch {
name = "hardening-check-obey-binutils-env-vars.patch";
url = "https://github.com/Debian/devscripts/pull/2/commits/c6a018e0ef50a1b0cb4962a2f96dae7c6f21f1d4.patch";
hash = "sha256-UpS239JiAM1IYxNuJLdILq2h0xlR5t0Tzhj47xiMHww=";
})
];
postPatch = ''
substituteInPlace scripts/Makefile --replace /usr/share/dpkg ${dpkg}/share/dpkg
substituteInPlace scripts/debrebuild.pl --replace /usr/bin/perl ${perlPackages.perl}/bin/perl