Commit Graph

50 Commits

Author SHA1 Message Date
Thomas Petazzoni
211916ed46 dependencies: additional check for PERL_MM_OPT
When the user has Perl local::lib installed, its environment contains
a PERL_MM_OPT variables which defines
INSTALL_BASE="/some/location". Unfortunately, having this makes the
build of libxml-parser-perl (and probably other Perl related packages)
fail, because it complains that both PREFIX (passed in our .mk file)
and INSTALL_BASE (passed from the PERL_MM_OPT environment variable)
are defined. Since in Buildroot we want our PREFIX to be considered,
we error out when the user has PERL_MM_OPT defined.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2011-10-15 23:01:03 +02:00
Thomas Petazzoni
4d33cb7021 dependencies: add rsync as a required dependency
rsync can now be used for overriden package, and will also be used for
other purposes in the future (optimization of toolchain copy time,
etc.).

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2011-09-20 22:58:28 +02:00
Daniel Nyström
2bf3c16609 Reset critical environment variables
Reset them early in top-level Makefile to ensure they're keept unset
all the way through the build process.

This also removes the requirement of these variables being unset
globally prior the build.

Signed-off-by: Daniel Nyström <daniel.nystrom@timeterminal.se>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2010-12-29 23:35:52 +01:00
Thomas Petazzoni
960d268b25 infrastructure: only require download tools when needed
Instead of having to require svn, git or bzr unconditionally, only
require them when one package needs them to be downloaded.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2010-12-24 17:48:26 +01:00
Thomas Petazzoni
ba62fde481 dependencies: add unzip
unzip is needed to uncompress at91bootstrap, so let's add it as a
dependency. This can be discussed, and if we think it shouldn't be a
new dependency, we can also build a host-unzip.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2010-12-16 14:43:17 +01:00
Thomas Petazzoni
17b66affdf ccache: rework ccache management
* ccache is now a normal package (both for the host and the target).

 * ccache option is now part of the "Build options" menu. It will
   automatically build ccache for the host before building anything,
   and will use it to cache builds for both host compilations and
   target compilations.

 * bump ccache to 3.1.3

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2010-12-08 17:51:49 +01:00
Peter Korsgaard
d0c3d1cf43 sed: get rid of host-sed variant
And all the infrastructure surrounding it. A broken sed implementation
is quite rare nowadays, as seen by the fact that the current host-sed
support has been broken for a while, so just get rid of it.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2010-09-30 23:09:39 +02:00
Thomas Petazzoni
01c1279f9f Detect early if an UTF-8 locale is needed
Check in toolchain/dependencies/dependencies.sh if an UTF-8 locale is
properly present on the system before trying to build a locale enabled
toolchain. As this test is only needed when a locale enabled toolchain
is going to be built, we pass the configuration file path to the
dependencies.sh script so that it can grep for the current value of
various options.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2010-08-11 13:10:54 +02:00
Thomas Petazzoni
3b207de011 dependencies: add svn as a mandatory tool
Now that two packages (tremor and libsvgtiny) are being downloaded
from svn, svn becomes a mandatory tool to run Buildroot.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2010-07-29 16:04:38 +02:00
Nick Leverton
016eb67078 dependencies.sh: fix CWD in PATH check
Closes #1999

Signed-off-by: Nick Leverton <nick@leverton.org>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2010-06-09 12:04:25 +02:00
Thomas Petazzoni
c87eb21e00 dependencies: check that . is not in the PATH
Having . in the PATH makes the toolchain build process fail because it
confuses host tools and target tools.

