Skip to contentSkip to conversation

expat is not correctly installed

Buildroot Ivan Kuten 3 participants 6 messages Aug 9, 2007 – Aug 11, 2007

lore
Share & tools
lore

Ivan Kuten

author
#0 lore raw

Hello,

seems expat lib&includes are installed in wring location:

/usr/bin/make -j1 DESTDIR=/root/buildroot/build_arm/staging_dir/usr -C /root/buildroot/build_arm/expat-2.0.1 install
make[1]: Entering directory `/root/buildroot/build_arm/expat-2.0.1'
/bin/sh ./conftools/mkinstalldirs /root/buildroot/build_arm/staging_dir/usr/lib /root/buildroot/build_arm/staging_dir/usr/usr/include /bin/sh ./libtool --mode=install /usr/bin/install -c libexpat.la /root/buildroot/build_arm/staging_dir/usr/lib/libexpat.la
/usr/bin/install -c .libs/libexpat.so.1.5.2 /root/buildroot/build_arm/staging_dir/usr/lib/libexpat.so.1.5.2
(cd /root/buildroot/build_arm/staging_dir/usr/lib && { ln -s -f libexpat.so.1.5.2 libexpat.so.1 || { rm -f libexpat.so.1 && ln -s libexpat.so.1.5.2 libexpat.so.1; }; }) (cd /root/buildroot/build_arm/staging_dir/usr/lib && { ln -s -f libexpat.so.1.5.2 libexpat.so || { rm -f libexpat.so && ln -s libexpat.so.1.5.2 libexpat.so; }; }) /usr/bin/install -c .libs/libexpat.lai /root/buildroot/build_arm/staging_dir/usr/lib/libexpat.la
/usr/bin/install -c .libs/libexpat.a /root/buildroot/build_arm/staging_dir/usr/lib/libexpat.a
chmod 644 /root/buildroot/build_arm/staging_dir/usr/lib/libexpat.a
/root/buildroot/build_arm/staging_dir/usr/bin/arm-linux-uclibc-ranlib /root/buildroot/build_arm/staging_dir/usr/lib/libexpat.a
libtool: install: warning: remember to run `libtool --finish /lib'
for FN in ./lib/expat.h ./lib/expat_external.h ; do /usr/bin/install -c -m 644 $FN /root/buildroot/build_arm/staging_dir/usr/usr/include ; done /bin/sh ./conftools/mkinstalldirs /root/buildroot/build_arm/staging_dir/usr/usr/bin /root/buildroot/build_arm/staging_dir/usr/usr/man/man1

note: do /usr/bin/install -c -m 644 $FN /root/buildroot/build_arm/staging_dir/usr/usr/include should be: do /usr/bin/install -c -m 644 $FN /root/buildroot/build_arm/staging_dir/usr/include

tested to be working ok with expat.mk revision 18589.

BR,
Ivan

author
#1 lore raw

[Buildroot] PATCH: correct expat DESTDIR , was ( expat is not correctly installed)

Correct expat DESTDIR, otherwise it installed in staging_dir/usr/usr/include:

expat/expat.mk (working copy) renamed from expat/expat.mk (revision 19426) +1 -1
Index: package/expat/expat.mk
===================================================================
@@ -53,7 +53,7 @@
         touch -c $@
 
  $(STAGING_DIR)/$(EXPAT_TARGET_BINARY): $(EXPAT_DIR)/$(EXPAT_BINARY)
-       $(MAKE) DESTDIR=$(STAGING_DIR)/usr -C $(EXPAT_DIR) install
+       $(MAKE) DESTDIR=$(STAGING_DIR) -C $(EXPAT_DIR) install
         $(SED) "s,^libdir=.*,libdir=\'$(STAGING_DIR)/usr/lib\',g" \
                 $(STAGING_DIR)/usr/lib/libexpat.la
         touch -c $@

Best regards,
Ivan

----------------------------------

Quoted 32 lines

Hello,

seems expat lib&includes are installed in wring location:

