On 11/11/2017 03:30 PM, Bruno Haible wrote:
Hi Pádraig, Bernhard,

You may have seen that Paul made the gnulib module 'year2038' [1] useful for all
platforms, especially Linux/i386.

I think it would be a good idea for coreutils and findutils to include this 
module,
in order to raise awareness of the year 2038 problem for those people who build
binaries that will be in use for a long time (e.g. embedded and busybox 
environments).

Bruno

[1] 
https://www.gnu.org/software/gnulib/manual/html_node/Avoiding-the-year-2038-problem.html

Good idea - patch attached.

Thanks & have a nice day,
Berny



>From f8bf408f07542fc57f63344cd4c1b62a2df18d4d Mon Sep 17 00:00:00 2001
From: Bernhard Voelker <m...@bernhard-voelker.de>
Date: Sun, 12 Nov 2017 23:31:19 +0100
Subject: [PATCH 1/2] maint: update gnulib to latest

* gnulib: Update - mainly for the recent year2038 changes.
* bootstrap: Update from gnulib/build-aux/bootstrap.
---
 bootstrap | 2 +-
 gnulib    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/bootstrap b/bootstrap
index 85b85c53..03057c37 100755
--- a/bootstrap
+++ b/bootstrap
@@ -792,7 +792,7 @@ symlink_to_dir()
       # aren't confused into doing unnecessary builds.  Conversely, if the
       # existing symlink's timestamp is older than the source, make it afresh,
       # so that broken tools aren't confused into skipping needed builds.  See
-      # <https://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00326.html>.
+      # <https://lists.gnu.org/r/bug-gnulib/2011-05/msg00326.html>.
       test -h "$dst" &&
       src_ls=$(ls -diL "$src" 2>/dev/null) && set $src_ls && src_i=$1 &&
       dst_ls=$(ls -diL "$dst" 2>/dev/null) && set $dst_ls && dst_i=$1 &&
diff --git a/gnulib b/gnulib
index 6803dda5..2a3dbe99 160000
--- a/gnulib
+++ b/gnulib
@@ -1 +1 @@
-Subproject commit 6803dda53781f7da920f568a31610d41e5c3a351
+Subproject commit 2a3dbe99a2aeb058ecb033d7d830e6600e16c91c
-- 
2.15.0

>From ae781040fa983a3b635ac55dd6189d04ba70501e Mon Sep 17 00:00:00 2001
From: Bernhard Voelker <m...@bernhard-voelker.de>
Date: Sun, 12 Nov 2017 15:51:22 +0100
Subject: [PATCH 2/2] maint: include the module year2038 from gnulib

* bootstrap.conf (gnulib_modules): Add 'year2038' to ensure that time_t
is 64-bit (and thus works after 2038).

Suggested by Bruno Haible in
https://lists.gnu.org/r/bug-gnulib/2017-11/msg00022.html
---
 bootstrap.conf | 1 +
 1 file changed, 1 insertion(+)

diff --git a/bootstrap.conf b/bootstrap.conf
index 44ad1f02..14ca580a 100644
--- a/bootstrap.conf
+++ b/bootstrap.conf
@@ -178,6 +178,7 @@ gnulib_modules="
     xstrtod
     xstrtol
     xstrtoumax
+    year2038
     yesno
     ${maintainer_modules}
 "
-- 
2.15.0

Reply via email to