[Buildroot] [PATCH v2] package/libgpg-error: Disable unused files installation

Florian Fainelli f.fainelli at gmail.com
Mon Dec 19 23:08:02 UTC 2022


Disable a number of unused files that were being installed into the root
filesystem and thus inflating its size needlessly:

* Disable the building of documentation

* Disable support for other languages which is comprised of Common Lisp that
  buildroot has no package for

* Only install binaries and shared/static libraries, remove libtool archive

Signed-off-by: Florian Fainelli <f.fainelli at gmail.com>
---
Changes in v2:

- remove header files, pkgconfig and other unnecessary files

 package/libgpg-error/libgpg-error.mk | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/package/libgpg-error/libgpg-error.mk b/package/libgpg-error/libgpg-error.mk
index 86dea6ad2acd..6ce1f8d908de 100644
--- a/package/libgpg-error/libgpg-error.mk
+++ b/package/libgpg-error/libgpg-error.mk
@@ -14,7 +14,9 @@ LIBGPG_ERROR_INSTALL_STAGING = YES
 LIBGPG_ERROR_CONFIG_SCRIPTS = gpg-error-config
 LIBGPG_ERROR_DEPENDENCIES = $(TARGET_NLS_DEPENDENCIES)
 LIBGPG_ERROR_CONF_OPTS = --disable-tests \
-		--host=$(BR2_PACKAGE_LIBGPG_ERROR_SYSCFG)
+		--host=$(BR2_PACKAGE_LIBGPG_ERROR_SYSCFG) \
+		--disable-languages \
+		--disable-doc
 
 ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
 LIBGPG_ERROR_CONF_OPTS += --enable-threads
@@ -22,4 +24,9 @@ else
 LIBGPG_ERROR_CONF_OPTS += --disable-threads
 endif
 
+define LIBGPG_ERROR_INSTALL_TARGET_CMDS
+	$(MAKE) -C $(@D) DESTDIR="$(TARGET_DIR)" install-exec
+	rm -f $(TARGET_DIR)/usr/lib/libgpg-error.la
+endef
+
 $(eval $(autotools-package))
-- 
2.34.1




More information about the buildroot mailing list