From: laird at uclibc.org <laird@uclibc.org>
To: buildroot@busybox.net
Subject: [Buildroot] svn commit: trunk/buildroot/package
Date: Fri, 19 Sep 2008 06:37:14 -0700 (PDT) [thread overview]
Message-ID: <20080919133714.C5CE73C66C@busybox.net> (raw)
Author: laird
Date: 2008-09-19 06:37:14 -0700 (Fri, 19 Sep 2008)
New Revision: 23437
Log:
Makefile.autotools.in: Extended to cope with more bad packages
1. I added a HOOK_POST_EXTRACT previously so that I could cope with the
bad libxml2 package. This required me to remove some dead patches
(.rej) files after I extracted the package, the issue is that the
EXTRACT target runs patch-kernel.sh to patch the ltmain.sh.
It then finds some.rej files and bombs out.
I have altered the sequence so that the HOOK_POST_EXTRACT target runs
before the make target that patches libtool to deal with this.
2.) I have added a $(PKG)_LIBTOOL_PATCH variable. This is defaulted to
YES however if you override it in the package makefile to NO then the
ltmain.sh file will not be patched automatically but only if you have
added your own patches.
This is necessary for freetype 2.3.7 as it cannot use the
buildroot-libtool patch.
I am using this patch for building a set of packages, however it
is not a complete set of packages so await feedback of issues (if any)
Daniel Laird
Modified:
trunk/buildroot/package/Makefile.autotools.in
Changeset:
Modified: trunk/buildroot/package/Makefile.autotools.in
===================================================================
--- trunk/buildroot/package/Makefile.autotools.in 2008-09-19 10:31:02 UTC (rev 23436)
+++ trunk/buildroot/package/Makefile.autotools.in 2008-09-19 13:37:14 UTC (rev 23437)
@@ -30,6 +30,8 @@
# list of (package) targets that must be built before foo
# FOO_AUTORECONF [YES/NO, default NO]
# run <autoreconf> before <configure>
+# FOO_LIBTOOL_PATCH [YES/NO, default YES]
+# Do you want the standard buildroot patch applied to ltmain.sh? (libtool)
# FOO_CONF_ENV [default empty]
# environment passed to the <configure> script
# FOO_CONF_OPT [default empty]
@@ -153,10 +155,17 @@
$(TAR) --strip-components=1 -C $(@D) $(TAR_OPTIONS) -
# some packages have messed up permissions inside
$(Q)chmod -R ug+rw $(@D)
+ $(Q)touch $@
+
+# Fix libtool support if required by the package
+$(BUILD_DIR)/%/.stamp_libtool_patch:
+ $(call MESSAGE,"Patching libtool")
# if the package uses libtool, patch it for cross-compiling in buildroot
+ $(Q)if test "$($(PKG)_LIBTOOL_PATCH)" = "YES"; then \
for i in `find $(@D) -name ltmain.sh`; do \
toolchain/patch-kernel.sh $${i%/*} package buildroot-libtool.patch; \
- done
+ done \
+ fi
$(Q)touch $@
# Patch
@@ -193,9 +202,11 @@
$(call MESSAGE,"Running autoreconf")
$(Q)cd $(@D)/$($(PKG)_SUBDIR) && $(AUTORECONF)
# if the package uses libtool, patch it for cross-compiling in buildroot
+ if test "$($(PKG)_LIBTOOL_PATCH)" = "YES"; then \
$(Q)for i in `find $(@D)/$($(PKG)_SUBDIR) -name ltmain.sh`; do \
toolchain/patch-kernel.sh $${i%/*} package buildroot-libtool.patch; \
- done
+ done \
+ fi
$(Q)touch $@
# Configuring
@@ -287,6 +298,7 @@
http://$$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/$(1)
$(2)_DEPENDENCIES ?=
$(2)_AUTORECONF ?= NO
+$(2)_LIBTOOL_PATCH ?= YES
$(2)_CONF_ENV ?=
$(2)_CONF_OPT ?=
$(2)_MAKE_ENV ?=
@@ -309,6 +321,7 @@
$(2)_TARGET_BUILD = $$($(2)_DIR)/.stamp_built
$(2)_TARGET_CONFIGURE = $$($(2)_DIR)/.stamp_configured
$(2)_TARGET_AUTORECONF = $$($(2)_DIR)/.stamp_autoconfigured
+$(2)_TARGET_LIBTOOL_PATCH = $$($(2)_DIR)/.stamp_libtool_patch
$(2)_TARGET_PATCH = $$($(2)_DIR)/.stamp_patched
$(2)_TARGET_EXTRACT = $$($(2)_DIR)/.stamp_extracted
$(2)_TARGET_SOURCE = $$($(2)_DIR)/.stamp_downloaded
@@ -357,7 +370,8 @@
$(1)-extract: $(1)-depends \
$$($(2)_TARGET_EXTRACT) \
- $$($(2)_HOOK_POST_EXTRACT)
+ $$($(2)_HOOK_POST_EXTRACT) \
+ $$($(2)_TARGET_LIBTOOL_PATCH)
$(1)-depends: $(1)-source $$($(2)_DEPENDENCIES)
@@ -377,6 +391,7 @@
$$($(2)_TARGET_INSTALL_STAGING): PKG=$(2)
$$($(2)_TARGET_BUILD): PKG=$(2)
$$($(2)_TARGET_CONFIGURE): PKG=$(2)
+$$($(2)_TARGET_LIBTOOL_PATCH): PKG=$(2)
$$($(2)_TARGET_AUTORECONF): PKG=$(2)
$$($(2)_TARGET_PATCH): PKG=$(2)
$$($(2)_TARGET_EXTRACT): PKG=$(2)
@@ -385,7 +400,7 @@
$$($(2)_TARGET_CLEAN): PKG=$(2)
$$($(2)_TARGET_DIRCLEAN): PKG=$(2)
$$($(2)_HOOK_POST_EXTRACT): PKG=$(2)
-$$($(2)_HOOK_POST_CONFIGURE): PKG=$(2)
+$$($(2)_HOOK_POST_CONFIGURE): PKG=$(2)
$$($(2)_HOOK_POST_BUILD): PKG=$(2)
$$($(2)_HOOK_POST_INSTALL): PKG=$(2)
next reply other threads:[~2008-09-19 13:37 UTC|newest]
Thread overview: 180+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-19 13:37 laird at uclibc.org [this message]
-- strict thread matches above, loose matches on Subject: below --
2009-03-02 7:59 [Buildroot] svn commit: trunk/buildroot/package jacmet at uclibc.org
2009-02-13 9:18 jacmet at uclibc.org
2009-02-04 12:57 jacmet at uclibc.org
2009-02-02 0:39 hamish at uclibc.org
2009-02-02 6:25 ` Peter Korsgaard
2009-02-02 23:22 ` Hamish Moffatt
2009-02-01 16:10 ulf at uclibc.org
2009-01-28 6:32 jacmet at uclibc.org
2009-01-16 12:30 jacmet at uclibc.org
2009-01-13 0:46 hamish at uclibc.org
2009-01-11 20:13 ulf at uclibc.org
2009-01-05 15:23 jacmet at uclibc.org
2008-12-30 19:15 jacmet at uclibc.org
2008-12-29 15:22 jacmet at uclibc.org
2008-12-28 22:28 jacmet at uclibc.org
2008-12-15 22:07 tpetazzoni at uclibc.org
2008-12-15 22:42 ` Thomas Petazzoni
2008-12-16 0:37 ` Hamish Moffatt
2008-12-11 0:33 jacmet at uclibc.org
2008-12-08 8:08 egtvedt at uclibc.org
2008-11-21 14:51 jacmet at uclibc.org
2008-11-11 18:32 tpetazzoni at uclibc.org
2008-11-11 18:46 ` danieljlaird at hotmail.com
2008-11-11 19:10 ` Thomas Petazzoni
2008-11-11 20:52 ` danieljlaird at hotmail.com
2008-11-12 1:09 ` hartleys
2008-11-12 7:55 ` Thomas Petazzoni
2008-11-12 14:14 ` Arnar Mar Sig
2008-11-15 6:06 ` Roberto A. Foglietta
2008-11-15 9:22 ` danieljlaird at hotmail.com
2008-11-15 9:28 ` danieljlaird at hotmail.com
2008-11-15 9:40 ` Roberto A. Foglietta
2008-11-17 11:53 ` Daniel Laird
2008-11-18 3:26 ` Weber, Bernd
2008-11-15 21:20 ` Peter Korsgaard
2008-11-16 9:14 ` Roberto A. Foglietta
2008-11-21 14:51 ` Peter Korsgaard
2008-11-20 14:56 ` Roberto A. Foglietta
2008-11-20 19:13 ` danieljlaird at hotmail.com
2008-11-22 14:04 ` Thomas Petazzoni
2008-11-07 8:56 jacmet at uclibc.org
2008-11-07 8:15 laird at uclibc.org
2008-11-06 12:54 laird at uclibc.org
2008-11-06 15:54 ` hartleys
2008-11-06 16:39 ` Thomas Petazzoni
2008-11-06 17:44 ` danieljlaird at hotmail.com
2008-11-06 18:11 ` hartleys
2008-11-06 21:01 ` danieljlaird at hotmail.com
2008-11-06 22:20 ` Thomas Petazzoni
2008-10-22 15:28 laird at uclibc.org
2008-10-22 12:47 laird at uclibc.org
2008-10-22 15:01 ` Thomas Petazzoni
2008-10-20 11:32 jacmet at uclibc.org
2008-10-07 17:08 wberrier at uclibc.org
2008-10-07 23:17 ` Hamish Moffatt
2008-10-06 19:20 wberrier at uclibc.org
2008-09-19 14:43 laird at uclibc.org
2008-09-14 19:19 jacmet at uclibc.org
2008-09-14 19:19 jacmet at uclibc.org
2008-09-04 2:34 hamish at uclibc.org
2008-09-04 1:19 hamish at uclibc.org
2008-09-04 1:05 hamish at uclibc.org
2008-08-29 12:04 laird at uclibc.org
2008-08-22 14:24 jacmet at uclibc.org
2008-08-22 14:24 jacmet at uclibc.org
2008-08-22 14:01 jacmet at uclibc.org
2008-08-16 11:59 jacmet at uclibc.org
2008-08-04 19:08 jacmet at uclibc.org
2008-08-04 19:08 jacmet at uclibc.org
2008-08-04 19:08 jacmet at uclibc.org
2008-08-04 19:07 jacmet at uclibc.org
2008-08-04 19:07 jacmet at uclibc.org
2008-08-04 19:07 jacmet at uclibc.org
2008-07-11 13:44 jacmet at uclibc.org
2008-07-10 8:17 jacmet at uclibc.org
2008-07-07 5:08 jacmet at uclibc.org
2008-07-06 6:23 ulf at uclibc.org
2008-07-07 5:06 ` Peter Korsgaard
2008-07-04 3:49 correa at uclibc.org
2008-07-02 8:58 jacmet at uclibc.org
2008-07-01 13:30 jacmet at uclibc.org
2008-07-01 12:04 jacmet at uclibc.org
2008-06-26 11:43 jacmet at uclibc.org
2008-06-24 18:35 jacmet at uclibc.org
2008-06-24 13:26 jacmet at uclibc.org
2008-06-14 21:01 jacmet at uclibc.org
2008-05-31 7:27 jacmet at uclibc.org
2008-04-19 20:44 jacmet at uclibc.org
2008-04-12 9:44 nkukard at uclibc.org
2008-04-01 10:30 jacmet at uclibc.org
2008-03-28 23:13 jacmet at uclibc.org
2008-03-28 10:40 jacmet at uclibc.org
2008-03-28 10:39 jacmet at uclibc.org
2008-03-28 10:39 jacmet at uclibc.org
2008-03-11 18:15 ninevoltz at uclibc.org
2008-03-11 19:12 ` Peter Korsgaard
2008-03-07 16:54 ninevoltz at uclibc.org
2008-03-07 20:32 ` Peter Korsgaard
2008-03-07 23:55 ` Hamish Moffatt
2008-03-10 10:40 ` Ivan Kuten
2008-03-10 23:50 ` Hamish Moffatt
2008-03-06 18:40 ninevoltz at uclibc.org
2008-03-06 18:39 ninevoltz at uclibc.org
2008-02-24 21:35 jacmet at uclibc.org
2008-02-24 23:03 ` Hamish Moffatt
2008-02-24 21:34 jacmet at uclibc.org
2008-02-24 20:17 jacmet at uclibc.org
2008-01-10 9:29 ulf at uclibc.org
2008-01-10 10:42 ` Hamish Moffatt
2008-01-10 11:04 ` Ulf Samuelsson
2008-01-10 13:45 ` Hamish Moffatt
2008-01-12 12:52 ` Ulf Samuelsson
2007-10-30 20:05 ulf at uclibc.org
2007-10-30 10:31 ulf at uclibc.org
2007-10-26 17:50 vanokuten at uclibc.org
2007-10-29 0:42 ` Hamish Moffatt
2007-10-30 20:00 ` Ulf Samuelsson
2007-10-18 7:40 ulf at uclibc.org
2007-10-18 5:56 ulf at uclibc.org
2007-09-29 14:27 aldot at uclibc.org
2007-09-29 10:05 aldot at uclibc.org
2007-09-28 22:15 aldot at uclibc.org
2007-09-28 19:49 ulf at uclibc.org
2007-09-27 21:58 aldot at uclibc.org
2007-09-20 18:28 aldot at uclibc.org
2007-09-20 17:27 aldot at uclibc.org
2007-09-20 11:14 aldot at uclibc.org
2007-09-20 11:08 aldot at uclibc.org
2007-09-12 4:40 ulf at uclibc.org
2007-09-01 17:32 aldot at uclibc.org
2007-08-28 8:14 aldot at uclibc.org
2007-08-24 14:18 aldot at uclibc.org
2007-08-22 16:56 aldot at uclibc.org
2007-08-22 16:44 aldot at uclibc.org
2007-08-22 16:28 aldot at uclibc.org
2007-08-22 16:21 aldot at uclibc.org
2007-08-22 16:19 aldot at uclibc.org
2007-08-22 16:08 aldot at uclibc.org
2007-08-22 16:02 aldot at uclibc.org
2007-08-22 15:59 aldot at uclibc.org
2007-08-22 15:52 aldot at uclibc.org
2007-08-14 6:18 ulf at uclibc.org
2007-08-06 19:41 ulf at uclibc.org
2007-07-31 15:10 aldot at uclibc.org
2007-07-27 12:47 aldot at uclibc.org
2007-07-23 12:03 aldot at uclibc.org
2007-07-23 12:01 ulf at uclibc.org
2007-07-23 11:37 aldot at uclibc.org
2007-07-22 20:09 sjhill at uclibc.org
2007-07-22 23:00 ` Ulf Samuelsson
2007-07-20 11:36 ulf at uclibc.org
2007-07-17 12:09 ulf at uclibc.org
2007-07-17 0:24 sjhill at uclibc.org
2007-07-12 15:32 ulf at uclibc.org
2007-07-02 8:58 aldot at uclibc.org
2007-06-26 14:02 aldot at uclibc.org
2007-05-07 4:01 sjhill at uclibc.org
2007-03-20 17:58 aldot at uclibc.org
2007-02-16 9:32 aldot at uclibc.org
2007-01-30 17:33 aldot at uclibc.org
2007-01-30 8:35 aldot at uclibc.org
2007-01-22 19:33 aldot at uclibc.org
2007-01-22 12:27 aldot at uclibc.org
2007-01-21 16:08 aldot at uclibc.org
2007-01-17 12:31 aldot at uclibc.org
2007-01-17 12:28 aldot at uclibc.org
2007-01-17 12:27 aldot at uclibc.org
2007-01-17 12:04 aldot at uclibc.org
2007-01-17 11:34 aldot at uclibc.org
2007-01-15 22:37 andersen at uclibc.org
2007-01-15 16:01 aldot at uclibc.org
2007-01-14 22:18 andersen at uclibc.org
2007-01-14 1:04 sjhill at uclibc.org
2006-12-15 14:37 aldot at uclibc.org
2006-12-08 12:45 aldot at uclibc.org
2006-10-01 18:34 aldot at uclibc.org
2006-09-30 21:08 aldot at uclibc.org
2006-08-29 16:41 aldot at uclibc.org
2006-08-24 19:35 aldot 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=20080919133714.C5CE73C66C@busybox.net \
--to=laird@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