buildroot.git
13 years agoEnable ccache for u-boot compile
Martin Hicks [Tue, 1 Feb 2011 17:13:01 +0000 (12:13 -0500)]
Enable ccache for u-boot compile

Just needed to pass in ccache as a prefix to the CROSS_TARGET variable.

Signed-off-by: Martin Hicks <mort@bork.org>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
13 years agoEnable ccache for kernel compile
Martin Hicks [Tue, 1 Feb 2011 17:13:00 +0000 (12:13 -0500)]
Enable ccache for kernel compile

Just needed to pass in ccache as a prefix to the CROSS_TARGET variable.

Signed-off-by: Martin Hicks <mort@bork.org>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
13 years agoruby: don't build documentation when building for host either
Peter Korsgaard [Tue, 1 Feb 2011 19:14:00 +0000 (20:14 +0100)]
ruby: don't build documentation when building for host either

We don't use it, so it only slows down the build.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
13 years agopackage/dhcp: Fix config name
Peter Korsgaard [Tue, 1 Feb 2011 13:30:32 +0000 (14:30 +0100)]
package/dhcp: Fix config name

ISC dhcp is no longer the only way of handling DHCP, so use a less generic
config text.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
13 years agodhcp: fix install -D invocation in target-install
Peter Korsgaard [Tue, 1 Feb 2011 13:25:05 +0000 (14:25 +0100)]
dhcp: fix install -D invocation in target-install

Closes #3181

When install -D is used (to ensure destination dirs exists), the destination
file name has to be given as well.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
13 years agomake help: document ncurses, make V=1 and make O=<dir>
Peter Korsgaard [Tue, 1 Feb 2011 07:41:01 +0000 (08:41 +0100)]
make help: document ncurses, make V=1 and make O=<dir>

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
13 years agoCHANGES: #1681, #2839 and #2893 are resolved
Peter Korsgaard [Mon, 31 Jan 2011 20:30:05 +0000 (21:30 +0100)]
CHANGES: #1681, #2839 and #2893 are resolved

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
13 years agouclibc: add BSD endian conversions routines for 0.9.31
Gustavo Zacarias [Thu, 27 Jan 2011 14:21:28 +0000 (11:21 -0300)]
uclibc: add BSD endian conversions routines for 0.9.31

Add BSD endian conversion routines (backport from 0.9.32 / git).

Required to use a modern udev.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
13 years agofbset: ensure it builds after busybox if both are enabled
Gustavo Zacarias [Mon, 31 Jan 2011 19:40:25 +0000 (16:40 -0300)]
fbset: ensure it builds after busybox if both are enabled

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
13 years agopackage: add libhid
Peter Korsgaard [Mon, 31 Jan 2011 19:23:42 +0000 (20:23 +0100)]
package: add libhid

Based on patch by Johan Sagaert, but with some additional tweaks.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
13 years agolibusb-compat: fixup libusb-config script similarly to other *-config scripts
Peter Korsgaard [Mon, 31 Jan 2011 19:02:36 +0000 (20:02 +0100)]
libusb-compat: fixup libusb-config script similarly to other *-config scripts

So programs using this don't end up looking for host includes / libraries.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
13 years agox11vnc: needs libXt
Peter Korsgaard [Mon, 31 Jan 2011 14:07:01 +0000 (15:07 +0100)]
x11vnc: needs libXt

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
13 years agoxfont_font-util: remove mapfiles workaround
Peter Korsgaard [Sun, 30 Jan 2011 20:07:26 +0000 (21:07 +0100)]
xfont_font-util: remove mapfiles workaround

Not needed (in fact breaks the build) now pkg-config --variable= does the
right thing.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
13 years agodocumentation: mention we can't use the distro toolchain as external
Thomas Petazzoni [Sun, 30 Jan 2011 14:37:50 +0000 (15:37 +0100)]
documentation: mention we can't use the distro toolchain as external

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
13 years agoUse <code> instead of <pre> to improve formatting
Thomas Petazzoni [Sun, 30 Jan 2011 14:37:48 +0000 (15:37 +0100)]
Use <code> instead of <pre> to improve formatting

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
13 years agoRemove more or less inexact option concerning custom target skeleton
Thomas Petazzoni [Sun, 30 Jan 2011 14:37:47 +0000 (15:37 +0100)]
Remove more or less inexact option concerning custom target skeleton

