From patchwork Fri Feb 4 16:47:45 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Tremer X-Patchwork-Id: 5072 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4Jr1h26Xbpz3xHT for ; Fri, 4 Feb 2022 16:48:34 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4Jr1gT579nz5S8; Fri, 4 Feb 2022 16:48:05 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4Jr1gR5hqcz32Mw; Fri, 4 Feb 2022 16:48:03 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4Jr1gN48Xgz2xK9 for ; Fri, 4 Feb 2022 16:48:00 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4Jr1gM1Pxcz5Gg; Fri, 4 Feb 2022 16:47:59 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1643993279; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=YYOTse3pvPCbb1a7Uh/KnR8X6iI1pHJWAERgQnQ+50A=; b=5Yt8/728kGLDYT9nC/ICIrb6/YsqXh6LxbfDBqTufgN9hvRudr9ZFJhq/AvV/IQjrKdEB6 gPzcokD5fQLQBMCg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1643993279; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=YYOTse3pvPCbb1a7Uh/KnR8X6iI1pHJWAERgQnQ+50A=; b=R1CoVBB6/0tZ5lAleIkpSS1qbThbNi9Fh1qRsTViBX6GTnH8yWdG2uLj/9iB9fe5FbYFg9 wE+42jR7rJe3dL4efWo2GnaHcl7QPOv2K6ta4/0Qitzjyd+7f9jwom1WnU3Y4t/B0xn0HA jCA5gOYK+ii7uTABeI/0rjccbRj+q2L6OQn8uF/t5cWXjovh3I4p+WIWLTXcdMDsb5qkJ0 ZGGyxX0iE9DE8Hhof7XaW5vOzMOeE4unApcjo/aX/MnHYrTmBLq0WCnCG65Fnv6ug0pTrN OrjV5KkBYvwjExFQZ+zYAEm5omDyOUkd2QySDzJwCLODFV4jWxsYnbLw4jLB3A== From: Michael Tremer To: development@lists.ipfire.org Subject: [PATCH 25/28] Config: Globally permit using 32 bit time_t Date: Fri, 4 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> References: <20220204164748.315559-1-michael.tremer@ipfire.org> MIME-Version: 1.0 X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Michael Tremer Errors-To: development-bounces@lists.ipfire.org Sender: "Development" 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 --- 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 = /usr endif +# Permit building with 32 bit time_t on 32 bit architectures +ifeq "$(IS_32BIT)" "1" + export TIME_T_32_BIT_OK = yes +endif + TAR_OPTIONS = \ --format=pax \ --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 += \ CFLAGS += -fno-strict-aliasing -# Build with 32 bit time_t on 32 bit architectures -ifeq "$(IS_32BIT)" "1" - export TIME_T_32_BIT_OK=yes -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 = --prefix=$(TOOLS_DIR) endif -# Build with 32 bit time_t on 32 bit architectures -ifeq "$(IS_32BIT)" "1" - export TIME_T_32_BIT_OK=yes -endif - ############################################################################### # Top-level Rules ###############################################################################