From mboxrd@z Thu Jan  1 00:00:00 1970
From: Michael Tremer <michael.tremer@ipfire.org>
To: development@lists.ipfire.org
Subject: [PATCH 25/28] Config: Globally permit using 32 bit time_t
Date: Fri, 04 Feb 2022 16:47:45 +0000
Message-ID: <20220204164748.315559-25-michael.tremer@ipfire.org>
In-Reply-To: <20220204164748.315559-1-michael.tremer@ipfire.org>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============5774067462735880482=="
List-Id: <development.lists.ipfire.org>

--===============5774067462735880482==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable

This is required because some packages do not recommend building with
time_t when it is 32 bit (Y2038 problem).

Signed-off-by: Michael Tremer <michael.tremer(a)ipfire.org>
---
 lfs/Config    | 5 +++++
 lfs/coreutils | 5 -----
 lfs/gzip      | 5 -----
 3 files changed, 5 insertions(+), 10 deletions(-)

diff --git a/lfs/Config b/lfs/Config
index 3e4de3b3f..1209c1603 100644
--- a/lfs/Config
+++ b/lfs/Config
@@ -84,6 +84,11 @@ else
 	PREFIX =3D /usr
 endif
=20
+# Permit building with 32 bit time_t on 32 bit architectures
+ifeq "$(IS_32BIT)" "1"
+	export TIME_T_32_BIT_OK =3D yes
+endif
+
 TAR_OPTIONS =3D \
 	--format=3Dpax \
 	--acls \
diff --git a/lfs/coreutils b/lfs/coreutils
index b64ac7a06..d272fd06a 100644
--- a/lfs/coreutils
+++ b/lfs/coreutils
@@ -50,11 +50,6 @@ CONFIGURE_OPTIONS +=3D \
=20
 CFLAGS +=3D -fno-strict-aliasing
=20
-# Build with 32 bit time_t on 32 bit architectures
-ifeq "$(IS_32BIT)" "1"
-	export TIME_T_32_BIT_OK=3Dyes
-endif
-
 ############################################################################=
###
 # Top-level Rules
 ############################################################################=
###
diff --git a/lfs/gzip b/lfs/gzip
index 4f8925cd2..4f0853de0 100644
--- a/lfs/gzip
+++ b/lfs/gzip
@@ -41,11 +41,6 @@ else
   EXTRA_CONFIG =3D --prefix=3D$(TOOLS_DIR)
 endif
=20
-# Build with 32 bit time_t on 32 bit architectures
-ifeq "$(IS_32BIT)" "1"
-	export TIME_T_32_BIT_OK=3Dyes
-endif
-
 ############################################################################=
###
 # Top-level Rules
 ############################################################################=
###
--=20
2.30.2


--===============5774067462735880482==--