We discourage the addition of custom target skeleton into the official
Buildroot tree, so let's not encourage users to do this in the
documentation.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
13 years agoUpdate documentation about external toolchain
Thomas Petazzoni [Sun, 30 Jan 2011 14:37:46 +0000 (15:37 +0100)]
Update documentation about external toolchain

Reword the documentation on external toolchain to take into account
the new features added since 2010.11 concerning external toolchain
profiles.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
13 years agoExplain why we don't support ELDK toolchains.
Thomas Petazzoni [Sun, 30 Jan 2011 14:37:45 +0000 (15:37 +0100)]
Explain why we don't support ELDK toolchains.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
13 years agopkg-config: rework --with-sysroot patch so it doesn't break target build
Peter Korsgaard [Sun, 30 Jan 2011 10:05:50 +0000 (11:05 +0100)]
pkg-config: rework --with-sysroot patch so it doesn't break target build

We don't currently autoreconf pkg-config for the target as we don't need
--with-sysroot support, which means PKG_CONFIG_SYSROOT=NULL wasn't
passed, breaking the build.

Fix it by reworking the patch to only pass this if --with-sysroot is given,
and handle the not set case in main.c.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
13 years agodnsmasq: remove dbus cflags mangling
Peter Korsgaard [Sun, 30 Jan 2011 09:40:17 +0000 (10:40 +0100)]
dnsmasq: remove dbus cflags mangling

Get rid of cflags workaround now that we always use sysroot, and
pkg-config --cflags dbus-1 thus returns the correct value.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
13 years agoiproute2: fix build on configs without ipv6 support
Peter Korsgaard [Sun, 30 Jan 2011 00:37:24 +0000 (01:37 +0100)]
iproute2: fix build on configs without ipv6 support

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
13 years agontp: bump to version 4.2.6p3 and fix glibc build failure
Gustavo Zacarias [Thu, 27 Jan 2011 16:24:10 +0000 (13:24 -0300)]
ntp: bump to version 4.2.6p3 and fix glibc build failure

Bump to version 4.2.6p3 and fix a build failure with external toolchains
that use certain glibc versions as point out by speakman on IRC.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Acked-by: Daniel Nyström <daniel.nystrom@timeterminal.se>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
13 years agolibcuefile: convert to cmaketargets infrastructure
Gustavo Zacarias [Thu, 27 Jan 2011 15:02:40 +0000 (12:02 -0300)]
libcuefile: convert to cmaketargets infrastructure

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
13 years agopkg-config: add --with-sysroot option for compiled in default sysroot setting
Peter Korsgaard [Sat, 29 Jan 2011 23:33:00 +0000 (00:33 +0100)]
pkg-config: add --with-sysroot option for compiled in default sysroot setting

Similar to the --with-pc-path option. It works just like the existing
PKG_CONFIG_SYSROOT_DIR environment variable, but compiled in.
The environment variable overrides this default setting if set.

This way we don't need to pass PKG_CONFIG_SYSROOT_DIR in the environment
when building for the target, and it is easier to reuse pkg-config outside
BR (E.G. for the SDK) without having to setup special environment
variables.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
13 years agopkg-config: prefix sysroot to path variables
Peter Korsgaard [Sat, 29 Jan 2011 21:59:44 +0000 (22:59 +0100)]
pkg-config: prefix sysroot to path variables

Fixes gst-plugins-bad build, if gstreamer is installed on host with xml
support, as it uses pkg-config --variable=includedir to find gstconfig.h,
and hence ends up looking at the host version.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
13 years agopkg-config: bump version
Peter Korsgaard [Sat, 29 Jan 2011 21:06:28 +0000 (22:06 +0100)]
pkg-config: bump version

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
13 years agomtd: bump version
Peter Korsgaard [Sat, 29 Jan 2011 19:20:14 +0000 (20:20 +0100)]
mtd: bump version

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
13 years agoiproute2: ensure it gets built after busybox if both enabled
Peter Korsgaard [Fri, 28 Jan 2011 14:46:50 +0000 (15:46 +0100)]
iproute2: ensure it gets built after busybox if both enabled

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
13 years agoCHANGES: update with recent changes
Peter Korsgaard [Fri, 28 Jan 2011 09:43:13 +0000 (10:43 +0100)]
CHANGES: update with recent changes

