From: Bruce Ashfield <[email protected]> The routine to get the timestamp of the kernel commits should specify LC_ALL to ensure consistent behaviour. We were making a copy of the env, adding the setting .. and then not using it on the call.
We specifiy the env in the subprocess call to ensure the variable is available. Signed-off-by: Bruce Ashfield <[email protected]> --- This is the incremental patch to my previous series. Squash as required! Bruce meta/classes/kernel.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass index f31084948f..3ac91fbd4f 100644 --- a/meta/classes/kernel.bbclass +++ b/meta/classes/kernel.bbclass @@ -164,7 +164,7 @@ def get_kernel_source_date_epoch(d): env = os.environ.copy() env['LC_ALL'] = 'C' - ts = subprocess.check_output(['date', '-d @%s' % s_d_e]).decode('utf-8') + ts = subprocess.check_output(['date', '-d @%s' % s_d_e], env=env).decode('utf-8') return ts -- 2.19.1
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#138223): https://lists.openembedded.org/g/openembedded-core/message/138223 Mute This Topic: https://lists.openembedded.org/mt/74182998/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
