[PATCH] build: Create deterministic tar archives

Chris Johns chrisj at rtems.org
Fri Aug 11 05:47:32 UTC 2023


On 11/8/2023 3:43 pm, Sebastian Huber wrote:
> On 11.08.23 07:39, Chris Johns wrote:
>> On 11/8/2023 3:37 pm, Sebastian Huber wrote:
>>> On 11.08.23 02:22, Chris Johns wrote:
>>>> On 10/8/2023 8:19 pm, Sebastian Huber wrote:
>>>>> This helps to make the build reproducible.
>>>>> ---
>>>>>    wscript | 11 ++++++++++-
>>>>>    1 file changed, 10 insertions(+), 1 deletion(-)
>>>>>
>>>>> diff --git a/wscript b/wscript
>>>>> index a8fca88dcb..4baf701c27 100755
>>>>> --- a/wscript
>>>>> +++ b/wscript
>>>>> @@ -188,6 +188,15 @@ def process_start_files(self):
>>>>>            self.link_task.dep_nodes.extend(self.bld.start_files)
>>>>>      +def deterministic_tar_info(info):
>>>> I suggest `tar_user_info` as the name.
>>> The function changes also the mtime. What about reproducible_tar_info()?
>> That is the out come and not the data itself. What about tar_metadata()?
> 
> What about make_tar_info_reproducible()?
> 

Sure

Chris


More information about the devel mailing list