Thanks to Thomas for input.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
13 years agodbus-python: fix build after python upgrade
Peter Korsgaard [Fri, 28 Jan 2011 08:17:52 +0000 (09:17 +0100)]
dbus-python: fix build after python upgrade

Point it at host-python, and ensure it gets built in advance.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
13 years agolibxcb: use correct python variable
Peter Korsgaard [Fri, 28 Jan 2011 08:16:09 +0000 (09:16 +0100)]
libxcb: use correct python variable

Directory is /usr/lib/python$(PYTHON_VERSION_MAJOR).

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
13 years agolibxcb: use host-python and fix dependencies
Peter Korsgaard [Thu, 27 Jan 2011 22:38:48 +0000 (23:38 +0100)]
libxcb: use host-python and fix dependencies

Now that we have a proper host-python package, use that one instead of
whatever might be available on the build host. Also don't overwrite
the host-python package version variable and fix dependency list
(xcb-proto is needed for the host).

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
13 years agohost-python: enable expat support
Peter Korsgaard [Thu, 27 Jan 2011 22:37:22 +0000 (23:37 +0100)]
host-python: enable expat support

Some packages (like libxcb) need xml support in host-python in order to
build (.py file tries to import xml.etree.cElementTree).

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
13 years agoxcb-proto: needs python for the host
Peter Korsgaard [Thu, 27 Jan 2011 22:34:39 +0000 (23:34 +0100)]
xcb-proto: needs python for the host

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
13 years agocdrkit: convert to CMAKETARGETS infrastructure
Bjørn Forsman [Wed, 26 Jan 2011 21:18:45 +0000 (22:18 +0100)]
cdrkit: convert to CMAKETARGETS infrastructure

Signed-off-by: Bjørn Forsman <bjorn.forsman@gmail.com>
Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
13 years agodoc: add CMAKETARGETS documentation
Bjørn Forsman [Wed, 26 Jan 2011 21:18:44 +0000 (22:18 +0100)]
doc: add CMAKETARGETS documentation

Signed-off-by: Bjørn Forsman <bjorn.forsman@gmail.com>
Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
13 years agoAdd CMAKETARGETS infrastructure for CMake packages
Bjørn Forsman [Wed, 26 Jan 2011 21:18:43 +0000 (22:18 +0100)]
Add CMAKETARGETS infrastructure for CMake packages

The CMAKETARGETS infrastructure makes adding CMake-based packages to
Buildroot easy. It uses the same set of variables as the autotools
infrastructure, except for autoreconf and libtool stuff which is not
needed. Usage: just call CMAKETARGETS instead of AUTOTARGETS.

Signed-off-by: Bjørn Forsman <bjorn.forsman@gmail.com>
Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
13 years agoMakefile: generate CMake toolchain-file in $(O)
Bjørn Forsman [Wed, 26 Jan 2011 21:18:42 +0000 (22:18 +0100)]
Makefile: generate CMake toolchain-file in $(O)

A CMake toolchain-file makes it easy to develop CMake-based packages
outside of Buildroot. Just give the toolchain-file to CMake via the
-DCMAKE_TOOLCHAIN_FILE=... option.

Signed-off-by: Bjørn Forsman <bjorn.forsman@gmail.com>
Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
13 years agolzo: build shared library for host and target
Peter Korsgaard [Wed, 26 Jan 2011 16:51:33 +0000 (17:51 +0100)]
lzo: build shared library for host and target

Based on patch by Michael J. Hammel.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
13 years agozlib: disable call to ldconfig
Thomas Petazzoni [Wed, 26 Jan 2011 08:27:03 +0000 (09:27 +0100)]
zlib: disable call to ldconfig

By default, zlib installation procedure calls ldconfig, which takes
time uselessly. ldconfig is only useful if you install libraries on
the host (in directories listed in /etc/ld.so.conf, or in /usr/lib or
/lib), so calling it after installing libraries in $(STAGING_DIR),
$(TARGET_DIR) or $(HOST_DIR) is just a lenghty no-op.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
13 years agoautoconf: don't append -dirty to version number if built in buildroot git tree
Peter Korsgaard [Wed, 26 Jan 2011 13:53:35 +0000 (14:53 +0100)]
autoconf: don't append -dirty to version number if built in buildroot git tree

