Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp813711lqb; Wed, 29 May 2024 11:12:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXQh9hQMmi69AkxhDqT7q/Mo6tfV+VH8jC5stxzki8eIocL1Ku+hH1r4Y7q6bJYB6o0PbwP5SX2SBFnE/as8dGphKBNseKBMR2dLk/Z9A== X-Google-Smtp-Source: AGHT+IHeoUbRw1k+/LxsKlvMJch2PX1vbmfe+Fy3RwnGEd5gN9nXPDB/20n5Q0ucl9WrZAEh7Qht X-Received: by 2002:a05:6a00:2e94:b0:701:c9f8:154b with SMTP id d2e1a72fcca58-70202e54f0bmr5522191b3a.12.1717006338776; Wed, 29 May 2024 11:12:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717006338; cv=pass; d=google.com; s=arc-20160816; b=ChrxBMAyhpNPLQHRo5Fmc+vc5g4AZlYihid6I/PWBtYz8I8XrNtrh1nDYeVt8H02AA u/hgkR4t/0SUJXP3WbvQTr2CHBBYy5Itj1BW27m1Q+Y9++FLmWmHbgPeEuJcIdHASP4Q c8YSlYpD5bMvpRNs7AEpQuyIO3qW0QyEKulSb0s+R1kNXKdbE2y7HTC2AOFPO1fR80xV w5EqlOwEGbmhFCXEv19HGpv2sn6jHsEaqMpb2cIwXKR/0HN6CYXssc7F4WUOeh5tqpk+ 22zh0se3WliKYYMm5PimVTzUyd6NdqSjceRm1C7DaHIk8qbI7YvZxpMM2Up1ZRCg8xSh GjjQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:message-id:subject:to:from:date:dkim-signature; bh=rKRXj+wdTfpoHitVv9M6szJj8H0+AqsXY5NC+3jA/2g=; fh=A613k8AwgydrK5dfshaM7xNUzCB7kIEBzH0H6tybF6U=; b=lOCYib+KGJLWcuLca8V8/4Jg06GR8+2IJEYBBP/ho9vVV0MhA5lQUiEn3pA9llknls sToQZyx/8KDmJaeC0Wx9L875UvLP53si1B6AUguSgnT6GR3JOlrBGRmqfqYQBQV9UMAA xk1PaGbxRIEpfMcjazAEl0grbGFgr711QjzNXXhmCpX0+Dy9GTm+MUiNsCwX99Iqa4oG aOjdV6gO0X2VcgOgWHxk3eXf3yyZCE0Ubs3nSs3VwbbLLqmeQy03Fr9JlM7reUt8cygv 0jnKWG21mXyPeh+/57cYULAnIk4cWmUr+sEmrQI7vE2PL1brRORtoxYP4YzFgQeekcGD 2Zfw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IaFS3Qjo; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-ext4+bounces-2716-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-ext4+bounces-2716-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-68221b73be4si10916347a12.29.2024.05.29.11.12.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 May 2024 11:12:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4+bounces-2716-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IaFS3Qjo; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-ext4+bounces-2716-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-ext4+bounces-2716-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 690C0281612 for ; Wed, 29 May 2024 18:12:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C8875139588; Wed, 29 May 2024 18:12:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="IaFS3Qjo" X-Original-To: linux-ext4@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 43C0415B562 for ; Wed, 29 May 2024 18:12:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717006335; cv=none; b=SXhwU81xa41d3x18KLkqRtD+M571NmYZqciTcbEtysXvg7FQYYuKSMTeOydm76jDtOZEyQ9gmQpi5lpFvjOjbCYi1Pz2PHtMfNnkS/N2LDlxRSYFD6ZbrTiorsmIM1nRAwsCozEW9DFpL7dDI/xhzG521BkyCEs4fNmOmm/LyR0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717006335; c=relaxed/simple; bh=/RywZShKPlclj5xK/MJ05qfgRf4DKfHi2ZPi+ASENIk=; h=Date:From:To:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=TxeVvvGOgUilrA9c5EhFVhPDXc71K2AfrxVDWjuqiP7Qh6E12R+sjJk3yz5Kjs8GVijiyMVCeq5zIPbaQ6LXcTAV/edDYkTqIVj7CAdtwBAWJq7sPJTT/g/1HdEiX+ezCGgxZAGIorqsugmAAye+Q50c4JvHWnq1lGLN7XpyJFU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=IaFS3Qjo; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id BDA3AC113CC; Wed, 29 May 2024 18:12:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717006334; bh=/RywZShKPlclj5xK/MJ05qfgRf4DKfHi2ZPi+ASENIk=; h=Date:From:To:Subject:From; b=IaFS3QjoRVcSTfuXBvm8atMAmkwpjdEZHMnhTqV7KO91HPWeeFEVSuJqnSY3rvntQ 7dmYwHLmeIu+1k6o0scgN3O3ad6so2iJyjRn8cWtbGl9VxrCoulk+uw6mzWR5FQq1G jLojNhOowu2RpLh3EiiiqALLPBTSDf0eDnKvKedBUgmwS5YvyGT2vj8ZkyMxkeBgoG erw4Lwz6hzN4JWd7Wl2syqaFSP5AUno/VFzM2n4sKaYOOLA2Fum6N/Y5AQbAOek1Jk 14dhkCIwtyVecuy5FzROQS/sCXSf0c3yijFpcCadM2iiaeUl2uDDy7zJ0XZ4m2zn00 Vj8e8IPehFduQ== Date: Wed, 29 May 2024 11:12:14 -0700 From: "Darrick J. Wong" To: Theodore Ts'o , linux-ext4 Subject: [PATCH] fuse2fs: explicitly set _FILE_OFFSET_BITS again Message-ID: <20240529181214.GA52969@frogsfrogsfrogs> Precedence: bulk X-Mailing-List: linux-ext4@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline From: Darrick J. Wong In commit 3ab99d9b602, the build system was changed not to set _FILE_OFFSET_BITS explicitly due to some weird error on mips64el. Unfortunately, this breaks the aarch64 Debian build because libfuse 2.9.9 requires this value to be set explicitly. Restore this dumb preprocessor symbol dependency with even more hackery as documented in the commit. Fixes: 3ab99d9b602 ("Remove explicit #define of _FILE_OFFSET_BITS") Signed-off-by: Darrick J. Wong --- misc/fuse2fs.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/misc/fuse2fs.c b/misc/fuse2fs.c index 56a0d545..01293868 100644 --- a/misc/fuse2fs.c +++ b/misc/fuse2fs.c @@ -26,7 +26,23 @@ #endif #include #include +#ifdef __SET_FOB_FOR_FUSE +# error Do not set magic value __SET_FOB_FOR_FUSE!!!! +#endif +#ifndef _FILE_OFFSET_BITS +/* + * Old versions of libfuse (e.g. Debian 2.9.9 package) required that the build + * system set _FILE_OFFSET_BITS explicitly, even if doing so isn't required to + * get a 64-bit off_t. AC_SYS_LARGEFILE doesn't set any _FILE_OFFSET_BITS if + * it's not required (such as on aarch64), so we must inject it here. + */ +# define __SET_FOB_FOR_FUSE +# define _FILE_OFFSET_BITS 64 +#endif /* _FILE_OFFSET_BITS */ #include +#ifdef __SET_FOB_FOR_FUSE +# undef _FILE_OFFSET_BITS +#endif /* __SET_FOB_FOR_FUSE */ #include #include "ext2fs/ext2fs.h" #include "ext2fs/ext2_fs.h"