about summary refs log tree commit diff
path: root/pkgs/os-specific/gnu
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2011-06-18 16:36:17 +0000
committerLudovic Courtès <ludo@gnu.org>2011-06-18 16:36:17 +0000
commit9055a9b80382a9ee7c915f757c2f617198b50c6e (patch)
treedc8694456ba3ca769617a5255ba5d4f469dff1bb /pkgs/os-specific/gnu
parent7aa65babe8644482be49c9cc9c4598c7745e2d59 (diff)
downloadnixlib-9055a9b80382a9ee7c915f757c2f617198b50c6e.tar
nixlib-9055a9b80382a9ee7c915f757c2f617198b50c6e.tar.gz
nixlib-9055a9b80382a9ee7c915f757c2f617198b50c6e.tar.bz2
nixlib-9055a9b80382a9ee7c915f757c2f617198b50c6e.tar.lz
nixlib-9055a9b80382a9ee7c915f757c2f617198b50c6e.tar.xz
nixlib-9055a9b80382a9ee7c915f757c2f617198b50c6e.tar.zst
nixlib-9055a9b80382a9ee7c915f757c2f617198b50c6e.zip
GNU MIG: Add the `noyywrap' option for Flex.
svn path=/nixpkgs/trunk/; revision=27494
Diffstat (limited to 'pkgs/os-specific/gnu')
-rw-r--r--pkgs/os-specific/gnu/mig/default.nix4
-rw-r--r--pkgs/os-specific/gnu/mig/noyywrap.patch12
2 files changed, 14 insertions, 2 deletions
diff --git a/pkgs/os-specific/gnu/mig/default.nix b/pkgs/os-specific/gnu/mig/default.nix
index 668229b101f6..480b349297a5 100644
--- a/pkgs/os-specific/gnu/mig/default.nix
+++ b/pkgs/os-specific/gnu/mig/default.nix
@@ -13,12 +13,12 @@ stdenv.mkDerivation {
     inherit rev;
   };
 
+  patches = [ ./noyywrap.patch ];
+
   buildInputs = [ autoconf automake flex bison machHeaders ];
 
   preConfigure = "autoreconf -vfi";
 
-  configureFlags = [ "--build=i586-pc-gnu" ];
-
   doCheck = true;
 
   meta = {
diff --git a/pkgs/os-specific/gnu/mig/noyywrap.patch b/pkgs/os-specific/gnu/mig/noyywrap.patch
new file mode 100644
index 000000000000..40ca6171f64b
--- /dev/null
+++ b/pkgs/os-specific/gnu/mig/noyywrap.patch
@@ -0,0 +1,12 @@
+Fix undefined reference to `yywrap'.
+
+diff --git a/lexxer.l b/lexxer.l
+index 9725d0b..15264bc 100644
+--- a/lexxer.l
++++ b/lexxer.l
+@@ -1,4 +1,5 @@
+ %option nounput
++%option noyywrap
+ 
+ %k 10000
+ %n 5000