<feed xmlns='http://www.w3.org/2005/Atom'>
<title>staging/chunkeey/scripts, branch master</title>
<subtitle>Staging tree of Christian Lamparter</subtitle>
<id>https://git-03.infra.openwrt.org/openwrt/staging/chunkeey/atom?h=master</id>
<link rel='self' href='https://git-03.infra.openwrt.org/openwrt/staging/chunkeey/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/chunkeey/'/>
<updated>2022-04-19T20:59:50Z</updated>
<entry>
<title>build: use numeric-owner in ipkg-build</title>
<updated>2022-04-19T20:59:50Z</updated>
<author>
<name>Paul Spooren</name>
</author>
<published>2022-04-19T18:02:59Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/chunkeey/commit/?id=7a732213322d9aa6d8743beffb185ca6f53a5bea'/>
<id>urn:sha1:7a732213322d9aa6d8743beffb185ca6f53a5bea</id>
<content type='text'>
To create packages the `ipkg-build` script is used which double packs
`control.tar.gz` and `data.tar.gz` to a single package. By default it's
using a verbose username instead of a numeric value for files.

Official OpenWrt images (artifacts) are created within docker containers
which do not seem to contain those verbose usernames and instead
defaults to numeric values.

This becomes a problem when rebuilding public artifacts because other
build environments may offer verbose usernames and there the created
packages is different from the official ones.

With this commit `ipkg-build` always uses numeric values for user/group
and thereby making it easier to reproduce official artifacts.

Signed-off-by: Paul Spooren &lt;mail@aparcar.org&gt;
</content>
</entry>
<entry>
<title>scripts: format to black</title>
<updated>2022-04-16T12:53:17Z</updated>
<author>
<name>Doug Kerr</name>
</author>
<published>2022-04-15T19:54:30Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/chunkeey/commit/?id=6f692c9c497e5e60eb51da741b07ef1c10096355'/>
<id>urn:sha1:6f692c9c497e5e60eb51da741b07ef1c10096355</id>
<content type='text'>
clean up formatting with black using 80 character line limit

Signed-off-by: Doug Kerr &lt;dek3rr@gmail.com&gt;
</content>
</entry>
<entry>
<title>scripts: use std library for jam crc32 calculation</title>
<updated>2022-04-16T12:53:17Z</updated>
<author>
<name>Doug Kerr</name>
</author>
<published>2022-04-15T19:47:32Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/chunkeey/commit/?id=0642a2166b9526ec01fe47b6aed1fd57a29e35f9'/>
<id>urn:sha1:0642a2166b9526ec01fe47b6aed1fd57a29e35f9</id>
<content type='text'>
CRC32 is available in a standard library. It seems reasonable
to defer to that rather than run a custom implementation.

Signed-off-by: Doug Kerr &lt;dek3rr@gmail.com&gt;
</content>
</entry>
<entry>
<title>scripts/gen_image_generic.sh: fix order of files in EFI bootfs</title>
<updated>2022-04-15T00:17:04Z</updated>
<author>
<name>Daniel Golle</name>
</author>
<published>2022-04-14T23:46:28Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/chunkeey/commit/?id=4d289ae7e63893f90957b77962c6b60574d35441'/>
<id>urn:sha1:4d289ae7e63893f90957b77962c6b60574d35441</id>
<content type='text'>
mtools recursive copy (mcopy -s ...) is using READDIR(3) to iterate
over the directory entries, hence they end up in the FAT filesystem in
traversal order which breaks reproducibility (rather than being added
to the FAT filesystem in a reproducible order). Implement recursive
copy in gen_image_generic.sh in Shell code instead, as in that way we
can force files to be copied in reproducible order.

Fixes: aece8f5ae8 ("scripts/gen_image_generic.sh: generate reproducible EFI filesystem")
Signed-off-by: Daniel Golle &lt;daniel@makrotopia.org&gt;
</content>
</entry>
<entry>
<title>scripts/gen_image_generic.sh: generate reproducible EFI filesystem</title>
<updated>2022-04-11T14:29:33Z</updated>
<author>
<name>Daniel Golle</name>
</author>
<published>2022-04-11T14:25:27Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/chunkeey/commit/?id=aece8f5ae8d15e5e79b8e34a176895209709afb6'/>
<id>urn:sha1:aece8f5ae8d15e5e79b8e34a176895209709afb6</id>
<content type='text'>
Generate FAT filesystem for EFI boot in a reproducible way:
 * use '--invariant' option of mkfs.fat
 * set timestamps of all files to SOURCE_DATE_EPOCH
 * make sure files are ordered locale-independent

