Skip to contentSkip to conversation

reproducible_final_image_task failing when REPRODUCIBLE_TIMESTAMP_ROOTFS unset

DISCUSSION Peter Kjellerstedt 1 participant 1 message Jun 22, 2018

lore
Share & tools
lore
#0 lore raw

My guess is that it is expecting Poky at the top. However, that is a pretty bad assumption.

//Peter

-------- Originalmeddelande --------
Från: Alex Kiernan <[email protected]>
Datum: 2018-06-22 12:20 (GMT+01:00)
Till: [email protected], [email protected]
Rubrik: [OE-core] reproducible_final_image_task failing when REPRODUCIBLE_TIMESTAMP_ROOTFS unset

I'm trying to use BUILD_REPRODUCIBLE_BINARIES, but I tripped over a problem when I'd not set REPRODUCIBLE_TIMESTAMP_ROOTFS.

In the reproducible_final_image_task (), we try to set REPRODUCIBLE_TIMESTAMP_ROOTFS based on the top most git timestamp, but that's failing because the working directory at that point is my build directory, which isn't git controlled:

| NOTE: Executing reproducible_final_image_task ...
| DEBUG: Executing shell function reproducible_final_image_task
| fatal: Not a git repository (or any of the parent directories): .git
| WARNING: /home/vagrant/poky-master/build/tmp/work/nanohub-poky-linux-gnueabi/nano-image-core/1.0-r0/temp/run.reproducible_final_image_task.3664:1

exit 128 from 'REPRODUCIBLE_TIMESTAMP_ROOTFS=git log -1 --pretty=%ct'

Clearly just setting REPRODUCIBLE_TIMESTAMP_ROOTFS in my global config fixes the problem, but that doesn't help anyone else trying to use this... I'm really not sure what repo that piece of code is intending to target.

--
Alex Kiernan
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core