[OE-core] reproducible_final_image_task failing when REPRODUCIBLE_TIMESTAMP_ROOTFS unset

Peter Kjellerstedt peter.kjellerstedt at axis.com
Fri Jun 22 11:06:50 UTC 2018


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

//Peter

-------- Originalmeddelande --------
Från: Alex Kiernan <alex.kiernan at gmail.com>
Datum: 2018-06-22 12:20 (GMT+01:00)
Till: openembedded-core at lists.openembedded.org, juro.bystricky at intel.com
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
Openembedded-core at lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20180622/c01c9d47/attachment-0002.html>


More information about the Openembedded-core mailing list