[arch-commits] Commit in krb5/trunk (PKGBUILD krb5-1.10.1-gcc47.patch)

Stéphane Gaudreault stephane at archlinux.org
Sat Mar 24 14:08:56 EDT 2012


    Date: Saturday, March 24, 2012 @ 14:08:56
  Author: stephane
Revision: 154245

upgpkg: krb5 1.10.1-2

Fix building with gcc 4.7 (Ignore maybe-uninitialized error in generated code)

Added:
  krb5/trunk/krb5-1.10.1-gcc47.patch
Modified:
  krb5/trunk/PKGBUILD

-------------------------+
 PKGBUILD                |   10 +++++++++-
 krb5-1.10.1-gcc47.patch |   11 +++++++++++
 2 files changed, 20 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2012-03-24 17:10:41 UTC (rev 154244)
+++ PKGBUILD	2012-03-24 18:08:56 UTC (rev 154245)
@@ -3,7 +3,7 @@
 
 pkgname=krb5
 pkgver=1.10.1
-pkgrel=1
+pkgrel=2
 pkgdesc="The Kerberos network authentication system"
 arch=('i686' 'x86_64')
 url="http://web.mit.edu/kerberos/"
@@ -15,10 +15,12 @@
 conflicts=('heimdal')
 backup=('etc/krb5.conf' 'var/lib/krb5kdc/kdc.conf')
 source=(http://web.mit.edu/kerberos/dist/${pkgname}/1.10/${pkgname}-${pkgver}-signed.tar
+        krb5-1.10.1-gcc47.patch
         krb5-kadmind
         krb5-kdc
         krb5-kpropd)
 sha1sums=('f9f3b77173f68b268b43e4f9c29bf7c9f3fd1f0e'
+          '78b759d566b1fdefd9bbcd06df14f07f12effe96'
           '2aa229369079ed1bbb201a1ef72c47bf143f4dbe'
           '77d2312ecd8bf12a6e72cc8fd871a8ac93b23393'
           '7f402078fa65bb9ff1beb6cbbbb017450df78560')
@@ -28,6 +30,12 @@
    tar zxvf ${pkgname}-${pkgver}.tar.gz
    cd "${srcdir}/${pkgname}-${pkgver}/src"
 
+   # With gcc47 : deltat.c:1694:12: error: 'yylval' may be used uninitialized
+   # in this function [-Werror=maybe-uninitialized]
+   # As this is generated code, just ignore the complaint.
+   patch -Np2 -i ../../krb5-1.10.1-gcc47.patch
+   rm lib/krb5/krb/deltat.c
+
    # FS#25384
    sed -i "/KRB5ROOT=/s/\/local//" util/ac_check_krb5.m4
 

Added: krb5-1.10.1-gcc47.patch
===================================================================
--- krb5-1.10.1-gcc47.patch	                        (rev 0)
+++ krb5-1.10.1-gcc47.patch	2012-03-24 18:08:56 UTC (rev 154245)
@@ -0,0 +1,11 @@
+diff -Naur krb5-1.10.1.ori/src/lib/krb5/krb/x-deltat.y krb5-1.10.1/src/lib/krb5/krb/x-deltat.y
+--- krb5-1.10.1.ori/src/lib/krb5/krb/x-deltat.y	2011-09-06 07:34:32.000000000 -0400
++++ krb5-1.10.1/src/lib/krb5/krb/x-deltat.y	2012-03-24 13:15:11.543551318 -0400
+@@ -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>



More information about the arch-commits mailing list