Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] libglib2 copies unwanted things to target
@ 2010-02-02 16:05 William Wagner
  2010-02-06 16:12 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: William Wagner @ 2010-02-02 16:05 UTC (permalink / raw)
  To: buildroot

Hi All,

Have added the libglib2 package to my target and it seems to copy over a 
load of unwanted things into the target filesystem. In particular it 
copies a load of help files to target/usr/share/gtk-doc

The package uses the autotools framework which I'm not expert on so not 
sure the best way to tackle this. Should there just be a post target 
install step to go round and delete the unwanted files? I guess better 
would be to change the glib2 install target to one that does not copy 
over the help but I'm not familiar with the package so not sure if that 
is possible.

What does anyone suggest?

Thanks
Will

-- 
------------------------------------------------------------------------
Will Wagner                                     will_wagner at carallon.com
Development Manager                      Office Tel: +44 (0)20 7371 2032
Carallon Ltd, Studio G20, Shepherds Building, Rockley Rd, London W14 0DA
------------------------------------------------------------------------

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

* [Buildroot] libglib2 copies unwanted things to target
  2010-02-02 16:05 [Buildroot] libglib2 copies unwanted things to target William Wagner
@ 2010-02-06 16:12 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2010-02-06 16:12 UTC (permalink / raw)
  To: buildroot

Hi William,

On Tue, 02 Feb 2010 16:05:03 +0000
William Wagner <will_wagner@carallon.com> wrote:

> Have added the libglib2 package to my target and it seems to copy
> over a load of unwanted things into the target filesystem. In
> particular it copies a load of help files to target/usr/share/gtk-doc
> 
> The package uses the autotools framework which I'm not expert on so
> not sure the best way to tackle this. Should there just be a post
> target install step to go round and delete the unwanted files? I
> guess better would be to change the glib2 install target to one that
> does not copy over the help but I'm not familiar with the package so
> not sure if that is possible.
> 
> What does anyone suggest?

There are typically two approaches in Buildroot packages :

 * Either the .mk file does not use the "make install" target the
   package makefile to install the package to the target/ directory and
   manually installs only what's needed for runtime usage of the package
   software ;

 * Or the .mk file does use the "make install" target of the package
   makefile to install the package to the target/ directory and then
   cleans up the files that are not really needed for runtime usage of
   the package.

In the case of the libglib2 package, manually doing the package
installation to the target is maybe too complicated, so the second
solution is probably the easiest one. It would be something like:

define LIBGLIB2_REMOVE_DOCUMENTATION
 rm -rf $(TARGET_DIR)/usr/share/gtk-doc
endef

LIBGLIB2_POST_INSTALL_TARGET_HOOKS += LIBGLIB2_REMOVE_DOCUMENTATION

Cheers,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

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

end of thread, other threads:[~2010-02-06 16:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-02 16:05 [Buildroot] libglib2 copies unwanted things to target William Wagner
2010-02-06 16:12 ` Thomas Petazzoni

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