]> code.ossystems Code Review - openembedded-core.git/commitdiff
perl: Preserve attributes when applying cross files
authorJoshua Watt <jpewhacker@gmail.com>
Tue, 28 May 2019 02:27:32 +0000 (21:27 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 29 May 2019 11:53:46 +0000 (12:53 +0100)
The file attributes (specifically the timestamps) must be preserved when
applying the cross files to have reproducible builds. Otherwise, the
cross files get the timestamp from when they are copied in the do_unpack
task, and the reproducible_build class uses this timestamp since it is
the youngest one in the source tree.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/perl-sanity/perl_5.28.2.bb

index 12b220a4d804291fc4538e0a6ea8764adf0d794d..f175e87a12eadd462c7fee58b3a972723674e9ae 100644 (file)
@@ -43,7 +43,7 @@ do_unpack_append() {
 }
 
 do_copy_perlcross() {
-    cp -rf ${WORKDIR}/perl-cross*/* ${S}
+    cp -rfp ${WORKDIR}/perl-cross*/* ${S}
 }
 
 do_configure_class-target() {