Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] libffi target header installation problem
       [not found] <1626579523.5503469.1377524132514.JavaMail.root@openwide.fr>
@ 2013-08-26 13:41 ` Nicolas Ménégale
  2013-08-26 13:44   ` Thomas Petazzoni
  0 siblings, 1 reply; 4+ messages in thread
From: Nicolas Ménégale @ 2013-08-26 13:41 UTC (permalink / raw)
  To: buildroot

Hi Everyone,

In libffi.mk:23: 
mv $(STAGING_DIR)/usr/lib/libffi-*/include/*.h $(STAGING_DIR)/usr/include/

Wouldn't it make more sense this way ?
mv $(STAGING_DIR)/usr/lib/libffi-$(LIBFFI_VERSION)/include/*.h $(STAGING_DIR)/usr/include/

Same thing for the LIBFFI_MOVE_TARGET_HEADERS hook below this line.

If so I can send a patch to correct that.

Thanks,
Nicolas.

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

* [Buildroot] libffi target header installation problem
  2013-08-26 13:41 ` [Buildroot] libffi target header installation problem Nicolas Ménégale
@ 2013-08-26 13:44   ` Thomas Petazzoni
  2013-08-26 14:04     ` Nicolas Ménégale
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Petazzoni @ 2013-08-26 13:44 UTC (permalink / raw)
  To: buildroot

Dear Nicolas M?n?gale,

On Mon, 26 Aug 2013 15:41:51 +0200 (CEST), Nicolas M?n?gale wrote:
> Hi Everyone,
> 
> In libffi.mk:23: 
> mv $(STAGING_DIR)/usr/lib/libffi-*/include/*.h $(STAGING_DIR)/usr/include/
> 
> Wouldn't it make more sense this way ?
> mv $(STAGING_DIR)/usr/lib/libffi-$(LIBFFI_VERSION)/include/*.h $(STAGING_DIR)/usr/include/
> 
> Same thing for the LIBFFI_MOVE_TARGET_HEADERS hook below this line.
> 
> If so I can send a patch to correct that.

What "problem" are you seeing with the current code?

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] 4+ messages in thread

* [Buildroot] libffi target header installation problem
  2013-08-26 13:44   ` Thomas Petazzoni
@ 2013-08-26 14:04     ` Nicolas Ménégale
  2013-08-26 14:06       ` Thomas Petazzoni
  0 siblings, 1 reply; 4+ messages in thread
From: Nicolas Ménégale @ 2013-08-26 14:04 UTC (permalink / raw)
  To: buildroot

Well I had, for a specific reason, two folder for two different versions of libffi into $(STAGING_DIR)/usr/lib/:
libffi-3.0.11 and libffi-3.0.10 
This mv command was failing saying:
"will not overwrite just-created <filename> with <sameFilename>"
because it was trying to overwrite the .h it just moved. 

And I think we should be sure that we move the header related with the actual package described into libffi.mk

Does it make sense ?

Thanks a lot,
Nicolas.

----- Mail original -----
> De: "Thomas Petazzoni" <thomas.petazzoni@free-electrons.com>
> ?: "Nicolas M?n?gale" <nicolas.menegale@openwide.fr>
> Cc: buildroot at busybox.net
> Envoy?: Lundi 26 Ao?t 2013 15:44:20
> Objet: Re: [Buildroot] libffi target header installation problem
> 
> Dear Nicolas M?n?gale,
> 
> On Mon, 26 Aug 2013 15:41:51 +0200 (CEST), Nicolas M?n?gale wrote:
> > Hi Everyone,
> > 
> > In libffi.mk:23:
> > mv $(STAGING_DIR)/usr/lib/libffi-*/include/*.h
> > $(STAGING_DIR)/usr/include/
> > 
> > Wouldn't it make more sense this way ?
> > mv $(STAGING_DIR)/usr/lib/libffi-$(LIBFFI_VERSION)/include/*.h
> > $(STAGING_DIR)/usr/include/
> > 
> > Same thing for the LIBFFI_MOVE_TARGET_HEADERS hook below this line.
> > 
> > If so I can send a patch to correct that.
> 
> What "problem" are you seeing with the current code?
> 
> 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] 4+ messages in thread

* [Buildroot] libffi target header installation problem
  2013-08-26 14:04     ` Nicolas Ménégale
@ 2013-08-26 14:06       ` Thomas Petazzoni
  0 siblings, 0 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2013-08-26 14:06 UTC (permalink / raw)
  To: buildroot

Dear Nicolas M?n?gale,

On Mon, 26 Aug 2013 16:04:39 +0200 (CEST), Nicolas M?n?gale wrote:

> Well I had, for a specific reason, two folder for two different versions of libffi into $(STAGING_DIR)/usr/lib/:
> libffi-3.0.11 and libffi-3.0.10 
> This mv command was failing saying:
> "will not overwrite just-created <filename> with <sameFilename>"
> because it was trying to overwrite the .h it just moved. 

Ok, that's what can happen if you bump Buildroot and then restart the
build without doing a "make clean". We generally don't support this
kind of use case, but I agree that in this case it doesn't hurt to
specify explicitly the version, so you can certainly send a patch for
this.

Thanks,

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] 4+ messages in thread

end of thread, other threads:[~2013-08-26 14:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1626579523.5503469.1377524132514.JavaMail.root@openwide.fr>
2013-08-26 13:41 ` [Buildroot] libffi target header installation problem Nicolas Ménégale
2013-08-26 13:44   ` Thomas Petazzoni
2013-08-26 14:04     ` Nicolas Ménégale
2013-08-26 14:06       ` Thomas Petazzoni

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