From 0eefe9bc629388f60eaad99d0841cf1aae8592a2 Mon Sep 17 00:00:00 2001 From: Jörg Thalheim Date: Fri, 24 Feb 2017 12:39:19 +0000 Subject: lxc: fix glibc 2.25 incompatibility --- pkgs/os-specific/linux/lxc/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'pkgs/os-specific/linux/lxc') diff --git a/pkgs/os-specific/linux/lxc/default.nix b/pkgs/os-specific/linux/lxc/default.nix index ccee2a18a90..bf3a05f1116 100644 --- a/pkgs/os-specific/linux/lxc/default.nix +++ b/pkgs/os-specific/linux/lxc/default.nix @@ -33,6 +33,14 @@ stdenv.mkDerivation rec { XML_CATALOG_FILES = "${docbook_xml_dtd_45}/xml/dtd/docbook/catalog.xml"; + # FIXME + # glibc 2.25 moved major()/minor() to . + # this commit should detect this: https://github.com/lxc/lxc/pull/1388/commits/af6824fce9c9536fbcabef8d5547f6c486f55fdf + # However autotools checks if mkdev is still defined in runs before + # checking if major()/minor() is defined there. The mkdev check succeeds with + # a warning and the check which should set MAJOR_IN_SYSMACROS is skipped. + NIX_CFLAGS_COMPILE = [ "-DMAJOR_IN_SYSMACROS" ]; + configureFlags = [ "--localstatedir=/var" "--sysconfdir=/etc" -- cgit 1.4.1