apt-cacher-ng: fix build for glibc >= 2.38
This commit is contained in:
parent
a845c1b2d6
commit
dda958b638
@ -1,8 +1,10 @@
|
|||||||
{ lib, stdenv
|
{ lib
|
||||||
|
, stdenv
|
||||||
, bzip2
|
, bzip2
|
||||||
, cmake
|
, cmake
|
||||||
, doxygen
|
, doxygen
|
||||||
, fetchurl
|
, fetchurl
|
||||||
|
, fetchpatch
|
||||||
, fuse
|
, fuse
|
||||||
, libevent
|
, libevent
|
||||||
, xz
|
, xz
|
||||||
@ -23,6 +25,15 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "0pwsj9rf6a6q7cnfbpcrfq2gjcy7sylqzqqr49g2zi39lrrh8533";
|
sha256 = "0pwsj9rf6a6q7cnfbpcrfq2gjcy7sylqzqqr49g2zi39lrrh8533";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
# this patch fixes the build for glibc >= 2.38
|
||||||
|
(fetchpatch {
|
||||||
|
name = "strlcpy-glibc238.patch";
|
||||||
|
url = "https://bugs.debian.org/cgi-bin/bugreport.cgi?att=0;bug=1052360;msg=10";
|
||||||
|
hash = "sha256-uhQj+ZcHCV36Tm0pF/+JG59bSaRdTZCrMcKL3YhZTk8=";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake doxygen pkg-config ];
|
nativeBuildInputs = [ cmake doxygen pkg-config ];
|
||||||
buildInputs = [ bzip2 fuse libevent xz openssl systemd tcp_wrappers zlib c-ares ];
|
buildInputs = [ bzip2 fuse libevent xz openssl systemd tcp_wrappers zlib c-ares ];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user