buildroot.git
14 years agoAdd documentation on gettext integration
Thomas Petazzoni [Mon, 24 May 2010 20:32:03 +0000 (22:32 +0200)]
Add documentation on gettext integration

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agoUpdate packages to BR2_NEEDS_GETTEXT_IF_LOCALE
Thomas Petazzoni [Mon, 24 May 2010 19:17:55 +0000 (21:17 +0200)]
Update packages to BR2_NEEDS_GETTEXT_IF_LOCALE

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agoImprove gettext integration
Thomas Petazzoni [Mon, 24 May 2010 19:17:50 +0000 (21:17 +0200)]
Improve gettext integration

Having a BR2_NEEDS_GETTEXT option, as introduced by
54d64798e1e14b526c3cc1142961972cff9f1e8a isn't sufficient to express
the different kind of dependencies on gettext.

This commit, based on an idea by Peter Korsgaard, introduces two
different options :

 * BR2_NEEDS_GETTEXT, which is true as soon as the toolchain doesn't
   provide gettext itself (i.e, when the toolchain is uClibc based, be
   it an internal or external toolchain)

 * BR2_NEEDS_GETTEXT_IF_LOCALE, which is true when the toolchain
   doesn't provide gettext *and* locale support has been enabled in
   Buildroot.

A following commit adds some documentation that details how these
configuration variables should be used by packages.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agopciutils: fix access to pci.ids and make update-pciids work with busybox wget
Peter Korsgaard [Mon, 24 May 2010 06:22:26 +0000 (08:22 +0200)]
pciutils: fix access to pci.ids and make update-pciids work with busybox wget

Closes #1819

Fix two issues with pciutils:

- pciutils would look in /usr/share/misc for pci.ids, but install it in
  /usr/share. This is because pciutils doesn't use a ./configure script,
  so we have to also provide the configuration (make) arguments when
  we run make install as well. Fix it by making it look into /usr/share
  as that's simpler to do, and is what upstream does.

- the update-pciids script would call wget with the --no-timestamping
  option, which isn't supported by busybox wget. Fix it by simply
  removing that option as it isn't really critical.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agomutt: needs WCHAR support in toolchain
Peter Korsgaard [Sun, 23 May 2010 21:37:16 +0000 (23:37 +0200)]
mutt: needs WCHAR support in toolchain

Contrary to the comment in Config.in, mutt isn't broken when wchar
is enabled - In fact, it doesn't build without it.

Add BR2_USE_WCHAR dependency to make this clear.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agoicu: fix build with gcc >= 4.4 / JLEVEL > 1
Peter Korsgaard [Sun, 23 May 2010 21:29:38 +0000 (23:29 +0200)]
icu: fix build with gcc >= 4.4 / JLEVEL > 1

Fix two issues with the icu build:
- icu source contains an #elif without any arguments, which g++ >= 4.4
  flags as an error. This is both an issue for target and host build,
  so restructure the .mk so any *both*patch is applied to both builds
  (the other patches would cause trouble with host builds)
- icu build system isn't parallel make safe, use MAKE1

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agopackage/config: really clean
Yann E. MORIN [Sun, 9 May 2010 13:19:10 +0000 (15:19 +0200)]
package/config: really clean

Signed-off-by: Yann E. MORIN <yann.morin.1998@anciens.enib.fr>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agofix device_table.txt path in arm_toolchain_defconfig
cmchao [Fri, 14 May 2010 08:08:05 +0000 (16:08 +0800)]
fix device_table.txt path in arm_toolchain_defconfig

Signed-off-by: Chih-Min Chao <cmchao@gmail.com>
Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agoatngw100_defconfig: update to fix build failure
Bjørn Forsman [Thu, 20 May 2010 16:34:53 +0000 (18:34 +0200)]
atngw100_defconfig: update to fix build failure

atngw100_defconfig: update to fix build failure:

  * The AVR32 toolchain fails to build with the new uClibc version
    0.9.31.x. Use the older uClibc 0.9.30.x branch instead.
  * Disable linux-fusion as it fails to build
    (why was this selected anyway, when DirectFB was not selected?).
  * U-Boot 2010.03 is broken for AVR32. The build fails with:
      zlib.c:31:27: error: asm/unaligned.h: No such file or directory
    Select the older U-Boot 2009.08 version that builds instead.
  * Disable rsync as it fails to build.

Build tested with 'make distclean && make atngw100_defconfig && make'
on an Ubuntu 10.04 x86_64 host.

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>
14 years agocairo: ps backend needs pdf
Peter Korsgaard [Sat, 22 May 2010 19:55:42 +0000 (21:55 +0200)]
cairo: ps backend needs pdf

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agocdrkit: needs largefile support in toolchain
Peter Korsgaard [Sat, 22 May 2010 19:06:34 +0000 (21:06 +0200)]
cdrkit: needs largefile support in toolchain

