Skip to content

Commit

Permalink
pythonPackages.libasyncns: fix build with glibc-2.25
Browse files Browse the repository at this point in the history
  • Loading branch information
fpletz committed Feb 26, 2017
1 parent b2a4eb8 commit 5670d96
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ buildPythonPackage rec {
sha256 = "1q4l71b2h9q756x4pjynp6kczr2d8c1jvbdp982hf7xzv7w5gxqg";
};

patches = [ ./libasyncns-fix-res-consts.patch ];

buildInputs = [ libasyncns ];
nativeBuildInputs = [ pkgconfig ];
doCheck = false; # requires network access
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
diff --git a/libasyncns.c b/libasyncns.c
index 99a73de..85709b0 100644
--- a/libasyncns.c
+++ b/libasyncns.c
@@ -134,9 +134,8 @@ PyMODINIT_FUNC initlibasyncns(void)
ADDNSCONST(ns_t_mailb);
ADDNSCONST(ns_t_maila);
ADDNSCONST(ns_t_any);
- ADDNSCONST(ns_t_zxfr);
ADDNSCONST(ns_t_max);

ADDNSCONST(ns_c_invalid);
ADDNSCONST(ns_c_in);
ADDNSCONST(ns_c_2);
2 changes: 1 addition & 1 deletion pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28176,7 +28176,7 @@ EOF
buildInputs = with self; [ pytest pkgs.glibcLocales ];
};

libasyncns = callPackage ../development/python-modules/libasyncns.nix {
libasyncns = callPackage ../development/python-modules/libasyncns {
inherit (pkgs) libasyncns pkgconfig;
};

Expand Down

0 comments on commit 5670d96

Please sign in to comment.