This fixes bug #75.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2010-05-22 00:56:14 +02:00
Thomas Petazzoni
6b8b829508 dependencies: fix tests on LD_LIBRARY_PATH
Things like LD_LIBRARY_PATH=. or even LD_LIBRARY_PATH=.:/usr/lib were
not detected as incorrect.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2010-05-22 00:56:14 +02:00
Thomas Petazzoni
4880edd506 libxcb: fix path to Python modules
When building libxcb, the variable XCBPROTO_XCBPYTHONDIR must point to
the location where the Python modules needed to run the c_client.py
program are installed. The path
$(STAGING_DIR)/usr/lib/python2.6/site-packages was hardcoded. However,
it doesn't work when the version of Python installed on the host is
Python 2.5.

Therefore, add a little bit of magic to compute the host Python
version.

We also verify that Python is available on the host, as we don't build
it in Buildroot.

Fixes bug #1531.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2010-05-07 21:28:33 +02:00
Thomas Petazzoni
4bcefe826b target/cpio: cleanup
* Remove the dependency on BR2_HOST_FAKEROOT, since we don't have
   config option for host tools.

 * Remove a few useless things.

 * Check that cpio is available on the host in
   toolchain/dependencies/dependencies.sh.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2010-04-09 11:04:32 +02:00
Peter Korsgaard
d5b0bb4bc8 dependencies: we need tar and wget as well
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2010-04-06 16:40:42 +02:00
Thomas Petazzoni
496078a0a0 dependencies: add perl as a mandatory dependency
Now that we might happen to build libxml-parser-perl and intltool,
Perl becomes a mandatory dependency. This shouldn't be a problem since
most distributions install Perl by default anyway.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2010-02-23 20:34:32 +01:00
Thomas Petazzoni
a47ce9d3df dependencies: add gzip and bzip2 as base dependencies
They are needed to uncompress the tarballs we download. bzip2, for
instance, is not necessarly installed by default on basic Debian
systems.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2010-02-23 20:33:43 +01:00
Thomas Petazzoni
e07e1b45f7 dependencies: cleanup
Factorize some of the tests done by
toolchain/dependencies/dependencies.sh (check for unset environment
variables and check for required programs).

Make the output less verbose by only showing something when something
is not present. Some messages were really silly.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2009-12-16 08:33:38 +01:00
Thomas Petazzoni
84b1e44e92 dependencies: remove useless test doing nothing
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2009-12-15 21:09:53 +01:00
Thomas Petazzoni
8dba09de9d dependencies: bail out if makeinfo isn't found
makeinfo is mandatory at least to build a toolchain. Currently,
dependencies.sh doesn't fail if makeinfo is not present and only
displays a message that can easily be lost. The user will then
encounter the issue later, when it is more difficult to understand
what's happening.

So, this patch simply does for makeinfo what the script does for the
other dependencies: bail out if they aren't available.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2009-12-15 21:03:50 +01:00
Peter Korsgaard
7f7bf9637e dependencies: check for 'patch'
We need patch for patch-kernel.sh, so verify that it's available
before building.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2009-10-02 09:06:51 +02:00
Peter Korsgaard
44c10ff6b4 dependencies: check for >= make 3.81
Reported by Andrew Dyer <amdyer@gmail.com> and
Lionel Landwerlin <lionel.landwerlin@openwide.fr>.

