libffi target header installation problem
A message that is not in the archive (sent off-list or not yet received): [email protected]
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.
Dear Nicolas M?n?gale,
Quoted 11 lines · Nicolas M?n?gale
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_HEADERShook below this line.If so I can send a patch to correct that.
What "problem" are you seeing with the current code?
Thomas
Signature · 4 lines
Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com
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 -----
Quoted 32 lines
De: "Thomas Petazzoni" <[email protected]> ?: "Nicolas M?n?gale" <[email protected]>
Cc: buildroot at busybox.net
Envoy?: Lundi 26 Ao?t 2013 15:44:20
Objet: Re: [Buildroot] libffi target header installation problemDear Nicolas M?n?gale,
Quoted 6 lines · Nicolas M?n?gale
Hi Everyone,
In libffi.mk:23:
mv $(STAGING_DIR)/usr/lib/libffi-*/include/*.h
$(STAGING_DIR)/usr/include/Quoted 7 lines
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_HEADERShook 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
Dear Nicolas M?n?gale,
Quoted 5 lines · Nicolas M?n?gale
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
Signature · 4 lines
Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com