All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/libglib2: add girdir to glib-2.0.pc
@ 2021-11-12 18:08 Fabrice Fontaine
  2021-11-12 22:27 ` Thomas Petazzoni
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Fabrice Fontaine @ 2021-11-12 18:08 UTC (permalink / raw)
  To: buildroot; +Cc: Fabrice Fontaine

Add girdir to glib-2.0.pc to fix the following build failure with atk,
gcr or harfbuzz:

/home/giuliobenetti/autobuild/run/instance-1/output-1/host/riscv32-buildroot-linux-gnu/sysroot/usr/bin/g-ir-compiler atk/Atk-1.0.gir --output atk/Atk-1.0.typelib --includedir=/usr/share/gir-1.0
Could not find GIR file 'GObject-2.0.gir'; check XDG_DATA_DIRS or use --includedir

This build failure could also be fixed by removing our update of girdir
in gobject-introspection.mk but this will have side effects as gir files
won't be installed in the correct directory. So patch glib-2.0.pc
instead.

Note: autotools-based packages have already been fixed by
https://git.buildroot.net/buildroot/commit/?id=8dda79970661090f202e1f20e5982ba53fdaeb95

Fixes:
 - http://autobuild.buildroot.org/results/2716929db638977e6bf665352a08bd580e1dd0ae
 - http://autobuild.buildroot.org/results/67a47386019c2a700df348ad6846064e0950e87b
 - http://autobuild.buildroot.org/results/2c6a4470542af574f9407fa5867f0408ec2b4880

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 ...eson.build-add-girdir-to-glib.2.0.pc.patch | 33 +++++++++++++++++++
 1 file changed, 33 insertions(+)
 create mode 100644 package/libglib2/0004-glib-meson.build-add-girdir-to-glib.2.0.pc.patch

diff --git a/package/libglib2/0004-glib-meson.build-add-girdir-to-glib.2.0.pc.patch b/package/libglib2/0004-glib-meson.build-add-girdir-to-glib.2.0.pc.patch
new file mode 100644
index 0000000000..7eeecbe336
--- /dev/null
+++ b/package/libglib2/0004-glib-meson.build-add-girdir-to-glib.2.0.pc.patch
@@ -0,0 +1,33 @@
+From 04bdfff007c91fc620ed0b7cd02fd2e1e83bdefc Mon Sep 17 00:00:00 2001
+From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+Date: Fri, 12 Nov 2021 18:01:05 +0100
+Subject: [PATCH] glib/meson.build: add girdir to glib.2.0.pc
+
+Add girdir to glib-2.0.pc to fix the following build failure with atk:
+
+/home/giuliobenetti/autobuild/run/instance-1/output-1/host/riscv32-buildroot-linux-gnu/sysroot/usr/bin/g-ir-compiler atk/Atk-1.0.gir --output atk/Atk-1.0.typelib --includedir=/usr/share/gir-1.0
+Could not find GIR file 'GObject-2.0.gir'; check XDG_DATA_DIRS or use --includedir
+
+Fixes:
+ - http://autobuild.buildroot.org/results/2716929db638977e6bf665352a08bd580e1dd0ae
+
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+---
+ glib/meson.build | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/glib/meson.build b/glib/meson.build
+index f78f32969..6c5486699 100644
+--- a/glib/meson.build
++++ b/glib/meson.build
+@@ -377,6 +377,7 @@ pkg.generate(libglib,
+   subdirs : ['glib-2.0'],
+   extra_cflags : ['-I${libdir}/glib-2.0/include'] + win32_cflags,
+   variables : ['bindir=' + join_paths('${prefix}', get_option('bindir')),
++               'girdir=' + join_paths('${libdir}', '../share/gir-1.0'),
+                'glib_genmarshal=' + join_paths('${bindir}', 'glib-genmarshal'),
+                'gobject_query=' + join_paths('${bindir}', 'gobject-query'),
+                'glib_mkenums=' + join_paths('${bindir}', 'glib-mkenums')],
+-- 
+2.33.0
+
-- 
2.33.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* Re: [Buildroot] [PATCH 1/1] package/libglib2: add girdir to glib-2.0.pc
  2021-11-12 18:08 [Buildroot] [PATCH 1/1] package/libglib2: add girdir to glib-2.0.pc Fabrice Fontaine
@ 2021-11-12 22:27 ` Thomas Petazzoni
  2021-11-15 17:11   ` Adam Duskett
  2021-11-16 20:05 ` Arnout Vandecappelle
  2021-11-17 22:42 ` Peter Korsgaard
  2 siblings, 1 reply; 5+ messages in thread
From: Thomas Petazzoni @ 2021-11-12 22:27 UTC (permalink / raw)
  To: Fabrice Fontaine; +Cc: Adam Duskett, buildroot

Hello,

I'm adding Adam Duskett in Cc of this one, to get his review on this
GOI related patch.

Thanks!

Thomas

On Fri, 12 Nov 2021 19:08:02 +0100
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:

> Add girdir to glib-2.0.pc to fix the following build failure with atk,
> gcr or harfbuzz:
> 
> /home/giuliobenetti/autobuild/run/instance-1/output-1/host/riscv32-buildroot-linux-gnu/sysroot/usr/bin/g-ir-compiler atk/Atk-1.0.gir --output atk/Atk-1.0.typelib --includedir=/usr/share/gir-1.0
> Could not find GIR file 'GObject-2.0.gir'; check XDG_DATA_DIRS or use --includedir
> 
> This build failure could also be fixed by removing our update of girdir
> in gobject-introspection.mk but this will have side effects as gir files
> won't be installed in the correct directory. So patch glib-2.0.pc
> instead.
> 
> Note: autotools-based packages have already been fixed by
> https://git.buildroot.net/buildroot/commit/?id=8dda79970661090f202e1f20e5982ba53fdaeb95
> 
> Fixes:
>  - http://autobuild.buildroot.org/results/2716929db638977e6bf665352a08bd580e1dd0ae
>  - http://autobuild.buildroot.org/results/67a47386019c2a700df348ad6846064e0950e87b
>  - http://autobuild.buildroot.org/results/2c6a4470542af574f9407fa5867f0408ec2b4880
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
>  ...eson.build-add-girdir-to-glib.2.0.pc.patch | 33 +++++++++++++++++++
>  1 file changed, 33 insertions(+)
>  create mode 100644 package/libglib2/0004-glib-meson.build-add-girdir-to-glib.2.0.pc.patch
> 
> diff --git a/package/libglib2/0004-glib-meson.build-add-girdir-to-glib.2.0.pc.patch b/package/libglib2/0004-glib-meson.build-add-girdir-to-glib.2.0.pc.patch
> new file mode 100644
> index 0000000000..7eeecbe336
> --- /dev/null
> +++ b/package/libglib2/0004-glib-meson.build-add-girdir-to-glib.2.0.pc.patch
> @@ -0,0 +1,33 @@
> +From 04bdfff007c91fc620ed0b7cd02fd2e1e83bdefc Mon Sep 17 00:00:00 2001
> +From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> +Date: Fri, 12 Nov 2021 18:01:05 +0100
> +Subject: [PATCH] glib/meson.build: add girdir to glib.2.0.pc
> +
> +Add girdir to glib-2.0.pc to fix the following build failure with atk:
> +
> +/home/giuliobenetti/autobuild/run/instance-1/output-1/host/riscv32-buildroot-linux-gnu/sysroot/usr/bin/g-ir-compiler atk/Atk-1.0.gir --output atk/Atk-1.0.typelib --includedir=/usr/share/gir-1.0
> +Could not find GIR file 'GObject-2.0.gir'; check XDG_DATA_DIRS or use --includedir
> +
> +Fixes:
> + - http://autobuild.buildroot.org/results/2716929db638977e6bf665352a08bd580e1dd0ae
> +
> +Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> +---
> + glib/meson.build | 1 +
> + 1 file changed, 1 insertion(+)
> +
> +diff --git a/glib/meson.build b/glib/meson.build
> +index f78f32969..6c5486699 100644
> +--- a/glib/meson.build
> ++++ b/glib/meson.build
> +@@ -377,6 +377,7 @@ pkg.generate(libglib,
> +   subdirs : ['glib-2.0'],
> +   extra_cflags : ['-I${libdir}/glib-2.0/include'] + win32_cflags,
> +   variables : ['bindir=' + join_paths('${prefix}', get_option('bindir')),
> ++               'girdir=' + join_paths('${libdir}', '../share/gir-1.0'),
> +                'glib_genmarshal=' + join_paths('${bindir}', 'glib-genmarshal'),
> +                'gobject_query=' + join_paths('${bindir}', 'gobject-query'),
> +                'glib_mkenums=' + join_paths('${bindir}', 'glib-mkenums')],
> +-- 
> +2.33.0
> +



-- 
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* Re: [Buildroot] [PATCH 1/1] package/libglib2: add girdir to glib-2.0.pc
  2021-11-12 22:27 ` Thomas Petazzoni
