From nobody Sun Feb 8 12:43:22 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass header.i=@amazon.com; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=quarantine dis=none) header.from=amazon.com ARC-Seal: i=1; a=rsa-sha256; t=1674123309; cv=none; d=zohomail.com; s=zohoarc; b=jCVQjXDnsIJtYJsgQ0yB4URBY6y5lCWY3jOj7BrMzFV06TY+IzGvzVEKTAp5gbyBLcNTrLfHQU6hDg/8ySGvqgyKpwq2GHoN3Wz0bUNFI5JZRD1pykAFovlrEsnAEdPfD846NitTy/SPt4SGLJiGkskUdLCSjm/NPJ28l1Js4Mk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1674123309; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=2xU/uBcWEWbfzk2TqLk64mpRRkZpjZZO7FkjawvYQC8=; b=NsevsM+9JzmuNBlUq23aYgRQRz94Ex1bw/8DKMHbjT6k9vmPo9+Z8CJezZXRKDVoSJftqDolWDnQ6PSs9RTq1UCfZgMTJIqfMsAUL6X5zrcGCSOoXeRyI+PtSCnJIwkFSCVd0CH2RpuYbQcSsredBhltnyPXIvIUWSvec0diNNA= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=@amazon.com; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1674123309429751.3542078670455; Thu, 19 Jan 2023 02:15:09 -0800 (PST) Received: from list by lists.xenproject.org with outflank-mailman.480913.745537 (Exim 4.92) (envelope-from ) id 1pIRwP-0007lT-RG; Thu, 19 Jan 2023 10:14:41 +0000 Received: by outflank-mailman (output) from mailman id 480913.745537; Thu, 19 Jan 2023 10:14:41 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1pIRwP-0007lK-NZ; Thu, 19 Jan 2023 10:14:41 +0000 Received: by outflank-mailman (input) for mailman id 480913; Thu, 19 Jan 2023 10:14:40 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1pIRwO-0007kn-DI for xen-devel@lists.xenproject.org; Thu, 19 Jan 2023 10:14:40 +0000 Received: from smtp-fw-2101.amazon.com (smtp-fw-2101.amazon.com [72.21.196.25]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id 140a99f7-97e2-11ed-b8d1-410ff93cb8f0; Thu, 19 Jan 2023 11:14:38 +0100 (CET) Received: from iad12-co-svc-p1-lb1-vlan3.amazon.com (HELO email-inbound-relay-iad-1a-m6i4x-96feee09.us-east-1.amazon.com) ([10.43.8.6]) by smtp-border-fw-2101.iad2.amazon.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Jan 2023 10:14:34 +0000 Received: from EX13D50EUA002.ant.amazon.com (iad12-ws-svc-p26-lb9-vlan2.iad.amazon.com [10.40.163.34]) by email-inbound-relay-iad-1a-m6i4x-96feee09.us-east-1.amazon.com (Postfix) with ESMTPS id 3D6C842F0E for ; Thu, 19 Jan 2023 10:14:34 +0000 (UTC) Received: from EX19D003EUA004.ant.amazon.com (10.252.50.128) by EX13D50EUA002.ant.amazon.com (10.43.165.201) with Microsoft SMTP Server (TLS) id 15.0.1497.45; Thu, 19 Jan 2023 10:14:33 +0000 Received: from EX13MTAUEE002.ant.amazon.com (10.43.62.24) by EX19D003EUA004.ant.amazon.com (10.252.50.128) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.1118.7; Thu, 19 Jan 2023 10:14:33 +0000 Received: from dev-dsk-mstrasun-1c-15417e94.eu-west-1.amazon.com (172.19.92.214) by mail-relay.amazon.com (10.43.62.224) with Microsoft SMTP Server id 15.0.1497.45 via Frontend Transport; Thu, 19 Jan 2023 10:14:32 +0000 Received: by dev-dsk-mstrasun-1c-15417e94.eu-west-1.amazon.com (Postfix, from userid 17415739) id 19BEB21426; Thu, 19 Jan 2023 10:14:32 +0000 (UTC) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" X-Inumbo-ID: 140a99f7-97e2-11ed-b8d1-410ff93cb8f0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1674123278; x=1705659278; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=2xU/uBcWEWbfzk2TqLk64mpRRkZpjZZO7FkjawvYQC8=; b=XwJ0oRAz/IEfDDBcyv6oPOgWj5WE8hqfb1DuEJZdQM2/DDx+iUhyJvVH 6G3VC0pnt37F1kgwwhmQ1MbihMrhGpI8aEDhooo8sbzOpGE3FuKDE7Fl7 bWHJXDm53j4046GY3cLLilt9HmAdlkWatYBtFz4L1QHhshjX2UUSr0UAO k=; X-IronPort-AV: E=Sophos;i="5.97,228,1669075200"; d="scan'208";a="284332618" From: Mihails Strasuns To: CC: , Raphael Ning , Bjoern Doebel , Martin Pohlack Subject: [PATCH v1 2/4] livepatch-build: Allow a patch to introduce new subdirs Date: Thu, 19 Jan 2023 10:13:04 +0000 Message-ID: <472bfbf92aba6d3409b2a101798f04a50c97f6e9.1673623880.git.mstrasun@amazon.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: References: MIME-Version: 1.0 Precedence: Bulk Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @amazon.com) X-ZM-MESSAGEID: 1674123310325100001 Content-Type: text/plain; charset="utf-8" From: Raphael Ning Fix a bug in create_patch() where cp, strip, etc. will fail if the new object file introduced by the patch is located in a new subdirectory: DEBUG: cp: cannot create regular file `output/xen/common/lu/lu.o': No such= file or directory DEBUG: strip: 'output/xen/common/lu/lu.o': No such file In this example, xen/common/lu/ does not exist in the original (unpatched) Xen source tree. It needs to be created in output/ as well. Signed-off-by: Raphael Ning Reviewed-by: Bjoern Doebel Reviewed-by: Martin Pohlack Reviewed-by: Ross Lagerwall --- livepatch-build | 1 + 1 file changed, 1 insertion(+) diff --git a/livepatch-build b/livepatch-build index f7d6471..444daa9 100755 --- a/livepatch-build +++ b/livepatch-build @@ -232,6 +232,7 @@ function create_patch() =20 NEW_FILES=3D$(comm -23 <(cd patched/xen && find . -type f -name '*.o' = | sort) <(cd original/xen && find . -type f -name '*.o' | sort)) for i in $NEW_FILES; do + mkdir -p "output/$(dirname "$i")" cp "patched/$i" "output/$i" [[ $STRIP -eq 1 ]] && strip --strip-unneeded "output/$i" CHANGED=3D1 --=20 2.38.1 Amazon Development Center Germany GmbH Krausenstr. 38 10117 Berlin Geschaeftsfuehrung: Christian Schlaeger, Jonathan Weiss Eingetragen am Amtsgericht Charlottenburg unter HRB 149173 B Sitz: Berlin Ust-ID: DE 289 237 879