Ticket #51687: 0001-science-ldas-tools-disable-use-of-Werror-flag.patch

File 0001-science-ldas-tools-disable-use-of-Werror-flag.patch, 2.3 KB (added by skymoo (Adam Mercer), 8 years ago)
  • science/ldas-tools/Portfile

    From 32b0539c61f532e3905450db9e93ec47f60ef1ad Mon Sep 17 00:00:00 2001
    From: Adam Mercer <ram@macports.org>
    Date: Wed, 22 Jun 2016 07:38:29 -0500
    Subject: [PATCH] science/ldas-tools: disable use of -Werror flag
    
    this allows the port to build on El Capitan, and higher
    ---
     science/ldas-tools/Portfile                        |  5 ++++-
     science/ldas-tools/files/patch-disable-Werror.diff | 20 ++++++++++++++++++++
     2 files changed, 24 insertions(+), 1 deletion(-)
     create mode 100644 science/ldas-tools/files/patch-disable-Werror.diff
    
    diff --git a/science/ldas-tools/Portfile b/science/ldas-tools/Portfile
    index 1020ca0..9b26e8a 100644
    a b checksums rmd160 54dec09d6d9d3e55c881af7574226f2d640a5e96 \ 
    2020              sha256  17b9514c8aa2092f70f7d8c7315a7d46008a285d47b730ad2d7a8eb2c89e9a36
    2121
    2222patchfiles    patch-libraries-ldastoolsal-src-AtExit.cc.diff \
    23               patch-libraries-ldastoolsal-src-TaskThread.cc.diff
     23              patch-libraries-ldastoolsal-src-TaskThread.cc.diff \
     24              patch-disable-Werror.diff
     25
     26use_autoreconf yes
    2427
    2528configure.args --disable-silent-rules \
    2629               --with-optimization=high \
  • new file science/ldas-tools/files/patch-disable-Werror.diff

    diff --git a/science/ldas-tools/files/patch-disable-Werror.diff b/science/ldas-tools/files/patch-disable-Werror.diff
    new file mode 100644
    index 0000000..7a011d4
    - +  
     1--- config/autotools/m4/programs.m4
     2+++ config/autotools/m4/programs.m4
     3@@ -118,7 +118,7 @@
     4     dnl -----------------------------------------------------------------
     5     dnl  Handling of warnings
     6     dnl -----------------------------------------------------------------
     7-    CFLAGS_FATAL_WARNINGS="-Werror"
     8+    CFLAGS_FATAL_WARNINGS=""
     9     CFLAGS_PEDANTIC="-pedantic -Wno-long-long"
     10     dnl .................................................................
     11     dnl   C
     12@@ -351,7 +351,7 @@
     13     dnl -----------------------------------------------------------------
     14     dnl  Handling of warnings
     15     dnl -----------------------------------------------------------------
     16-    CXXFLAGS_FATAL_WARNINGS="-Werror"
     17+    CXXFLAGS_FATAL_WARNINGS=""
     18     CXXFLAGS_PEDANTIC="-pedantic -Wno-long-long "
     19     dnl .................................................................
     20     dnl   C++