buildroot.git
11 years agofbset: define license
Luca Ceresoli [Wed, 6 Feb 2013 06:24:12 +0000 (06:24 +0000)]
fbset: define license

[Peter: license is GPLv2 like Linux]
Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agoarch/arm: fix-up the ARM Kconfig warning
Yann E. MORIN [Thu, 7 Feb 2013 09:04:48 +0000 (09:04 +0000)]
arch/arm: fix-up the ARM Kconfig warning

Kconfig does not accepts that a symbol that is part of a choice
be affected a default value.

Fix this by introducing a dummy EABI symbol, and make the real
EABI symbol a prompt-less option that depends on !OABI.

[Peter: drop arm dependency, rename to EABI_CHOICE]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Peter Korsgaard <jacmet@uclibc.org>
Cc: Arnout Vandecappelle <arnout@mind.be>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agoproxychains-ng: needs threads
Peter Korsgaard [Thu, 7 Feb 2013 18:20:30 +0000 (19:20 +0100)]
proxychains-ng: needs threads

Also capitalize help text while we're at it.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agoproxychains-ng: ensure cross compiler is used
Peter Korsgaard [Thu, 7 Feb 2013 18:09:38 +0000 (19:09 +0100)]
proxychains-ng: ensure cross compiler is used

Fixes http://autobuild.buildroot.org/results/e184fcb1c100e9d8aa3d9f18a8caee8c0839e207

Contrary to what the .mk file states, proxychains-ng doesn't use autotools.
Instead it uses a handwritten configure script, so convert it to
generic-package.

This handwritten configure script generates config.mak which is then
included by the Makefile. Unfortunately config.mak does:

CC ?= $(TARGET_CC)

But as make sets CC to 'cc' by default, this never does anything - So
it ends up using the host compiler (and target CFLAGS), breaking the build.

Fix it by passing the correct CC setting at build time as well.

While we're at it, also cleanup the package by using 'make install-config'
to install the configuration file.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agoconfigs/{ea3250, fdi3250, phy3250}: lock down kernel headers version
Gustavo Zacarias [Wed, 6 Feb 2013 10:21:53 +0000 (10:21 +0000)]
configs/{ea3250, fdi3250, phy3250}: lock down kernel headers version

Update {ea3250,fdi3250,phy3250}_defconfig to lock down kernel headers to
an appropiate version.
Otherwise the target is building with, at the moment of this writing,
version 3.7 headers and a 2.6.34 kernel which usually isn't wise.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agobarebox: add 2013.02.0, remove 2012.10
Fabio Porcedda [Thu, 7 Feb 2013 02:59:22 +0000 (02:59 +0000)]
barebox: add 2013.02.0, remove 2012.10

Signed-off-by: Fabio Porcedda <fabio.porcedda@gmail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agocoreutils: needs mmu
Gustavo Zacarias [Thu, 7 Feb 2013 00:37:52 +0000 (00:37 +0000)]
coreutils: needs mmu

Fixes:
http://autobuild.buildroot.net/results/bb975d928c08d31d0c1ecfb9519034865120b244/

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agoConfig.in: move BR2_DEFCONFIG to Build options menu.
Arnout Vandecappelle (Essensium/Mind) [Wed, 6 Feb 2013 21:50:57 +0000 (21:50 +0000)]
Config.in: move BR2_DEFCONFIG to Build options menu.

As suggested by gustavoz.

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agoarm: deprecate OABI
Arnout Vandecappelle (Essensium/Mind) [Wed, 6 Feb 2013 13:51:24 +0000 (13:51 +0000)]
arm: deprecate OABI

The BR2_ARM_EABI config symbol is still kept in order to minimize
the impact.

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agoconfigs/qemu: update to use latest kernels
Gustavo Zacarias [Wed, 6 Feb 2013 08:49:39 +0000 (08:49 +0000)]
configs/qemu: update to use latest kernels

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agoser2net: add license information
Gustavo Zacarias [Wed, 6 Feb 2013 06:37:31 +0000 (06:37 +0000)]
ser2net: add license information

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agotoolchain/kernel-headers: not just 2.6 for manual version
Gustavo Zacarias [Wed, 6 Feb 2013 08:43:25 +0000 (08:43 +0000)]
toolchain/kernel-headers: not just 2.6 for manual version

The manual linux headers option may specify versions other than the 2.6
series, so drop the "2.6"

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agouClibc: mark 0.9.31 as deprecated
Peter Korsgaard [Wed, 6 Feb 2013 21:18:53 +0000 (22:18 +0100)]
uClibc: mark 0.9.31 as deprecated