At the same time fix indentation in Config.in

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agosshfs: needs largefile support (because of fuse)
Peter Korsgaard [Fri, 21 May 2010 20:53:39 +0000 (22:53 +0200)]
sshfs: needs largefile support (because of fuse)

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agoCHANGES: #1729 is now closed (fltk)
Peter Korsgaard [Fri, 21 May 2010 19:11:06 +0000 (21:11 +0200)]
CHANGES: #1729 is now closed (fltk)

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agoMerge branch 'fltk-fix-bug-1729' of git://git.busybox.net/~tpetazzoni/git/buildroot
Peter Korsgaard [Fri, 21 May 2010 19:09:34 +0000 (21:09 +0200)]
Merge branch 'fltk-fix-bug-1729' of git://git.busybox.net/~tpetazzoni/git/buildroot

14 years agoMerge branch 'website' of git://git.busybox.net/~tpetazzoni/git/buildroot
Peter Korsgaard [Fri, 21 May 2010 19:08:43 +0000 (21:08 +0200)]
Merge branch 'website' of git://git.busybox.net/~tpetazzoni/git/buildroot

14 years agoavahi: avahi-autopid: make sure TARGET_DIR/var/lib exists
Nick Leverton [Fri, 21 May 2010 19:03:39 +0000 (21:03 +0200)]
avahi: avahi-autopid: make sure TARGET_DIR/var/lib exists

Closes #1801

Signed-off-by: Nick Leverton <nick@leverton.org>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agoCHANGES: update with changes from 2010-05-15-fixes branch
Peter Korsgaard [Fri, 21 May 2010 18:37:51 +0000 (20:37 +0200)]
CHANGES: update with changes from 2010-05-15-fixes branch

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agoMerge branch '2010-05-15-fixes' of git://git.busybox.net/~tpetazzoni/git/buildroot
Peter Korsgaard [Fri, 21 May 2010 18:30:28 +0000 (20:30 +0200)]
Merge branch '2010-05-15-fixes' of git://git.busybox.net/~tpetazzoni/git/buildroot

14 years agoMakefile: move filesystem stuff after u-boot build again
Peter Korsgaard [Fri, 21 May 2010 14:19:11 +0000 (16:19 +0200)]
Makefile: move filesystem stuff after u-boot build again

Otherwise u-boot tools / kernel modules are only added to target AFTER
the filesystems are built.

Long term u-boot/kernel stuff should get splitted from target/device,
but this is the safest solution for now.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agofltk: fix build
Thomas Petazzoni [Fri, 21 May 2010 14:11:25 +0000 (16:11 +0200)]
fltk: fix build

The build of fltk was failing due to an issue in the usage of
scandir(). This issue is fixed by a new patch,
fltk-1.1.7-scandir-fix.patch. Moreover, this problem was not
necessarly visible, as the build process of FLTK didn't bail out with
an error when it was failing. This if fixed by
fltk-1.1.7-bail-out-on-error.patch. Finally, there was a problem with
the tests of FLTK, so we disabled them.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agoRephrase and extend the documentation page
Thomas Petazzoni [Sun, 16 May 2010 14:31:33 +0000 (16:31 +0200)]
Rephrase and extend the documentation page

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agoExtend the introduction page
Thomas Petazzoni [Sun, 16 May 2010 14:31:19 +0000 (16:31 +0200)]
Extend the introduction page

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agoqt: update x86x86fix for 32bit pc hosts
Peter Korsgaard [Fri, 21 May 2010 06:53:34 +0000 (08:53 +0200)]
qt: update x86x86fix for 32bit pc hosts

The recent change to use config.guess to figure out GNU_HOST_NAME
broken the x86x86fix detection for 32bit hosts, as config.guess
returns something like i686-pc-linux-gnu rather than something with
*-unknown-linux-* like we used to use.

Fix it by simply looking for "linux" instead.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agontp: fix build without ipv6 support
Peter Korsgaard [Thu, 20 May 2010 21:13:01 +0000 (23:13 +0200)]
ntp: fix build without ipv6 support

Closes #1693

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agoaumix: SITE has changed
Julien Boibessot [Thu, 20 May 2010 16:03:58 +0000 (18:03 +0200)]
aumix: SITE has changed

Signed-off-by: Julien Boibessot <julien.boibessot@armadeus.com>
Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agonetsnmp: disable build with external toolchain
Thomas Petazzoni [Sat, 15 May 2010 18:09:46 +0000 (20:09 +0200)]
netsnmp: disable build with external toolchain

There is a build problem with netsnmp on external toolchain that isn't
easy to fix: libtool strips the --sysroot that we are passing it,
which make the link step fail.

In preparation for the release, just make sure this package isn't
visible to external toolchain users. Of course, on the long run, we
should fix this.

We also disable the build of the Quagga SNMP support because it
selects netsnmp.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agovpnc: pass CFLAGS at link time
Thomas Petazzoni [Sat, 15 May 2010 18:06:27 +0000 (20:06 +0200)]
vpnc: pass CFLAGS at link time