Autoconf would append -dirty to it's version number, causing build breakage
with packages explicitly requesting autoconf 2.65, if built in a subdir
of a git tree with uncommitted changes. This is a relatively common
situation when developing on BR.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
13 years agoUse 'sysroot' rather than 'sys-root' for the sysroot/staging_dir
Peter Korsgaard [Wed, 26 Jan 2011 13:49:00 +0000 (14:49 +0100)]
Use 'sysroot' rather than 'sys-root' for the sysroot/staging_dir

As pointed out on the list, using sysroot rather than sys-root is less
confusing, as this is how it is referred to in the GCC manual.

So rather than changing BR, patch ct-ng to use sysroot instead.
The next ct-ng release will use 'sysroot' as well by default.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
13 years agokernel-headers: handle long term support kernels, bump 2.6.35
Peter Korsgaard [Wed, 26 Jan 2011 11:09:42 +0000 (12:09 +0100)]
kernel-headers: handle long term support kernels, bump 2.6.35

2.6.34 was (erroneously) already updated earlier.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
13 years agokernel-headers: get rid of deprecated 2.6.32 / 2.6.33 versions
Peter Korsgaard [Wed, 26 Jan 2011 11:07:36 +0000 (12:07 +0100)]
kernel-headers: get rid of deprecated 2.6.32 / 2.6.33 versions

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
13 years agopackage: fix python upgrade fallout
Peter Korsgaard [Wed, 26 Jan 2011 10:18:50 +0000 (11:18 +0100)]
package: fix python upgrade fallout

A number of packages depended on the libpython make target for python
support, which no longer exist.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
13 years agosysvinint: bump Debian patch
Peter Korsgaard [Wed, 26 Jan 2011 10:16:46 +0000 (11:16 +0100)]
sysvinint: bump Debian patch

-13 patch no longer available on the Debian mirrors.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
13 years agolvm2: use official release location as arranged with upstream
Peter Korsgaard [Wed, 26 Jan 2011 10:08:34 +0000 (11:08 +0100)]
lvm2: use official release location as arranged with upstream

See http://www.redhat.com/archives/lvm-devel/2011-January/msg00002.html
for details.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
13 years agolvm2: bump version to 2.02.79 (.78 was pulled by Redhat)
Heiko Zuerker [Sat, 25 Dec 2010 16:10:58 +0000 (10:10 -0600)]
lvm2: bump version to 2.02.79 (.78 was pulled by Redhat)

Signed-off-by: Heiko Zuerker <smiley73@users.sourceforge.net>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
13 years agocrosstool-ng: don't remove installation directory before installing
Peter Korsgaard [Tue, 25 Jan 2011 21:07:14 +0000 (22:07 +0100)]
crosstool-ng: don't remove installation directory before installing

crosstool-ng would normally delete its installation directory before
installing the toolchain to ensure it wouldn't get confused by an earlier
build. Now that we're installing directly into HOST_DIR/usr, this doesn't
work very well - So get rid of the rm's.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
13 years agoMerge branch 'for-2011.02/python-bump' of git://git.busybox.net/~tpetazzoni/git/buildroot
Peter Korsgaard [Tue, 25 Jan 2011 15:24:46 +0000 (16:24 +0100)]
Merge branch 'for-2011.02/python-bump' of git://git.busybox.net/~tpetazzoni/git/buildroot

13 years agotcpdump, libpcap: simplify and fix ac_cv_linux_vers
Thomas Petazzoni [Tue, 25 Jan 2011 08:46:58 +0000 (09:46 +0100)]
tcpdump, libpcap: simplify and fix ac_cv_linux_vers

For some reason, tcpdump and libpcap need to have some information
about the kernel version being used. This information is passed using
the ac_cv_linux_vers autoconf variable.

However, the current value is determined using
BR2_DEFAULT_KERNEL_HEADERS which is only defined when an internal
Buildroot toolchain is used. So it would break with an external
toolchain or the Crosstool-NG backend.