@ 2021-11-15 17:11   ` Adam Duskett
  0 siblings, 0 replies; 5+ messages in thread
From: Adam Duskett @ 2021-11-15 17:11 UTC (permalink / raw)
  To: Thomas Petazzoni; +Cc: Fabrice Fontaine, buildroot

Hello;

On Fri, Nov 12, 2021 at 2:27 PM Thomas Petazzoni
<thomas.petazzoni@bootlin.com> wrote:
>
> Hello,
>
> I'm adding Adam Duskett in Cc of this one, to get his review on this
> GOI related patch.
>
> Thanks!
>
> Thomas
>
> On Fri, 12 Nov 2021 19:08:02 +0100
> Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:
>
> > Add girdir to glib-2.0.pc to fix the following build failure with atk,
> > gcr or harfbuzz:
> >
> > /home/giuliobenetti/autobuild/run/instance-1/output-1/host/riscv32-buildroot-linux-gnu/sysroot/usr/bin/g-ir-compiler atk/Atk-1.0.gir --output atk/Atk-1.0.typelib --includedir=/usr/share/gir-1.0
> > Could not find GIR file 'GObject-2.0.gir'; check XDG_DATA_DIRS or use --includedir
> >
> > This build failure could also be fixed by removing our update of girdir
> > in gobject-introspection.mk but this will have side effects as gir files
> > won't be installed in the correct directory. So patch glib-2.0.pc
> > instead.
> >
> > Note: autotools-based packages have already been fixed by
> > https://git.buildroot.net/buildroot/commit/?id=8dda79970661090f202e1f20e5982ba53fdaeb95
> >
> > Fixes:
> >  - http://autobuild.buildroot.org/results/2716929db638977e6bf665352a08bd580e1dd0ae
> >  - http://autobuild.buildroot.org/results/67a47386019c2a700df348ad6846064e0950e87b
> >  - http://autobuild.buildroot.org/results/2c6a4470542af574f9407fa5867f0408ec2b4880
> >
> > Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> > ---
> >  ...eson.build-add-girdir-to-glib.2.0.pc.patch | 33 +++++++++++++++++++
> >  1 file changed, 33 insertions(+)
> >  create mode 100644 package/libglib2/0004-glib-meson.build-add-girdir-to-glib.2.0.pc.patch
> >
> > diff --git a/package/libglib2/0004-glib-meson.build-add-girdir-to-glib.2.0.pc.patch b/package/libglib2/0004-glib-meson.build-add-girdir-to-glib.2.0.pc.patch
> > new file mode 100644
> > index 0000000000..7eeecbe336
> > --- /dev/null
> > +++ b/package/libglib2/0004-glib-meson.build-add-girdir-to-glib.2.0.pc.patch
> > @@ -0,0 +1,33 @@
> > +From 04bdfff007c91fc620ed0b7cd02fd2e1e83bdefc Mon Sep 17 00:00:00 2001
> > +From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> > +Date: Fri, 12 Nov 2021 18:01:05 +0100
> > +Subject: [PATCH] glib/meson.build: add girdir to glib.2.0.pc
> > +
> > +Add girdir to glib-2.0.pc to fix the following build failure with atk:
> > +
> > +/home/giuliobenetti/autobuild/run/instance-1/output-1/host/riscv32-buildroot-linux-gnu/sysroot/usr/bin/g-ir-compiler atk/Atk-1.0.gir --output atk/Atk-1.0.typelib --includedir=/usr/share/gir-1.0
> > +Could not find GIR file 'GObject-2.0.gir'; check XDG_DATA_DIRS or use --includedir
> > +
> > +Fixes:
> > + - http://autobuild.buildroot.org/results/2716929db638977e6bf665352a08bd580e1dd0ae
> > +
> > +Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> > +---
> > + glib/meson.build | 1 +
> > + 1 file changed, 1 insertion(+)
> > +
> > +diff --git a/glib/meson.build b/glib/meson.build
> > +index f78f32969..6c5486699 100644
> > +--- a/glib/meson.build
> > ++++ b/glib/meson.build
> > +@@ -377,6 +377,7 @@ pkg.generate(libglib,
> > +   subdirs : ['glib-2.0'],
> > +   extra_cflags : ['-I${libdir}/glib-2.0/include'] + win32_cflags,
> > +   variables : ['bindir=' + join_paths('${prefix}', get_option('bindir')),
> > ++               'girdir=' + join_paths('${libdir}', '../share/gir-1.0'),
> > +                'glib_genmarshal=' + join_paths('${bindir}', 'glib-genmarshal'),
> > +                'gobject_query=' + join_paths('${bindir}', 'gobject-query'),
> > +                'glib_mkenums=' + join_paths('${bindir}', 'glib-mkenums')],
> > +--
> > +2.33.0
> > +
>
I am wondering if this could be upstreamed by adding a meson option?
Other than that, it looks good to me!

Adam
>
>
> --
> Thomas Petazzoni, co-owner and CEO, Bootlin
> Embedded Linux and Kernel engineering and training
> https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* Re: [Buildroot] [PATCH 1/1] package/libglib2: add girdir to glib-2.0.pc
  2021-11-12 18:08 [Buildroot] [PATCH 1/1] package/libglib2: add girdir to glib-2.0.pc Fabrice Fontaine
  2021-11-12 22:27 ` Thomas Petazzoni
