All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] target-finalize: remove extra /usr/libexec/*.a and *.la files
@ 2015-09-15 13:27 Herve Codina
  2015-09-19 13:06 ` Thomas Petazzoni
  0 siblings, 1 reply; 3+ messages in thread
From: Herve Codina @ 2015-09-15 13:27 UTC (permalink / raw)
  To: buildroot

Some packages, sudo for instance, install .la files in $(TARGET_DIR)/usr/libexec.
These files are not needed on target.

This patch simply removes *.a and *.la files from $(TARGET_DIR)/usr/libexec if it exists

Signed-off-by: Herve Codina <Herve.CODINA@celad.com>
---
 Makefile |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/Makefile b/Makefile
index 23e2ee6..9bf5fbc 100644
--- a/Makefile
+++ b/Makefile
@@ -565,6 +565,9 @@ target-finalize: $(PACKAGES)
 	find $(TARGET_DIR)/usr/{lib,share}/ -name '*.cmake' -print0 | xargs -0 rm -f
 	find $(TARGET_DIR)/lib \( -name '*.a' -o -name '*.la' \) -print0 | xargs -0 rm -f
 	find $(TARGET_DIR)/usr/lib \( -name '*.a' -o -name '*.la' \) -print0 | xargs -0 rm -f
+	if test -d $(TARGET_DIR)/usr/libexec; then \
+		find $(TARGET_DIR)/usr/libexec \( -name '*.a' -o -name '*.la' \) -print0 | \
+		xargs -0 rm -f; fi
 ifneq ($(BR2_PACKAGE_GDB),y)
 	rm -rf $(TARGET_DIR)/usr/share/gdb
 endif
-- 
1.7.9.5

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

* [Buildroot] [PATCH 1/1] target-finalize: remove extra /usr/libexec/*.a and *.la files
  2015-09-15 13:27 [Buildroot] [PATCH 1/1] target-finalize: remove extra /usr/libexec/*.a and *.la files Herve Codina
@ 2015-09-19 13:06 ` Thomas Petazzoni
  2015-09-21  7:13   ` [Buildroot] [PATCH 1/1] target-finalize: remove extra/usr/libexec/*.a " Herve Codina
  0 siblings, 1 reply; 3+ messages in thread
From: Thomas Petazzoni @ 2015-09-19 13:06 UTC (permalink / raw)
  To: buildroot

Herve,

On Tue, 15 Sep 2015 15:27:06 +0200, Herve Codina wrote:
> Some packages, sudo for instance, install .la files in $(TARGET_DIR)/usr/libexec.
> These files are not needed on target.
> 
> This patch simply removes *.a and *.la files from $(TARGET_DIR)/usr/libexec if it exists

I initially hesitated a bit first, because normally, plugins should be
installed in /usr/lib/<package>/. This can be done with
--with-plugindir, which moves a certain number of files installed by
default in /usr/libexec, but there are still a few libraries here
nonetheless. So your approach seems better.

> @@ -565,6 +565,9 @@ target-finalize: $(PACKAGES)
>  	find $(TARGET_DIR)/usr/{lib,share}/ -name '*.cmake' -print0 | xargs -0 rm -f
>  	find $(TARGET_DIR)/lib \( -name '*.a' -o -name '*.la' \) -print0 | xargs -0 rm -f
>  	find $(TARGET_DIR)/usr/lib \( -name '*.a' -o -name '*.la' \) -print0 | xargs -0 rm -f
> +	if test -d $(TARGET_DIR)/usr/libexec; then \
> +		find $(TARGET_DIR)/usr/libexec \( -name '*.a' -o -name '*.la' \) -print0 | \
> +		xargs -0 rm -f; fi

I've simplified that into a single "find" invocation for lib/, usr/lib
and usr/libexec.

See
http://git.buildroot.net/buildroot/commit/?id=87f3edecc65975085982515f3618c81bcfd9c023

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

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

* [Buildroot] [PATCH 1/1] target-finalize: remove extra/usr/libexec/*.a and *.la files
  2015-09-19 13:06 ` Thomas Petazzoni
@ 2015-09-21  7:13   ` Herve Codina
  0 siblings, 0 replies; 3+ messages in thread
From: Herve Codina @ 2015-09-21  7:13 UTC (permalink / raw)
  To: buildroot

Hi Thomas,

> I've simplified that into a single "find" invocation for lib/, usr/lib
> and usr/libexec.
> 
> See
> http://git.buildroot.net/buildroot/commit/?id=87f3edecc65975085982515f3618c81bcfd9c023
Ok for me.

Best regards,
Herve

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

end of thread, other threads:[~2015-09-21  7:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-15 13:27 [Buildroot] [PATCH 1/1] target-finalize: remove extra /usr/libexec/*.a and *.la files Herve Codina
2015-09-19 13:06 ` Thomas Petazzoni
2015-09-21  7:13   ` [Buildroot] [PATCH 1/1] target-finalize: remove extra/usr/libexec/*.a " Herve Codina

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.