Skip to content

Commit

Permalink
python2Packages.nixpart0/multipath_tools: patch for glibc >= 2.28
Browse files Browse the repository at this point in the history
  • Loading branch information
pbogdan committed Jun 10, 2020
1 parent 0776d90 commit eb696ef
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkgs/tools/filesystems/nixpart/0.4/default.nix
Expand Up @@ -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 {
Expand Down
14 changes: 13 additions & 1 deletion pkgs/tools/filesystems/nixpart/0.4/multipath-tools.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";
Expand All @@ -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 ];
Expand Down

0 comments on commit eb696ef

Please sign in to comment.