@ 2021-11-16 20:05 ` Arnout Vandecappelle
  2021-11-17 22:42 ` Peter Korsgaard
  2 siblings, 0 replies; 5+ messages in thread
From: Arnout Vandecappelle @ 2021-11-16 20:05 UTC (permalink / raw)
  To: Fabrice Fontaine, buildroot



On 12/11/2021 19:08, Fabrice Fontaine wrote:
> Add girdir to glib-2.0.pc to fix the following build failure with atk,
> gcr or harfbuzz:
> 
> /home/giuliobenetti/autobuild/run/instance-1/output-1/host/riscv32-buildroot-linux-gnu/sysroot/usr/bin/g-ir-compiler atk/Atk-1.0.gir --output atk/Atk-1.0.typelib --includedir=/usr/share/gir-1.0
> Could not find GIR file 'GObject-2.0.gir'; check XDG_DATA_DIRS or use --includedir
> 
> This build failure could also be fixed by removing our update of girdir
> in gobject-introspection.mk but this will have side effects as gir files
> won't be installed in the correct directory. So patch glib-2.0.pc
> instead.
> 
> Note: autotools-based packages have already been fixed by
> https://git.buildroot.net/buildroot/commit/?id=8dda79970661090f202e1f20e5982ba53fdaeb95
> 
> Fixes:
>   - http://autobuild.buildroot.org/results/2716929db638977e6bf665352a08bd580e1dd0ae
>   - http://autobuild.buildroot.org/results/67a47386019c2a700df348ad6846064e0950e87b
>   - http://autobuild.buildroot.org/results/2c6a4470542af574f9407fa5867f0408ec2b4880
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>

  Applied to master, thanks.

  Regards,
  Arnout

