Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/pkg-meson: h files only into sysroot
@ 2024-11-19 20:59 Vincent Jardin
  2024-11-21 13:49 ` Brandon Maier
  0 siblings, 1 reply; 33+ messages in thread
From: Vincent Jardin @ 2024-11-19 20:59 UTC (permalink / raw)
  To: buildroot; +Cc: Eric Le Bihan, Robin Jarry, Vincent Jardin

Many packages built with Buildroot and meson currently install header
files into both:
  - the target’s /usr/include, and
  - the sysroot’s /usr/include.

Ensure that header files are installed exclusively in the staging
(sysroot) target during the build process.

Signed-off-by: Vincent Jardin <vjardin@free.fr>
Suggested-by: Robin Jarry <robin@jarry.cc>
---
 package/pkg-meson.mk | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/package/pkg-meson.mk b/package/pkg-meson.mk
index bc805b799c..d7b8d456b8 100644
--- a/package/pkg-meson.mk
+++ b/package/pkg-meson.mk
@@ -220,7 +220,7 @@ endif
 ifndef $(2)_INSTALL_CMDS
 define $(2)_INSTALL_CMDS
 	$$(HOST_MAKE_ENV) $$($$(PKG)_NINJA_ENV) \
-		$$(NINJA) $$(NINJA_OPTS) -C $$($$(PKG)_SRCDIR)/build install
+		$$(MESON) install -C $$($$(PKG)_SRCDIR)/build
 endef
 endif
 
@@ -231,7 +231,7 @@ endif
 ifndef $(2)_INSTALL_STAGING_CMDS
 define $(2)_INSTALL_STAGING_CMDS
 	$$(TARGET_MAKE_ENV) $$($$(PKG)_NINJA_ENV) DESTDIR=$$(STAGING_DIR) \
-		$$(NINJA) $$(NINJA_OPTS) -C $$($$(PKG)_SRCDIR)/build install
+		$$(MESON) install -C $$($$(PKG)_SRCDIR)/build --tags=runtime,devel
 endef
 endif
 
@@ -242,7 +242,7 @@ endif
 ifndef $(2)_INSTALL_TARGET_CMDS
 define $(2)_INSTALL_TARGET_CMDS
 	$$(TARGET_MAKE_ENV) $$($$(PKG)_NINJA_ENV) DESTDIR=$$(TARGET_DIR) \
-		$$(NINJA) $$(NINJA_OPTS) -C $$($$(PKG)_SRCDIR)/build install
+		$$(MESON) install -C $$($$(PKG)_SRCDIR)/build --tags=runtime
 endef
 endif
 
-- 
2.34.1

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

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

end of thread, other threads:[~2025-01-26 11:15 UTC | newest]

Thread overview: 33+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-19 20:59 [Buildroot] [PATCH 1/1] package/pkg-meson: h files only into sysroot Vincent Jardin
2024-11-21 13:49 ` Brandon Maier
2024-11-22  0:20   ` Vincent Jardin
2024-11-26 14:17     ` Brandon Maier
2024-11-26 18:10       ` Vincent Jardin
2024-11-26 19:57         ` Brandon Maier
2024-11-27  1:29           ` [Buildroot] [PATCH v2 0/2] meson install with optional tags Vincent Jardin
2024-11-27  1:30             ` [Buildroot] [PATCH v2 1/2] package/pkg-meson: h files only into sysroot Vincent Jardin
2024-11-29 23:42               ` Brandon Maier
2024-12-02 15:39                 ` Vincent Jardin
2024-12-02 15:46                   ` [Buildroot] [PATCH v3 0/2] meson install with optional tags Vincent Jardin
2024-12-02 15:46                     ` [Buildroot] [PATCH v3 1/2] package/pkg-meson: h files only into sysroot Vincent Jardin
2024-12-02 15:46                     ` [Buildroot] [PATCH v3 2/2] doc/manual/adding-packages-meson.adoc: tags Vincent Jardin
2024-12-03 14:00                   ` [Buildroot] [PATCH v4 0/2] meson install with optional tags Vincent Jardin
2024-12-03 14:00                     ` [Buildroot] [PATCH v4 1/2] package/pkg-meson: h files only into sysroot Vincent Jardin
2024-12-06 13:45                       ` Brandon Maier
2024-12-06 21:30                         ` [Buildroot] [PATCH v5 0/2] meson install with optional tags Vincent Jardin
2024-12-06 21:30                           ` [Buildroot] [PATCH v5 1/2] package/pkg-meson: h files only into sysroot Vincent Jardin
2024-12-06 21:30                           ` [Buildroot] [PATCH v5 2/2] doc/manual/adding-packages-meson.adoc: tags Vincent Jardin
2024-12-10  0:08                             ` Brandon Maier
2025-01-02 16:46                               ` [Buildroot] [PATCH v6 0/2] meson install with optional tags Vincent Jardin
2025-01-02 16:46                                 ` [Buildroot] [PATCH v6 1/2] package/pkg-meson: h files only into sysroot Vincent Jardin
2025-01-10  0:08                                   ` Brandon Maier
2025-01-26 11:14                                   ` Thomas Petazzoni via buildroot
2025-01-02 16:46                                 ` [Buildroot] [PATCH v6 2/2] doc/manual/adding-packages-meson.adoc: tags Vincent Jardin
2025-01-10  0:09                                   ` Brandon Maier
2025-01-26 10:23                                     ` Vincent Jardin
2025-01-26 11:15                                   ` Thomas Petazzoni via buildroot
2025-01-02 16:50                               ` [Buildroot] [PATCH v5 " Vincent Jardin
2024-12-03 14:00                     ` [Buildroot] [PATCH v4 " Vincent Jardin
2024-12-06 13:47                   ` [Buildroot] [PATCH v2 1/2] package/pkg-meson: h files only into sysroot Brandon Maier
2024-12-06 21:51                     ` Vincent Jardin
2024-11-27  1:30             ` [Buildroot] [PATCH v2 2/2] doc/manual/adding-packages-meson.adoc: tags Vincent Jardin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox