Skip to contentSkip to conversation

cp -d fix in packaged-staging.bbclass

Darwin Didier "Ptitjes 2 participants 3 messages Apr 14, 2009

lore
Share & tools
lore
#0 lore raw

Fix thanks to kergoth.

From cce22835b4205649a61eb32dd41cd4f991190c85 Mon Sep 17 00:00:00 2001
From: Didier Villevalois <[email protected]>
Date: Tue, 14 Apr 2009 17:51:57 +0200
Subject: [PATCH] packaged-staging.bbclass: BSD doesn't support cp -d, so change to -P

---
 classes/packaged-staging.bbclass |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
classes/packaged-staging.bbclass +1 -1
index d6272b8..741abaa 100644
@@ -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)

Signature · 1 line
1.6.2.2
#1 lore raw
Quoted 9 lines · Didier "Ptitjes

Fix thanks to kergoth.

From cce22835b4205649a61eb32dd41cd4f991190c85 Mon Sep 17 00:00:00 2001
From: Didier Villevalois <[email protected]>
Date: Tue, 14 Apr 2009 17:51:57 +0200
Subject: [PATCH] packaged-staging.bbclass: BSD doesn't support cp -d, so change to -P

Ehm.... That looks suspicously like http://cgit.openembedded.net/cgit.cgi?url=openembedded/commit/&h=koen/darwin-host-fixes&id=9099f0865a74dbefa7cc7b377f8aac60a0458515

If someone wants to have a look at http://cgit.openembedded.net/cgit.cgi?url=openembedded/log/&h=koen/darwin-host-fixes and cherrypick fixes to .dev/stable, great!

regards,

Koen

#2 lore raw
Quoted 9 lines · Koen Kooi
Quoted 8 lines · Didier "Ptitjes

Fix thanks to kergoth.

From cce22835b4205649a61eb32dd41cd4f991190c85 Mon Sep 17 00:00:00 2001
From: Didier Villevalois <[email protected]>
Date: Tue, 14 Apr 2009 17:51:57 +0200
Subject: [PATCH] packaged-staging.bbclass: BSD doesn't support cp -d, so change to -P

Quoted 4 lines
Quoted 1 line

Ehm.... That looks suspicously like http://cgit.openembedded.net/cgit.cgi?url=openembedded/commit/&h=koen/darwin-host-fixes&id=9099f0865a74dbefa7cc7b377f8aac60a0458515

Err! Sorry I missed it.
Didier.