External toolchain builds absolutely require the --sysroot option to
be passed at link time.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agouemacs: don't forget CFLAGS at link time
Thomas Petazzoni [Sat, 15 May 2010 18:05:26 +0000 (20:05 +0200)]
uemacs: don't forget CFLAGS at link time

Without CFLAGS, the build breaks because --sysroot is missing at link
time, and this option is absolutely mandatory for external toolchain
builds.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agolvm2: do not override CC and similar variables
Thomas Petazzoni [Sat, 15 May 2010 18:04:02 +0000 (20:04 +0200)]
lvm2: do not override CC and similar variables

Since lvm2 uses autoconf, there's no point in overriding CC and other
variables at build time. This causes build breakage as CFLAGS aren't
used at link time, therefore --sysroot lacks, which breaks the build
with external toolchains.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agomutt: fix build and convert to autotools
Thomas Petazzoni [Sat, 15 May 2010 18:02:28 +0000 (20:02 +0200)]
mutt: fix build and convert to autotools

mutt has been upgraded, but the mutt-1.5.16-makedoc-hostcc.patch
wasn't upgraded accordingly, causing build failures in the
documentation. Therefore, we add a new patch
mutt-1.5.17+20080114-nodoc.patch that disables the construction of the
documentation.

As this patch modifies Makefile.am, we need to autoreconf the
package. The simplest and cleanest way to do this is to convert the
package to the autotools infrastructure.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agocairo: remove host variant
Thomas Petazzoni [Sat, 15 May 2010 14:45:54 +0000 (16:45 +0200)]
cairo: remove host variant

Since we no longer need to build pango on the host, cairo on the host
is no longer needed.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agopango: run pango-querymodules on the target instead of on the host
Thomas Petazzoni [Sat, 15 May 2010 14:42:23 +0000 (16:42 +0200)]
pango: run pango-querymodules on the target instead of on the host

We needed to build pango for the host in order to compile
pango-querymodules for the host, which was used to produce
/etc/pango/pango.modules. Unfortunately:

 * This produces an incorrect /etc/pango/pango.modules (no modules
   detected in my case), probably because the host pango-querymodules
   was looking at host pango modules

 * This requires to build pango for the host, which requires to build
   cairo for the host, which requires to build X11 for the host.

To make things work and remove the dependency between pango and
host-pango, we introduce a S25pango script that creates
/etc/pango/pango.modules on startup if it doesn't exist, just as we do
with libgtk2 for /etc/gtk-2.0/gdk-pixbuf.loaders.

Since host-pango is no longer needed, we remove all definitions
related to it.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agosamba: only require libiconv if !BR2_ENABLE_LOCALE
Thomas Petazzoni [Sat, 15 May 2010 14:42:02 +0000 (16:42 +0200)]
samba: only require libiconv if !BR2_ENABLE_LOCALE

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agontp: fix build failure
Thomas Petazzoni [Sat, 15 May 2010 14:40:07 +0000 (16:40 +0200)]
ntp: fix build failure

This patch adds a patch to NTP to fix the following build failure,
using a workaround patch found on the Fedora bugzilla:

ntp_loopfilter.c: In function 'local_clock':
ntp_loopfilter.c:571: error: 'MOD_NANO' undeclared (first use in this function)
ntp_loopfilter.c:571: error: (Each undeclared identifier is reported only once
ntp_loopfilter.c:571: error: for each function it appears in.)
ntp_loopfilter.c: In function 'loop_config':
ntp_loopfilter.c:896: error: 'MOD_NANO' undeclared (first use in this function)

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agostartup-notification: add dependency on xlib_libX11
Thomas Petazzoni [Sat, 15 May 2010 07:34:49 +0000 (09:34 +0200)]
startup-notification: add dependency on xlib_libX11

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agolmbench: needs BR2_INET_RPC
Thomas Petazzoni [Sat, 15 May 2010 07:21:50 +0000 (09:21 +0200)]
lmbench: needs BR2_INET_RPC

This package uses several pmap_*() functions in the C library, that
are only available if the C library has RPC support.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agoiconv: disallow selection when BR2_ENABLE_LOCALE is enabled
Thomas Petazzoni [Sat, 15 May 2010 07:19:24 +0000 (09:19 +0200)]
iconv: disallow selection when BR2_ENABLE_LOCALE is enabled

A C library compiled with locale support already has an iconv()
implementation. In that case, libiconv is useless. Therefore, disallow
the selection of libiconv when the configuration says that the
toolchain has locale support.

This fixes build issues similar to the one we had with gettext:
libiconv headers are installed, but -liconv is not added because the
./configure script detects that the C library supports iconv.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agoexternal toolchain: check BR2_INSTALL_LIBSTDCPP
Thomas Petazzoni [Fri, 14 May 2010 11:24:43 +0000 (13:24 +0200)]
external toolchain: check BR2_INSTALL_LIBSTDCPP