/usr/bin/make -j1 DESTDIR=/root/buildroot/build_arm/staging_dir/usr -C /root/buildroot/build_arm/expat-2.0.1 install
make[1]: Entering directory `/root/buildroot/build_arm/expat-2.0.1'
/bin/sh ./conftools/mkinstalldirs /root/buildroot/build_arm/staging_dir/usr/lib /root/buildroot/build_arm/staging_dir/usr/usr/include /bin/sh ./libtool --mode=install /usr/bin/install -c libexpat.la /root/buildroot/build_arm/staging_dir/usr/lib/libexpat.la
/usr/bin/install -c .libs/libexpat.so.1.5.2 /root/buildroot/build_arm/staging_dir/usr/lib/libexpat.so.1.5.2
(cd /root/buildroot/build_arm/staging_dir/usr/lib && { ln -s -f libexpat.so.1.5.2 libexpat.so.1 || { rm -f libexpat.so.1 && ln -s libexpat.so.1.5.2 libexpat.so.1; }; }) (cd /root/buildroot/build_arm/staging_dir/usr/lib && { ln -s -f libexpat.so.1.5.2 libexpat.so || { rm -f libexpat.so && ln -s libexpat.so.1.5.2 libexpat.so; }; }) /usr/bin/install -c .libs/libexpat.lai /root/buildroot/build_arm/staging_dir/usr/lib/libexpat.la
/usr/bin/install -c .libs/libexpat.a /root/buildroot/build_arm/staging_dir/usr/lib/libexpat.a
chmod 644 /root/buildroot/build_arm/staging_dir/usr/lib/libexpat.a
/root/buildroot/build_arm/staging_dir/usr/bin/arm-linux-uclibc-ranlib /root/buildroot/build_arm/staging_dir/usr/lib/libexpat.a
libtool: install: warning: remember to run `libtool --finish /lib'
for FN in ./lib/expat.h ./lib/expat_external.h ; do /usr/bin/install -c -m 644 $FN /root/buildroot/build_arm/staging_dir/usr/usr/include ; done /bin/sh ./conftools/mkinstalldirs /root/buildroot/build_arm/staging_dir/usr/usr/bin /root/buildroot/build_arm/staging_dir/usr/usr/man/man1

note: do /usr/bin/install -c -m 644 $FN /root/buildroot/build_arm/staging_dir/usr/usr/include should be: do /usr/bin/install -c -m 644 $FN /root/buildroot/build_arm/staging_dir/usr/include

tested to be working ok with expat.mk revision 18589.

BR,
Ivan

_______________________________________________
buildroot mailing list
buildroot at uclibc.org
http://busybox.net/mailman/listinfo/buildroot

#2 lore raw

[Buildroot] PATCH: correct expat DESTDIR , was ( expat is not correctly installed)

l?r 2007-08-11 klockan 17:07 +0300 skrev Ivan Kuten:

Quoted 18 lines

Correct expat DESTDIR, otherwise it installed in staging_dir/usr/usr/include:

Index: package/expat/expat.mk
===================================================================

expat/expat.mk (working copy) renamed from expat/expat.mk (revision 19426) +1 -1
@@ -53,7 +53,7 @@
         touch -c $@
 
  $(STAGING_DIR)/$(EXPAT_TARGET_BINARY): $(EXPAT_DIR)/$(EXPAT_BINARY)
-       $(MAKE) DESTDIR=$(STAGING_DIR)/usr -C $(EXPAT_DIR) install
+       $(MAKE) DESTDIR=$(STAGING_DIR) -C $(EXPAT_DIR) install
         $(SED) "s,^libdir=.*,libdir=\'$(STAGING_DIR)/usr/lib\',g" \
                 $(STAGING_DIR)/usr/lib/libexpat.la
         touch -c $@
Quoted 2 lines

Best regards,
Ivan

