luit: configure --disable-selective-werror

Compiling luit failed with "implicit declaration of function
'posix_openpt'".  Following suggestion at
https://bugs.freedesktop.org/show_bug.cgi?id=47792 to fix it.
This commit is contained in:
James Cook 2013-07-09 21:34:11 -07:00 committed by Vladimír Čunát
parent dc8d794208
commit d8dd23e285
2 changed files with 7 additions and 1 deletions

View file

@ -926,7 +926,7 @@ let
url = mirror://xorg/X11R7.7/src/everything/luit-1.1.1.tar.bz2;
sha256 = "0dn694mk56x6hdk6y9ylx4f128h5jcin278gnw2gb807rf3ygc1h";
};
buildInputs = [pkgconfig libfontenc ];
buildInputs = [pkgconfig libfontenc ]; configureFlags = "--disable-selective-werror";
})) // {inherit libfontenc ;};
makedepend = (stdenv.mkDerivation ((if overrides ? makedepend then overrides.makedepend else x: x) {

View file

@ -177,6 +177,12 @@ while (<>) {
$extraAttrs{$pkg} = " configureFlags = \"--with-fontrootdir=\$(out)/lib/X11/fonts\"; ";
}
if ($tarball =~ /\/luit-/) {
# See https://bugs.freedesktop.org/show_bug.cgi?id=47792
# Once the bug is fixed upstream, this can be removed.
$extraAttrs{$pkg} = " configureFlags = \"--disable-selective-werror\"; ";
}
sub process {
my $requires = shift;
my $s = shift;