All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] gtk+3: fix reproducible build failure
@ 2020-07-06 11:57 Ross Burton
  2020-07-06 19:35 ` [OE-core] " Khem Raj
  0 siblings, 1 reply; 3+ messages in thread
From: Ross Burton @ 2020-07-06 11:57 UTC (permalink / raw)
  To: openembedded-core

From: Ross Burton <ross.burton@arm.com>

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 <ross.burton@arm.com>
---
 meta/recipes-gnome/gtk+/gtk+3.inc | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/meta/recipes-gnome/gtk+/gtk+3.inc b/meta/recipes-gnome/gtk+/gtk+3.inc
index e1ecf504a0..8d5edb7ee8 100644
--- a/meta/recipes-gnome/gtk+/gtk+3.inc
+++ b/meta/recipes-gnome/gtk+/gtk+3.inc
@@ -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 += " \
-- 
2.26.2


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [OE-core] [PATCH] gtk+3: fix reproducible build failure
  2020-07-06 11:57 [PATCH] gtk+3: fix reproducible build failure Ross Burton
@ 2020-07-06 19:35 ` Khem Raj
  2020-07-07 15:03   ` Ross Burton
  0 siblings, 1 reply; 3+ messages in thread
From: Khem Raj @ 2020-07-06 19:35 UTC (permalink / raw)
  To: Ross Burton, openembedded-core



On 7/6/20 4:57 AM, Ross Burton wrote:
> From: Ross Burton <ross.burton@arm.com>
> 
> 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 <ross.burton@arm.com>
> ---
>   meta/recipes-gnome/gtk+/gtk+3.inc | 8 ++++++++
>   1 file changed, 8 insertions(+)
> 
> diff --git a/meta/recipes-gnome/gtk+/gtk+3.inc b/meta/recipes-gnome/gtk+/gtk+3.inc
> index e1ecf504a0..8d5edb7ee8 100644
> --- a/meta/recipes-gnome/gtk+/gtk+3.inc
> +++ b/meta/recipes-gnome/gtk+/gtk+3.inc
> @@ -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]

will touching these files will help too?

>   }
>   
>   EXTRA_OECONF += " \
> 
> 
> 
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [OE-core] [PATCH] gtk+3: fix reproducible build failure
  2020-07-06 19:35 ` [OE-core] " Khem Raj
@ 2020-07-07 15:03   ` Ross Burton
  0 siblings, 0 replies; 3+ messages in thread
From: Ross Burton @ 2020-07-07 15:03 UTC (permalink / raw)
  To: Khem Raj; +Cc: OE-core

Probably, but the upstream solution is to not ship them, so this is
basically reproducing that with an existing tarball.

Ross

On Mon, 6 Jul 2020 at 20:35, Khem Raj <raj.khem@gmail.com> wrote:
>
>
>
> On 7/6/20 4:57 AM, Ross Burton wrote:
> > From: Ross Burton <ross.burton@arm.com>
> >
> > 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 <ross.burton@arm.com>
> > ---
> >   meta/recipes-gnome/gtk+/gtk+3.inc | 8 ++++++++
> >   1 file changed, 8 insertions(+)
> >
> > diff --git a/meta/recipes-gnome/gtk+/gtk+3.inc b/meta/recipes-gnome/gtk+/gtk+3.inc
> > index e1ecf504a0..8d5edb7ee8 100644
> > --- a/meta/recipes-gnome/gtk+/gtk+3.inc
> > +++ b/meta/recipes-gnome/gtk+/gtk+3.inc
> > @@ -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]
>
> will touching these files will help too?
>
> >   }
> >
> >   EXTRA_OECONF += " \
> >
> >
> > 
> >

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-07-07 15:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-06 11:57 [PATCH] gtk+3: fix reproducible build failure Ross Burton
2020-07-06 19:35 ` [OE-core] " Khem Raj
2020-07-07 15:03   ` Ross Burton

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.