Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/1] target-finalize: remove extra /usr/libexec/*.a and *.la files
Date: Sat, 19 Sep 2015 15:06:19 +0200	[thread overview]
Message-ID: <20150919150619.568b140f@free-electrons.com> (raw)
In-Reply-To: <1442323626-31294-1-git-send-email-Herve.CODINA@celad.com>

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

  reply	other threads:[~2015-09-19 13:06 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2015-09-21  7:13   ` [Buildroot] [PATCH 1/1] target-finalize: remove extra/usr/libexec/*.a " Herve Codina

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150919150619.568b140f@free-electrons.com \
    --to=thomas.petazzoni@free-electrons.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox