Emit a note warning the user that creating an executable stack because of a missing...
[binutils-gdb.git] / gnulib / update-gnulib.sh
index 634676a68d8c33d446ed1ae763ecdaf263e33b99..2666fe7dbf9c0dd4e1f211224ebda201094195f8 100755 (executable)
@@ -1,6 +1,6 @@
 #! /bin/sh
 
-# Copyright (C) 2011-2019 Free Software Foundation, Inc.
+# Copyright (C) 2011-2022 Free Software Foundation, Inc.
 #
 # This file is part of GDB.
 #
 
 # The list of gnulib modules we are importing in GDB.
 IMPORTED_GNULIB_MODULES="\
+    accept \
     alloca \
+    bind \
     canonicalize-lgpl \
+    chown \
+    connect \
+    count-one-bits \
     dirent \
     dirfd \
     errno \
+    ffs \
     fnmatch-gnu \
     frexpl \
+    gendocs \
     getcwd \
+    getline \
+    gettimeofday \
+    gitlog-to-changelog \
     glob \
     inet_ntop
     inttypes \
     lstat \
     limits-h \
+    listen \
     memchr \
     memmem \
     mkdir \
     mkdtemp \
     mkostemp \
+    netdb \
     pathmax \
     rawmemchr \
     readlink \
     rename \
+    select \
     setenv \
+    setsockopt \
     signal-h \
+    socket \
     strchrnul \
+    strerror_r-posix \
     strstr \
     strtok_r \
     sys_stat \
+    sys_wait \
+    time_r \
     unistd \
     unsetenv \
     update-copyright \
@@ -66,7 +84,7 @@ IMPORTED_GNULIB_MODULES="\
 "
 
 # The gnulib commit ID to use for the update.
-GNULIB_COMMIT_SHA1="38237baf99386101934cd93278023aa4ae523ec0"
+GNULIB_COMMIT_SHA1="0cda5beb7962f6567f0c4e377df870fa05c6d681"
 
 # The expected version number for the various auto tools we will
 # use after the import.
@@ -162,16 +180,14 @@ fi
 # Apply our local patches.
 apply_patches ()
 {
-    patch -p3 -f -i "$1"
+    patch -p2 -f -i "$1"
     if [ $? -ne 0 ]; then
         echo "Failed to apply some patches.  Aborting."
         exit 1
     fi
 }
 
-apply_patches "patches/0001-Fix-PR-gdb-23558-Use-system-s-getcwd-when-cross-comp.patch"
-apply_patches "patches/0002-mkostemp-mkostemps-Fix-compilation-error-in-C-mode-o.patch"
-apply_patches "patches/0003-Fix-glob-c-Coverity-issues.patch"
+apply_patches "patches/0001-use-windows-stat"
 
 # Regenerate all necessary files...
 aclocal &&