buildroot.busybox.net archive mirror
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] package/libmanette: fix static build
@ 2022-09-23 17:51 Adrian Perez de Castro
  2022-09-23 21:32 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Adrian Perez de Castro @ 2022-09-23 17:51 UTC (permalink / raw)
  To: buildroot; +Cc: Adrian Perez de Castro

Import a one-line patch that removes the hardcoded usage of
shared_library() from the Meson build system in favor of plain
library(), which allows to choose a static build as well.

Fixes:
- http://autobuild.buildroot.net/results/7263324435d6d25d7da98824d4313e7c45071de8
- http://autobuild.buildroot.net/results/9e6c807455b5a4e8986e8388426d98024119aa9c

Signed-off-by: Adrian Perez de Castro <aperez@igalia.com>
---
 ...n-hardcode-building-a-shared-library.patch | 34 +++++++++++++++++++
 1 file changed, 34 insertions(+)
 create mode 100644 package/libmanette/0001-Meson-Un-hardcode-building-a-shared-library.patch

diff --git a/package/libmanette/0001-Meson-Un-hardcode-building-a-shared-library.patch b/package/libmanette/0001-Meson-Un-hardcode-building-a-shared-library.patch
new file mode 100644
index 0000000000..a93a1f7219
--- /dev/null
+++ b/package/libmanette/0001-Meson-Un-hardcode-building-a-shared-library.patch
@@ -0,0 +1,34 @@
+From 003c2e84d95357bbbef72fb395ef85f1650097a3 Mon Sep 17 00:00:00 2001
+From: Adrian Perez de Castro <aperez@igalia.com>
+Date: Fri, 23 Sep 2022 14:35:51 +0300
+Subject: [PATCH] Meson: Un-hardcode building a shared library
+
+Use library() instead of shared_library() to allow specifying which kind
+of library to build with "meson setup --default-library ..."
+
+This allows more easily incorporating libmanette in an application e.g.
+as a Meson subproject which gets built into a program as a static
+library.
+
+Signed-off-by: Adrian Perez de Castro <aperez@igalia.com>
+[Upstream status: https://gitlab.gnome.org/GNOME/libmanette/-/merge_requests/84]
+---
+ src/meson.build | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/meson.build b/src/meson.build
+index c140cac..b71d090 100644
+--- a/src/meson.build
++++ b/src/meson.build
+@@ -63,7 +63,7 @@ if gudev.found()
+   libmanette_deps += [ gudev ]
+ endif
+ 
+-libmanette_lib = shared_library(
++libmanette_lib = library(
+   libmanette_module,
+   libmanette_sources,
+   c_args: libmanette_c_args,
+-- 
+2.37.3
+
-- 
2.37.3

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

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

* Re: [Buildroot] [PATCH] package/libmanette: fix static build
  2022-09-23 17:51 [Buildroot] [PATCH] package/libmanette: fix static build Adrian Perez de Castro
@ 2022-09-23 21:32 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2022-09-23 21:32 UTC (permalink / raw)
  To: Adrian Perez de Castro; +Cc: buildroot

On Fri, 23 Sep 2022 20:51:32 +0300
Adrian Perez de Castro <aperez@igalia.com> wrote:

> Import a one-line patch that removes the hardcoded usage of
> shared_library() from the Meson build system in favor of plain
> library(), which allows to choose a static build as well.
> 
> Fixes:
> - http://autobuild.buildroot.net/results/7263324435d6d25d7da98824d4313e7c45071de8
> - http://autobuild.buildroot.net/results/9e6c807455b5a4e8986e8388426d98024119aa9c
> 
> Signed-off-by: Adrian Perez de Castro <aperez@igalia.com>
> ---
>  ...n-hardcode-building-a-shared-library.patch | 34 +++++++++++++++++++
>  1 file changed, 34 insertions(+)
>  create mode 100644 package/libmanette/0001-Meson-Un-hardcode-building-a-shared-library.patch

Applied to master, thanks.

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

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

end of thread, other threads:[~2022-09-23 21:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-23 17:51 [Buildroot] [PATCH] package/libmanette: fix static build Adrian Perez de Castro
2022-09-23 21:32 ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).