Your patches fail miserably, since your email client replaces tabs with spaces. This means that patches have to be applied manually :-(

Best Regards
Ulf Samuelsson

author
#3 lore raw

[Buildroot] PATCH: correct expat DESTDIR , was ( expat is not correctly installed)

Ulf Samuelsson ?????:

Quoted 19 lines

l?r 2007-08-11 klockan 17:07 +0300 skrev Ivan Kuten:

Quoted 18 lines

Correct expat DESTDIR, otherwise it installed in staging_dir/usr/usr/include:

Index: package/expat/expat.mk
===================================================================

expat/expat.mk (working copy) renamed from expat/expat.mk (revision 19426) +1 -1
@@ -53,7 +53,7 @@
         touch -c $@
 
  $(STAGING_DIR)/$(EXPAT_TARGET_BINARY): $(EXPAT_DIR)/$(EXPAT_BINARY)
-       $(MAKE) DESTDIR=$(STAGING_DIR)/usr -C $(EXPAT_DIR) install
+       $(MAKE) DESTDIR=$(STAGING_DIR) -C $(EXPAT_DIR) install
         $(SED) "s,^libdir=.*,libdir=\'$(STAGING_DIR)/usr/lib\',g" \
                 $(STAGING_DIR)/usr/lib/libexpat.la
         touch -c $@
Quoted 10 lines
Quoted 2 lines

Best regards,
Ivan

Your patches fail miserably, since your email client replaces tabs with spaces. This means that patches have to be applied manually :-(

Best Regards
Ulf Samuelsson

Hm, strange, i'm using thunderbird-2.0 with plain text messaging. Anyway here is the same patch in the attachment.

BR,
Ivan

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: expat_DESTDIR.patch
Url: http://busybox.net/lists/buildroot/attachments/20070811/dda2350d/attachment.diff

#4 lore raw

[Buildroot] *FLAWED* Re: PATCH: correct expat DESTDIR , was ( expat is not correctly installed)

Quoted 6 lines · Ivan Kuten

Ulf Samuelsson : l?r 2007-08-11 klockan 17:07 +0300 skrev Ivan Kuten:

Quoted 3 lines

Your patches fail miserably, since your email client replaces tabs with spaces. This means that patches have to be applied manually :-(

Hm, strange, i'm using thunderbird-2.0 with plain text messaging.

Not strange at all. Here is the problem:

User-Agent: Thunderbird 2.0.0.6 (X11/20070728)
Content-Type: text/plain; charset=UTF-8; format=flowed

                            ^^^^^^^^^^^^^  ^^^^^^^^^^^^^

Biggest problem is 'format=flowed'; that screws up _all_ inlined text. This is a PITA with most mailers :(
You should really consider reconfiguring that:

,----[ user.js ]
| pref("mailnews.send_plaintext_flowed", false); // RFC 2646 | pref("mailnews.display.disable_format_flowed_support", true); `----

so you avoid both sending and receiving flawed^H^H^H^Howed email. utf-8 is also known to cause paines.

Cheers,

Signature · 1 line
Cristian
author
#5 lore raw

[Buildroot] *FLAWED* Re: PATCH: correct expat DESTDIR , was ( expat is not correctly installed)

Cristian Ionescu-Idbohrn ?????:

Quoted 22 lines · Ivan Kuten
Quoted 5 lines

Ulf Samuelsson : l?r 2007-08-11 klockan 17:07 +0300 skrev Ivan Kuten:

Quoted 2 lines

Your patches fail miserably, since your email client replaces tabs with spaces. This means that patches have to be applied manually :-(

Hm, strange, i'm using thunderbird-2.0 with plain text messaging.

Not strange at all. Here is the problem:

User-Agent: Thunderbird 2.0.0.6 (X11/20070728)
Content-Type: text/plain; charset=UTF-8; format=flowed

                            ^^^^^^^^^^^^^  ^^^^^^^^^^^^^

Biggest problem is 'format=flowed'; that screws up _all_ inlined text. This is a PITA with most mailers :(
You should really consider reconfiguring that:

,----[ user.js ]
| pref("mailnews.send_plaintext_flowed", false); // RFC 2646 | pref("mailnews.display.disable_format_flowed_support", true); `----

Quoted 6 lines

so you avoid both sending and receiving flawed^H^H^H^Howed email. utf-8 is also known to cause paines.

Cheers,

Cristian,

Thanks for hints, hope my next patch will be applied cleanly :-)

BR,
Ivan