Ticket #43241: patch-gnumeric-warnings.diff

File patch-gnumeric-warnings.diff, 1.6 KB (added by dbevans (David B. Evans), 11 years ago)

Proposed patch to disable compile warnings that break build.

  • Portfile

     
    4141                    port:psiconv \
    4242                    port:pxlib
    4343
     44patchfiles          patch-configure.ac.diff
     45
    4446# autoreconf to reconfigure using our intltool.m4
    4547
    4648use_autoreconf      yes
     
    5153                    --enable-introspection \
    5254                    --without-gda
    5355
    54 configure.cflags-append \
    55                     -Wno-error=format-nonliteral
    56 
    5756variant database description {builds with support for GDA database} {
    5857    depends_lib-append        port:libgda5
    5958    configure.args-replace    --without-gda --with-gda
  • files/patch-configure.ac.diff

     
     1--- configure.ac.orig   2014-04-05 17:59:57.000000000 -0700
     2+++ configure.ac        2014-04-05 18:12:01.000000000 -0700
     3@@ -254,11 +254,11 @@
     4 AC_CHECK_PROG(GDK_PIXBUF_CSOURCE, gdk-pixbuf-csource$ac_exeext, gdk-pixbuf-csource$ac_exeext)
     5 
     6 ## this should come after `AC_PROG_CC'
     7-ifdef([GNOME_COMPILE_WARNINGS],
     8-       [GNOME_COMPILE_WARNINGS] CFLAGS="$CFLAGS $WARN_CFLAGS",
     9-       []
     10-)
     11-set_more_warnings=yes
     12+dnl ifdef([GNOME_COMPILE_WARNINGS],
     13+dnl    [GNOME_COMPILE_WARNINGS] CFLAGS="$CFLAGS $WARN_CFLAGS",
     14+dnl    []
     15+dnl)
     16+set_more_warnings=no
     17 if test "$GCC" = yes -a "x$set_more_warnings" != xno; then
     18        dnl Clang needs this option, or else it will appear to support any
     19        dnl warning option, only to spew warnings about them later.