]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
dosfstools: add backported patch for honouring SOURCE_DATE_EPOCH
authorRasmus Villemoes <ravi@prevas.dk>
Wed, 6 Nov 2024 15:02:58 +0000 (16:02 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 19 Nov 2024 11:21:35 +0000 (11:21 +0000)
commitbf9e6bf884bc780547d3dc88c3977c8102e1faeb
tree27460d2f7e545ea235394137afcc0976cafe8910
parent22b508da24e0f7e5ad8ce4e090832bd0829963f0
dosfstools: add backported patch for honouring SOURCE_DATE_EPOCH

Currently, file system images created with mkfs.vfat are not
reproducible, because both the file system creation time and the
volume id are derived from the current time.

Upstream has added a patch for deriving those from SOURCE_DATE_EPOCH,
when defined, many years ago, but unfortunately there is no official
release containing that patch.

The issue [1] is 2.5 years old, so there's no reason to believe such a
release would be just around the corner.

The patch applies cleanly, and e.g. Arch Linux already uses this exact
combination of source tarball and this single patch [2], so I think
this should be ok. It certainly works for the images I've tested on.

[1] https://github.com/dosfstools/dosfstools/issues/179
[2] https://gitlab.archlinux.org/archlinux/packaging/packages/dosfstools/-/blob/main/PKGBUILD?ref_type=heads

Signed-off-by: Rasmus Villemoes <ravi@prevas.dk>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/dosfstools/dosfstools/source-date-epoch.patch [new file with mode: 0644]
meta/recipes-devtools/dosfstools/dosfstools_4.2.bb