Verify that the value of BR2_INSTALL_LIBSTDCPP set by the user in the
Buildroot configuration really matches the external toolchain
capabilities by checking that a C++ cross-compiler is available.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agogettext: make only available if BR2_NEEDS_GETTEXT is set
Thomas Petazzoni [Fri, 14 May 2010 07:46:21 +0000 (09:46 +0200)]
gettext: make only available if BR2_NEEDS_GETTEXT is set

This allows to make sure that an user, or a randpackageconfig, will
not select the gettext or libintl package when using an external
toolchain based on glibc/eglibc.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agoltrace: fix build failure
Thomas Petazzoni [Thu, 13 May 2010 20:41:30 +0000 (22:41 +0200)]
ltrace: fix build failure

ltrace failed to build because of missing arguments to gcc to find the
header files. This is due to the fact that the existing ltrace.mk was
setting CC and LD at build time to incorrect values. Keeping the
values set at configure time is just the right thing to do.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agolibcgicc: fix package after autotools infrastructure conversion
Thomas Petazzoni [Thu, 13 May 2010 20:40:31 +0000 (22:40 +0200)]
libcgicc: fix package after autotools infrastructure conversion

The patch had an incorrect name, and the libtool patch was applied
while it shouldn't, and the package wasn't autoreconfed while the
patch changes some Makefile.am files.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agolibcap: fix build failure
Thomas Petazzoni [Thu, 13 May 2010 20:30:52 +0000 (22:30 +0200)]
libcap: fix build failure

On a x86-64 host, libcap tried to install things in
$(STAGING_DIR)/lib64 and $(TARGET_DIR)/lib64. Therefore, pass lib= and
prefix=, as required by the strange build system used by libcap.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agoMake all package using gettext rely on BR2_NEEDS_GETTEXT
Thomas Petazzoni [Fri, 14 May 2010 07:44:03 +0000 (09:44 +0200)]
Make all package using gettext rely on BR2_NEEDS_GETTEXT

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agoAdd a BR2_NEEDS_GETTEXT option
Thomas Petazzoni [Thu, 13 May 2010 20:21:08 +0000 (22:21 +0200)]
Add a BR2_NEEDS_GETTEXT option

When using an external toolchain that uses the glibc or eglibc C
libraries, compiling a separate gettext and libintl is not needed and
is even a source of confusion, causing build failures. These build
failures are due to the fact that when libintl is compiled, it
replaces the C library libintl.h by its own, which does #define
gettext libintl_gettext. Then, when packages want to use gettext,
autoconf realize that gettext is available in the C library and
therefore do not add -lintl to the LDFLAGS, causing the build failure
because the program has been compiled to use libintl_gettext but this
function is not available.

Therefore, we should only use gettext if a uClibc internal toolchain
or a uClibc external toolchain. If an external glibc toolchain is
used, gettext shouldn't be used.

In order to implement that, we introduce the BR2_NEEDS_GETTEXT option,
which is hidden to the user, and whose value is computed automatically
from the rest of the configuration.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agomtd-utils: buildsystem is broken with parallel make (regarding libubi)
Peter Korsgaard [Wed, 19 May 2010 21:11:57 +0000 (23:11 +0200)]
mtd-utils: buildsystem is broken with parallel make (regarding libubi)

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agoavahi: fix build on uclibc 0.9.31 without ipv6 support
Peter Korsgaard [Tue, 18 May 2010 08:41:38 +0000 (10:41 +0200)]
avahi: fix build on uclibc 0.9.31 without ipv6 support

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agoConfig: terminate version number string
Peter Korsgaard [Mon, 17 May 2010 07:34:47 +0000 (09:34 +0200)]
Config: terminate version number string

Reported-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agotarget/linux: bump 2.6.32 and 2.6.33 versions
H Hartley Sweeten [Thu, 13 May 2010 01:01:27 +0000 (20:01 -0500)]
target/linux: bump 2.6.32 and 2.6.33 versions

New versions of the 2.6.32 and 2.6.33 kernel were released today
and it is suggested that all users should upgrade.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agobusybox: 1.16.1 fixes for dhcpd and sed
Peter Korsgaard [Sun, 16 May 2010 20:29:41 +0000 (22:29 +0200)]
busybox: 1.16.1 fixes for dhcpd and sed

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agokernel-headers: bump 2.6.32.x / 2.6.33.x stable versions
Peter Korsgaard [Sun, 16 May 2010 20:22:08 +0000 (22:22 +0200)]
kernel-headers: bump 2.6.32.x / 2.6.33.x stable versions

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agoConfig.in: past 2010.05-rc2
Peter Korsgaard [Sun, 16 May 2010 20:20:54 +0000 (22:20 +0200)]
Config.in: past 2010.05-rc2

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agoupdate for 2010.05-rc2
Peter Korsgaard [Tue, 11 May 2010 19:15:07 +0000 (21:15 +0200)]
update for 2010.05-rc2

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agoCHANGES: add updated packages from Thomas' build-fixes branch
Peter Korsgaard [Tue, 11 May 2010 07:13:14 +0000 (09:13 +0200)]
CHANGES: add updated packages from Thomas' build-fixes branch

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agoMerge branch 'build-fixes' of git://git.busybox.net/~tpetazzoni/git/buildroot
Peter Korsgaard [Tue, 11 May 2010 07:10:43 +0000 (09:10 +0200)]
Merge branch 'build-fixes' of git://git.busybox.net/~tpetazzoni/git/buildroot

