[oe] [Darwin] cp -d fix in packaged-staging.bbclass
Didier "Ptitjes"
ptitjes at free.fr
Tue Apr 14 17:01:25 UTC 2009
Fix thanks to kergoth.
From cce22835b4205649a61eb32dd41cd4f991190c85 Mon Sep 17 00:00:00 2001
From: Didier Villevalois <didier at didier.local>
Date: Tue, 14 Apr 2009 17:51:57 +0200
Subject: [PATCH] packaged-staging.bbclass: BSD doesn't support cp -d, so
change to -P
Signed-off-by: Didier Villevalois <didier at didier.local>
---
classes/packaged-staging.bbclass | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/classes/packaged-staging.bbclass
b/classes/packaged-staging.bbclass
index d6272b8..741abaa 100644
--- a/classes/packaged-staging.bbclass
+++ b/classes/packaged-staging.bbclass
@@ -196,7 +196,7 @@ python packagestage_scenefunc () {
#
# Copy the stamp files into the main stamps directoy
#
- cmd = bb.data.expand("cp -dpR ${WORKDIR}/tstage/stamps/*
${TMPDIR}/stamps/", d)
+ cmd = bb.data.expand("cp -PpR ${WORKDIR}/tstage/stamps/*
${TMPDIR}/stamps/", d)
ret = os.system(cmd)
if ret != 0:
bb.fatal("Couldn't copy the staging package stamp files")
@@ -401,7 +401,7 @@ python do_package_stage () {
bb.mkdirhier(destdir)
# We need to include the package_stage stamp in the staging
package so create one
bb.build.make_stamp("do_package_stage", d)
- os.system("cp -dpR %s.do_* %s/" % (stampfn, destdir))
+ os.system("cp -PpR %s.do_* %s/" % (stampfn, destdir))
pstage_set_pkgmanager(d)
bb.build.exec_func("staging_helper", d)
--
1.6.2.2
More information about the Openembedded-devel
mailing list