According to Mike Frysinger at
http://lists.busybox.net/pipermail/buildroot/2011-January/040861.html,
this value is only used to determine if the kernel version is 0.x, 1.x
or 2.x, so passing ac_cv_linux_vers=2 is sufficient since Buildroot
only supports the 2.6 kernel anyway.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
13 years agocrosstool-ng: install toolchain into HOST_DIR like the internal toolchain
Peter Korsgaard [Tue, 25 Jan 2011 15:06:43 +0000 (16:06 +0100)]
crosstool-ng: install toolchain into HOST_DIR like the internal toolchain

Simplifies code and helps us when we add SDK support in the future.
With this we no longer need to copy headers/libraries to STAGING_DIR either.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
13 years agocrosstool-ng: Use same naming convention as internal toolchains
Peter Korsgaard [Tue, 25 Jan 2011 15:03:14 +0000 (16:03 +0100)]
crosstool-ng: Use same naming convention as internal toolchains

Use unknown for the vendor part of the tuple, and add $arch-linux- symlinks,
similar to how it's done for the internal toolchain, rather than using
buildroot_ctng and unknown symlinks.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
13 years agopackage/Makefile.in: Fix LIBC calculation for internal ct-ng toolchains
Peter Korsgaard [Tue, 25 Jan 2011 15:01:25 +0000 (16:01 +0100)]
package/Makefile.in: Fix LIBC calculation for internal ct-ng toolchains

Use uclibc for internal ct-ng toolchains configured with uClibc as well.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
13 years agoUse sys-root rather than sysroot for the sysroot/staging_dir
Peter Korsgaard [Tue, 25 Jan 2011 14:58:04 +0000 (15:58 +0100)]
Use sys-root rather than sysroot for the sysroot/staging_dir

The name of the sysroot directory is arbitrary, but as ct-ng uses sys-root,
let's use that as well for consistency.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
13 years agopython-mad: new package
Thomas Petazzoni [Tue, 11 Jan 2011 20:46:44 +0000 (21:46 +0100)]
python-mad: new package

python-mad is a Python binding for the MAD library, a high-quality
integer-only MPEG decoder.

This package has been introduced as a test to make sure that
third-party Python modules that rely on a C extension can properly be
built against the Python infrastructure of Buildroot.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
13 years agopython-serial: new package
Thomas Petazzoni [Tue, 11 Jan 2011 20:45:55 +0000 (21:45 +0100)]
python-serial: new package

python-serial is a Python library to access serial ports.

This package has originally been introduced to test that third-party
pure Python modules (that do not use C extensions) build properly
against the Buildroot Python infrastructure.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
13 years agoRemove .py or .pyc depending on Python configuration
Thomas Petazzoni [Tue, 11 Jan 2011 20:44:29 +0000 (21:44 +0100)]
Remove .py or .pyc depending on Python configuration

We do this at a global level since several packages can install
Python modules.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
13 years agopython: convert to autotargets, bump to 2.7.1, many improvements
Thomas Petazzoni [Sun, 26 Dec 2010 09:28:49 +0000 (10:28 +0100)]
python: convert to autotargets, bump to 2.7.1, many improvements

