Using Yocto 3.3.1 (Hardknott).
We have the following in local.conf:
COPY_LIC_DIRS = "1"
COPY_LIC_MANIFEST = "1"
ntp Makefile contains:
$(srcdir)/COPYRIGHT: $(srcdir)/html/copyright.html
{ echo "This file is automatically generated from html/copyright.html"
; \
lynx -dump $(srcdir)/html/copyright.html ;} > COPYRIGHT.new \
&& mv -f COPYRIGHT.new $(srcdir)/COPYRIGHT
When building the firmware image, COPYRIGHT is hardlinked into image
rootfs (usr/share/common-licenses/ntp/COPYRIGHT), and then the timestamp
is changed to REPRODUCIBLE_TIMESTAMP_ROOTFS. Since it is hardlinked,
that changes the timestamp of the file in the source directory also. If
a settings change causes bitbake to compile ntp again without deleting
and unpacking the files first, it fails with:
/bin/bash: line 1: lynx: command not found
make: *** [Makefile:1119: ../ntp-4.2.8p15/COPYRIGHT] Error 127
How to reproduce:
Add the lines shown above to local.conf
Add ntp to your image
Make sure REPRODUCIBLE_TIMESTAMP_ROOTFS is set.
bitbake core-image-whatever
bitbake -f -c compile ntp
The workaround is 'bitbake -c cleansstate ntp'.
Tony Battersby
Cybernetics
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#92249):
https://lists.openembedded.org/g/openembedded-devel/message/92249
Mute This Topic: https://lists.openembedded.org/mt/84254821/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-