Skip to content

Commit

Permalink
flex: fix with glibc-2.26
Browse files Browse the repository at this point in the history
It caused segfaults, e.g. when building doxygen.
  • Loading branch information
vcunat committed Nov 6, 2017
1 parent 6c3bae5 commit 6535f0b
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion pkgs/development/tools/parsing/flex/default.nix
@@ -1,4 +1,6 @@
{ stdenv, fetchurl, bison, m4 }:
{ stdenv, fetchurl, bison, m4
, fetchpatch, autoreconfHook, help2man
}:

stdenv.mkDerivation rec {
name = "flex-${version}";
Expand All @@ -9,6 +11,14 @@ stdenv.mkDerivation rec {
sha256 = "15g9bv236nzi665p9ggqjlfn4dwck5835vf0bbw2cz7h5c1swyp8";
};

patches = [(fetchpatch {
name = "glibc-2.26.patch";
url = "https://raw.githubusercontent.com/lede-project/source/0fb14a2b1ab2f82c"
+ "/tools/flex/patches/200-build-AC_USE_SYSTEM_EXTENSIONS-in-configure.ac.patch";
sha256 = "1aarhcmz7mfrgh15pkj6f7ikxa2m0mllw1i1vscsf1kw5d05lw6f";
})];
nativeBuildInputs = [ autoreconfHook help2man ];

buildInputs = [ bison ];

propagatedBuildInputs = [ m4 ];
Expand Down

0 comments on commit 6535f0b

Please sign in to comment.