]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
archiver: Don't try to preserve all attributes when copying files
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 1 Apr 2026 21:27:45 +0000 (22:27 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 2 Apr 2026 11:02:54 +0000 (12:02 +0100)
Similar to https://git.openembedded.org/bitbake/commit/?id=2f35dac0c821ab231459922ed98e1b2cc599ca9a
there is a problem in this code when copying from an NFS mount.

We currently use cp -p, which is a shortcut for --preserve=mode,ownership,timestamps.
We shouldn't need to preserve mode/ownership, only timestamps. Update the code
in the same way the bitbake fetcher was fixed for consistency.

This fixes build failures on OpenSUSE 16.0.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/archiver.bbclass

index d963d28f432d0aab6f977ccd2e3336095fe347b5..1f1ee45bd7ae31abe40f8c0e405c7ef4b82f2941 100644 (file)
@@ -398,7 +398,7 @@ python do_ar_mirror() {
 
         # We now have an appropriate localpath
         bb.note('Copying source mirror')
-        cmd = 'cp -fpPRH %s %s' % (localpath, destdir)
+        cmd = 'cp --force --preserve=timestamps --no-dereference --recursive -H %s %s' % (localpath, destdir)
         subprocess.check_call(cmd, shell=True)
 }