0.9.31 is old and doesn't actually build with modern kernel headers,
so mark it as deprecated.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agokernel-headers: bump 3.2.x stable version
Gustavo Zacarias [Wed, 6 Feb 2013 03:39:21 +0000 (03:39 +0000)]
kernel-headers: bump 3.2.x stable version

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agomdadm: use BR2_KERNEL_MIRROR for SITE
Gustavo Zacarias [Wed, 6 Feb 2013 03:36:57 +0000 (03:36 +0000)]
mdadm: use BR2_KERNEL_MIRROR for SITE

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agoiw: use BR2_KERNEL_MIRROR for SITE
Gustavo Zacarias [Wed, 6 Feb 2013 03:36:56 +0000 (03:36 +0000)]
iw: use BR2_KERNEL_MIRROR for SITE

As pointed by Arnout Vandecappelle.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agolibatasmart: fix host/build flags confusion with strpool
Peter Korsgaard [Wed, 6 Feb 2013 13:20:27 +0000 (14:20 +0100)]
libatasmart: fix host/build flags confusion with strpool

Fixes http://autobuild.buildroot.org/results/3fbdcd1db0272232231a2a5546925ef30e93bf9a

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agolibatasmart: move under libraries->hardware handling
Peter Korsgaard [Wed, 6 Feb 2013 08:19:02 +0000 (09:19 +0100)]
libatasmart: move under libraries->hardware handling

It is a library, so it should go under libraries.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agoiftop: needs threads support
Peter Korsgaard [Wed, 6 Feb 2013 08:14:08 +0000 (09:14 +0100)]
iftop: needs threads support

Fixes http://autobuild.buildroot.org/results/f2cb6113c360b8dbf63bafe5ae425921babdf636

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agosdl: use default autotools target-install
Peter Korsgaard [Tue, 5 Feb 2013 22:28:51 +0000 (23:28 +0100)]
sdl: use default autotools target-install

Fixes http://autobuild.buildroot.org/results/c950d7920d384cb0d37403cbe8344691d4231a1a

The normal 'make install' is perfectly fine, and it also works for static
builds.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agolibvncserver: gnutls support needs gcrypt as well
Peter Korsgaard [Tue, 5 Feb 2013 22:09:44 +0000 (23:09 +0100)]
libvncserver: gnutls support needs gcrypt as well

Fixes http://autobuild.buildroot.org/results/3b479b8cf751cc0c075ab942b56aad36f79ada71

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agolibsndfile: Add dependency on BR2_LARGEFILE
Ryan Mallon [Tue, 5 Feb 2013 07:00:05 +0000 (07:00 +0000)]
libsndfile: Add dependency on BR2_LARGEFILE

libsndfile requires sizeof(sf_count_t) == 8, where sf_count_t is a
typedef alias for off_t. This is not true by default for all
tool-chains, which leads to a runtime assert failure in binaries
compiled against libsndfile. See:

  http://permalink.gmane.org/gmane.comp.audio.libsndfile.devel/229

Add a dependency on BR2_LARGEFILE for libsndfile, and a comment if
BR2_LARGEFILE is not selected.

[Thomas: rebased patch, added more propagation of the new
BR2_LARGEFILE dependency to gst-plugins-good and mpd.]

Signed-off-by: Ryan Mallon <rmallon@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agodhcp: bump to version 4.1-ESV-R8
Gustavo Zacarias [Tue, 5 Feb 2013 09:29:51 +0000 (09:29 +0000)]
dhcp: bump to version 4.1-ESV-R8

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agosquid: bump to version 3.2.7
Gustavo Zacarias [Tue, 5 Feb 2013 09:29:50 +0000 (09:29 +0000)]
squid: bump to version 3.2.7

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agoMake savedefconfig save to a configured file.
Arnout Vandecappelle (Essensium/Mind) [Tue, 5 Feb 2013 07:16:02 +0000 (07:16 +0000)]
Make savedefconfig save to a configured file.

Store BR2_DEFCONFIG in .config, and use it to update the original input
defconfig file after updating the configuration.  When a config is
created by using the BR2_DEFCONFIG=... option, this is saved in the
.config file; later runs of savedefconfig will update that same location.
It is also possible to configure this place in the interactive
configuration.

The BR2_DEFCONFIG value itself is not saved into the generated
defconfig, since Kconfig considers it at its default. This is
intentional, to avoid hard-coding an absolute path in the defconfig.
It will anyway be set again when the defconfig is used with the
'make BR2_DEFCONFIG=... defconfig' command.