> ---
>   ...eson.build-add-girdir-to-glib.2.0.pc.patch | 33 +++++++++++++++++++
>   1 file changed, 33 insertions(+)
>   create mode 100644 package/libglib2/0004-glib-meson.build-add-girdir-to-glib.2.0.pc.patch
> 
> diff --git a/package/libglib2/0004-glib-meson.build-add-girdir-to-glib.2.0.pc.patch b/package/libglib2/0004-glib-meson.build-add-girdir-to-glib.2.0.pc.patch
> new file mode 100644
> index 0000000000..7eeecbe336
> --- /dev/null
> +++ b/package/libglib2/0004-glib-meson.build-add-girdir-to-glib.2.0.pc.patch
> @@ -0,0 +1,33 @@
> +From 04bdfff007c91fc620ed0b7cd02fd2e1e83bdefc Mon Sep 17 00:00:00 2001
> +From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> +Date: Fri, 12 Nov 2021 18:01:05 +0100
> +Subject: [PATCH] glib/meson.build: add girdir to glib.2.0.pc
> +
> +Add girdir to glib-2.0.pc to fix the following build failure with atk:
> +
> +/home/giuliobenetti/autobuild/run/instance-1/output-1/host/riscv32-buildroot-linux-gnu/sysroot/usr/bin/g-ir-compiler atk/Atk-1.0.gir --output atk/Atk-1.0.typelib --includedir=/usr/share/gir-1.0
> +Could not find GIR file 'GObject-2.0.gir'; check XDG_DATA_DIRS or use --includedir
> +
> +Fixes:
> + - http://autobuild.buildroot.org/results/2716929db638977e6bf665352a08bd580e1dd0ae
> +
> +Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> +---
> + glib/meson.build | 1 +
> + 1 file changed, 1 insertion(+)
> +
> +diff --git a/glib/meson.build b/glib/meson.build
> +index f78f32969..6c5486699 100644
> +--- a/glib/meson.build
> ++++ b/glib/meson.build
> +@@ -377,6 +377,7 @@ pkg.generate(libglib,
> +   subdirs : ['glib-2.0'],
> +   extra_cflags : ['-I${libdir}/glib-2.0/include'] + win32_cflags,
> +   variables : ['bindir=' + join_paths('${prefix}', get_option('bindir')),
> ++               'girdir=' + join_paths('${libdir}', '../share/gir-1.0'),
> +                'glib_genmarshal=' + join_paths('${bindir}', 'glib-genmarshal'),
> +                'gobject_query=' + join_paths('${bindir}', 'gobject-query'),
> +                'glib_mkenums=' + join_paths('${bindir}', 'glib-mkenums')],
> +--
> +2.33.0
> +
> 
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* Re: [Buildroot] [PATCH 1/1] package/libglib2: add girdir to glib-2.0.pc
  2021-11-12 18:08 [Buildroot] [PATCH 1/1] package/libglib2: add girdir to glib-2.0.pc Fabrice Fontaine
  2021-11-12 22:27 ` Thomas Petazzoni
  2021-11-16 20:05 ` Arnout Vandecappelle
@ 2021-11-17 22:42 ` Peter Korsgaard
  2 siblings, 0 replies; 5+ messages in thread
From: Peter Korsgaard @ 2021-11-17 22:42 UTC (permalink / raw)
  To: Fabrice Fontaine; +Cc: buildroot

>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:

 > Add girdir to glib-2.0.pc to fix the following build failure with atk,
 > gcr or harfbuzz:

 > /home/giuliobenetti/autobuild/run/instance-1/output-1/host/riscv32-buildroot-linux-gnu/sysroot/usr/bin/g-ir-compiler
 > atk/Atk-1.0.gir --output atk/Atk-1.0.typelib
 > --includedir=/usr/share/gir-1.0
 > Could not find GIR file 'GObject-2.0.gir'; check XDG_DATA_DIRS or use --includedir

 > This build failure could also be fixed by removing our update of girdir
 > in gobject-introspection.mk but this will have side effects as gir files
 > won't be installed in the correct directory. So patch glib-2.0.pc
 > instead.

 > Note: autotools-based packages have already been fixed by
 > https://git.buildroot.net/buildroot/commit/?id=8dda79970661090f202e1f20e5982ba53fdaeb95

 > Fixes:
 >  - http://autobuild.buildroot.org/results/2716929db638977e6bf665352a08bd580e1dd0ae
 >  - http://autobuild.buildroot.org/results/67a47386019c2a700df348ad6846064e0950e87b
 >  - http://autobuild.buildroot.org/results/2c6a4470542af574f9407fa5867f0408ec2b4880

 > Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>

Committed to 2021.08.x, thanks.

-- 
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

end of thread, other threads:[~2021-11-17 22:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-12 18:08 [Buildroot] [PATCH 1/1] package/libglib2: add girdir to glib-2.0.pc Fabrice Fontaine
2021-11-12 22:27 ` Thomas Petazzoni
2021-11-15 17:11   ` Adam Duskett
2021-11-16 20:05 ` Arnout Vandecappelle
2021-11-17 22:42 ` Peter Korsgaard

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.