From: | "Hans de Graaff (graaff)" <graaff@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in dev-ruby/gherkin/files: gherkin-2.3.10-no-werror.patch |
Date: | Thu, 02 Jun 2011 09:52:58 |
Message-Id: | 20110602095249.37C0820057@flycatcher.gentoo.org |
1 | graaff 11/06/02 09:52:49 |
2 | |
3 | Added: gherkin-2.3.10-no-werror.patch |
4 | Log: |
5 | Don't use -Werror during compilation. Fixes bug 369639. |
6 | |
7 | (Portage version: 2.1.9.42/cvs/Linux x86_64) |
8 | |
9 | Revision Changes Path |
10 | 1.1 dev-ruby/gherkin/files/gherkin-2.3.10-no-werror.patch |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/gherkin/files/gherkin-2.3.10-no-werror.patch?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/gherkin/files/gherkin-2.3.10-no-werror.patch?rev=1.1&content-type=text/plain |
14 | |
15 | Index: gherkin-2.3.10-no-werror.patch |
16 | =================================================================== |
17 | commit 1a46a428b4c92982124a8081623db9d56f6a28d7 |
18 | Author: Hans de Graaff <hans@××××××××.org> |
19 | Date: Thu Jun 2 11:46:22 2011 +0200 |
20 | |
21 | Don't use -Werror in production code. |
22 | |
23 | Using -Werror will break compilation when new versions of gcc are |
24 | introduced since new warnings are added for every new version. |
25 | |
26 | diff --git a/tasks/compile.rake b/tasks/compile.rake |
27 | index 57cd90f..01e9b55 100755 |
28 | --- a/tasks/compile.rake |
29 | +++ b/tasks/compile.rake |
30 | @@ -72,7 +72,7 @@ langs.each do |i18n| |
31 | io.write(<<-EOF) |
32 | require 'mkmf' |
33 | CONFIG['warnflags'].gsub!(/-Wshorten-64-to-32/, '') if CONFIG['warnflags'] |
34 | -$CFLAGS << ' -O0 -Wall -Werror' if CONFIG['CC'] =~ /gcc/ |
35 | +$CFLAGS << ' -O0 -Wall' if CONFIG['CC'] =~ /gcc/ |
36 | dir_config("gherkin_lexer_#{i18n.underscored_iso_code}") |
37 | have_library("c", "main") |
38 | create_makefile("gherkin_lexer_#{i18n.underscored_iso_code}") |