14 years agolibnl: include limits.h to fix build failure
Thomas Petazzoni [Mon, 10 May 2010 21:39:51 +0000 (23:39 +0200)]
libnl: include limits.h to fix build failure

Fixes the ULONG_MAX definition problem:

In file included from cache.c:43:
../include/netlink-local.h: In function '__str2type':../include/netlink-local.h:218: error: 'ULONG_MAX' undeclared (first use in this function)

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agonetplug: disable -Werror to fix build failure
Thomas Petazzoni [Mon, 10 May 2010 21:39:50 +0000 (23:39 +0200)]
netplug: disable -Werror to fix build failure

netplug uses nested functions, and gcc generates a warning that
is turned into an error:

cc1: warnings being treated as errors
if_info.c: In function 'ifsm_scriptdone':
if_info.c:289: error: generating trampoline in object (requires executable stack)

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agoless: depends on curses
Thomas Petazzoni [Mon, 10 May 2010 21:39:49 +0000 (23:39 +0200)]
less: depends on curses

The less package already selects BR2_PACKAGE_CURSES, but it fails to
depend on it in the makefile. Therefore, there are cases where less
gets built before curses, and the build fails:

checking for working terminal libraries... Cannot find terminal libraries - configure failed

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agohostapd: use internal crypto library
Thomas Petazzoni [Mon, 10 May 2010 21:39:48 +0000 (23:39 +0200)]
hostapd: use internal crypto library

When OpenSSL is not enabled, hostapd relies on an internal
library. However, this library must be enabled, otherwise the
compilation of hostapd fails with:

/home/test/ctng-arm-eglibc/bin/../lib/gcc/arm-unknown-linux-gnueabi/4.3.4/../../../../arm-unknown-linux-gnueabi/bin/ld: cannot find -ltommath

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agoxvkbd: bump version
Paul Jones [Mon, 10 May 2010 05:02:42 +0000 (15:02 +1000)]
xvkbd: bump version

And fix dependencies while we're at it.

Signed-off-by: Paul Jones <paul@pauljones.id.au>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agoshared-mime-info: missing dependency on host-intltool
Thomas Petazzoni [Sun, 9 May 2010 21:32:44 +0000 (23:32 +0200)]
shared-mime-info: missing dependency on host-intltool

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agoltp-testsuite: mark as broken
Thomas Petazzoni [Sun, 9 May 2010 21:16:28 +0000 (23:16 +0200)]
ltp-testsuite: mark as broken

The install step, done with fakeroot, tries to install things in /opt:

