1 |
aballier 13/08/27 21:00:58 |
2 |
|
3 |
Added: sam2p-0.49.1-gcc48.patch |
4 |
Log: |
5 |
Fix build with gcc 4.8, bug #463434 by Philipp |
6 |
|
7 |
(Portage version: 2.2.1/cvs/Linux x86_64, signed Manifest commit with key 160F534A) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 media-gfx/sam2p/files/sam2p-0.49.1-gcc48.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/sam2p/files/sam2p-0.49.1-gcc48.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/sam2p/files/sam2p-0.49.1-gcc48.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: sam2p-0.49.1-gcc48.patch |
16 |
=================================================================== |
17 |
Index: ccdep.pl |
18 |
=================================================================== |
19 |
--- ccdep.pl (revision 123) |
20 |
+++ ccdep.pl (revision 125) |
21 |
@@ -137,13 +137,20 @@ |
22 |
|
23 |
my @DS=find_ds(); |
24 |
my @DSQ=map{shq$_}@DS; |
25 |
-my $R="$GCCP -DOBJDEP -M -MG -E 2>&1 @DSQ"; |
26 |
-$R=backtick($R); |
27 |
+my $DIAG=" -fno-diagnostics-show-caret"; |
28 |
+my $Q="$GCCP -DOBJDEP$DIAG -M -MG -E 2>&1 @DSQ"; |
29 |
+my $R=backtick($Q); |
30 |
+if ($R=~/\berror: .*-fno-diagnostics-show-caret\b/) { |
31 |
+ # gcc-4.6 and earlier don't have this flag, and they fail. |
32 |
+ $Q=~s@ -fno-diagnostics-show-caret(?=\s)@@; |
33 |
+ $DIAG=""; |
34 |
+ $R=backtick($Q); |
35 |
+} |
36 |
|
37 |
if ($R!~/: warning: #warning\b/) { |
38 |
# config2.h:314:4: warning: #warning REQUIRES: c_lgcc3.o |
39 |
# Dat: g++-3.3 ignores #warning with -M -MG -E |
40 |
- $R.="\n".backtick("$GCCP -DOBJDEP -E 2>&1 >/dev/null @DSQ"); |
41 |
+ $R.="\n".backtick("$GCCP -DOBJDEP$DIAG -E 2>&1 >/dev/null @DSQ"); |
42 |
} |
43 |
|
44 |
## die $R; |
45 |
--- rule.hpp 2013-04-18 12:14:20.385333527 +0200 |
46 |
+++ rule.hpp 2013-04-18 12:14:35.818870070 +0200 |
47 |
@@ -88,7 +88,7 @@ |
48 |
PR_PNGAuto=15, |
49 |
PR_PNGAutoMaybe=25, |
50 |
PR_PNGAutoBadUnsigned=45, |
51 |
- PR_PNGAutoBadSigned=55, |
52 |
+ PR_PNGAutoBadSigned=55 |
53 |
END_STATIC_ENUM() |
54 |
pr_t Predictor; |