<feed xmlns='http://www.w3.org/2005/Atom'>
<title>staging/pepe2k/scripts, branch v22.03.0-rc1</title>
<subtitle>Staging tree of Piotr Dymacz</subtitle>
<id>https://git.openwrt.org/openwrt/staging/pepe2k/atom?h=v22.03.0-rc1</id>
<link rel='self' href='https://git.openwrt.org/openwrt/staging/pepe2k/atom?h=v22.03.0-rc1'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/'/>
<updated>2022-04-15T13:12:13Z</updated>
<entry>
<title>scripts/gen_image_generic.sh: fix order of files in EFI bootfs</title>
<updated>2022-04-15T13:12:13Z</updated>
<author>
<name>Daniel Golle</name>
</author>
<published>2022-04-14T23:46:28Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=3e16ed30638762cbffc2bb94514a62239ce2a66b'/>
<id>urn:sha1:3e16ed30638762cbffc2bb94514a62239ce2a66b</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;
(cherry picked from commit 4d289ae7e63893f90957b77962c6b60574d35441)
</content>
</entry>
<entry>
<title>scripts/gen_image_generic.sh: generate reproducible EFI filesystem</title>
<updated>2022-04-15T13:11:54Z</updated>
<author>
<name>Daniel Golle</name>
</author>
<published>2022-04-11T14:25:27Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=5e617186404ce578adf4ec3f2f1c90fd671c8f9b'/>
<id>urn:sha1:5e617186404ce578adf4ec3f2f1c90fd671c8f9b</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;
(cherry picked from commit aece8f5ae8d15e5e79b8e34a176895209709afb6)
</content>
</entry>
<entry>
<title>scripts/gen_image_generic.sh: make ext4 bootfs reproducible</title>
<updated>2022-04-15T13:11:49Z</updated>
<author>
<name>Daniel Golle</name>
</author>
<published>2022-03-28T17:13:45Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=a376efae8f17a94b6c9eb04fa7ef05a5abf73397'/>
<id>urn:sha1:a376efae8f17a94b6c9eb04fa7ef05a5abf73397</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;
(cherry picked from commit 068ea2cde04e2666fb05731cea941bccfaeddc25)
</content>
</entry>
<entry>
<title>scripts: make sure sort-order is independent from locale</title>
<updated>2022-04-06T16:35:49Z</updated>
<author>
<name>Daniel Golle</name>
</author>
<published>2022-04-06T16:25:16Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=087795323576ab8f4478f5aa3568adaec717d26f'/>
<id>urn:sha1:087795323576ab8f4478f5aa3568adaec717d26f</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;
(cherry picked from commit 1d77dca3b32dd883bcc2213675cf21111ac1beca)
</content>
</entry>
<entry>
<title>build: store sha256_unsigned in JSON</title>
<updated>2022-04-06T13:03:58Z</updated>
<author>
<name>Paul Spooren</name>
</author>
<published>2022-03-28T02:29:09Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=a5cf20d1974f8247ed87fad4a61216cc75eddfdb'/>
<id>urn:sha1:a5cf20d1974f8247ed87fad4a61216cc75eddfdb</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;
(cherry picked from commit 8822a8d850ba2df69b81289758959bb90643a696)
</content>
</entry>
<entry>
<title>scripts: make sure conffiles are sorted</title>
<updated>2022-04-06T12:59:44Z</updated>
<author>
<name>Paul Spooren</name>
</author>
<published>2022-03-31T21:51:29Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=ec2bc81c78585755491f9a1a3f30edb6312025f0'/>
<id>urn:sha1:ec2bc81c78585755491f9a1a3f30edb6312025f0</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;
(cherry picked from commit 56ce110b73970bcd65d309440baada84c8e1504b)
</content>
</entry>
<entry>
<title>scripts/mkits.sh: replace forgotten '-' with ${REFERENCE_CHAR}</title>
<updated>2022-03-27T15:14:00Z</updated>
<author>
<name>Daniel Golle</name>
</author>
<published>2022-03-23T19:34:06Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=2c2cc4bb67cd3c02ca733708d9bb4d34a6ceed3e'/>
<id>urn:sha1:2c2cc4bb67cd3c02ca733708d9bb4d34a6ceed3e</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;
(cherry picked from commit e89c85249e311e9a376d07cda33c9dc39b12a906)
</content>
</entry>
<entry>
<title>toolchain: binutils: add support for version 2.38</title>
<updated>2022-03-09T10:23:25Z</updated>
<author>
<name>Rui Salvaterra</name>
</author>
<published>2022-02-09T15:18:45Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=6b822189b11d0abb3a8618f7b9f73a9de50caabd'/>
<id>urn:sha1:6b822189b11d0abb3a8618f7b9f73a9de50caabd</id>
<content type='text'>
While at it, also fix the download.xs4all.nl and add ftp.gnu.org to the GNU
mirrors, as it seems to be updated faster.

Deleted (upstreamed):
600-Close_the_file_descriptor.patch [1]

[1] https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=5a98fb7513b559e20dfebdbaa2a471afda3b4742

Signed-off-by: Rui Salvaterra &lt;rsalvaterra@gmail.com&gt;
</content>
</entry>
<entry>
<title>mkhash: fix build errors on FreeBSD 13.0</title>
<updated>2022-03-05T17:01:04Z</updated>
<author>
<name>Georgi Valkov</name>
</author>
<published>2022-03-03T15:04:38Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=1324403eb6c65baa77dd83d1aa9fbd385b877826'/>
<id>urn:sha1:1324403eb6c65baa77dd83d1aa9fbd385b877826</id>
<content type='text'>
be64enc, be16dec, and be32dec are declared on FreeBSD 13.0, in
/usr/include/sys/endian.h so we should not declare them.

Fixes the following error during feeds update:
staging_dir/host/bin/mkhash: No such file or directory

gcc scripts/mkhash.c
scripts/mkhash.c:111:1: error: redefinition of 'be64enc'
  111 | be64enc(void *buf, uint64_t u)

Signed-off-by: Georgi Valkov &lt;gvalkov@abv.bg&gt;
</content>
</entry>
<entry>
<title>check-toolchain-clean.sh: workaround stray rebuilds</title>
<updated>2022-02-28T14:17:11Z</updated>
<author>
<name>Petr Štetiar</name>
</author>
<published>2022-02-24T16:37:45Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=57f7a86c681b70c688f51e26d31e45baf64ac5f9'/>
<id>urn:sha1:57f7a86c681b70c688f51e26d31e45baf64ac5f9</id>
<content type='text'>
It seems, that there are currently some unhandled corner cases in which
`.toolchain_build_ver` results in empty file and thus forcing rebuilds,
even if the toolchain was build correctly just a few moments ago. Until
proper fix is found, workaround that by checking for this corner case
and simply populate `.toolchain_build_ver` file.

While at it, improve the UX and display version mismatch, so it's more
clear what has forced the rebuild:

 "Toolchain build version changed (11.2.0-1 != ), running make targetclean"

References: https://gitlab.com/ynezz/openwrt/-/jobs/2133332533/raw
Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt;
</content>
</entry>
</feed>
