79c4324644
Change-Id: I2d302dda68298877c65c99147f5bf22186a59aac
36 lines
1.1 KiB
Diff
36 lines
1.1 KiB
Diff
From 66da71e852323bf1eb7b75b93cfb13eb748ad10f Mon Sep 17 00:00:00 2001
|
|
From: Luo Yifan <luoyifan_yewu@cmss.chinamobile.com>
|
|
Date: Mon, 4 Dec 2023 10:09:12 +0800
|
|
Subject: [PATCH] scripts/entitlement.sh: Use backward-compatible cp flags
|
|
|
|
cherry picked from commit 4006a27c5e44734350009262efb0e2ec8da5ff09
|
|
|
|
Older versions of Mac OS X do not support cp -a. The cp man page indicates
|
|
that -a is equivalent to -pPR.
|
|
|
|
Signed-off-by: Evan Miller <emmiller@gmail.com>
|
|
Message-Id: <40635C6E-059A-4146-B1E2-F6376700EE85@gmail.com>
|
|
[Leave out -R, these are files and not directories. - Paolo]
|
|
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
|
|
Signed-off-by: Luo Yifan <luoyifan_yewu@cmss.chinamobile.com>
|
|
---
|
|
scripts/entitlement.sh | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/scripts/entitlement.sh b/scripts/entitlement.sh
|
|
index e2c956a3ac..0f412949ec 100755
|
|
--- a/scripts/entitlement.sh
|
|
+++ b/scripts/entitlement.sh
|
|
@@ -15,7 +15,7 @@ ENTITLEMENT="$4"
|
|
|
|
if $in_place; then
|
|
trap 'rm "$DST.tmp"' exit
|
|
- cp -af "$SRC" "$DST.tmp"
|
|
+ cp -pPf "$SRC" "$DST.tmp"
|
|
SRC="$DST.tmp"
|
|
else
|
|
cd "$MESON_INSTALL_DESTDIR_PREFIX"
|
|
--
|
|
2.27.0
|
|
|