gtk+3: fix reproducible build failure
PATCH 1/1 gtk+3: fix reproducible build failure
From: Ross Burton <[email protected]>
There's a build race between the use of a pre-generated file and re-generating it again, which breaks reproducible builds. Solve the race by deleting the shipped generated file.
--- meta/recipes-gnome/gtk+/gtk+3.inc | 8 ++++++++ 1 file changed, 8 insertions(+)
meta/recipes-gnome/gtk+/gtk+3.inc +8 -0
@@ -1,3 +1,4 @@ + SUMMARY = "Multi-platform toolkit for creating GUIs" DESCRIPTION = "GTK+ is a multi-platform toolkit for creating graphical user interfaces. Offering a complete \ set of widgets, GTK+ is suitable for projects ranging from small one-off projects to complete application suites."
@@ -31,6 +32,13 @@ do_configure_prepend() { ln -s ${TARGET_PREFIX}libtool libtool #delete a file that will get confused with generated one in ${B} rm -f ${S}/gtk/gtktypefuncs.c + + # These files are generated by wayland-scanner but will race over modification + # time between the copies in the sysroot from wayland-protocols and the copy + # in the source tree. Solve the race by deleting so they need to be regenerated. + # 3.24.22 will not be shipping these files so this can be deleted then: + # https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/2183 + rm -f ${S}/modules/input/text-input-unstable-v3*.[ch] } EXTRA_OECONF += " \
Signature · 1 line
2.26.2
Quoted 21 lines · Ross Burton
From: Ross Burton <[email protected]>
There's a build race between the use of a pre-generated file and re-generating it again, which breaks reproducible builds. Solve the race by deleting the shipped generated file.
Signed-off-by Ross Burton <[email protected]>--- meta/recipes-gnome/gtk+/gtk+3.inc | 8 ++++++++ 1 file changed, 8 insertions(+)meta/recipes-gnome/gtk+/gtk+3.inc +1
-0@@ -1,3 +1,4 @@ + SUMMARY = "Multi-platform toolkit for creating GUIs" DESCRIPTION = "GTK+ is a multi-platform toolkit for creating graphical user interfaces. Offering a complete \ set of widgets, GTK+ is suitable for projects ranging from small one-off projects to complete application suites."
meta/recipes-gnome/gtk+/gtk+3.inc do_configure_prepend() { · line 41
Quoted 10 lines
meta/recipes-gnome/gtk+/gtk+3.inc +7
-0@@ -31,6 +32,13 @@ do_configure_prepend() { ln -s ${TARGET_PREFIX}libtool libtool #delete a file that will get confused with generated one in ${B} rm -f ${S}/gtk/gtktypefuncs.c + + # These files are generated by wayland-scanner but will race over modification + # time between the copies in the sysroot from wayland-protocols and the copy + # in the source tree. Solve the race by deleting so they need to be regenerated. + # 3.24.22 will not be shipping these files so this can be deleted then: + # https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/2183 + rm -f ${S}/modules/input/text-input-unstable-v3*.[ch]
will touching these files will help too?
Quoted 7 lines
meta/recipes-gnome/gtk+/gtk+3.inc +0
-0} EXTRA_OECONF += " \
Probably, but the upstream solution is to not ship them, so this is basically reproducing that with an existing tarball.
Ross
Quoted 45 lines · Khem Raj
Quoted 21 lines · Ross Burton
From: Ross Burton <[email protected]>
There's a build race between the use of a pre-generated file and re-generating it again, which breaks reproducible builds. Solve the race by deleting the shipped generated file.
Signed-off-by Ross Burton <[email protected]>--- meta/recipes-gnome/gtk+/gtk+3.inc | 8 ++++++++ 1 file changed, 8 insertions(+)meta/recipes-gnome/gtk+/gtk+3.inc +1
-0@@ -1,3 +1,4 @@ + SUMMARY = "Multi-platform toolkit for creating GUIs" DESCRIPTION = "GTK+ is a multi-platform toolkit for creating graphical user interfaces. Offering a complete \ set of widgets, GTK+ is suitable for projects ranging from small one-off projects to complete application suites."meta/recipes-gnome/gtk+/gtk+3.inc do_configure_prepend() { · line 41
Quoted 10 lines
meta/recipes-gnome/gtk+/gtk+3.inc +7
-0@@ -31,6 +32,13 @@ do_configure_prepend() { ln -s ${TARGET_PREFIX}libtool libtool #delete a file that will get confused with generated one in ${B} rm -f ${S}/gtk/gtktypefuncs.c + + # These files are generated by wayland-scanner but will race over modification + # time between the copies in the sysroot from wayland-protocols and the copy + # in the source tree. Solve the race by deleting so they need to be regenerated. + # 3.24.22 will not be shipping these files so this can be deleted then: + # https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/2183 + rm -f ${S}/modules/input/text-input-unstable-v3*.[ch]will touching these files will help too?
Quoted 7 lines
meta/recipes-gnome/gtk+/gtk+3.inc +0
-0} EXTRA_OECONF += " \