]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 8.2.0828: Travis: regexp patttern doesn't work everywhere v8.2.0828
authorBram Moolenaar <Bram@vim.org>
Tue, 26 May 2020 18:09:11 +0000 (20:09 +0200)
committerBram Moolenaar <Bram@vim.org>
Tue, 26 May 2020 18:09:11 +0000 (20:09 +0200)
Problem:    Travis: regexp patttern doesn't work everywhere.
Solution:   Use [:blank:] instead of \b. (Ozaki Kiichi, closes #6146)

.travis.yml
ci/config.mk.clang.sed
ci/config.mk.gcc.sed
ci/config.mk.sed
src/if_ruby.c
src/version.c

index 7c1ecbca564eaa927d08dc9ba68a78793c254c2d..ef96f084d0b3cd38cb90942477264f2301adf0ff 100644 (file)
@@ -125,7 +125,12 @@ script:
       # Append various warning flags to CFLAGS.
       # BSD sed needs backup extension specified.
       sed -i.bak -f ci/config.mk.sed ${SRCDIR}/auto/config.mk
-      sed -i.bak -f ci/config.mk.${CC}.sed ${SRCDIR}/auto/config.mk
+      if [[ "${TRAVIS_OS_NAME}" = "osx" ]]; then
+        # On macOS, the entity of gcc is clang.
+        sed -i.bak -f ci/config.mk.clang.sed ${SRCDIR}/auto/config.mk
+      else
+        sed -i.bak -f ci/config.mk.${CC}.sed ${SRCDIR}/auto/config.mk
+      fi
       make ${SHADOWOPT} -j${NPROC}
     fi
   - echo -en "travis_fold:end:build\\r\\033[0K"
@@ -141,11 +146,10 @@ script:
   - do_test make ${SHADOWOPT} ${TEST} && FOLD_MARKER=travis_fold
   - echo -en "${FOLD_MARKER}:end:test\\r\\033[0K"
 
-
-# instead of a 2*2*8 matrix (2*os + 2*compiler + 8*env),
-# exclude some builds on mac os x and linux
-# on mac os x "tiny" is always without GUI
-# linux: 2*compiler + 5*env + mac: 2*compiler + 2*env
+# Instead of using all environments with both compilers on both systems,
+# exclude some builds on mac os x and linux.
+# On mac os x "tiny" is always without GUI, use 2 compilers in 2 environments.
+# Linux: 2 compilers on some of the environments + gcc on os390
 jobs:
   include:
     - <<: *osx
index 40c6705ac3e8ab9189828b68ca2fbf631a010921..da6044d83062db59ced3bda7df938e2a70fa885c 100644 (file)
@@ -1 +1,2 @@
-/^RUBY_CFLAGS\b/s/$/ -Wno-error=unknown-attributes -Wno-error=ignored-attributes/
+/^CFLAGS[[:blank:]]*=/s/$/ -Wno-error=missing-field-initializers/
+/^RUBY_CFLAGS[[:blank:]]*=/s/$/ -Wno-error=unknown-attributes -Wno-error=ignored-attributes/
index 3b11569eb0a3d98e2e8fe96d48e2478e25c46d42..f46e488488fd4488f8fa89fc2b95b10c7b366984 100644 (file)
@@ -1 +1 @@
-/^CFLAGS\b/s/$/ -Wno-error=maybe-uninitialized/
+/^CFLAGS[[:blank:]]*=/s/$/ -Wno-error=maybe-uninitialized/
index 31682787ebafc38eea419a7b3d9566b22a38c896..cd2cd9c4524795e1836f58ddedacc9129c0b8728 100644 (file)
@@ -1,2 +1,2 @@
-/^CFLAGS\b/s/$/ -Wall -Wextra -Wshadow -Werror/
-/^PERL_CFLAGS\b/s/$/ -Wno-error=unused-function/
+/^CFLAGS[[:blank:]]*=/s/$/ -Wall -Wextra -Wshadow -Werror/
+/^PERL_CFLAGS[[:blank:]]*=/s/$/ -Wno-error=unused-function/
index e989c01336ced796b608047aff566d6ca43a6375..6773a2a38af5de0643ed70b240818554ab937550 100644 (file)
 #endif
 
 // On macOS pre-installed Ruby defines "SIZEOF_TIME_T" as "SIZEOF_LONG" so it
-// conflicts with the definition in config.h then causes macro-redifned warning.
+// conflicts with the definition in config.h then causes a macro-redefined
+// warning.
 #ifdef SIZEOF_TIME_T
 # undef SIZEOF_TIME_T
 #endif
 # include <st.h>  // for ST_STOP and ST_CONTINUE
 #endif
 
+// See above.
+#ifdef SIZEOF_TIME_T
+# undef SIZEOF_TIME_T
+#endif
+
 #undef off_t   // ruby defines off_t as _int64, Mingw uses long
 #undef EXTERN
 #undef _
index 8a94dde4c1341728e6467480a5af4bb80d439ab8..c2cb3ca690523fb9fd86e81b309fd4345d1194b1 100644 (file)
@@ -746,6 +746,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    828,
 /**/
     827,
 /**/