Skip to contentSkip to conversation

cwautomacros: Ensure version is set deterministically

PATCH New Richard Purdie 1 participant 1 message Feb 14, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cwautomacros: Ensure version is set deterministically

The makefile injects the current date into the version file. Do this deterministically with SOURCE_DATE_EPOCH.

---
 meta/recipes-extended/cwautomacros/cwautomacros_20110201.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-extended/cwautomacros/cwautomacros_20110201.bb +1 -1
index 65a99fc28d7..02b016fdf1f 100644
@@ -13,7 +13,7 @@ do_configure() {
 }
 
 do_install() {
-	oe_runmake CWAUTOMACROSPREFIX=${D}${prefix} install
+	oe_runmake LABEL=`date -d @${SOURCE_DATE_EPOCH} +%Y%m%d` CWAUTOMACROSPREFIX=${D}${prefix} install
 
 	# cleanup buildpaths in autogen.sh
 	sed -i -e 's,${D},,g' ${D}${prefix}/share/cwautomacros/scripts/autogen.sh
Signature · 1 line
2.27.0