Skip to content

Commit

Permalink
daemontools: fix build with gcc14 (NixOS#368939)
Browse files Browse the repository at this point in the history
  • Loading branch information
emilazy authored Dec 29, 2024
2 parents 7355705 + 91be9cf commit e930a4d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions pkgs/by-name/da/daemontools/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,13 @@ stdenv.mkDerivation rec {
sha256 = "07scvw88faxkscxi91031pjkpccql6wspk4yrlnsbrrb5c0kamd5";
};

patches = [ ./fix-nix-usernamespace-build.patch ];
patches = [
(fetchurl {
url = "https://salsa.debian.org/debian/daemontools/-/raw/1844f0e704ab66844da14354a16ea068eba0403f/debian/patches/0005-fix-ftbfs.patch";
hash = "sha256-Q7t0kwajjTW2Ms5m44E4spBwHi5Xi6Y39FQVsawr8LA=";
})
./fix-nix-usernamespace-build.patch
];

outputs = [
"out"
Expand All @@ -37,7 +43,7 @@ stdenv.mkDerivation rec {
sed -i -e '1 s_$_ -include ${glibc.dev}/include/errno.h_' src/conf-cc
substituteInPlace src/Makefile \
--replace '/bin/sh' '${bash}/bin/bash -oxtrace'
--replace-fail '/bin/sh' '${bash}/bin/bash -oxtrace'
sed -i -e "s_^PATH=.*_PATH=$src/daemontools-${version}/compile:''${PATH}_" src/rts.tests
Expand Down

0 comments on commit e930a4d

Please sign in to comment.