mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 00:43:20 +00:00
tcp_wrappers: 7.6.q-26 -> 7.6.q-33
Fixes building with GCC 14. postPatch is no longer necessary to avoid a build failure on musl.
This commit is contained in:
parent
2de4cdb27a
commit
68652a1fa9
@ -2,7 +2,7 @@
|
||||
|
||||
let
|
||||
vanillaVersion = "7.6.q";
|
||||
patchLevel = "26";
|
||||
patchLevel = "33";
|
||||
in stdenv.mkDerivation rec {
|
||||
pname = "tcp-wrappers";
|
||||
version = "${vanillaVersion}-${patchLevel}";
|
||||
@ -14,7 +14,7 @@ in stdenv.mkDerivation rec {
|
||||
|
||||
debian = fetchurl {
|
||||
url = "mirror://debian/pool/main/t/tcp-wrappers/tcp-wrappers_${version}.debian.tar.xz";
|
||||
sha256 = "1dcdhi9lwzv7g19ggwxms2msq9fy14rl09rjqb10hwv0jix7z8j8";
|
||||
hash = "sha256-Lykjyu4hKDS/DqQ8JAFhKDffHrbJ9W1gjBKNpdaNRew=";
|
||||
};
|
||||
|
||||
prePatch = ''
|
||||
@ -28,11 +28,6 @@ in stdenv.mkDerivation rec {
|
||||
# Fix __BEGIN_DECLS usage (even if it wasn't non-standard, this doesn't include sys/cdefs.h)
|
||||
patches = [ ./cdecls.patch ];
|
||||
|
||||
postPatch = lib.optionalString stdenv.hostPlatform.isMusl ''
|
||||
substituteInPlace Makefile \
|
||||
--replace '-DNETGROUP' '-DUSE_GETDOMAIN'
|
||||
'';
|
||||
|
||||
buildInputs = [ libnsl ];
|
||||
|
||||
makeFlags = [ "REAL_DAEMON_DIR=$(out)/bin" "linux" "AR:=$(AR)" ];
|
||||
|
Loading…
Reference in New Issue
Block a user