diff options
author | marino <marino@pkgsrc.org> | 2012-10-12 08:06:25 +0000 |
---|---|---|
committer | marino <marino@pkgsrc.org> | 2012-10-12 08:06:25 +0000 |
commit | da604f2b06b6026d9c551bccad2c5cceffb09282 (patch) | |
tree | 80f53e2f40598679e9c066c0b91bd1d8df7cefb5 /security/mit-krb5 | |
parent | d2151e003ff1786aca55e5825827285fa095bc2e (diff) | |
download | pkgsrc-da604f2b06b6026d9c551bccad2c5cceffb09282.tar.gz |
security/mit-krb5: Fix build for gcc 4.7
Generated file didn't pass -Werror check on gcc4.7. The problem is
well-known and already fixed on the current version of mit-krb5. The
patch added here was taken from upstream.
No revbump necessary, won't change binary on systems that already built it.
Diffstat (limited to 'security/mit-krb5')
-rw-r--r-- | security/mit-krb5/distinfo | 4 | ||||
-rw-r--r-- | security/mit-krb5/patches/patch-lib_krb5_krb_deltat.c | 192 | ||||
-rw-r--r-- | security/mit-krb5/patches/patch-lib_krb5_krb_x-deltat.y | 14 |
3 files changed, 209 insertions, 1 deletions
diff --git a/security/mit-krb5/distinfo b/security/mit-krb5/distinfo index c2e35480581..e6f2bb8f8ec 100644 --- a/security/mit-krb5/distinfo +++ b/security/mit-krb5/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.36 2012/08/20 08:16:26 adam Exp $ +$NetBSD: distinfo,v 1.37 2012/10/12 08:06:25 marino Exp $ SHA1 (krb5-1.10.3-signed.tar) = 04ab9837e5d1958158bcb30bd6480201089a0cbb RMD160 (krb5-1.10.3-signed.tar) = a1c370c8d39106e8e27651f78520e1cc93154731 @@ -19,4 +19,6 @@ SHA1 (patch-ci) = 4e310f0a4dfe27cf94d0e63d623590691b6c5970 SHA1 (patch-cj) = 78342f649f8e9d3a3b5a4f83e65b6c46f589586b SHA1 (patch-ck) = 37bfef80329f8ae0fb35c35e70032a0040ba5591 SHA1 (patch-lib_krb5_asn.1_asn1buf.h) = a1e46ca9256aea4facc1d41841b1707b044a69e7 +SHA1 (patch-lib_krb5_krb_deltat.c) = 149f4301d2a2ceff17a038c318c2f2f64a2621e4 +SHA1 (patch-lib_krb5_krb_x-deltat.y) = 7857c9f374d747f494ebb248f34a17599ccf791f SHA1 (patch-util_k5ev_verto-k5ev.c) = e8f78ec46543793b284c321a6b7362af9f527489 diff --git a/security/mit-krb5/patches/patch-lib_krb5_krb_deltat.c b/security/mit-krb5/patches/patch-lib_krb5_krb_deltat.c new file mode 100644 index 00000000000..448355f8c3d --- /dev/null +++ b/security/mit-krb5/patches/patch-lib_krb5_krb_deltat.c @@ -0,0 +1,192 @@ +$NetBSD: patch-lib_krb5_krb_deltat.c,v 1.1 2012/10/12 08:06:25 marino Exp $ + +Required for gcc 4.7 (taken from upstream) + +--- lib/krb5/krb/deltat.c.orig 2012-08-08 22:27:56.000000000 +0000 ++++ lib/krb5/krb/deltat.c +@@ -77,6 +77,7 @@ + #ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wuninitialized" ++#pragma GCC diagnostic ignored "-Wmaybe-uninitialized" + #endif + + #include <ctype.h> +@@ -163,7 +164,7 @@ static int yyparse (void *); + + + /* Line 189 of yacc.c */ +-#line 167 "deltat.c" ++#line 168 "deltat.c" + + /* Enabling traces. */ + #ifndef YYDEBUG +@@ -204,12 +205,12 @@ typedef union YYSTYPE + { + + /* Line 214 of yacc.c */ +-#line 134 "x-deltat.y" ++#line 135 "x-deltat.y" + int val; + + + /* Line 214 of yacc.c */ +-#line 213 "deltat.c" ++#line 214 "deltat.c" + } YYSTYPE; + # define YYSTYPE_IS_TRIVIAL 1 + # define yystype YYSTYPE /* obsolescent; will be withdrawn */ +@@ -221,7 +222,7 @@ typedef union YYSTYPE + + + /* Line 264 of yacc.c */ +-#line 225 "deltat.c" ++#line 226 "deltat.c" + + #ifdef short + # undef short +@@ -512,9 +513,9 @@ static const yytype_int8 yyrhs[] = + /* YYRLINE[YYN] -- source line where rule number YYN was defined. */ + static const yytype_uint8 yyrline[] = + { +- 0, 145, 145, 146, 146, 147, 147, 148, 148, 149, +- 150, 152, 153, 154, 155, 156, 157, 158, 159, 163, +- 164, 167, 168, 171, 172 ++ 0, 146, 146, 147, 147, 148, 148, 149, 149, 150, ++ 151, 153, 154, 155, 156, 157, 158, 159, 160, 164, ++ 165, 168, 169, 172, 173 + }; + #endif + +@@ -1442,84 +1443,84 @@ yyreduce: + case 6: + + /* Line 1464 of yacc.c */ +-#line 147 "x-deltat.y" ++#line 148 "x-deltat.y" + { (yyval.val) = - (yyvsp[(2) - (2)].val); ;} + break; + + case 9: + + /* Line 1464 of yacc.c */ +-#line 149 "x-deltat.y" ++#line 150 "x-deltat.y" + { (yyval.val) = (yyvsp[(2) - (2)].val); ;} + break; + + case 10: + + /* Line 1464 of yacc.c */ +-#line 150 "x-deltat.y" ++#line 151 "x-deltat.y" + { YYERROR; ;} + break; + + case 11: + + /* Line 1464 of yacc.c */ +-#line 152 "x-deltat.y" ++#line 153 "x-deltat.y" + { DO ((yyvsp[(1) - (3)].val), 0, 0, (yyvsp[(3) - (3)].val)); ;} + break; + + case 12: + + /* Line 1464 of yacc.c */ +-#line 153 "x-deltat.y" ++#line 154 "x-deltat.y" + { DO ( 0, (yyvsp[(1) - (3)].val), 0, (yyvsp[(3) - (3)].val)); ;} + break; + + case 13: + + /* Line 1464 of yacc.c */ +-#line 154 "x-deltat.y" ++#line 155 "x-deltat.y" + { DO ( 0, 0, (yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val)); ;} + break; + + case 14: + + /* Line 1464 of yacc.c */ +-#line 155 "x-deltat.y" ++#line 156 "x-deltat.y" + { DO ( 0, 0, 0, (yyvsp[(1) - (2)].val)); ;} + break; + + case 15: + + /* Line 1464 of yacc.c */ +-#line 156 "x-deltat.y" ++#line 157 "x-deltat.y" + { DO ((yyvsp[(1) - (7)].val), (yyvsp[(3) - (7)].val), (yyvsp[(5) - (7)].val), (yyvsp[(7) - (7)].val)); ;} + break; + + case 16: + + /* Line 1464 of yacc.c */ +-#line 157 "x-deltat.y" ++#line 158 "x-deltat.y" + { DO ( 0, (yyvsp[(1) - (5)].val), (yyvsp[(3) - (5)].val), (yyvsp[(5) - (5)].val)); ;} + break; + + case 17: + + /* Line 1464 of yacc.c */ +-#line 158 "x-deltat.y" ++#line 159 "x-deltat.y" + { DO ( 0, (yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val), 0); ;} + break; + + case 18: + + /* Line 1464 of yacc.c */ +-#line 159 "x-deltat.y" ++#line 160 "x-deltat.y" + { DO ( 0, 0, 0, (yyvsp[(1) - (1)].val)); ;} + break; + + case 20: + + /* Line 1464 of yacc.c */ +-#line 164 "x-deltat.y" ++#line 165 "x-deltat.y" + { if (HOUR_NOT_OK((yyvsp[(1) - (3)].val))) YYERROR; + DO_SUM((yyval.val), (yyvsp[(1) - (3)].val) * 3600, (yyvsp[(3) - (3)].val)); ;} + break; +@@ -1527,7 +1528,7 @@ yyreduce: + case 22: + + /* Line 1464 of yacc.c */ +-#line 168 "x-deltat.y" ++#line 169 "x-deltat.y" + { if (MIN_NOT_OK((yyvsp[(1) - (3)].val))) YYERROR; + DO_SUM((yyval.val), (yyvsp[(1) - (3)].val) * 60, (yyvsp[(3) - (3)].val)); ;} + break; +@@ -1535,14 +1536,14 @@ yyreduce: + case 23: + + /* Line 1464 of yacc.c */ +-#line 171 "x-deltat.y" ++#line 172 "x-deltat.y" + { (yyval.val) = 0; ;} + break; + + + + /* Line 1464 of yacc.c */ +-#line 1546 "deltat.c" ++#line 1547 "deltat.c" + default: break; + } + YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc); +@@ -1754,7 +1755,7 @@ yyreturn: + + + /* Line 1684 of yacc.c */ +-#line 174 "x-deltat.y" ++#line 175 "x-deltat.y" + + + #ifdef __GNUC__ diff --git a/security/mit-krb5/patches/patch-lib_krb5_krb_x-deltat.y b/security/mit-krb5/patches/patch-lib_krb5_krb_x-deltat.y new file mode 100644 index 00000000000..05d6d9606e0 --- /dev/null +++ b/security/mit-krb5/patches/patch-lib_krb5_krb_x-deltat.y @@ -0,0 +1,14 @@ +$NetBSD: patch-lib_krb5_krb_x-deltat.y,v 1.1 2012/10/12 08:06:25 marino Exp $ + +Required for gcc 4.7 at least (taken from upstream) + +--- lib/krb5/krb/x-deltat.y.orig 2012-08-08 22:27:56.000000000 +0000 ++++ lib/krb5/krb/x-deltat.y +@@ -44,6 +44,7 @@ + #ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wuninitialized" ++#pragma GCC diagnostic ignored "-Wmaybe-uninitialized" + #endif + + #include <ctype.h> |