Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: ulf at uclibc.org <ulf@uclibc.org>
To: buildroot@busybox.net
Subject: [Buildroot] svn commit: trunk/buildroot/package/libxml2
Date: Sun, 19 Aug 2007 13:59:40 -0700 (PDT)	[thread overview]
Message-ID: <20070819205940.D0E38A4710@busybox.net> (raw)

Author: ulf
Date: 2007-08-19 13:59:37 -0700 (Sun, 19 Aug 2007)
New Revision: 19565

Log:
Fr?\195?\165n: 	Brad House <brad@mainstreetsoftworks.com>
Till: 	buildroot at uclibc.org
?\195?\132mne: 	[Buildroot] [patch] libxml2 install fails because of missing directory
Datum: 	Tue, 14 Aug 2007 16:34:34 -0400  (22.34 CEST)

If libxml2 is installed before $(TARGET_DIR)/usr/lib is created,
it fails because it can't copy the library over.

Also, the dependency tree is a bit messed up.  libxml2.a should
only be installed if target-headers is specified, it's 4MB
on my system and the only .a file I found in my TARGET_DIR
(target-headers was not specified).

The attached patch fixes the above problems.

-Brad


Modified:
   trunk/buildroot/package/libxml2/libxml2.mk


Changeset:
Modified: trunk/buildroot/package/libxml2/libxml2.mk
===================================================================
--- trunk/buildroot/package/libxml2/libxml2.mk	2007-08-19 19:28:09 UTC (rev 19564)
+++ trunk/buildroot/package/libxml2/libxml2.mk	2007-08-19 20:59:37 UTC (rev 19565)
@@ -47,11 +47,8 @@
 	);
 	touch $(LIBXML2_DIR)/.configured
 
-$(LIBXML2_DIR)/libxml2.la: $(LIBXML2_DIR)/.configured
-	rm -f $@
+$(STAGING_DIR)/usr/lib/libxml2.so: $(LIBXML2_DIR)/.configured
 	$(MAKE) CC=$(TARGET_CC) -C $(LIBXML2_DIR)
-
-$(STAGING_DIR)/usr/lib/libxml2.so: $(LIBXML2_DIR)/libxml2.la
 	$(MAKE) DESTDIR=$(STAGING_DIR) -C $(LIBXML2_DIR) install
 	rm -f $(STAGING_DIR)/usr/lib/libxml2.la
 	$(SED) 's:prefix=/usr:prefix=$(STAGING_DIR)/usr:' \
@@ -59,17 +56,16 @@
 		$(STAGING_DIR)/usr/bin/xml2-config
 
 $(TARGET_DIR)/usr/lib/libxml2.so: $(STAGING_DIR)/usr/lib/libxml2.so
+	mkdir -p $(TARGET_DIR)/usr/include $(TARGET_DIR)/usr/lib
 	cp -dpf $(STAGING_DIR)/usr/lib/libxml2.so* $(TARGET_DIR)/usr/lib/
 	$(STRIP) --strip-unneeded $(TARGET_DIR)/usr/lib/libxml2.so*
 
 $(TARGET_DIR)/usr/lib/libxml2.a: $(STAGING_DIR)/usr/lib/libxml2.so
-	mkdir -p $(TARGET_DIR)/usr/include
 	cp -dpf $(STAGING_DIR)/usr/lib/libxml2.*a $(TARGET_DIR)/usr/lib/
-#	cp -dpf $(STAGING_DIR)/usr/include/libxml $(TARGET_DIR)/usr/include/
 
 libxml2:	uclibc $(TARGET_DIR)/usr/lib/libxml2.so libxml2-headers
 
-$(STAGING_DIR)/usr/include/libxml:	$(TARGET_DIR)/usr/lib/libxml2.a
+$(STAGING_DIR)/usr/include/libxml:	$(TARGET_DIR)/usr/lib/libxml2.so
 	cp -af $(LIBXML2_DIR)/include/libxml $(STAGING_DIR)/usr/include/libxml2
 
 $(TARGET_DIR)/usr/include/libxml2:	libxml2-headers
@@ -78,7 +74,7 @@
 
 libxml2-headers:	$(STAGING_DIR)/usr/include/libxml
 
-libxml2-target-headers: $(TARGET_DIR)/usr/include/libxml2
+libxml2-target-headers: $(TARGET_DIR)/usr/include/libxml2 $(TARGET_DIR)/usr/lib/libxml2.a
 
 libxml2-source: $(DL_DIR)/$(LIBXML2_SOURCE)
 

             reply	other threads:[~2007-08-19 20:59 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-19 20:59 ulf at uclibc.org [this message]
  -- strict thread matches above, loose matches on Subject: below --
2009-01-27 15:02 [Buildroot] svn commit: trunk/buildroot/package/libxml2 jacmet at uclibc.org
2008-10-10 14:41 laird at uclibc.org
2008-08-28 10:56 laird at uclibc.org
2008-08-28 11:37 ` Bernhard Reutner-Fischer
2008-08-24  7:48 jacmet at uclibc.org
2008-08-23 13:08 jacmet at uclibc.org
2008-08-23 13:08 jacmet at uclibc.org
2008-08-23 13:08 jacmet at uclibc.org
2008-08-23 13:08 jacmet at uclibc.org
2008-06-30 13:16 jacmet at uclibc.org
2008-06-20 21:45 jacmet at uclibc.org
2008-03-06 18:16 ninevoltz at uclibc.org
2008-03-07  0:09 ` Ulf Samuelsson
2007-09-23 14:23 ulf at uclibc.org
2007-08-07 17:28 ulf at uclibc.org
2007-07-24 14:12 ulf at uclibc.org
2007-07-17 15:17 ulf at uclibc.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070819205940.D0E38A4710@busybox.net \
    --to=ulf@uclibc.org \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox