mesonbuild / mesonbuild/mesonwrap

Replicated service and reproducible patch archives

Open
#42 4 comments 0 reactions 1 assignee View on GitHub

@legeana is already working on this.

Since Jan 26, 2020.

Dominant language
Python
Stars
26
Forks
7
PR merge metrics
No merged PRs in 30d

Description

We can host multiple instances of the service provided that they are able to catch up with the main replica on their own. For this we need to be able to generate exactly same zip files
- https://wiki.debian.org/ReproducibleBuilds/TimestampsInZip
- We can use revision commit timestamp for all files, thanks @textshell for suggestion

Snippet of python code how we can do it:
```python
import zipfile

with zipfile.ZipFile('/tmp/test.zip', 'w') as z:
f = zipfile.ZipInfo()
f.filename = 'hello.txt'
f.date_time = (1980, 1, 1, 0, 0, 0)
f.compress_type = zipfile.ZIP_DEFLATED
z.writestr(f, 'hello world')
f = zipfile.ZipInfo()
f.filename = 'world.txt'
f.date_time = (1980, 1, 1, 0, 0, 0)
f.compress_type = zipfile.ZIP_DEFLATED
z.writestr(f, 'hello big world')
```

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.