This commit does a number of changes and improvements to the Python
interpreter package :

 * It converts the .mk file to the AUTOTARGETS infrastructure. Even
   though Python uses only autoconf and not automake, the AUTOTARGETS
   is a fairly good fit for the Python interpreter, so we make use of
   it.

 * It bumps the version to 2.7.1. As this is a minor release compared
   to 2.7, there are no particular changes needed because of this
   bump. All changes done to the package are cleanups and improvements
   unrelated to the version bump.

 * It uses the system libffi. Until now, Python was building its own
   libffi (a library used by interprets to build code that makes
   function call at runtime). Using the Python internal libffi was not
   working as Python was not passing the appropriate arguments down to
   libffi ./configure script. And it sounded better to use a
   system-wide libffi, that could potentially be used by other
   packages as well. This libffi is needed for the ctypes Python
   module.

 * Remove all "depends on BR2_PACKAGE_PYTHON" by moving all
   Python-related options under a "if BR2_PACKAGE_PYTHON ... endif"
   condition.

 * Make the installation of pre-compiled Python modules (.pyc) the
   default, since they are smaller and do not need to be compiled on
   the target. It is still possible to install uncompiled modules, or
   both the uncompiled and pre-compiled versions.

 * The options to select the set of Python modules to compile has been
   moved to a submenu.

 * The codecscjk (Japanese, Korean and Chinese codecs) module is no
   longer enabled by default.

 * The commented options for gdbm and nis in Python have been
   removed. Those were not supported, so let's get rid of unused code.

 * The option for the tkinker module in Python has been removed, since
   we don't have a package for Tk in Buildroot.

 * Options for the bzip2, sqlite and zlib modules have been added,
   since those modules have external dependencies.

 * The set of patches has been completely reworked and extended, with
   more fine-grained patches and newer functionalities. The patches
   are split in two categories:

    - Patches that make various modifications to the Python build
      system to support cross-compilation or make some minor
      modifications. Those patches are numbered from 0 to 100.

    - Patches that add configuration options to the Python build
      system in order to enable/disable the compilation of Python
      extensions or modules (test modules, pydoc, lib2to3, sqlite, tk,
      curses, expat, codecs-cjk, nis, unicodedata, database modules,
      ssl, bzip2, zlib). These patches are numbered from 100 to 200.

   All features of the previous four patches are preserved, but they
   are organized differently and the patches have been renamed. This
   makes it difficult to see the differences from the existing
   patches.

 * The host Python interpreter is now installed in $(HOST_DIR), since
   it is used to build third party Python modules.

 * The BR2_PACKAGE_PYTHON_DEV option is removed since
   BR2_HAVE_DEVFILES already does the necessary work.

 * The "make -i install" workaround introduced by Maxime Ripard is no
   longer needed. It was caused by the compilation of the tests that
   required the unicodedata module (which wasn't built in the host
   Python interpreter). Since we no longer compile the Python tests,
   the problem doesn't exist anymore and we can avoid this "-i"
   option.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
13 years agoautotools: allow host package to use <pkg>_MAKE_ENV and <pkg>_MAKE
Thomas Petazzoni [Sun, 23 Jan 2011 16:08:53 +0000 (17:08 +0100)]
autotools: allow host package to use <pkg>_MAKE_ENV and <pkg>_MAKE

This will be needed by the Python interpreter package.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
13 years agolibffi: new package
Thomas Petazzoni [Sat, 8 Jan 2011 14:15:24 +0000 (15:15 +0100)]
libffi: new package

libffi is needed by the Python interpreter.