As a side-effect of this change, the *config options have been moved out
of the BR2_HAVE_DOT_CONFIG condition.  This doesn't make any functional
difference, because the .config is still not read for the *config targets.
However, the defconfig and savedefconfig targets do need to include
.config now, which makes them slightly slower.

[Peter: slightly tweak help text]
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Acked-by: Luca Ceresoli <luca@lucaceresoli.net>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agobusybox: busybox-update-config should depend on busybox-configure
Arnout Vandecappelle (Essensium/Mind) [Tue, 5 Feb 2013 07:16:01 +0000 (07:16 +0000)]
busybox: busybox-update-config should depend on busybox-configure

Before the config file can be copied, it has to exist.  The
other xxx-update-config targets do this as well.

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Acked-by: Luca Ceresoli <luca@lucaceresoli.net>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agotarget/generic: add filesystem overlay option
Arnout Vandecappelle (Essensium/Mind) [Tue, 5 Feb 2013 07:16:00 +0000 (07:16 +0000)]
target/generic: add filesystem overlay option

The filesystem overlay is a tree that is copied over the target fs
after building everything - which is currently usually done in the
post-build script.

[Peter: don't ignore missing directories]
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Acked-by: Luca Ceresoli <luca@lucaceresoli.net>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agomanual: add section about storing the configuration.
Arnout Vandecappelle (Essensium/Mind) [Tue, 5 Feb 2013 07:15:59 +0000 (07:15 +0000)]
manual: add section about storing the configuration.

Reuse part of board-support.txt, and remove that one because it
was unused.

[Peter: minor tweaks to text]
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agoLegacy: order the options reverse-chronologically.
Arnout Vandecappelle (Essensium/Mind) [Tue, 5 Feb 2013 05:34:33 +0000 (05:34 +0000)]
Legacy: order the options reverse-chronologically.

This makes sure that the most interesting ones are at the top.

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agoLegacy: make the menu a normal menu.
Arnout Vandecappelle (Essensium/Mind) [Tue, 5 Feb 2013 05:34:32 +0000 (05:34 +0000)]
Legacy: make the menu a normal menu.

The help text is moved to comments.

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agoCHANGES: ARMv8 64bit arch is called AArch64
Peter Korsgaard [Tue, 5 Feb 2013 18:28:09 +0000 (19:28 +0100)]
CHANGES: ARMv8 64bit arch is called AArch64

Thanks to Thomas for noticing.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agoopenssl: security bump to version 1.0.1d
Gustavo Zacarias [Tue, 5 Feb 2013 15:06:53 +0000 (12:06 -0300)]
openssl: security bump to version 1.0.1d

Fixes CVE-2013-0169, CVE-2012-2686 and CVE-2013-0166.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agolibffi: switch to using a Git version, brings Microblaze and Xtensa support
Thomas Petazzoni [Mon, 4 Feb 2013 12:52:09 +0000 (12:52 +0000)]
libffi: switch to using a Git version, brings Microblaze and Xtensa support

We already had backported patches for the Blackfin and AArch64
support, and now we would have needed to also backport the Xtensa
support and the Microblaze support. This starts to get crazy.

Let's switch to using a Git version from Github, until libffi finally
releases a new stable version.

In order to achieve this, we also need to:

 * autoreconf the package, so that a libffi.pc file gets generated

 * manually install the libffi.pc file, because it doesn't get
   installed by libffi Makefile, for some reason

 * remove the part of the target post install hook that was messing
   with libffi.pc, since it was modifying the one in STAGING_DIR
   (which is odd for a target post install hook), and the libffi.pc
   file is anyway not installed to the target anymore.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agoutil-linux: add support for Xtensa
Chris Zankel [Mon, 4 Feb 2013 12:52:08 +0000 (12:52 +0000)]
util-linux: add support for Xtensa

[Thomas Petazzoni: rename patch to not have the package version in the
patch file name, adjust the commit title.]

Signed-off-by: Chris Zankel <chris@zankel.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agoutil-linux: add numbers to patches
Thomas Petazzoni [Mon, 4 Feb 2013 12:52:07 +0000 (12:52 +0000)]
util-linux: add numbers to patches

As we are going to add an Xtensa related patch that needs to be
applied *after* the AArch64 patch, let's first add a number to each
util-linux patch file name, so that we know they will be applied in
the right order.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agoMake external toolchain relocatable
Arnout Vandecappelle [Sun, 15 Jul 2012 01:12:05 +0000 (01:12 +0000)]
Make external toolchain relocatable

The external toolchain wrapper sets sysroot etc. to an absolute path.
By changing this to a relative path, it is possible to move the host
directory to a different location and still have a working build
system.

This only works for a downloaded external toolchain.  For a pre-installed
external toolchain, it is possible to move the host directory to a
different location, but not the external toolchain directory (it does work
if the external toolchain directory lies within the host directory).  For
an internal or crosstool-ng toolchain, there is no wrapper so updating the
sysroot path should be done in a different way.

See http://lists.busybox.net/pipermail/buildroot/2012-February/050371.html
for information about others things to do to make the host directory
relocatable.

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Acked-by: Samuel Martin <s.martin49@gmail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agognutls: tools require the package
Gustavo Zacarias [Tue, 5 Feb 2013 03:49:54 +0000 (03:49 +0000)]
gnutls: tools require the package

[Peter: remove the unneeded BR2_USE_WCHAR dependency]
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agobusybox: add mdev patch for 1.21.0
Gustavo Zacarias [Tue, 5 Feb 2013 01:38:19 +0000 (01:38 +0000)]
busybox: add mdev patch for 1.21.0

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agosamba: security bump to version 3.6.12
Gustavo Zacarias [Tue, 5 Feb 2013 00:22:58 +0000 (00:22 +0000)]
samba: security bump to version 3.6.12

Fixes CVE-2013-0213

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agoCHANGES: fix Aarch64 typo
Peter Korsgaard [Tue, 5 Feb 2013 11:10:13 +0000 (12:10 +0100)]
CHANGES: fix Aarch64 typo

Thanks to WIll Newton to noticing.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agoRevert "gnutls: make it non-wchar friendly"
Peter Korsgaard [Tue, 5 Feb 2013 10:45:28 +0000 (11:45 +0100)]
Revert "gnutls: make it non-wchar friendly"

This reverts commit f1b86cef9884894df26ed25efaabe254f8f0754b

While the fix makes gnutls build without wchar, it doesn't actually work as
there's no rpl_wctomb implementation so the .so ends up with an undefined
reference to wctomb:

./host/usr/bin/arm-linux-nm -D staging/usr/lib/libgnutls.so.28|grep wctomb
         U wctomb

Causing linker errors for packages trying to use it:

  CCLD   msmtp
host/usr/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/lib/libgnutls.so:
undefined reference to `wctomb'
collect2: ld returned 1 exit status

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agognutls: bump version
Peter Korsgaard [Tue, 5 Feb 2013 09:39:17 +0000 (10:39 +0100)]
gnutls: bump version

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agolibupnp: security bump to version 1.6.18
Gustavo Zacarias [Mon, 4 Feb 2013 16:13:10 +0000 (16:13 +0000)]
libupnp: security bump to version 1.6.18

Fixes CVE-2012-5958, CVE-2012-5959, CVE-2012-5960, CVE-2012-5961,
CVE-2012-5962, CVE-2012-5963, CVE-2012-5964 and CVE-2012-5965.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agoRevert "gawk: bump to version 4.0.2"
Peter Korsgaard [Tue, 5 Feb 2013 08:36:50 +0000 (09:36 +0100)]
Revert "gawk: bump to version 4.0.2"

This reverts commit 6b307de4f9d6ae806b7cbbf8bc1d412d139d75cf (version part).

Fixes http://autobuild.buildroot.org/results/46828cef48bc1267583ba8174c0e8ee993fac865

As discussed on the list, let's revert this for the 2013.02 release
and then bring it up wiith gawk upstream / try to fix for 2013.05+

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agolvm2: uses fork()
Peter Korsgaard [Tue, 5 Feb 2013 08:00:22 +0000 (09:00 +0100)]
lvm2: uses fork()

Fixes http://autobuild.buildroot.org/results/cbc74e2fb5eaefac1fe17ada1dc46a5c906cc1c9

Also propagate BR2_USE_MMU to lvm2's reverse dependencies.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agoliboping: fix legal-info
Peter Korsgaard [Tue, 5 Feb 2013 07:45:02 +0000 (08:45 +0100)]
liboping: fix legal-info

Fixes http://autobuild.buildroot.org/results/c0bfc03389382235782474b278ca4afd1d283d60

The included (LGPL) license file is called COPYING.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agopackage/qemu: bump version to 1.3.1
Yann E. MORIN [Sun, 3 Feb 2013 04:06:38 +0000 (04:06 +0000)]
package/qemu: bump version to 1.3.1

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agopackage/usbredir: update to version 0.6
Yann E. MORIN [Mon, 4 Feb 2013 06:01:14 +0000 (06:01 +0000)]
package/usbredir: update to version 0.6

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agogdb: fixing gdb 7.4.1 build with eglibc-2_16
Carsten Schoenert [Mon, 4 Feb 2013 10:50:28 +0000 (10:50 +0000)]
gdb: fixing gdb 7.4.1 build with eglibc-2_16

gdb 7.4.1 fails with the following error
  gdb-7.4.1/gdb/linux-nat.h:79:18: error: field 'siginfo' has incomplete type
because gdb use 'struct siginfo' instead of 'struct siginfo_t'.
Crosstool-NG allready use the patches to prevent this error so use this
patches for buildroot too.

see also http://permalink.gmane.org/gmane.comp.gcc.cross-compiling/15305

Fixes http://autobuild.buildroot.net/results/b894a5cecd9c5e0a1a751ebbff90a14aea1803da/build-end.log

Signed-off-by: Carsten Schoenert <c.schoenert@gmail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agoliboping: add license information
Gustavo Zacarias [Tue, 29 Jan 2013 08:23:57 +0000 (08:23 +0000)]
liboping: add license information

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agolibpcap: fixup pcap-config
Baruch Siach [Sat, 2 Feb 2013 20:04:15 +0000 (20:04 +0000)]
libpcap: fixup pcap-config

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agopkg-infra: add <pkg>_CONFIG_FIXUP to fix *-config files
Stefan Fröberg [Wed, 30 Jan 2013 02:46:40 +0000 (02:46 +0000)]
pkg-infra: add <pkg>_CONFIG_FIXUP to fix *-config files

This patch will add <pkg>_CONFIG_FIXUP variable to buildroot infra.

It's purpose is to inform buildroot that the package in question
contains some $(STAGING_DIR)/usr/bin/*-config files and that we
want to automatically fix prefixes of such files.

It is often the case that many packages call these
files during their configuration step to determine 3rd party
library package locations and any flags needed to link against them.

For example:
Some package might try to check the existense and linking flags
of NSPR package by calling $(STAGING_DIR)/usr/bin/nspr-config --prefix.
Without this fix. NSPR would return /usr/ as it's prefix which is
wrong when cross-compiling.
Correct would be $(STAGING_DIR)/usr.

All packages that have <pkg>_INSTALL_STAGING = YES defined and
also install some config file(s) into $(STAGING_DIR)/usr/bin must
hereafter also define <pkg>_CONFIG_FIXUP with the correspondig
filename(s).

For example:

DIVINE_CONFIG_FIXUP = divine-config

or for multiple files:

IMAGEMAGICK_CONFIG_FIXUP = Magick-config Wand-config

Signed-off-by: Stefan Fröberg <stefan.froberg@petroprogram.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agogdb: build gdbserver with TARGET_MAKE_ENV
Thomas Petazzoni [Sun, 3 Feb 2013 02:30:22 +0000 (02:30 +0000)]
gdb: build gdbserver with TARGET_MAKE_ENV

This commit fixes the exact same problem than
21a0c11a90f9ff19c78a5f32e0a2e9064fd28054, but for the gdbserver
build. The problem is that when you use the Crosstool-NG toolchain
backend, gawk gets built as a dependency of Crosstool-NG. So the gdb
configure scripts detects it, and assumes it is in the PATH (because
the gdb configure step gets run with TARGET_MAKE_ENV).

But then, the build fails, because it tries to run gawk, but gawk
isn't in the PATH, because we forget to use this TARGET_MAKE_ENV
variable when building gdbserver.

Fixes http://autobuild.buildroot.org/results/d0173de533b5e2fffed2eff7327a502ed2d787cd/build-end.log

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agotvheadend: disable on avr32
Thomas Petazzoni [Sun, 3 Feb 2013 02:15:28 +0000 (02:15 +0000)]
tvheadend: disable on avr32

tvheadend requires an atomic_add operation. Either you have a gcc >=
4.3 toolchain and it uses the gcc intrinsics, or it has special code
for x86, x86-64, PPC and ARM. So in the context of Buildroot, the only
really problematic architecture is avr32, which uses gcc 4.2.

Fixes http://autobuild.buildroot.org/results/f015b1888d739c383aca61609059aa7675a4da7d/build-end.log

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agotvheadend: get rid of trailing spaces/tabs
Thomas Petazzoni [Sun, 3 Feb 2013 02:15:27 +0000 (02:15 +0000)]
tvheadend: get rid of trailing spaces/tabs

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agopolarssl: security bump to version 1.2.5
Gustavo Zacarias [Mon, 4 Feb 2013 02:51:03 +0000 (02:51 +0000)]
polarssl: security bump to version 1.2.5

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agouboot-tools: also bump to 2013.01.01
Gustavo Zacarias [Mon, 4 Feb 2013 02:25:17 +0000 (02:25 +0000)]
uboot-tools: also bump to 2013.01.01

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agoiw: switch upstream site
Gustavo Zacarias [Mon, 4 Feb 2013 02:20:30 +0000 (02:20 +0000)]
iw: switch upstream site

It's moved from wireless.kernel.org to generic kernel.org

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agolinux: bump 3.7.x stable version
Gustavo Zacarias [Mon, 4 Feb 2013 00:50:15 +0000 (00:50 +0000)]
linux: bump 3.7.x stable version

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agokernel-headers: bump 3.{0, 4, 7}.x stable versions
Gustavo Zacarias [Mon, 4 Feb 2013 00:50:14 +0000 (00:50 +0000)]
kernel-headers: bump 3.{0, 4, 7}.x stable versions

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agoneard: fix missing nfc.h header
Thomas Petazzoni [Sun, 3 Feb 2013 03:37:23 +0000 (03:37 +0000)]
neard: fix missing nfc.h header

We have a patch that allows neard to build even on toolchain using old
kernel headers that lack the nfc.h header. However, after the bump to
neard 0.9, this patch was not updated to take into account the two new
plugins that neard has added.

Fixes http://autobuild.buildroot.org/results/5eeb6f62cc0e654a536b6614dc51e8af4e301bb6/build-end.log

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agoCHANGES: update with recent changes
Peter Korsgaard [Mon, 4 Feb 2013 21:33:47 +0000 (22:33 +0100)]
CHANGES: update with recent changes

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agolibfuse: add patch to fix AArch64 build issue
Thomas Petazzoni [Sun, 3 Feb 2013 21:53:06 +0000 (22:53 +0100)]
libfuse: add patch to fix AArch64 build issue

Fixes http://autobuild.buildroot.org/results/1fb89ab412935ab02494b269a367b283cf9618c1/build-end.log

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agopptp-linux: fix parallel build
Thomas Petazzoni [Sun, 3 Feb 2013 20:53:21 +0000 (21:53 +0100)]
pptp-linux: fix parallel build

Add a patch to fix a parallel build issue caused by a header file
being generated too late.

Fixes:

http://autobuild.buildroot.org/results/2324974d4818b2657a7df4beee33fc4713d6116f/build-end.log

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agopptp-linux: rename patches to remove the version number
Thomas Petazzoni [Sun, 3 Feb 2013 20:53:20 +0000 (21:53 +0100)]
pptp-linux: rename patches to remove the version number

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agoheirloom-mailx: needs fork()
Thomas Petazzoni [Sun, 3 Feb 2013 09:52:22 +0000 (09:52 +0000)]
heirloom-mailx: needs fork()

heirloom-mailx uses fork(), so we can't use it as is on !mmu
platforms.

Fixes:

http://autobuild.buildroot.org/results/c5a8e3a4cbc1e1de985fe3c724b711027865abe7/build-end.log

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agou-boot: bump 2013.01.x version
Peter Korsgaard [Sun, 3 Feb 2013 14:29:14 +0000 (15:29 +0100)]
u-boot: bump 2013.01.x version

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agoudisks: new package
Marek Belisko [Fri, 18 Jan 2013 12:08:47 +0000 (12:08 +0000)]
udisks: new package

[Peter: fix dependencies, comment]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Marek Belisko <marek.belisko@open-nandra.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agolvm2: add option for application library
Marek Belisko [Mon, 7 Jan 2013 10:43:18 +0000 (10:43 +0000)]
lvm2: add option for application library

[Peter: make mutual exclusive with dmsetup-only, drop special install / make]
Signed-off-by: Marek Belisko <marek.belisko@open-nandra.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agolvm2: Install devmapper.pc to staging/target pkgconfig directory.
Marek Belisko [Fri, 18 Jan 2013 12:08:46 +0000 (12:08 +0000)]
lvm2: Install devmapper.pc to staging/target pkgconfig directory.

Without this change if some package which have dependency on device mapper
and use pkgconfig to check version always fail to find library because
devmapper.pc file wasn't installed.

Signed-off-by: Marek Belisko <marek.belisko@open-nandra.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agotoolchain-external: remove support for AArch64 Linaro 2012.10 toolchain
Thomas Petazzoni [Sat, 2 Feb 2013 03:46:23 +0000 (03:46 +0000)]
toolchain-external: remove support for AArch64 Linaro 2012.10 toolchain

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agotoolchain-external: add support for AArch64 Linaro 2013.01 toolchain
Thomas Petazzoni [Sat, 2 Feb 2013 03:46:22 +0000 (03:46 +0000)]
toolchain-external: add support for AArch64 Linaro 2013.01 toolchain

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agonuttcp: needs mmu
Gustavo Zacarias [Sat, 2 Feb 2013 00:24:35 +0000 (00:24 +0000)]
nuttcp: needs mmu

Fixes:
http://autobuild.buildroot.net/results/b8c019a5701377a1e134d01ac0bae5fe34dc975f/

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agoavr32: support uClibc 0.9.33.2
Simon Dawson [Sun, 20 Jan 2013 11:55:41 +0000 (11:55 +0000)]
avr32: support uClibc 0.9.33.2

Add a uClibc patch from OpenWRT, and tweak an existing patch to cope with
the lack of a dup3 Linux syscall on avr32. This allow uClibc 0.9.33.2 to be
built for avr32.

[Peter: add upstream url for openwrt patch]
Signed-off-by: Simon Dawson <spdawson@gmail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agotoolchain-external: add linaro 2013.01, remove 2012.10
Peter Korsgaard [Sat, 2 Feb 2013 12:42:03 +0000 (13:42 +0100)]
toolchain-external: add linaro 2013.01, remove 2012.10

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agoarch/Config.in.arm: Use armv6k for arm1136jf-s rev1
Benoît Thébaudeau [Fri, 1 Feb 2013 09:33:24 +0000 (09:33 +0000)]
arch/Config.in.arm: Use armv6k for arm1136jf-s rev1

According to the ARM1136JF-S and ARM1136J-S Revision r1p5 Technical Reference
Manual, from release rev1 (r1pn), the ARM1136JF-S processor implements the ARMv6
instruction set with the ARMv6k additions.

This patch differentiates the ARM1136JF-S revisions 0 and 1 in order to use
either ARMv6j (e.g. on Freescale i.MX31) or ARMv6k (e.g. on Freescale i.MX35).

Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau@advansee.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agoblackfin: add 2012r2 and remove 2010rc1 toolchains
Gustavo Zacarias [Fri, 1 Feb 2013 03:04:50 +0000 (03:04 +0000)]
blackfin: add 2012r2 and remove 2010rc1 toolchains

Remove the old 2010RC1 toolchain and add the new 2012R2-RC2 toolchain.
On related good news the new toolchain fixes:
http://autobuild.buildroot.net/results/eac5bd4f4766d98431e72a3c81492a962c85fa98/
since it's got unshare() support now.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agocjson: change source to svn repo
Danomi Manchego [Wed, 30 Jan 2013 17:26:37 +0000 (17:26 +0000)]
cjson: change source to svn repo

The original cJSON submittal downloaded a .zip file from SourceForge.
The .zip file did not have a version number, making it impossible
to gaurantee that the same archive is downloaded on any given build.
It also required a custom EXTRACT command.

This patch changes the source for cJSON to the svn repository
listed on the sf project web page - giving us an actual version
number, and letting us use buildroot's normal extraction functionality.

Signed-off-by: Danomi Manchego <danomimanchego123@gmail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agoneard: bump version to 0.9
Simon Dawson [Wed, 30 Jan 2013 22:16:04 +0000 (22:16 +0000)]
neard: bump version to 0.9

Signed-off-by: Simon Dawson <spdawson@gmail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agopcsc-lite: requires mmu
Gustavo Zacarias [Wed, 30 Jan 2013 00:25:46 +0000 (00:25 +0000)]
pcsc-lite: requires mmu

Fixes:
http://autobuild.buildroot.net/results/14400ae2c9e312729efa9a9026b5fdd487868c8a/

Also add license information while at it.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agoebtables: needs MMU
Baruch Siach [Tue, 29 Jan 2013 22:02:59 +0000 (22:02 +0000)]
ebtables: needs MMU

Fixes:
http://autobuild.buildroot.net/results/201f8d3d58cdff0c3501a673003558103237fb22/

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agoxtensa: sqlite requires special compiler option
Chris Zankel [Tue, 22 Jan 2013 10:33:19 +0000 (10:33 +0000)]
xtensa: sqlite requires special compiler option

Some of the generated object files are too large for PC-relative addressing,
so use the -mtext-section-literals compiler flag to move symbols closer to
the code.

[Peter: fix commit message]
Signed-off-by: Chris Zankel <chris@zankel.net>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agopackage/linux-firmware: update to newer version
Yann E. MORIN [Tue, 22 Jan 2013 08:02:23 +0000 (08:02 +0000)]
package/linux-firmware: update to newer version

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agowipe: add license information
Gustavo Zacarias [Tue, 29 Jan 2013 08:23:59 +0000 (08:23 +0000)]
wipe: add license information

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agokismet: add license information
Gustavo Zacarias [Tue, 29 Jan 2013 08:23:58 +0000 (08:23 +0000)]
kismet: add license information

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agolibungif: add license information
Gustavo Zacarias [Tue, 29 Jan 2013 08:23:56 +0000 (08:23 +0000)]
libungif: add license information

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agotn5250: add license information
Gustavo Zacarias [Tue, 29 Jan 2013 08:23:55 +0000 (08:23 +0000)]
tn5250: add license information

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agolibmpd: add license information
Gustavo Zacarias [Tue, 29 Jan 2013 08:23:54 +0000 (08:23 +0000)]
libmpd: add license information

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agogmpc: add license information
Gustavo Zacarias [Tue, 29 Jan 2013 08:23:53 +0000 (08:23 +0000)]
gmpc: add license information

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agodistcc: add license information
Gustavo Zacarias [Tue, 29 Jan 2013 08:23:52 +0000 (08:23 +0000)]
distcc: add license information

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agodialog: add license information
Gustavo Zacarias [Tue, 29 Jan 2013 08:23:51 +0000 (08:23 +0000)]
dialog: add license information

[Peter: License is LGPLv2.1]
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agobluez_utils: add license information
Gustavo Zacarias [Tue, 29 Jan 2013 08:23:50 +0000 (08:23 +0000)]
bluez_utils: add license information

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agoolsr: bump to version 0.6.4
Gustavo Zacarias [Tue, 29 Jan 2013 11:20:04 +0000 (11:20 +0000)]
olsr: bump to version 0.6.4

Bump olsrd to version 0.6.4

Fixes:
http://autobuild.buildroot.net/results/553c8157cd83ca60475caacc119779c778806781/
which is due to the old version not being friendly with newer flex
versions.

Enabled more plugins to make it more useful.

Switch to forked mode in the init script to avoid console noise.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agoNew package: cache-calibrator
Stephan Hoffmann [Mon, 28 Jan 2013 23:53:52 +0000 (23:53 +0000)]
New package: cache-calibrator

The Calibrator is a small C program that is supposed to analyze
a computers (cache-) memory system and extract the following
parameters:

    number of cache levels
    for each cache level:
        its size
        its linesize
        its access/miss latency
    main memory access latency
    number of TLB levels
    for each TLB level:
        its capacity (i.e. number of entries)
        the pagesize used
        the TLB miss latency

http://homepages.cwi.nl/~manegold/Calibrator/

It is also recommended as a load generator for realtime testing in:

https://rt.wiki.kernel.org/index.php/RT_PREEMPT_HOWTO#Benchmarking

[Peter: reformat help text, fix extract step]
Signed-off-by: Stephan Hoffmann <sho@relinux.de>
Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agogenext2fs: add license information
Gustavo Zacarias [Tue, 22 Jan 2013 03:35:53 +0000 (03:35 +0000)]
genext2fs: add license information

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agoquagga: add license information
Gustavo Zacarias [Tue, 22 Jan 2013 03:35:52 +0000 (03:35 +0000)]
quagga: add license information

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agoreadline: add license information
Gustavo Zacarias [Tue, 22 Jan 2013 03:35:51 +0000 (03:35 +0000)]
readline: add license information

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agosdparm: add license information
Gustavo Zacarias [Tue, 22 Jan 2013 03:35:50 +0000 (03:35 +0000)]
sdparm: add license information

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agotar: add license information
Gustavo Zacarias [Tue, 22 Jan 2013 03:35:49 +0000 (03:35 +0000)]
tar: add license information

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 years agodhcp: add license information
Gustavo Zacarias [Tue, 22 Jan 2013 03:35:48 +0000 (03:35 +0000)]
dhcp: add license information

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