Skip to contentSkip to conversation

perl: Preserve attributes when applying cross files

PATCH New Joshua Watt 1 participant 1 message May 28, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 perl: Preserve attributes when applying cross files

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.

---
 meta/recipes-devtools/perl-sanity/perl_5.28.2.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-devtools/perl-sanity/perl_5.28.2.bb +1 -1
index 12b220a4d80..f175e87a12e 100644
@@ -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() {
Signature · 1 line
2.21.0