python2Packages.nixpart0/multipath_tools: patch for glibc >= 2.28
This commit is contained in:
parent
0776d9043c
commit
eb696ef672
2 changed files with 14 additions and 2 deletions
|
@ -32,7 +32,7 @@ let
|
|||
|
||||
multipath_tools = import ./multipath-tools.nix {
|
||||
inherit stdenv fetchurl lvm2;
|
||||
inherit (pkgs) readline systemd libaio gzip;
|
||||
inherit (pkgs) fetchpatch readline systemd libaio gzip;
|
||||
};
|
||||
|
||||
parted = import ./parted.nix {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# FIXME: unify with pkgs/os-specific/linux/multipath-tools/default.nix.
|
||||
|
||||
{ stdenv, fetchurl, lvm2, libaio, gzip, readline, systemd }:
|
||||
{ stdenv, fetchurl, fetchpatch, lvm2, libaio, gzip, readline, systemd }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "multipath-tools-0.4.9";
|
||||
|
@ -10,6 +10,18 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "04n7kazp1zrlqfza32phmqla0xkcq4zwn176qff5ida4a60whi4d";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Fix build with glibc >= 2.28
|
||||
# https://github.com/NixOS/nixpkgs/issues/86403
|
||||
(fetchpatch {
|
||||
url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/sys-fs/multipath-tools/files/multipath-tools-0.6.4-sysmacros.patch?id=eb22b954c177b5c1e2b6ed5c7cdd02f40f40d757";
|
||||
sha256 = "1an0cgmz7g03c4qjimhpm9fcf2iswws18lwqxi688k87qm3xb5qd";
|
||||
excludes = [
|
||||
"libmultipath/util.c"
|
||||
];
|
||||
})
|
||||
];
|
||||
|
||||
sourceRoot = ".";
|
||||
|
||||
buildInputs = [ lvm2 libaio readline gzip ];
|
||||
|
|
Loading…
Reference in a new issue