From nobody Sun Jul 26 12:31:23 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=reject dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1781843558; cv=none; d=zohomail.com; s=zohoarc; b=gFinGyTmEu2ZBJ0JvxHhEwRtsEbu7htNWq8I1zfRV7rYEKQ+FJ6uYxzQerpSWbHGNwniSxzjn4k8rsTS4ltxDxuzlzQw6gjCR6KoztsI7P05uUahrybFCrKKwtUg7BtQBMVGmtEo4YpP1kOsa+SvZEmJGAyp8EJXS90X8cB77wE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1781843558; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=VStjQyCdMzeQEZPvUMmZSW4gsMTwrFMuGeCvaV+WJYc=; b=S/FQDXM/BNVIEj4BF4cE5vncJfFtUWbAuTSlQwI9yhW9Mt/mTGoFU9wEbUwuwYC2kQ80e1oEWR91d1WdvvFaSaf8M0LMLvc/KmzQVgECygn0lEBAJ3kRjA2yOEPD5B1uJv9247K4gxFnciN4/TOFfKPiNocl7/fi82281smCHFw= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1781843558118262.9383086324982; Thu, 18 Jun 2026 21:32:38 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1waQtj-0005wr-RQ; Fri, 19 Jun 2026 00:32:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1waQth-0005w9-Hu for qemu-devel@nongnu.org; Fri, 19 Jun 2026 00:32:05 -0400 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1waQtf-0008TO-OG for qemu-devel@nongnu.org; Fri, 19 Jun 2026 00:32:05 -0400 Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 65J2v6Dm3465544 for ; Fri, 19 Jun 2026 04:32:02 GMT Received: from mail-dy1-f199.google.com (mail-dy1-f199.google.com [74.125.82.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4evp6s9v9x-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 19 Jun 2026 04:32:02 +0000 (GMT) Received: by mail-dy1-f199.google.com with SMTP id 5a478bee46e88-30b877ee493so2092919eec.1 for ; Thu, 18 Jun 2026 21:32:01 -0700 (PDT) Received: from hu-bcain-lv.qualcomm.com (Global_NAT1.qualcomm.com. [129.46.96.20]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-139a3494fe8sm796654c88.1.2026.06.18.21.31.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jun 2026 21:31:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to; s=qcppdkim1; bh=VStjQyCdMzeQEZPvUMmZSW 4gsMTwrFMuGeCvaV+WJYc=; b=Bzh+P3wiD/hSYfMqyjCnHIwS43pbjkqJJyZhSY r15EBP+axHnE5JQEq1O+Yn/r2imChA1xSSsTyBMawf8CLCuUL7YgUcH4pcus8Ng3 ZY0dBVR+KdvprwQwYEpNPtwIhckjYRWBLk7ZKL16IsA3/pYOAhQfEigGpesOOG7d /M6cvFcuHz28ANHRE1pQcVp+p9LbPugDhK2FjXkFFedc7C34JaH36Op/B0hOKqry 9h+4yROZ7PZnFWO6ADSSkaifXz2DWt6ifmmgjo339N3WTWTMxzlqNqanEmTDhszm S6QQwaHvQ9drdPqiWjuDYkpOZOIyDJaKnmJUb+dDChZAvZPw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1781843521; x=1782448321; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=VStjQyCdMzeQEZPvUMmZSW4gsMTwrFMuGeCvaV+WJYc=; b=BpYvwoNGUOghHiax84JRSxawOFpyTe6BqUTGnCN+2IogfVZ0WcF7iGqWCJS64+lc1f GOqpQQIghH/iyEM/hZ4A9WbSoZVkjZ9yNCP6TTPn02vNBkii0LiHyWMW2AuNd7pjsOej JK1hJ5HizIo/SEvV/KNfE3K3hAXruPEyTp3wikES1YNfM/+dk0V9sgXgrteJaY/WzhfZ U0tpeUykaPMhmjnFwIEAwvRrlNtE6apX+ub/2VGpzSP2pALco0cPV7vWP/FgQt44PYTy qz5sQtPXGMFTj/GYECL4vc2sfD2X0VHNBwku9u2OHM9vMWeBWWYXhwC10Xohn1Fa8198 wgwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781843521; x=1782448321; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=VStjQyCdMzeQEZPvUMm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b24-139a311b661mr885082c88.18.1781843520996; Thu, 18 Jun 2026 21:32:00 -0700 (PDT) X-Received: by 2002:a05:7023:b0c:b0:139:85c2:d7aa with SMTP id a92af1059eb24-139a311b661mr885076c88.18.1781843520376; Thu, 18 Jun 2026 21:32:00 -0700 (PDT) From: Brian Cain To: qemu-devel@nongnu.org Cc: matheus.bernardino@oss.qualcomm.com, Brian Cain , Pierrick Bouvier , =?UTF-8?q?Alex=20Benn=C3=A9e?= Subject: [PATCH] tests/docker: tolerate chmod EPERM when unpacking hexagon toolchain Date: Thu, 18 Jun 2026 21:31:59 -0700 Message-Id: <20260619043159.2174062-1-brian.cain@oss.qualcomm.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-GUID: UnOYTrrXpxA66BXjZw3ra_TEed-OIfRn X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNjE5MDAzNyBTYWx0ZWRfX2zIqCjjKeod+ EmGBPZwQ6J6QM+ORBrBskKJnK2R6LGc6kb9AKAd8zmDUsgEzzZ2EW3AXpPo85MiH2NHFBOI3bvQ Qg7WGzTtU6wk07TVRNeN+kulmkxt1R0Rbli6mQ72fiL3xjz1GHBt5EwcwDFfwIA75ty+8ksAxry R7PdrVKROVZgOkodNo3r5By2I0Da8rFNshqmUcTQsMI0l0QQV77wHqutUK2MaHDWCpR29UocxSR buebgdp5Mxmo7IndIaIvOtuk3qT8So5MUYwzoyM+Zai/xCAfHJd3TJfV3/UX5q1sIi2cJGird2q zaMEhRYAn1uTrmjdiuP91RCRiUulQe6i0OhPg2o8XCrrdv707ABte9+4prj7LRfQQxOxTbKrdNy 0uKiYc+czpRsLAl7k7i8iarQE6AoveZxS/fg7E7W8+4beEQEIumLjlf8nrOdLO3MsnPOW9UzZzz b/iJOWnduB7PQ6qZVQA== X-Proofpoint-Spam-Info: AW1haW4tMjYwNjE5MDAzNyBTYWx0ZWRfX+sNACdzdUu/N IzL0PyqKJBAO31D/MLCQ6LjmdDVvvJZx0BN9yo/BGj3yGY1MD3pttYrVbICnwyd7sZprUQJ0t7F RVAwNTQ7xXLGmfhYIw91FomMt8oM0f4= X-Proofpoint-ORIG-GUID: UnOYTrrXpxA66BXjZw3ra_TEed-OIfRn X-Authority-Analysis: v=2.4 cv=KbzidwYD c=1 sm=1 tr=0 ts=6a34c642 cx=c_pps a=cFYjgdjTJScbgFmBucgdfQ==:117 a=ouPCqIW2jiPt+lZRy3xVPw==:17 a=IkcTkHD0fZMA:10 a=FelO9ux0wxsA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=ZpdpYltYx_vBUK5n70dp:22 a=qC_FGOx9AAAA:8 a=EUspDBNiAAAA:8 a=RdXCHfyVKiYUX_lfwpsA:9 a=QEXdDO2ut3YA:10 a=scEy_gLbYbu1JhEsrz4S:22 a=fsdK_YakeE02zTmptMdW:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.125,FMLib:17.12.100.49 definitions=2026-06-19_01,2026-06-18_03,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 suspectscore=0 priorityscore=1501 lowpriorityscore=0 bulkscore=0 spamscore=0 impostorscore=0 adultscore=0 phishscore=0 clxscore=1015 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2606190037 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.180.131; envelope-from=brian.cain@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1781843560903158500 The debian-hexagon-cross image unpacks the codelinaro clang+llvm hexagon toolchain tarball into /opt. The archive contains symlinks (the .so/.a library aliases) and directories whose stored modes GNU tar restores via chmod()/lchmod(). Under docker, where the build runs as real root, those calls succeed. Under rootless podman the build runs in a user namespace on overlay storage, which rejects the chmod()/lchmod() calls with EPERM: tar: .../libclang_rt.builtins.a: Cannot change mode to rwxrwxrwx: \ Operation not permitted tar: .../x86_64-linux-gnu: Cannot change mode to rwxr-xr-x: \ Operation not permitted tar: Exiting with failure status due to previous errors tar then exits non-zero and aborts the build. The mode metadata on these symlinks and directories is irrelevant for our use, and neither --no-same-permissions nor extracting as a non-root user stops GNU tar 1.35 from attempting the lchmod on the symlinks. Download the tarball to a file and ignore tar errors during extraction with --no-same-owner and --no-same-permissions. Signed-off-by: Brian Cain --- tests/docker/dockerfiles/debian-hexagon-cross.docker | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/docker/dockerfiles/debian-hexagon-cross.docker b/tests/d= ocker/dockerfiles/debian-hexagon-cross.docker index 23e8bb2fb26..817c903246a 100644 --- a/tests/docker/dockerfiles/debian-hexagon-cross.docker +++ b/tests/docker/dockerfiles/debian-hexagon-cross.docker @@ -49,7 +49,12 @@ ENV TOOLCHAIN_BASENAME=3Dclang+llvm-${TOOLCHAIN_RELEASE}= -cross-hexagon-unknown-lin ENV TOOLCHAIN_URL=3Dhttps://artifacts.codelinaro.org/artifactory/codelinar= o-toolchain-for-hexagon/${TOOLCHAIN_RELEASE}_/${TOOLCHAIN_BASENAME}.tar.zst ENV CCACHE_WRAPPERSDIR=3D/usr/libexec/ccache-wrappers =20 -RUN curl -#SL "$TOOLCHAIN_URL" | tar --zstd -xC "$TOOLCHAIN_INSTALL" +# Ignore tar's chmod/lchmod EPERM on the toolchain symlinks and directorie= s, +# which rootless podman's overlay storage rejects (harmless mode metadata). +RUN curl -#SLo /tmp/toolchain.tar.zst "$TOOLCHAIN_URL" && \ + { tar --zstd --no-same-owner --no-same-permissions \ + -xf /tmp/toolchain.tar.zst -C "$TOOLCHAIN_INSTALL" || true; } &&= \ + rm -f /tmp/toolchain.tar.zst ENV PATH=3D$PATH:${TOOLCHAIN_INSTALL}/${TOOLCHAIN_BASENAME}/x86_64-linux-g= nu/bin ENV MAKE=3D/usr/bin/make # As a final step configure the user (if env is defined) --=20 2.34.1