The libffi library provides a portable, high level programming
interface to various calling conventions. This allows a programmer to
call any function specified by a call interface description at
run-time.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
13 years agopython: Fix make install (Workaround python's bug #1669349)
Maxime Ripard [Tue, 14 Dec 2010 22:02:22 +0000 (23:02 +0100)]
python: Fix make install (Workaround python's bug #1669349)

Signed-off-by: Maxime Ripard <ripard@archos.com>
13 years agopython: Add the needed patches to compile python2.7 in buildroot.
Maxime Ripard [Fri, 10 Dec 2010 22:13:36 +0000 (23:13 +0100)]
python: Add the needed patches to compile python2.7 in buildroot.

Signed-off-by: Maxime Ripard <ripard@archos.com>
13 years agopython: Port the python2.4 patches to 2.7
Maxime Ripard [Fri, 10 Dec 2010 22:05:39 +0000 (23:05 +0100)]
python: Port the python2.4 patches to 2.7

Signed-off-by: Maxime Ripard <ripard@archos.com>
13 years agopython: Move to version 2.7
Maxime Ripard [Tue, 12 Oct 2010 08:26:53 +0000 (10:26 +0200)]
python: Move to version 2.7

Signed-off-by: Maxime Ripard <ripard@archos.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
13 years agosshfs: adjust make dependencies to match Kconfig
Peter Korsgaard [Mon, 24 Jan 2011 20:11:36 +0000 (21:11 +0100)]
sshfs: adjust make dependencies to match Kconfig

Spotted by Thomas, thanks.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
13 years agobusybox: 1.18.2 fix for wc
Peter Korsgaard [Mon, 24 Jan 2011 16:04:28 +0000 (17:04 +0100)]
busybox: 1.18.2 fix for wc

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
13 years agogstreamer: remove unnecessary feature
Felipe Contreras [Sun, 23 Jan 2011 22:41:30 +0000 (00:41 +0200)]
gstreamer: remove unnecessary feature

On 0.10.11 the binary-registry was added, on 0.10.12 the libxml2
dependency was dropped when binary-registry was used, on 0.10.18 the
binary-registry was made default, and on 0.10.23 it was the only option.

So, libxml2 is not needed any more for the registry.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
13 years agompd: new package
Gustavo Zacarias [Thu, 20 Jan 2011 20:49:42 +0000 (17:49 -0300)]
mpd: new package

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
13 years agomusepack: new package
Gustavo Zacarias [Tue, 18 Jan 2011 16:54:38 +0000 (13:54 -0300)]
musepack: new package

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
13 years agolibcuefile: new package
Gustavo Zacarias [Tue, 18 Jan 2011 16:54:36 +0000 (13:54 -0300)]
libcuefile: new package

[Peter: fix build with ccache]
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
13 years agocdrkit: fix build with ccache
Peter Korsgaard [Thu, 20 Jan 2011 20:23:23 +0000 (21:23 +0100)]
cdrkit: fix build with ccache

Cmake gets confused about ccache, so don't use ccache for cmake builds.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
13 years agotoolchain/uClibc: bump 0.9.32 version to 0.9.32-rc2
Peter Korsgaard [Thu, 20 Jan 2011 20:22:53 +0000 (21:22 +0100)]
toolchain/uClibc: bump 0.9.32 version to 0.9.32-rc2

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
13 years agoCHANGES: update with recent changes
Peter Korsgaard [Thu, 20 Jan 2011 14:26:28 +0000 (15:26 +0100)]
CHANGES: update with recent changes

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
13 years agolibreplaygain: new package
Gustavo Zacarias [Tue, 18 Jan 2011 16:54:37 +0000 (13:54 -0300)]
libreplaygain: new package

[Peter: add comment about why we need autoreconf]
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
13 years agowavpack: new package
Gustavo Zacarias [Thu, 20 Jan 2011 13:32:36 +0000 (10:32 -0300)]
wavpack: new package

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
13 years agofaad2: new package
Gustavo Zacarias [Tue, 18 Jan 2011 16:54:39 +0000 (13:54 -0300)]
faad2: new package

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
13 years agolibsamplerate: new package
Gustavo Zacarias [Tue, 18 Jan 2011 16:54:35 +0000 (13:54 -0300)]
libsamplerate: new package

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
13 years agolibmad: install pkgconfig file
Gustavo Zacarias [Tue, 18 Jan 2011 16:54:33 +0000 (13:54 -0300)]
libmad: install pkgconfig file

Make libmad install mad.pc into staging and target.

Needed for mpd.

[Peter: remove -lm from mad.pc]
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
13 years agolibsndfile: bump to version 1.0.23
Gustavo Zacarias [Tue, 18 Jan 2011 16:54:32 +0000 (13:54 -0300)]
libsndfile: bump to version 1.0.23

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
13 years agompg123: install to staging
Gustavo Zacarias [Tue, 18 Jan 2011 16:54:31 +0000 (13:54 -0300)]
mpg123: install to staging

mpg123 also provides a shared library (libmpg123.so), so install into
staging so other programs can find it.

[Peter: reworded commit message]
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
13 years agotcpdump: add patch for nommu systems
Mike Frysinger [Mon, 10 Jan 2011 14:28:45 +0000 (09:28 -0500)]
tcpdump: add patch for nommu systems

[Peter: slightly tweak patch]
Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
13 years agoportmap: fix clean target to actually clean
Mike Frysinger [Mon, 10 Jan 2011 14:28:44 +0000 (09:28 -0500)]
portmap: fix clean target to actually clean

Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
13 years agoportmap: respect target CFLAGS
Mike Frysinger [Mon, 10 Jan 2011 14:28:43 +0000 (09:28 -0500)]
portmap: respect target CFLAGS

Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
13 years agoportmap: add nommu support
Mike Frysinger [Tue, 11 Jan 2011 18:00:17 +0000 (13:00 -0500)]
portmap: add nommu support

Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
13 years agotoolchain: only fetch gcc/gmp/mpfr/mpc when using a buildroot toolchain
Gustavo Zacarias [Mon, 17 Jan 2011 12:13:42 +0000 (09:13 -0300)]
toolchain: only fetch gcc/gmp/mpfr/mpc when using a buildroot toolchain

Closes #3103

gcc/gmp/mpfr/mpc are only needed when using an internal buildroot toolchain,
so only add them to HOST_SOURCE then.

Otherwise we get some nasty fetch error when doing "make source"

[Peter: add gmpc/mpfr/mpc and reword commit text]
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
13 years agobusybox: add 1.18.2 fixes
Peter Korsgaard [Wed, 19 Jan 2011 08:08:45 +0000 (09:08 +0100)]
busybox: add 1.18.2 fixes

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
13 years agobusybox: fix busybox-menuconfig after 69df644f5
Kim Jae-hui [Tue, 18 Jan 2011 08:20:38 +0000 (09:20 +0100)]
busybox: fix busybox-menuconfig after 69df644f5

Closes #3109

Pass the correct -C <dir> option to make menuconfig.

Signed-off-by: Kim Jae-hui <twinkle.j4k@gmail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
13 years agoopenvpn: bump to version 2.1.4
Gustavo Zacarias [Fri, 14 Jan 2011 14:28:26 +0000 (11:28 -0300)]
openvpn: bump to version 2.1.4

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
13 years agoopenssl: add ocf support
Gustavo Zacarias [Fri, 14 Jan 2011 13:43:24 +0000 (10:43 -0300)]
openssl: add ocf support

Enable OCF (cryptodev) support for openssl as an option.

This requires a patched kernel to export hardware acceleration for
openssl to use it.
If you lack a patched kernel or support it won't break anything, it will
simply fall back to the default software engine from openssl, you'll
just have a slightly bigger libssl/libcrypto.

Tested with 20100325 release + 20101223 patch from the mailing list.

[Peter: slightly tweaked .mk]
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
13 years agocoreutils: bump to version 8.9
Gustavo Zacarias [Fri, 14 Jan 2011 11:53:45 +0000 (08:53 -0300)]
coreutils: bump to version 8.9

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
13 years agogperf: bump to version 3.0.4
Gustavo Zacarias [Wed, 12 Jan 2011 18:21:05 +0000 (15:21 -0300)]
gperf: bump to version 3.0.4

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
13 years agosmartmontools: bump to version 5.40
Gustavo Zacarias [Tue, 11 Jan 2011 18:32:31 +0000 (15:32 -0300)]
smartmontools: bump to version 5.40

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
13 years agosysstat: bump to version 9.1.7
Gustavo Zacarias [Tue, 11 Jan 2011 18:10:38 +0000 (15:10 -0300)]
sysstat: bump to version 9.1.7

Includes some new metrics for sar (amount of active and inactive memory,
processes blocked waiting for I/O to complete).

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
13 years agobash: build after busybox
Gustavo Zacarias [Tue, 11 Jan 2011 17:38:24 +0000 (14:38 -0300)]
bash: build after busybox

Make sure bash builds after busybox when it's enabled to override
busybox's /bin/sh symlink with bash.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
13 years agowipe: convert to gentargets and bump to version 0.22
Gustavo Zacarias [Tue, 11 Jan 2011 17:26:26 +0000 (14:26 -0300)]
wipe: convert to gentargets and bump to version 0.22

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
13 years agompg123: bump to version 1.13.1
Gustavo Zacarias [Fri, 7 Jan 2011 19:38:24 +0000 (16:38 -0300)]
mpg123: bump to version 1.13.1

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
13 years agophp: security bump to 5.2.17
Gustavo Zacarias [Fri, 7 Jan 2011 18:59:04 +0000 (15:59 -0300)]
php: security bump to 5.2.17

PHP bug #53632 and CVE-2010-4645, where conversions from string to
double might cause the PHP interpreter to hang on systems using x87 FPU
registers.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
13 years agontfs-3g: bump to version 2010.10.2
Gustavo Zacarias [Fri, 7 Jan 2011 18:20:40 +0000 (15:20 -0300)]
ntfs-3g: bump to version 2010.10.2

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
13 years agosshfs: select openssh instead of depending
Gustavo Zacarias [Fri, 7 Jan 2011 18:19:03 +0000 (15:19 -0300)]
sshfs: select openssh instead of depending

Select openssh in Config.in rather than depend on it.
Otherwise the option is missing without an obvious reason.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>