Seems like make 3.80 has problems with our Makefile.autotools.in
infrastructure.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2009-09-30 09:03:40 +02:00
Peter Korsgaard
160d559b81 dependencies: simplistic SHELL = bash check 2009-01-01 21:20:46 +00:00
Hamish Moffatt
ea8e74bcbe Applied change from Ben Nizette and Hans-Christian Egtvedt to
correctly detect version of gcc on recent distros.  Supplied 
patch was against git and didn't apply cleanly to svn, so applied 
by hand.
2008-09-04 02:30:56 +00:00
Peter Korsgaard
0c462a82ec dependencies: check for awk 2008-06-18 13:11:52 +00:00
Ulf Samuelsson
adbc5a18cb Add BUILDROOT_DL_DIR to dependencies.sh and fix whitespace damage (sorry) 2007-08-20 15:47:42 +00:00
Bernhard Reutner-Fischer
0abc368c5c - check for clean environment variables ARCH, CROSS_COMPILE, GREP_OPTIONS 2007-06-26 13:26:51 +00:00
Bernhard Reutner-Fischer
eb84b6dba3 - fix typo in version check 2007-06-05 07:38:07 +00:00
Bernhard Reutner-Fischer
beca59b090 - ignore eventual errors from which(1) 2007-05-11 12:50:15 +00:00
Bernhard Reutner-Fischer
44d3e98efa - ignore errors when looking at hostcc and hostcxx 2007-03-21 18:15:02 +00:00
Bernhard Reutner-Fischer
22c0b6ee5c - stop using head and use sed -e '1d' at the end instead 2007-03-21 10:54:24 +00:00
Bernhard Reutner-Fischer
1506b0cfd5 Improve the checking of sed by adding some common GNU sed installation
names (gsed/gnused), checking for a basic OS X sed feature in command
line option handling, checking the actual result of the sed run against
the expected result, and placing common code for the check under
toolchain/dependencies/.  (Heikki Lindholm)
2007-03-09 08:33:34 +00:00
Bernhard Reutner-Fischer
1e4d4391bd - mention the package that usually provides makeinfo 2007-02-16 09:34:11 +00:00
Bernhard Reutner-Fischer
0fed2766a4 - might make sense not to print ok if it was nak 2007-02-15 14:30:56 +00:00
Bernhard Reutner-Fischer
f3c50a6cf2 - warn about missing makeinfo on the host. 2007-02-15 14:07:08 +00:00
Bernhard Reutner-Fischer
2d70eb0b89 - cosmetics 2007-02-12 10:41:59 +00:00
Bernhard Reutner-Fischer
13c1b92973 - add paranoia warning about $INCLUDES 2007-02-09 17:28:27 +00:00
Bernhard Reutner-Fischer
078013d8ae - add purely informational check of HOSTCXX 2007-02-09 12:32:21 +00:00
Bernhard Reutner-Fischer
7f0c154c00 - remove sedtest temporary file 2007-01-21 22:31:03 +00:00
Bernhard Reutner-Fischer
a1a86ef91f - add sanity check to make sure that LD_LIBRARY_PATH doesn't contain CWD 2007-01-19 17:11:05 +00:00
Bernhard Reutner-Fischer
d310a7f3bd - spelling fix 2006-12-13 09:17:12 +00:00
Eric Andersen
28283d54a8 fix cut-n-paste typo, where I replaced CFLAGS with two copies CXXFLAGS
fix spacing on env var failure notices
2006-12-13 07:25:22 +00:00
Eric Andersen
ef6528bb8f add checks for when people have foolishly set things in their enviroment
such as CC, CFLAGS, etc that will cause buildroot to break
2006-12-13 07:21:16 +00:00
Eric Andersen
3b261a29d5 use '/bin/echo -e' to make certain we don't use an unusable /bin/sh builtin 2006-12-08 05:24:59 +00:00
Bernhard Reutner-Fischer
3bc31e85b1 - move check for which(1) before it's first use
- fix printing a message when erroring out on non-existing HOSTCC
2006-11-29 10:39:30 +00:00
Bernhard Reutner-Fischer
784e010f2d - fix parsing the gcc version. Also look at the HOSTCC's version rather than a random gcc that may be installed.
Closes #961 and #1097
2006-11-28 10:06:48 +00:00
Eric Andersen
0524f3a6a0 trivial cosmetic stuff 2006-07-18 23:54:31 +00:00
Eric Andersen
8aa5dc4138 stick an extra blank line after results 2006-07-18 23:42:03 +00:00
Eric Andersen
8c709551ff put sed check in the correct place 2006-07-18 23:39:39 +00:00
Mike Frysinger
d99c31c646 s/dependancies/dependencies/ 2006-05-26 01:18:09 +00:00