Signed-off-by: Daniel Golle &lt;daniel@makrotopia.org&gt;
</content>
</entry>
<entry>
<title>scripts: make sure sort-order is independent from locale</title>
<updated>2022-04-06T16:33:31Z</updated>
<author>
<name>Daniel Golle</name>
</author>
<published>2022-04-06T16:25:16Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/chunkeey/commit/?id=1d77dca3b32dd883bcc2213675cf21111ac1beca'/>
<id>urn:sha1:1d77dca3b32dd883bcc2213675cf21111ac1beca</id>
<content type='text'>
Set LC_ALL=C environment variable when calling 'sort' as the sort
order otherwise depends on the locale set.

Fixes: 56ce110b73 ("scripts: make sure conffiles are sorted")
Signed-off-by: Daniel Golle &lt;daniel@makrotopia.org&gt;
</content>
</entry>
<entry>
<title>scripts: make sure conffiles are sorted</title>
<updated>2022-04-01T12:08:58Z</updated>
<author>
<name>Paul Spooren</name>
</author>
<published>2022-03-31T21:51:29Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/chunkeey/commit/?id=56ce110b73970bcd65d309440baada84c8e1504b'/>
<id>urn:sha1:56ce110b73970bcd65d309440baada84c8e1504b</id>
<content type='text'>
It may happen that conffiles are in different order on different builds.
Make sure they have the same order by sorting them.

FIX: #9612

Signed-off-by: Paul Spooren &lt;mail@aparcar.org&gt;
</content>
</entry>
<entry>
<title>build: store sha256_unsigned in JSON</title>
<updated>2022-03-29T20:41:06Z</updated>
<author>
<name>Paul Spooren</name>
</author>
<published>2022-03-28T02:29:09Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/chunkeey/commit/?id=8822a8d850ba2df69b81289758959bb90643a696'/>
<id>urn:sha1:8822a8d850ba2df69b81289758959bb90643a696</id>
<content type='text'>
Introduce `sha256_unsigned` which is a checksum of the image _before_ a
signature is attached. This is helpful to compare image reproducibility.

Since the `.sha256sum` file is located in the $(KDIR) folder, switch
$(BIN_DIR) with $(KDIR) to simplify the code. The value of $(BIN_DIR)
itself is not stored inside the resulting JSON file, so it can be
replaced.

Signed-off-by: Paul Spooren &lt;mail@aparcar.org&gt;
</content>
</entry>
<entry>
<title>scripts/gen_image_generic.sh: make ext4 bootfs reproducible</title>
<updated>2022-03-28T19:52:37Z</updated>
<author>
<name>Daniel Golle</name>
</author>
<published>2022-03-28T17:13:45Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/chunkeey/commit/?id=068ea2cde04e2666fb05731cea941bccfaeddc25'/>
<id>urn:sha1:068ea2cde04e2666fb05731cea941bccfaeddc25</id>
<content type='text'>
Set fixed timestamp for kernel other files in /boot filesystem.
This should help making x86 *combined* images reproducible.

Signed-off-by: Daniel Golle &lt;daniel@makrotopia.org&gt;
</content>
</entry>
<entry>
<title>scripts/mkits.sh: replace forgotten '-' with ${REFERENCE_CHAR}</title>
<updated>2022-03-24T00:46:45Z</updated>
<author>
<name>Daniel Golle</name>
</author>
<published>2022-03-23T19:34:06Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/chunkeey/commit/?id=e89c85249e311e9a376d07cda33c9dc39b12a906'/>
<id>urn:sha1:e89c85249e311e9a376d07cda33c9dc39b12a906</id>
<content type='text'>
Cosmetical change to improve style in mkits.sh.

Fixes: fd679086473 ("scripts: mkits.sh: Allow legacy @ mode for dts creation")
Signed-off-by: Daniel Golle &lt;daniel@makrotopia.org&gt;
</content>
</entry>
</feed>