make[2]: Entering directory `/home/test/buildroot/output.ctng-arm-eglibc-2010-05-07-19-39-56/target/root/ltp-full-20090630/lib'
install -D -m 644 libltp.a //opt/ltp/lib/libltp.a
install: cannot create directory //opt/ltp: Permission denied
make[2]: *** [install] Error 1

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agosed: bump to 4.2.1 to fix build failure
Thomas Petazzoni [Sun, 9 May 2010 20:52:10 +0000 (22:52 +0200)]
sed: bump to 4.2.1 to fix build failure

Version 4.1.5 fails to build due to the infamous getline() conflict
issue. 4.2.1 doesn't have this problem.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agovlc: mark as broken
Thomas Petazzoni [Sun, 9 May 2010 18:55:44 +0000 (20:55 +0200)]
vlc: mark as broken

Before 2010.02, VLC didn't build, because it didn't pass the
appropriate --disable- options according to the libraries available in
Buildroot. Now, 2010.05 is going to be released, and no one bothered
to fix VLC. Therefore, let's mark VLC as broken.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agolinux-fusion: add dependency on !BR2_KERNEL_none
Thomas Petazzoni [Sun, 9 May 2010 16:13:52 +0000 (18:13 +0200)]
linux-fusion: add dependency on !BR2_KERNEL_none

linux-fusion is composed of a kernel module, and linux-fusion.mk uses
several variable definitions that only exist when Buildroot compiles a
kernel.

We also add the same dependency to BR2_PACKAGE_DIRECTFB_MULTI, which
relies on linux-fusion.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agolibxcb: relax host-python regexp
Peter Korsgaard [Mon, 10 May 2010 20:18:44 +0000 (22:18 +0200)]
libxcb: relax host-python regexp

Some python versions print x.y rather than x.y.z as version number, so
make regexp more robust.

Reported-by: Paulius Zaleckas <paulius.zaleckas@gmail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agopackage/games/vice: remove
Peter Korsgaard [Mon, 10 May 2010 20:03:39 +0000 (22:03 +0200)]
package/games/vice: remove

Has been marked broken since Nov 2009, so removing as announced.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agolibgcrypt: specify where gpg-error-config is
Thomas Petazzoni [Sun, 9 May 2010 16:13:06 +0000 (18:13 +0200)]
libgcrypt: specify where gpg-error-config is

libgcrypt depends on libgpg-error, but it needs to know where the
gpg-error-config utility is.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agohal: add dependency on host-libxml-parser-perl
Thomas Petazzoni [Sun, 9 May 2010 16:11:54 +0000 (18:11 +0200)]
hal: add dependency on host-libxml-parser-perl

hal integrates its own version of intltool tools, but they require
libxml-parser-perl to be installed on the host.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agogawk: remove CC override
Thomas Petazzoni [Sun, 9 May 2010 14:21:52 +0000 (16:21 +0200)]
gawk: remove CC override

For some unknown reason, gawk.mk was overriding CC to $(TARGET_CC) at
build time, while it had already been set at configure time to
"$(TARGET_CC) $(TARGET_CFLAGS)" which is already the good value.

Setting it to just $(TARGET_CC) breaks the compilation with external
toolchains because we must pass the --sysroot option. But anyway, this
was incorrect as we were loosing some CFLAGS set by Buildroot.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agognuchess: add a patch to fix getline() conflict
Thomas Petazzoni [Sun, 9 May 2010 14:21:30 +0000 (16:21 +0200)]
gnuchess: add a patch to fix getline() conflict

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agophp: make sure either CLI or CGI is selected
Thomas Petazzoni [Sun, 9 May 2010 14:19:08 +0000 (16:19 +0200)]
php: make sure either CLI or CGI is selected

When neither CLI nor CGI is selected, PHP's configure script fails
with:

checking whether to build CGI binary... configure: error: No SAPIs selected.

Of couse, the help text of the options says that at least one of them
should be selected, but when doing testing with randpackageconfig,
noone is reading these help texts.

Therefore, based on the suggestion of Yann E. Morin, modify the
Config.in organization so that at least one of the option is selected.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agoMerge branch 'squashfs-fixes' of git://git.busybox.net/~tpetazzoni/git/buildroot
Peter Korsgaard [Sat, 8 May 2010 14:11:20 +0000 (16:11 +0200)]
Merge branch 'squashfs-fixes' of git://git.busybox.net/~tpetazzoni/git/buildroot

14 years agoCHANGES: #1531 and #1669 are now resolved
Peter Korsgaard [Sat, 8 May 2010 07:39:00 +0000 (09:39 +0200)]
CHANGES: #1531 and #1669 are now resolved

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agoCHANGES: update with changes from misc-fixes2
Peter Korsgaard [Fri, 7 May 2010 22:11:46 +0000 (00:11 +0200)]
CHANGES: update with changes from misc-fixes2

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agoMerge branch 'misc-fixes2' of git://git.busybox.net/~tpetazzoni/git/buildroot
Peter Korsgaard [Fri, 7 May 2010 22:09:11 +0000 (00:09 +0200)]
Merge branch 'misc-fixes2' of git://git.busybox.net/~tpetazzoni/git/buildroot

14 years agoCHANGES: update with changes from misc-fixes
Peter Korsgaard [Fri, 7 May 2010 22:04:45 +0000 (00:04 +0200)]
CHANGES: update with changes from misc-fixes

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agoMerge branch 'misc-fixes' of git://git.busybox.net/~tpetazzoni/git/buildroot
Peter Korsgaard [Fri, 7 May 2010 22:03:49 +0000 (00:03 +0200)]
Merge branch 'misc-fixes' of git://git.busybox.net/~tpetazzoni/git/buildroot

14 years agohostapd: Fix build with external toolchain
Gustavo Zacarias [Thu, 6 May 2010 16:32:14 +0000 (13:32 -0300)]
hostapd: Fix build with external toolchain

Closes #1717

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agosquashfs3: fix build when zlib isn't available on the host
Thomas Petazzoni [Fri, 7 May 2010 19:23:31 +0000 (21:23 +0200)]
squashfs3: fix build when zlib isn't available on the host

We need to pass CFLAGS and LDFLAGS, and to rename the patch so that it
actually gets applied.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agosquashfs: fix build when zlib isn't available on the host
Thomas Petazzoni [Fri, 7 May 2010 19:22:00 +0000 (21:22 +0200)]
squashfs: fix build when zlib isn't available on the host

Pass CFLAGS and LDFLAGS so that when building squashfs, it finds the
zlib installed in $(HOST_DIR).

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agoxlib_libX11: re-add a patch to fix the keysymdef issue
Thomas Petazzoni [Tue, 4 May 2010 19:53:50 +0000 (21:53 +0200)]
xlib_libX11: re-add a patch to fix the keysymdef issue

When xlib_libX11 was bumped to 1.3.2 in commit
1d956c9190dafbe425e9e02255b540641e27f690, the keysymdef patch was
dropped. However, this patch is still needed in order to be able to
tell ./configure where the keysymdef header file is installed.

The patch has been updated for 1.3.2.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agolibxcb: fix path to Python modules
Thomas Petazzoni [Tue, 4 May 2010 19:52:04 +0000 (21:52 +0200)]
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>
14 years agobusybox: disable MTD utils in default configuration
Thomas Petazzoni [Tue, 4 May 2010 19:50:36 +0000 (21:50 +0200)]
busybox: disable MTD utils in default configuration

The MTD utils require MTD headers in the toolchain, and in several
external toolchains, they are not present. In order to make the build
work by default, let's disable the MTD Busybox applets in our default
configuration.

Fixes bug #1669

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agocustomize: fix copy paths
Luca Ceresoli [Wed, 5 May 2010 22:16:59 +0000 (00:16 +0200)]
customize: fix copy paths

Closes #849, #1135

customize.mk used to copy files with a wrong command, resulting in one
directory level in excess. For example, source/etc/myfile would have
produced /etc/etc/myfile in the target filesystem instead of /etc/myfile.

Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agowpa_supplicant: Fix build with external toolchain
Gustavo Zacarias [Thu, 6 May 2010 15:10:10 +0000 (12:10 -0300)]
wpa_supplicant: Fix build with external toolchain

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agoFix the computation of REAL_GNU_TARGET_NAME
Thomas Petazzoni [Thu, 6 May 2010 18:44:21 +0000 (20:44 +0200)]
Fix the computation of REAL_GNU_TARGET_NAME

When the selected C library is glibc, the C library shouldn't be
mentionned in REAL_GNU_TARGET_NAME. In other words:

 arm-unknown-linux-uclibcgnueabi must be used for uClibc
 arm-unknown-linux-gnueabi must be used for glibc

This fixes the build of GDB on the target, as reported by Quotient
Remainder <quotientvremainder@gmail.com>.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agopciutils: Fix cross compiling
Gustavo Zacarias [Thu, 6 May 2010 14:24:36 +0000 (11:24 -0300)]
pciutils: Fix cross compiling

Closes #1705

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agousbutils: fix recursive LIBUSB Kconfig issue and bump to 0.87
Gustavo Zacarias [Thu, 6 May 2010 14:14:38 +0000 (11:14 -0300)]
usbutils: fix recursive LIBUSB Kconfig issue and bump to 0.87

Closes #1699

[Peter: Use BR2_KERNEL_MIRROR]
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agopackage/sed: make HOST_SED_BINARY a simply expanded variable (:=)
Peter Korsgaard [Thu, 6 May 2010 19:17:01 +0000 (21:17 +0200)]
package/sed: make HOST_SED_BINARY a simply expanded variable (:=)

HOST_SED_BINARY is used 2 times during startup, and is relatively
expensive to run, so make it a simple expanded variable (:=) rather
than a recursively expanded one (=).

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agoboa: use BOA_VERSION instead of spawning a shell/basename for build dir
Peter Korsgaard [Thu, 6 May 2010 19:10:42 +0000 (21:10 +0200)]
boa: use BOA_VERSION instead of spawning a shell/basename for build dir

And as it is a recursive variable, this is done twice during startup.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agocheck-host-sed.sh: add missing shebang line
Peter Korsgaard [Thu, 6 May 2010 19:08:04 +0000 (21:08 +0200)]
check-host-sed.sh: add missing shebang line

Bash seems to be smart enough to source the file when execve returns
ENOEXEC, but other shells might not be.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agoMakefile: make GNU_HOST_NAME a simply expanded variable (:=)
Peter Korsgaard [Thu, 6 May 2010 18:53:25 +0000 (20:53 +0200)]
Makefile: make GNU_HOST_NAME a simply expanded variable (:=)

GNU_HOST_NAME is referred more than 100 times in the tree, used 5
times during startup, and is relatively expensive to run - so make
it a simple expanded variable (:=) rather than recursively expanded
one (=).

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agoMakefile.package.in: optimize UPPERCASE macro
Peter Korsgaard [Thu, 6 May 2010 18:46:49 +0000 (20:46 +0200)]
Makefile.package.in: optimize UPPERCASE macro

As noticed by Thomas, we call the UPPERCASE macro a lot, and it slows down
startup quite a bit.

Optimize it by implementing it in make, rather than forking a shell + tr.
The implementation is heavily based on the 'up' macro from gmsl
(http://gmsl.sf.net)

With this in place, startup time is ~5 times lower.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agoxfonts: fix dependencies and build process
Thomas Petazzoni [Thu, 6 May 2010 18:10:02 +0000 (20:10 +0200)]
xfonts: fix dependencies and build process

Instead of assuming that mkfontdir and mkfontscale are available on
the development system, use the one installed in $(HOST_DIR).

The FCCACHE variable is removed, because, for some reason, the
installation process of xfonts disables the call to fc-cache when a
DESTDIR is passed. See the definition of XORG_FONT_FCCACHE in
aclocal.m4 in font packages:

AC_DEFUN([XORG_FONT_FCCACHE],[
        AC_PATH_PROG(FCCACHE, fc-cache)
        FCCACHE_WARN='echo "** Warning: fonts.cache not built" ; echo "** Generate this file manually on host system using fc-cache"'
        if test x"$FCCACHE" = x ; then
                RUN_FCCACHE="${FCCACHE_WARN}"
        else
                RUN_FCCACHE='@(if test -z "$(DESTDIR)"; then echo $(FCCACHE) $(fontdir); $(FCCACHE) $(fontdir); else'
                RUN_FCCACHE="${RUN_FCCACHE} ${FCCACHE_WARN} ; fi)"
        fi
        AC_SUBST([RUN_FCCACHE])
])

In addition to this, we update the font dependencies to include
font-utils for the host, mkfontdir for the host, mkfontscale for the
host and bdftopcf for the host.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agoxapp_mkfontdir: enable for the host
Thomas Petazzoni [Thu, 6 May 2010 18:09:16 +0000 (20:09 +0200)]
xapp_mkfontdir: enable for the host

When compiling xfonts, mkfontdir is needed for the host, therefore,
enable it.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agoEnable xapp_bdftopcf dependencies for the host
Thomas Petazzoni [Thu, 6 May 2010 18:07:29 +0000 (20:07 +0200)]
Enable xapp_bdftopcf dependencies for the host

Now that xapp_bdftopcf is enabled on the host, we also need its
dependencies to be available for the host. The dependency of
host-xapp_bdftopcf is host-xlib_libXfont, which itself depends on a
bunch of other packages. Some of them were already available for the
host, some not (xfont_encodings, xlib_xtrans, xproto_fontcacheproto,
xproto_fontsproto) and are therefore added by this patch.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agoxapp_bdftopcf: enable for the host
Thomas Petazzoni [Thu, 6 May 2010 18:05:01 +0000 (20:05 +0200)]
xapp_bdftopcf: enable for the host

Compiling xfonts require having bdftopcf installed on the
host. Therefore, enable host support for this package.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agoxfont_font-util: enable host package
Thomas Petazzoni [Thu, 6 May 2010 18:02:51 +0000 (20:02 +0200)]
xfont_font-util: enable host package

When compiling xfonts, host utilities like bdftopcf or ucs2any, part
of xfont_font-util are needed. Until now, xfont_font-util was
installing ugly symbolic links, assuming that these tools were
available on the development machine.

This patch enables the host package for xfont_font-util, removes the
post-install.sh script, and keeps only the useful part of this script
in a post install hook.

host-xfont_font-util will be used later by xfont packages.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agoAdd staging libraries directories to -L in external case
Thomas Petazzoni [Thu, 6 May 2010 17:58:45 +0000 (19:58 +0200)]
Add staging libraries directories to -L in external case

In order to solve issues of libtool trying to link target components
against host libraries, it seems that specifying -L$(STAGING_DIR)/lib
and -L$(STAGING_DIR)/usr/lib works.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agoAdd -rpath option for host package compilation
Thomas Petazzoni [Thu, 6 May 2010 17:54:49 +0000 (19:54 +0200)]
Add -rpath option for host package compilation

In c1b6242fdcf2cff7ebf09fec4cc1be58963e8427, we added
$(HOST_DIR)/usr/lib to LD_LIBRARY_PATH when building target packages,
because the build of target packages sometimes require host tools
installed in $(HOST_DIR)/usr/bin which themselves require host
libaries installed in $(HOST_DIR)/usr/lib.

Unfortunately, this solution didn't work, as libtool then tried to
link target binaries against host libraries. So $(HOST_DIR)/usr/lib
got removed from LD_LIBRARY_PATH in
0d1830b07db4ebfd14e77a258de6fb391e57e960.

However, this meant that we went back to the previous situation, in
which host tools used during compilation of target components might
require host libraries. An example :

make[2]: Entering directory `/home/test/buildroot/output.ctng-arm-eglibc-2010-05-04-12-41-00/build/xfont_font-adobe-100dpi-1.0.1'
/home/test/buildroot/output.ctng-arm-eglibc-2010-05-04-12-41-00/host/usr/bin/mkfontdir /home/test/buildroot/output.ctng-arm-eglibc-2010-05-04-12-41-00/target/usr/share/fonts/X11/100dpi
/home/test/buildroot/output.ctng-arm-eglibc-2010-05-04-12-41-00/host/usr/bin/mkfontscale: error while loading shared libraries: libfontenc.so.1: cannot open shared object file: No such file or directory

Therefore, we try another solution: make sure that host binaries are
linked with an -rpath option, so that $(HOST_DIR)/usr/lib doesn't need
to be in LD_LIBRARY_PATH for them to find their libraries.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>