Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] .la files libdir breakage
@ 2008-09-27 16:15 Michel Wilson
  0 siblings, 0 replies; only message in thread
From: Michel Wilson @ 2008-09-27 16:15 UTC (permalink / raw)
  To: buildroot

Hi,

I have my buildroot working dir in /usr/local/src/buildroot. In 
package/Makefile.autotools.in, line 230, there is the following fragment:

    for i in $$(find $(STAGING_DIR)/usr/lib/ -name "*.la"); do \
        cp $$i $$i~; \
        $(SED) "s:\(['= ]\)/usr:\\1$(STAGING_DIR)/usr:g" $$i; \
    done

It blindly replaces all occurences of =/usr with =$(STAGING_DIR)/usr, in *all* 
.la-files in the staging dir, each time a package using autotools is 
installed. After installing a few of them, it results in the following madness 
(wrapped for clarity):

libdir='/usr/local/src/buildroot/build_i686/staging_dir/usr/local/src/buildro
ot/build_i686/staging_dir/usr/local/src/buildroot/build_i686/staging_dir/usr/
local/src/buildroot/build_i686/staging_dir/usr/local/src/buildroot/build_i686
/staging_dir/usr/local/src/buildroot/build_i686/staging_dir/usr/local/src/bui
ldroot/build_i686/staging_dir/usr/local/src/buildroot/build_i686/staging_dir/
usr/local/src/buildroot/build_i686/staging_dir/usr/local/src/buildroot/build_
i686/staging_dir/usr/local/src/buildroot/build_i686/staging_dir/usr/local/src
/buildroot/build_i686/staging_dir/usr/local/src/buildroot/build_i686/staging_
dir/usr/local/src/buildroot/build_i686/staging_dir/usr/local/src/buildroot/bu
ild_i686/staging_dir/usr/local/src/buildroot/build_i686/staging_dir/usr/local
/src/buildroot/build_i686/staging_dir/usr/local/src/buildroot/build_i686/stag
ing_dir/usr/lib'

Oops ;) Would it be an idea to patch the .la-files before installing them, 
when they are still in the build directory? I think this would ensure that 
they're only patched once.

Regards,

Michel.
-- 
Michel Wilson     michel at crondor.net
PGP key ID        0xD2CB4B7E

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-09-27 16:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-27 16:15 [Buildroot] .la files libdir breakage Michel Wilson

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