buildroot.git
9 years agopackage/parted: fix static link
Yann E. MORIN [Sun, 30 Nov 2014 22:31:37 +0000 (23:31 +0100)]
package/parted: fix static link

libuuid needs to be linked with -lintl when gettext is needed (with
locales).

For a shared build, this is solved with the DT_NEEDED ELF tags, but for
a static link, it is not pulled in automatically.

Use pkg-config to find libuuid, instead of AC_CHECK_LIB().

Second part at fixing:
    http://autobuild.buildroot.net/results/c46/c467aeec258909bb82eda77123803944f97d8df8/

[Peter: add host-pkgconf to _DEPENDENCIES]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: Peter Korsgaard <jacmet@uclibc.org>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agopackage/util-linux: libuuid needs -lintl
Yann E. MORIN [Sun, 30 Nov 2014 22:31:36 +0000 (23:31 +0100)]
package/util-linux: libuuid needs -lintl

When gettext is needed (with locales), libuuid needs to be linked
against -lintl.

In dynamic link, this is solved via the DT_NEEDED ELF tag, but for
static links, it does not get pulled in automatically.

Fix that by adding a Libs.private section to uuid.pc, but only if
it needed.

First part at fixing:
    http://autobuild.buildroot.net/results/c46/c467aeec258909bb82eda77123803944f97d8df8/

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agopackage/shairport-sync: fix static builds
Yann E. MORIN [Sun, 30 Nov 2014 11:42:56 +0000 (12:42 +0100)]
package/shairport-sync: fix static builds

Because shairport-sync uses AC_CHECK_LIB to find some of the needed
libraries (opensl, alsa, popt...), it fails to bring in the dependencies
of those libraries; for example, -lssl requires -lz.

When doing a dynamically-linked build, those dependent libraries are
pulled in thanks to the DT_NEEDED ELF tags, but those are not available
in static libraries.

Use PKG_CHECK_MODULES instead of AC_CHECK_LIB, and emulate the results
of AC_CJECK_LIB (i.e. set the HAVE_LIBxxx and the LIBS variable
appropriately) to minimise the amount of code touched.

This should fix:
    http://autobuild.buildroot.net/results/1a5/1a56dbff3583bed0d693508dfc16859086846ecd/
    http://autobuild.buildroot.net/results/6d5/6d5a8157592f7a2c9469bf71b0453796ef982ab1/

At the same time, remove a comment at the end of a variable assignment,
since this has proven to cause some problems.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Jörg Krause <jkrause@posteo.de>
Cc: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agoinfra: do not append an empty LD_LIBRARY_PATH
Yann E. MORIN [Fri, 21 Nov 2014 22:53:36 +0000 (23:53 +0100)]
infra: do not append an empty LD_LIBRARY_PATH

When we set LD_LIBRARY_PATH when building our host tools, we append any
pre-existing value to our custom path:
        LD_LIBRARY_PATH="$(HOST_DIR)/usr/lib:$(LD_LIBRARY_PATH)"

But then if LD_LIBRARY_PATH was previously empty, we end up with an
LD_LIBRARY_PATH that ends with a colon.

Also, when we check that an existing LD_LIBRARY_PATH does not contain
CWD, we previously did not look for a zero-length prefix.

Since 'man ld.so' says of LD_LIBRARY_PATH:
    A colon-separated list of directories in which to search for ELF
    libraries at execution-time. Similar to the PATH environment
    variable.

And POSIX states about PATH:
    A zero-length prefix is a legacy feature that indicates the current
    working directory.

And bash also recognises a zero-length prefix to search in CWD:
    A zero-length (null) directory name in the value of PATH indicates
    the current directory.

We may thus end up on a system where a zero-length prefix in
LD_LIBRARY_PATH is interpreted as CWD.

Do not append the previous LD_LIBRARY_PATH if it was empty, and check
for a zero-length prefix when checking dependencies.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: Peter Korsgaard <jacmet@uclibc.org>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agopackage/mono: fixing wrong monolite library path
Angelo Compagnucci [Sun, 30 Nov 2014 21:41:06 +0000 (22:41 +0100)]
package/mono: fixing wrong monolite library path

Due to a bug in makefile logic, monolite libraries path will not
be selected when EXTERNAL_MCS parameter is specified.
Setting EXTERNAL_MCS to a non existent binary, makes the internal logic
to fallback to monolite, setting correctly both binary and
library paths.
This has the benefit to force host-mono to always use monolite as
bootstrap compiler also in case a mono compiler is already installed
on the system.

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

[Peter: add comment explaining why this is done]
Signed-off-by: Angelo Compagnucci <angelo.compagnucci@gmail.com>
Reported-by: Rainer Berns <rainer.berns@berns-online.de>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agopackage/libwebsockets: fix static build
Yann E. MORIN [Sun, 30 Nov 2014 11:44:14 +0000 (12:44 +0100)]
package/libwebsockets: fix static build

Fixes:
http://autobuild.buildroot.net/results/afc/afc56e03a9d410563f43e5d26cf8b12fc4da7e5b/
http://autobuild.buildroot.net/results/922/9221b4967d069c9b634cb1f98ead193593d22dbc/

When the version was bumped, the existing patch to fix static linking
was not proprerly tested, and was missing three new locations to be
fixed.

[Peter: add autobuilder reference]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Sagaert Johan <sagaert.johan@skynet.be>
Cc: Samuel Martin <s.martin49@gmail.com>
Cc: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agopackage/gd: fix build when libiconv is enabled
Bernd Kuhls [Sat, 29 Nov 2014 20:54:36 +0000 (21:54 +0100)]
package/gd: fix build when libiconv is enabled

First of two patches to fix
http://autobuild.buildroot.net/results/238/2386edb7f95920e84a35811a33f4333ee0a7a860/

gd links against libiconv if it is already built, depend on libiconv
to get reproducable builds.

readelf output without libiconv present:
$ output/host/opt/ext-toolchain/bfin-linux-uclibc/bin/bfin-linux-uclibc-readelf \
  -a output/staging/usr/lib/libgd.a | grep iconv
    15: 00000000    12 FUNC    GLOBAL HIDDEN     1 _iconv_open
    16: 0000000c    12 FUNC    GLOBAL HIDDEN     1 _iconv
    17: 00000018    12 FUNC    GLOBAL HIDDEN     1 _iconv_close

readelf output with libiconv present:
$ output/host/opt/ext-toolchain/bfin-linux-uclibc/bin/bfin-linux-uclibc-readelf \
  -a output/staging/usr/lib/libgd.a | grep iconv
000000e4  0000100a R_BFIN_PCREL24    00000000   _libiconv_open + 0
00000140  0000140a R_BFIN_PCREL24    00000000   _libiconv + 0
0000019a  0000160a R_BFIN_PCREL24    00000000   _libiconv_close + 0
    16: 00000000     0 NOTYPE  GLOBAL DEFAULT  UND _libiconv_open
    20: 00000000     0 NOTYPE  GLOBAL DEFAULT  UND _libiconv
    22: 00000000     0 NOTYPE  GLOBAL DEFAULT  UND _libiconv_close

[Peter: also add to LIBS so it ends up in gdlib-config --libs output]
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agoluajit: point /usr/bin/lua to luajit if lua not selected
Danomi Manchego [Sun, 30 Nov 2014 18:46:12 +0000 (13:46 -0500)]
luajit: point /usr/bin/lua to luajit if lua not selected

The luajit package is a provider of a lua interpreter, but does not install a
lua executable.  This is fine for scripts that explicitly invoke luajit, but
not so good for scripts that just need a lua interpreter and call lua.  This
mod creates a lua symlink so that the non-jit-specific scripts will still work.

Signed-off-by: Danomi Manchego <danomimanchego123@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agopackage/x11r7/xserver_xorg-server: libunwind support is broken on mips64
Bernd Kuhls [Sat, 29 Nov 2014 22:10:35 +0000 (23:10 +0100)]
package/x11r7/xserver_xorg-server: libunwind support is broken on mips64

Fixes
http://autobuild.buildroot.net/results/e8f/e8f68163802f31359cee15fa3ca52547e06d1f27/
http://autobuild.buildroot.net/results/994/9947222da8682a358f81f8ac924c12596fd09ee8/
http://autobuild.buildroot.net/results/df9/df92d9b682976b77d9e1e4c39afca52b7512d847/

[Peter: use official bugtracker URL, fix check]
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agopackage/mono: force host-mono to use internal mono bootstrap compiler
Angelo Compagnucci [Fri, 28 Nov 2014 23:19:18 +0000 (00:19 +0100)]
package/mono: force host-mono to use internal mono bootstrap compiler

This patch forces the use of internal compiler for building mono,
for more information please refer to mono official documentation
(README.md)

Signed-off-by: Angelo Compagnucci <angelo.compagnucci@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agopackage/x11r7/xapp_bdftopcf: Fix linking error
Bernd Kuhls [Fri, 28 Nov 2014 18:36:10 +0000 (19:36 +0100)]
package/x11r7/xapp_bdftopcf: Fix linking error

Fixes
http://autobuild.buildroot.net/results/242/24297c948c0eee684e868ad4bd12f11c3a759248/
http://autobuild.buildroot.net/results/464/464fdc71690a437c1782dd8e4c75d78195bf8bfd/
http://autobuild.buildroot.net/results/77c/77c26d14c8906b44f7c3fa1b3d759556c7318a7e/
and many others ( http://autobuild.buildroot.net/?reason=xapp_bdftopcf-1.0.4 )

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agoUpdate for 2014.11-rc3
Peter Korsgaard [Fri, 28 Nov 2014 12:23:02 +0000 (13:23 +0100)]
Update for 2014.11-rc3

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agodhcp: update dhclient-script
Gustavo Zacarias [Thu, 27 Nov 2014 17:00:27 +0000 (14:00 -0300)]
dhcp: update dhclient-script

The previous no-op dhclient-script is useless and in fact can lead
users to believe things will work.
dhclient-script is supposed to, among many other things, bring the
interface up for dhclient to pump an address, set the interface
address, set resolv.conf appropiately and set the default gateway.
It's a complex script since it has to deal with a lot of details so
let's just use the best fit which is the OpenWRT one since it uses the
"legacy" tools (ifconfig, route, ...) which can be easily provided by
busybox and/or net-tools.
There are newer and more feature-complete versions around but they
require full iproute2 ip and wouldn't fit as well with the busybox-only
approach.

License: likely GPLv2+
Source:
http://git.openwrt.org/?p=packages.git;a=blob;f=net/isc-dhcp/files/dhclient-script;h=4afebc0ad20ebac51c5baae5ed01c6713e3a0fd0;hb=HEAD

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agotcpdump: add 3 security patches
Gustavo Zacarias [Fri, 28 Nov 2014 10:25:45 +0000 (07:25 -0300)]
tcpdump: add 3 security patches

Fixes:
CVE-2014-8767 - denial of service in verbose mode using malformed OLSR
payload
OLSR payload
CVE-2014-8768 - denial of service in verbose mode using malformed Geonet
payload
CVE-2014-8769 - unreliable output using malformed AOVD payload

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agobind: not available for static builds
Gustavo Zacarias [Fri, 28 Nov 2014 10:25:27 +0000 (07:25 -0300)]
bind: not available for static builds

Fixes:
http://autobuild.buildroot.net/results/e27/e27111f484f72c77d2179fa1a29ea7b5271ff9fa/

While at it rename patches to new convention.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agompg123: needs host-pkgconf
Peter Korsgaard [Fri, 28 Nov 2014 09:43:43 +0000 (10:43 +0100)]
mpg123: needs host-pkgconf

SDL detection is done using pkg-config.

Fixes http://autobuild.buildroot.net/results/437/437f408122d7f21420a7cdc9758caf0ab1ba877d/

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agobtrfs-progs: fix static build
Baruch Siach [Fri, 28 Nov 2014 07:18:12 +0000 (09:18 +0200)]
btrfs-progs: fix static build

libuuid needs -lintl when BR2_NEEDS_GETTEXT_IF_LOCALE is set.

Fixes:
http://autobuild.buildroot.net/results/9f1/9f182cd5955d724750135bcd6cb7e315fb28334f/

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agoqt: Webkit Module needs a toolchain with NPTL
Vicente Olivert Riera [Wed, 19 Nov 2014 14:40:06 +0000 (14:40 +0000)]
qt: Webkit Module needs a toolchain with NPTL

Qt Webkit Module uses pthread_getattr_np() which is implemented in
toolchains with NPTL. Otherwise the compilation will fail showing this
error message:

wtf/StackBounds.cpp: In member function ‘void
WTF::StackBounds::initialize()’:
wtf/StackBounds.cpp:172:38: error: ‘pthread_getattr_np’ was not declared
in this scope

Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agoqt: Script Module needs a toolchain with NPTL
Vicente Olivert Riera [Wed, 19 Nov 2014 14:40:05 +0000 (14:40 +0000)]
qt: Script Module needs a toolchain with NPTL

Qt Script Module uses pthread_getattr_np() which is implemented in
toolchains with NPTL. Otherwise the compilation will fail showing this
error message:

../3rdparty/javascriptcore/JavaScriptCore/runtime/Collector.cpp: In
function ‘void* QTJSC::currentThreadStackBase()’:
../3rdparty/javascriptcore/JavaScriptCore/runtime/Collector.cpp:692:42:
error: ‘pthread_getattr_np’ was not declared in this scope

Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agopciutils: install to /usr/bin rather than /usr/sbin
Gustavo Zacarias [Thu, 27 Nov 2014 22:51:11 +0000 (19:51 -0300)]
pciutils: install to /usr/bin rather than /usr/sbin

Somehow busybox thinks debian standards are the rule and installs lspci
to /usr/bin instead of /usr/sbin where upstream says it belongs.
So install pciutils binaries there as well to really win over busybox
PATH-wise and overwrite the little bugger symlink.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agopackage/nfs-utils: use pkg-config to find libtirpc
Yann E. MORIN [Thu, 27 Nov 2014 21:28:49 +0000 (22:28 +0100)]
package/nfs-utils: use pkg-config to find libtirpc

Fixes:
    http://autobuild.buildroot.net/results/17d/17d1d94e6f1617851e374f4fe9804f1e5ea9e99f/
    http://autobuild.buildroot.net/results/c08/c08b7be40c8f208147a4f95ad897e4a1df7e108d/
    and probably some others as well...

[Peter: correct tirpc/tirpcinclude mixmatch in patch description]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agopackage/nfs-utils: rename patches
Yann E. MORIN [Thu, 27 Nov 2014 21:28:48 +0000 (22:28 +0100)]
package/nfs-utils: rename patches

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agopackage/libtirpc: add -pthread to the private libraries
Yann E. MORIN [Thu, 27 Nov 2014 21:28:47 +0000 (22:28 +0100)]
package/libtirpc: add -pthread to the private libraries

Fixes:
    http://autobuild.buildroot.net/results/17d/17d1d94e6f1617851e374f4fe9804f1e5ea9e99f/
    http://autobuild.buildroot.net/results/c08/c08b7be40c8f208147a4f95ad897e4a1df7e108d/
    and maybe a bunch of others...

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agopackage/libtirpc: rename patches
Yann E. MORIN [Thu, 27 Nov 2014 21:28:46 +0000 (22:28 +0100)]
package/libtirpc: rename patches

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years ago(e)glibc: add security patches for CVE-2014-7817
Gustavo Zacarias [Thu, 27 Nov 2014 15:19:02 +0000 (12:19 -0300)]
(e)glibc: add security patches for CVE-2014-7817

Fixes:
CVE-2014-7817 - command execution in wordexp() with WRDE_NOCMD specified

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agobotan: fix static build
Francois Perrad [Thu, 27 Nov 2014 06:35:07 +0000 (07:35 +0100)]
botan: fix static build

see http://autobuild.buildroot.net/results/2d1/2d1563e253b669b45c9df449c5b3a750c04a43dc/

this commit reverts the previous commit 84047394ed6ad08adb9f59a9022553a327eef040
which disables static build in Config.in

the option --no-autoload prevents the use of the function dlopen.

Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agotoolchain/external: fix building the wrapper on MIPS
Yann E. MORIN [Wed, 26 Nov 2014 18:09:10 +0000 (19:09 +0100)]
toolchain/external: fix building the wrapper on MIPS

Some crazy folks use MIPS machines as build machines. ;-)

On MIPS, the only acceptable hash-style is 'sysv', because the MIPS ABI
defines that the GOT ordering to be the same as the symbols ordering,
while GNU hash requires symbols to be sorted by their hash.

Looking at binutils' code, it seems that only MIPS suffers from that
limitation.

Currently, we force the toolchain wrapper to be linked with both hash
styles, which breaks on MIPS.

So, fix that by singling out MIPS, and use sysv in that case, and both
otherwise.

Reported-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Reviewed-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
Tested-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agonftables: fix static build
Baruch Siach [Wed, 26 Nov 2014 19:49:02 +0000 (21:49 +0200)]
nftables: fix static build

libnftnl needs -ljansson when built with json support.

Fixes:
http://autobuild.buildroot.net/results/68a/68ab2101a0b2b7d5482aafe0d88c87a50491159f/
http://autobuild.buildroot.net/results/87e/87ecbba5b9b16d592a48fe827fa88ef5a5c6d09b/

libnftl also needs -mxml when built with XML support.

Fixes:
http://autobuild.buildroot.net/results/58f/58f592d823db14e4e7558134f1b479f4f8659a23/
http://autobuild.buildroot.net/results/1cf/1cf23f2b38236f43971c65e704793b5bc762ecfe/

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agolibnspr: fix static build
Baruch Siach [Wed, 26 Nov 2014 17:27:22 +0000 (19:27 +0200)]
libnspr: fix static build

Disable shared library in a static build.

Fixes:
http://autobuild.buildroot.net/results/6ff/6ffae151ec3eaca175923ab860cf42167871164c/
http://autobuild.buildroot.net/results/cab/cab19721c43b3256dd51ae511016bc9ea440512a/

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Tested-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
Tested-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
10 years agopackage/network-manager: NM needs isc-dhcpc or dhcpcd
Nathaniel Roach [Wed, 26 Nov 2014 10:50:55 +0000 (18:50 +0800)]
package/network-manager: NM needs isc-dhcpc or dhcpcd

NM only currently supports isc-dhcpc and dhcpcd as clients because NM
communicates with the client through DBus, and support for clients needs to
be written in.  (as per files in src/dhcp-manager)

Buildroot's default, udhcpc is not supported.

Add the dependencies to Config.in, favoring dhcpcd as
default due to size.

[Peter: drop references to dhclient, isc-dhcpc is dhclient]
Signed-off-by: Nathaniel Roach <nroach44@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
10 years agobinutils: fix xtensa trampolines search code for conditional branches
Max Filippov [Wed, 26 Nov 2014 09:03:00 +0000 (12:03 +0300)]
binutils: fix xtensa trampolines search code for conditional branches

This fixes the following build errors seen when assembling huge files
produced by gcc:
  Error: jump target out of range; no usable trampoline found
  Error: operand 1 of 'j' has out of range value '307307'

Fixes:
  http://autobuild.buildroot.net/results/545/545168d9caf3bdb3dd3eb3bae58ba9db8a33384a/

Backported from: d92b6eece424f0ad35d96fdd85bf207295e8c4c3
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
10 years agolame: also disable debug handling on arm(eb)
Peter Korsgaard [Wed, 26 Nov 2014 13:41:58 +0000 (14:41 +0100)]
lame: also disable debug handling on arm(eb)

Not all arm (E.G. non-VFP) toolchains define the control word macros, so
disable debug handling for arm(eb) as well.

As the debug handling has limited value (it simply forces CFLAGS which we
don't want and enables exceptions on FP errors) don't try to be clever about
what toolchain variants to disable it for, but just disable it for all arm(eb).

Fixes http://autobuild.buildroot.net/results/672/672a31c0bd329dec566ba74e0e1be43abd0f16c2/

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
10 years agolibksba: security bump to version 1.3.2
Gustavo Zacarias [Tue, 25 Nov 2014 22:39:23 +0000 (19:39 -0300)]
libksba: security bump to version 1.3.2

Fixes a buffer overflow in ksba_oid_to_str.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
10 years agosystem/permissions: /etc/random-seed must be mode 600
Gustavo Zacarias [Thu, 20 Nov 2014 21:08:14 +0000 (18:08 -0300)]
system/permissions: /etc/random-seed must be mode 600

Otherwise it's a big security risk.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
10 years agopackage/clamav: fix static build
Yann E. MORIN [Tue, 25 Nov 2014 19:22:35 +0000 (20:22 +0100)]
package/clamav: fix static build

clamav unconditionally includes dlfcn.h which is missing on a uClibc
that is configured as a pure-static C library.

Thus, the build fails.

But the including file does not even makes use of any function from the
dlopen() familly, so it does not need to include dlfcn.h to start with.

Add a patch to clamav to not include dlfcn.h where not needed.

Fixes:
    http://autobuild.buildroot.net/results/b49/b491f4e5e1760248adb8d21b404e8aa15f7dbdd1/

[Peter: fix typo in patch description]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
10 years agolibpng: security bump to version 1.6.15
Gustavo Zacarias [Tue, 25 Nov 2014 18:52:23 +0000 (15:52 -0300)]
libpng: security bump to version 1.6.15

Fixes an out-of-bounds memory access in png_user_version_check().

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
10 years agortai: fix typo in config script fixup
Peter Korsgaard [Tue, 25 Nov 2014 15:53:34 +0000 (16:53 +0100)]
rtai: fix typo in config script fixup

Reported-by: Spielmann Werner <Werner.Spielmann@SWAROVSKI.COM>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
10 years agogd: use pkg-config to figure out png linker flags
Peter Korsgaard [Tue, 25 Nov 2014 14:54:46 +0000 (15:54 +0100)]
gd: use pkg-config to figure out png linker flags

So gdlib-config --libs returns the full dependency chain (-lpng16 -lz -m)
when linking statically.

Fixes http://autobuild.buildroot.net/results/dac/dac3eb950c7c27b2f09f001f9db9936f897721f9/

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
10 years agogd: needs host-pkgconf
Peter Korsgaard [Tue, 25 Nov 2014 14:52:09 +0000 (15:52 +0100)]
gd: needs host-pkgconf

configure uses PKG_CHECK_MODULES, so it needs to depend on host-pkgconf.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
10 years agosqlcipher: fix static linking with openssl
Peter Korsgaard [Tue, 25 Nov 2014 14:32:04 +0000 (15:32 +0100)]
sqlcipher: fix static linking with openssl

Pass the needed libraries in LIBS instead of LDFLAGS so they end up last on
the linker cmdline, fixing static linking.

Fixes:
http://autobuild.buildroot.net/results/59d/59d8d7c7f3e0a205503121c1288187471c0ce80f/
http://autobuild.buildroot.net/results/2ed/2ed2026bc5502807588a9335bd4c78e0a26c1cd3/
http://autobuild.buildroot.net/results/cd3/cd35b24422cf7f8697e81ca7f0dd2f06dfc55997/
http://autobuild.buildroot.net/results/aa2/aa24359a0d7d9bb4e00ba96cb80301f59466ab90/

And many more.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
10 years agoflac: add security patches
Gustavo Zacarias [Tue, 25 Nov 2014 12:58:06 +0000 (09:58 -0300)]
flac: add security patches

Fixes:
CVE-2014-9028 - Heap buffer write overflow
CVE-2014-8962 - Heap buffer read overflow

Patches are upstream part of the upcoming 1.3.1 release.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
10 years agogptfdisk: fix static build
Baruch Siach [Tue, 25 Nov 2014 11:57:06 +0000 (13:57 +0200)]
gptfdisk: fix static build

libuuid may need -lintl. Augment the existing Makefile patch to support adding
link dependencies at build time.

Fixes:
http://autobuild.buildroot.net/results/24b/24b3f707424e2dcf0158ffe93d728be98ff66701/
http://autobuild.buildroot.net/results/f33/f3359fab166cf3627f15e59fa44cff36ee213102/
http://autobuild.buildroot.net/results/ef7/ef783e3776f25c28ea0de0c082c93f7ab97db56d/

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
10 years agolibshairplay: needs avahi with libdnssd compat option at runtime
Peter Korsgaard [Tue, 25 Nov 2014 09:46:30 +0000 (10:46 +0100)]
libshairplay: needs avahi with libdnssd compat option at runtime

libshairplay uses dlopen to open libdnssd at runtime (unless dlopen() isn't
available, then static linking is used - But avahi depends on
!BR2_PREFER_STATIC_LIB so that isn't possible), so ensure avahi is available.

Fixes http://autobuild.buildroot.net/results/54d/54de48b23439cef4cbea3b8a65b20e2a8b049f67/

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
10 years agoxorg-server: needs mmu
Peter Korsgaard [Mon, 24 Nov 2014 21:43:48 +0000 (22:43 +0100)]
xorg-server: needs mmu

os/utils.c::System() unconditionally uses fork(), so it only builds on
configurations with mmu.

(Indirectly) fixes:
http://autobuild.buildroot.net/results/497/4970352598a68d7af89acbb33cdf69d656e23f4d/
http://autobuild.buildroot.net/results/d27/d279dc35bff53b7f939af02bee70b1ed3014e49b/
http://autobuild.buildroot.net/results/84b/84b8f19221a5c841de3016959c99b92c96c57e81/

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
10 years agoczmq: fix static build
Baruch Siach [Sun, 23 Nov 2014 14:46:46 +0000 (16:46 +0200)]
czmq: fix static build

libstdc++ may also need -lm.

Fixes:
http://autobuild.buildroot.net/results/aab/aab80285c54641fd7c217cdd45c4593e5c3a66c5/

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
10 years agouemacs: bump to latest LT master
Baruch Siach [Sun, 23 Nov 2014 16:08:17 +0000 (18:08 +0200)]
uemacs: bump to latest LT master

Latest LT (Linus Torvalds) master fixes symbol collision with ncurses.

Drop patches 01 and 02 as they are not needed anymore.

Refresh patch 03 to account for context changes, and rename to new convention.

Fixes:
http://autobuild.buildroot.net/results/6e0/6e0fb4a74f62e23cbc56482ae25f9979fa6f14f8/
http://autobuild.buildroot.net/results/df9/df9b693d7f53daba0d25f52132ca1594dd1273fa/
http://autobuild.buildroot.net/results/b39/b39d3997466951df078a5f47c5a75200b07dca4c/

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
10 years agoxl2tp: fix static build
Baruch Siach [Sun, 23 Nov 2014 10:29:59 +0000 (12:29 +0200)]
xl2tp: fix static build

Use pcap-config to list dependencies of libpcap.

Fixes:
http://autobuild.buildroot.net/results/87f/87ff92831d265d437aa0dfcfb99e954f76597761/
http://autobuild.buildroot.net/results/cd5/cd5487e76259752cbe58b171f9a58970916f7bb8/

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
10 years agoradvd: add a patch to fix build failure on architectures without sysctl()
Thomas Petazzoni [Sun, 23 Nov 2014 17:36:03 +0000 (18:36 +0100)]
radvd: add a patch to fix build failure on architectures without sysctl()

Modern architectures such as ARC do not provide the sysctl() system
call, since it is deprecated. However, uClibc still installs
<sys/sysctl.h> in such cases, which defeats radvd check for the
availability of sysctl(). This commit adds a patch to radvd which
improves the sysctl() checking.

Fixes:

  http://autobuild.buildroot.org/results/458/4581c4220adeaebbf6761e3b923088d8de8522d5/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
10 years agoradvd: switch to new patch naming convention, use Git formatted patches
Thomas Petazzoni [Sun, 23 Nov 2014 17:36:02 +0000 (18:36 +0100)]
radvd: switch to new patch naming convention, use Git formatted patches

This commit renames the radvd patches to follow the new naming
convention, and reformats them to be Git patches.

Since the patches are renamed, we adjust the comment in the .mk file
explaining why we autoreconf the package.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
10 years agoushare: do not allow building in static lib situations
Thomas Petazzoni [Sun, 23 Nov 2014 17:36:01 +0000 (18:36 +0100)]
ushare: do not allow building in static lib situations

The ushare configure script is a custom shell script, and it is not
designed to understand that the library order is important when doing
static linking.

Fixes:

  http://autobuild.buildroot.org/results/32e/32ed2a521043f929cc290145c8a651e69042e104/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
10 years agompdecimal: fix build on pure static library configurations
Thomas Petazzoni [Sun, 23 Nov 2014 17:36:00 +0000 (18:36 +0100)]
mpdecimal: fix build on pure static library configurations

This commit adds a patch to mpdecimal that makes it understand
--enable-shared/--disable-shared and --enable-static/--disable-static,
even if mpdecimal isn't using automake/libtool. It allows to build
only the static variant of the mpdecimal library when needed.

Fixes:

  http://autobuild.buildroot.org/results/276/2764bd8c42ba659682760ffc6afa933b7530d06c/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
10 years agosstrip: fix source svn repository url
Fabio Porcedda [Mon, 24 Nov 2014 13:04:42 +0000 (14:04 +0100)]
sstrip: fix source svn repository url

Because the svn repository url was changed the command "make
sstrip-source" gives this error:

svn: E000101: Unable to connect to a repository at URL 'svn://dev.openwrt.org/openwrt/trunk/tools/sstrip'
svn: E000101: Can't connect to host 'dev.openwrt.org': Network is unreachable

To fix this error use the correct url "svn://svn.openwrt.org/openwrt".

Signed-off-by: Fabio Porcedda <fabio.porcedda@gmail.com>
Cc: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
10 years agoheirloom-mailx: disable static build
Baruch Siach [Sun, 23 Nov 2014 08:34:20 +0000 (10:34 +0200)]
heirloom-mailx: disable static build

heirloom-mailx implements its own version of getopt() that collides with the C
library when linking statically.

Fixes:
http://autobuild.buildroot.net/results/f67/f67eb63a9a8bb25fb0c071f1aac271e9798d95d1/
http://autobuild.buildroot.net/results/722/722f65c4fcc093d6a6a2200c06b2ecb3ee35bc06/
http://autobuild.buildroot.net/results/1cc/1cce267cc4b0a7d6bf5ff10f5429ae7dfe96960a/

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
10 years agodillo: needs iconv
Peter Seiderer [Sat, 22 Nov 2014 23:55:24 +0000 (00:55 +0100)]
dillo: needs iconv

Fixes:
 http://autobuild.buildroot.net/results/4a7/4a765a66bea1ecf4ec5e4da00b847bc931071132/

Signed-off-by: Peter Seiderer <ps.report@gmx.net>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
10 years agogst1-validate: needs python
Peter Seiderer [Thu, 13 Nov 2014 20:02:32 +0000 (21:02 +0100)]
gst1-validate: needs python

If host installed python version is < 2.7.0 gst1-validate compile will fail with

checking for a Python interpreter with version >= 2.7.0... none
configure: error: no suitable Python interpreter found

Fixed by adding host-python dependency.

Target tool /usr/bin/gst-validate-launcher is a python2 script

$ head -1 /usr/bin/gst-validate-launcher
#!/usr/bin/env python2

(and not easily upgradable to python3) so add python2 dependency and to fix
the following runtime error

$ gst-validate-launcher
Traceback (most recent call last):
  File "/usr/bin/gst-validate-launcher", line 44, in <module>
    from launcher.main import main
  File "/usr/lib/gst-validate-launcher/python/launcher/main.py", line 26, in <module>
    import reporters
  File "/usr/lib/gst-validate-launcher/python/launcher/reporters.py", line 29, in <module>
    from xml.sax import saxutils
ImportError: No module named xml.sax

add additional BR2_PACKAGE_PYTHON_PYEXPAT select.

Fixes:
 http://autobuild.buildroot.net/results/e8c/e8c27db2a0935c2daef173d5650f6a2b3a219493/
 http://autobuild.buildroot.net/results/723/723fe3036e8f0af2a90ff9e98173387466655000/

Signed-off-by: Peter Seiderer <ps.report@gmx.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
10 years agomanual: Add newline before block code
Maxime Hadjinlian [Sat, 15 Nov 2014 16:29:21 +0000 (17:29 +0100)]
manual: Add newline before block code

This won't change the output, it's only a style issue.

Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
10 years agomanual: Add missing vim header
Maxime Hadjinlian [Sat, 15 Nov 2014 16:29:20 +0000 (17:29 +0100)]
manual: Add missing vim header

Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
10 years agomanual: Remove trailing space
Maxime Hadjinlian [Sat, 15 Nov 2014 16:29:19 +0000 (17:29 +0100)]
manual: Remove trailing space

Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
10 years agomanual: Rework makedevs syntax
Maxime Hadjinlian [Sat, 15 Nov 2014 16:29:18 +0000 (17:29 +0100)]
manual: Rework makedevs syntax

State that it should be a space separated list and fix the example.
Also reduce the number of dash used to 4.

[Thomas: replace tab by space, as noted by Yann.]

Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
10 years agopackage/openssl: drop libdl from more pc files
Bernd Kuhls [Sat, 27 Sep 2014 16:29:03 +0000 (18:29 +0200)]
package/openssl: drop libdl from more pc files

This is a follow-up patch for
http://git.buildroot.net/buildroot/commit/package/openssl/openssl.mk?id=c130c5d4635e2a4c7338161953152faf8fca07c4

Fixes
http://autobuild.buildroot.net/results/358/35899961b6dc01c1522b17f63946da5ab809bff8/
http://autobuild.buildroot.net/results/c86/c865214e74dd3766b6343ef73c666fa89c0b5dec/
http://autobuild.buildroot.net/results/fc1/fc12e88fb789e2b68d427c37f39789954309b05d/
http://autobuild.buildroot.net/results/f4d/f4deef4e7d2e2cf5fbc9ce5f02289b4dc60cd23b/
http://autobuild.buildroot.net/results/dfd/dfd81f1f1f0f315317b2a85d24b286a277ac7c16/
http://autobuild.buildroot.net/results/918/9188fc9a63d880cac28c5a9a246ca5504dd11bb2/
http://autobuild.buildroot.net/results/dd1/dd1c326345f8f9c8b5838601ace19002f5360bb2/
http://autobuild.buildroot.net/results/27b/27b4544c59166a9f40092403ed3f530190544a82/
http://autobuild.buildroot.net/results/c37/c37022e334d763bad2a59f7311b93504a569b2dd/
http://autobuild.buildroot.net/results/e89/e89265937a6b4808b817be16bcab79bae4a9aed1/
http://autobuild.buildroot.net/results/4a2/4a222a40d627fda6e49714b13b4321d62c9c2e51/

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
10 years agopackage/erlang: disable for static builds
Yann E. MORIN [Sat, 22 Nov 2014 16:54:10 +0000 (17:54 +0100)]
package/erlang: disable for static builds

erlang wants to build shared libs, always.

So, disable erlang when we're building static-only.

Fixes:
    http://autobuild.buildroot.net/results/1ce/1ceaa6925d1ded236d01ae9feb31f5f915f6b51a/

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Frank Hunleth <fhunleth@troodon-software.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
10 years agolibllcp: needs host-pkgconf
Peter Korsgaard [Sat, 22 Nov 2014 13:37:42 +0000 (14:37 +0100)]
libllcp: needs host-pkgconf

configure.ac uses PKG_CHECK_MODULES, so we need host-pkgconf.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
10 years agolibllcp: ensure graphviz isn't used to generate documentation
Peter Korsgaard [Sat, 22 Nov 2014 13:26:39 +0000 (14:26 +0100)]
libllcp: ensure graphviz isn't used to generate documentation

We don't need the documentation, so it is a waste of time - And more
importantly, the .dot file isn't compatible with all graphviz versions
breaking the build.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
10 years agopackage/weston: Fix wrong condition to display the comment
Bernd Kuhls [Sat, 22 Nov 2014 12:00:44 +0000 (13:00 +0100)]
package/weston: Fix wrong condition to display the comment

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
10 years agopackage/wayland: Fix wrong condition to display the comment
Bernd Kuhls [Sat, 22 Nov 2014 12:00:43 +0000 (13:00 +0100)]
package/wayland: Fix wrong condition to display the comment

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
10 years agotoolchain: do not allow locale generation when locale support is not available
Thomas Petazzoni [Thu, 13 Nov 2014 22:17:26 +0000 (23:17 +0100)]
toolchain: do not allow locale generation when locale support is not available

When the C library being used is uClibc, the locale support can be
disabled. In this case, it does not make sense to show the "Generate
locales" option.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
10 years agotoolchain: do not allow BR2_GENERATE_LOCALE with musl
Thomas Petazzoni [Thu, 13 Nov 2014 22:17:25 +0000 (23:17 +0100)]
toolchain: do not allow BR2_GENERATE_LOCALE with musl

Generating locales is possible in two situations:

 - With the internal toolchain backend, when the uClibc library is
   used. With uClibc, locales are generated at build time of the C
   library, so with uClibc it's only possible with the internal
   toolchain backend.

 - With either the internal or external toolchain backend when the
   glibc library is used. With glibc, locales can be generated
   afterwards, using the host-localedef utility.

Until we had the musl C library supported in the internal toolchain
backend, the condition: BR2_TOOLCHAIN_BUILDROOT ||
BR2_TOOLCHAIN_USES_GLIBC was correct to capture the above two
situations. Now that we have musl support in the internal toolchain
backend, then BR2_TOOLCHAIN_BUILDROOT is incorrect, and we should use
BR2_TOOLCHAIN_BUILDROOT_UCLIBC instead.

Basic locale support in musl has appeared in musl 1.1.4, but we are
not yet capable of generating the locale files for musl.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
10 years agouclibc: do not use GENERATE_LOCALE
Thomas Petazzoni [Thu, 13 Nov 2014 22:17:24 +0000 (23:17 +0100)]
uclibc: do not use GENERATE_LOCALE

Since commit 33de7401701e5242196a86b0695ee4ae9a4c4082 ("Makefile:
convert "target-generatelocales" to a hook"), the GENERATE_LOCALE
variable is never defined when using uClibc. This means that setting
any value to the BR2_GENERATE_LOCALE option had no effect for uClibc
toolchains.

In this commit, we make sure the uclibc.mk logic re-creates its own
qstripped version of BR2_GENERATE_LOCALE, in a variable called
UCLIBC_GENERATE_LOCALES.

This fixes locale generation with uClibc in the internal toolchain
backend.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
10 years agoMakefile: use more sensible names for locale related variables
Thomas Petazzoni [Thu, 13 Nov 2014 22:17:23 +0000 (23:17 +0100)]
Makefile: use more sensible names for locale related variables

The GENERATE_LOCALE variable is used for the qstripped version of
BR2_GENERATE_LOCALE. It was used by both the glibc locale generation
code (in the main Makefile), and by the uClibc logic in
package/uclibc/uclibc.mk. However, since commit
33de7401701e5242196a86b0695ee4ae9a4c4082 ("Makefile: convert
"target-generatelocales" to a hook"), this code has been moved around
in the main Makefile, and the definition of GENERATE_LOCALE is now
*after* uclibc.mk is included, and therefore this variable is always
empty when uclibc.mk looks at it for its conditionals. Moreover, it is
now only defined in the main Makefile is BR2_TOOLCHAIN_USES_GLIBC is
'y', which obviously isn't the case for uClibc toolchains.

Since it's anyway not very clear to have this variable shared between
the glibc locale generation logic in the main Makefile and the uClibc
configuration code in uclibc.mk, this commit:

 - Renames the GENERATE_LOCALE variable in the main Makefile to
   GLIBC_GENERATE_LOCALES.

 - Renames the GENERATE_LOCALES hook to GENERATE_GLIBC_LOCALES, since
   it's specific to glibc.

The fix for the uClibc case is part of a followup commit.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
10 years agolinux: bump default version to 3.17.4
Gustavo Zacarias [Fri, 21 Nov 2014 20:22:05 +0000 (17:22 -0300)]
linux: bump default version to 3.17.4

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
10 years agolinux-headers: bump 3.{17, 14, 12, 10}.x series
Gustavo Zacarias [Fri, 21 Nov 2014 20:22:04 +0000 (17:22 -0300)]
linux-headers: bump 3.{17, 14, 12, 10}.x series

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
10 years agopackage/dovecot: Fix symbol conflict in static build with MySQL enabled
Bernd Kuhls [Fri, 21 Nov 2014 18:40:42 +0000 (19:40 +0100)]
package/dovecot: Fix symbol conflict in static build with MySQL enabled

Fixes
http://autobuild.buildroot.net/results/9b5/9b536926b3b2bf82c683b48e9697a220f1b4bf33/

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
10 years agoUpdate for 2014.11-rc2
Peter Korsgaard [Fri, 21 Nov 2014 12:19:45 +0000 (13:19 +0100)]
Update for 2014.11-rc2

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
10 years agoCHANGES: Update with recent changes
Peter Korsgaard [Fri, 21 Nov 2014 12:11:45 +0000 (13:11 +0100)]
CHANGES: Update with recent changes

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
10 years agort-tests: needs MMU
Baruch Siach [Fri, 21 Nov 2014 07:20:57 +0000 (09:20 +0200)]
rt-tests: needs MMU

Fixes:
http://autobuild.buildroot.net/results/123/12341a8b9c5696bbb392d8b891e013b5023f4105/
http://autobuild.buildroot.net/results/99b/99b81af510fcbe2eb948600d5ad7eaa0aad39352/
http://autobuild.buildroot.net/results/a62/a62b810958c80c4ac95ec2b5404e58505e5a942b/

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
10 years agoczmq: fix static build
Baruch Siach [Fri, 21 Nov 2014 06:04:50 +0000 (08:04 +0200)]
czmq: fix static build

czmq configure script uses gcc to test zmq linking so libstdc++ is not added
automatically. Do this manually.

Fixes:
http://autobuild.buildroot.net/results/7b7/7b7f7614206cf9b8fef48f49cb060eca356d4949/
http://autobuild.buildroot.net/results/b3a/b3abff021d23ef0f685a44901b6041ba45bd35d7/
http://autobuild.buildroot.net/results/1f0/1f033d04231c5f058513cbca0d437b96260fbd7a/

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
10 years agopackage/mesa3d-demos: Fix build error
Bernd Kuhls [Thu, 20 Nov 2014 20:04:03 +0000 (21:04 +0100)]
package/mesa3d-demos: Fix build error

Fixes
http://autobuild.buildroot.net/results/8f2/8f292f1151089d20f33c599320941cb5435c0199/
http://autobuild.buildroot.net/results/f3d/f3db50d0c5c74fecafd6b4bdd89f97e8e566d820/
http://autobuild.buildroot.net/results/ac0/ac0f22bf87e2b48bd2191de88999404d1c55de9b/
http://autobuild.buildroot.net/results/da8/da87a3e81b19ad038661f5653b544f4c8cfd389d/
http://autobuild.buildroot.net/results/d51/d51d22754a37f790d2de5a4836237b8eea417124/
http://autobuild.buildroot.net/results/347/347b2f79111548ae00f40879c1b5f3c4c1c7091e/
http://autobuild.buildroot.net/results/aef/aef73a3bc770c3784025642f6a2c276944117112/
http://autobuild.buildroot.net/results/901/90152f1cfa09ad4d37700b340204f8b75850c582/

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
10 years agosysvinit/inittab: adjust shutdown
Gustavo Zacarias [Thu, 20 Nov 2014 19:18:40 +0000 (16:18 -0300)]
sysvinit/inittab: adjust shutdown

The previous shutdown sequence was basically a no-op, it did't call rcK
to stop anything and dumped users back into shell.
So do the proper thing by calling rcK for levels 0 (halt) and 6
(reboot), then swapoff, then remount ro.
After that call halt for 0 and reboot for 6.

Also make 3 the default runlevel as in normal distributions, for all
intents and purposes it changes nothing except aesthetics/convention.

And make the labels a context sequence rather than just a short form
of the actions which IMHO looks horrible.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
10 years agoclamav: fix bzip2 detection
Peter Korsgaard [Thu, 20 Nov 2014 22:04:09 +0000 (23:04 +0100)]
clamav: fix bzip2 detection

Configure gets confused if the host has bzip2 development headers, so force
the results.

Fixes:
http://autobuild.buildroot.net/results/e73/e732d1bac8fe68fd8bba50e4e9d908be3d996c83/
http://autobuild.buildroot.net/results/1a4/1a46e53cf892534f1b3a16c249fa710485290b5a/
http://autobuild.buildroot.net/results/6d0/6d09379aaba0ccddddfee9e319b84687012fd5fc/
http://autobuild.buildroot.net/results/d23/d2310a2f265e7d22c025a61e064a3c29dc6213ef/

And many more.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
10 years agosystem/inittab: adjust shutdown
Gustavo Zacarias [Thu, 20 Nov 2014 17:01:49 +0000 (14:01 -0300)]
system/inittab: adjust shutdown

Drop null id since that means "don't show anything" for busybox init,
hence the shutdown sequence (/etc/init.d/rcK) doesn't show anything
giving the false impression that it's not being run.
If someone wants a really silent console they'll need to adjust much more than
this anyway.
Also swap the root read-only remount with swapoff since the swap can be
a regular (loop) file in the root filesystem and make the operation fail
resulting in a dirty filesystem.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
10 years agoclamav: security bump to version 0.98.5
Gustavo Zacarias [Thu, 20 Nov 2014 16:31:50 +0000 (13:31 -0300)]
clamav: security bump to version 0.98.5

Fixes:
CVE-2013-6497 - the jwplayer.js file causes ClamAV to seg fault when
scanned with the -a (list archived files).

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
10 years agoomniorb: fix build for uclinux
Baruch Siach [Thu, 20 Nov 2014 06:49:29 +0000 (08:49 +0200)]
omniorb: fix build for uclinux

Add a patch to make configure correctly identify uclinux.

Also, disable build of shared libraries when PREFER_STATIC_LIB is set.
Otherwise, build for Blackfin fails further down the road.

Fixes:
http://autobuild.buildroot.net/results/c60/c60d880b620c47f4aa03cdf2e1bb85a526242d54/
http://autobuild.buildroot.net/results/01f/01f4e8a27831d6817b329fa23fe0bbabd7fd01c9/
http://autobuild.buildroot.net/results/a96/a96a06b825c14dc9fdf738225db50bc1de8b901a/

And many others.

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Acked-by: Matt Weber <matthew.weber@rockwellcollins.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
10 years agocanfestival: disable static build
Baruch Siach [Thu, 20 Nov 2014 13:21:16 +0000 (15:21 +0200)]
canfestival: disable static build

canfestival doesn't really support static build. The configure script accepts
the --disable-dll parameter that should in theory allow a static build. In
practice this options is not well tested, as it causes the build to fails in
various places.

Fixes:
http://autobuild.buildroot.net/results/29f/29fd3e550937f48e2270149a3d44cfb8bcf5c16a/

Cc: Samuel Martin <s.martin49@gmail.com>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
10 years agopackage/shairport-sync: fix init script
Jörg Krause [Wed, 12 Nov 2014 23:06:26 +0000 (00:06 +0100)]
package/shairport-sync: fix init script

shairport-sync uses libdaemon for running as daemon and creating the pidfile
which conflicts with start-stop-daemons `-b -m` options. For that reason
shairport-sync does not start using /etc/init.d/S99shairport-sync start.

The issue is fixed by removing the background and pidfile task from
start-stop-daemon and add a daemon option `-d` to shairport-sync.

Signed-off-by: Jörg Krause <jkrause@posteo.de>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
10 years agox264: disable opencl support
Peter Korsgaard [Wed, 19 Nov 2014 19:53:56 +0000 (20:53 +0100)]
x264: disable opencl support

We don't have anything providing opencl support in Buildroot, so this is
just dead code.  More importantly, it uses dlopen so it breaks on completely
static configurations.

Fixes:
http://autobuild.buildroot.net/results/51b/51bd1464fe85f3fcdc5beb095cb1cdbfa413ec24/
http://autobuild.buildroot.net/results/694/694032b21c386c9eb50ba76aa32428bcd5cf9214/
http://autobuild.buildroot.net/results/097/0979f12e50d2413c702147408572b01e6bc700f2/
http://autobuild.buildroot.net/results/d9c/d9c46ca92bc349b42673a60f1b66d6df99d26545/

And many more.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
10 years agomysql: host variant needs ncurses as well
Peter Korsgaard [Wed, 19 Nov 2014 14:16:16 +0000 (15:16 +0100)]
mysql: host variant needs ncurses as well

Similar to the target variant.

Fixes:
http://autobuild.buildroot.net/results/0b8/0b8411482def8fdfba0aaaa19be01a477707d874/
http://autobuild.buildroot.net/results/dc0/dc0dd9e878edd2b359900d02e1d53d294321c00b/
http://autobuild.buildroot.net/results/dde/dde299d341135b547bd5c6a59edd7ba76f12ad10/
http://autobuild.buildroot.net/results/67a/67a3fc90fc26241f0c8257d08fb44ceea07f1335/

And many more.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
10 years agoe2fsprogs: fix static linking issues with libintl
Peter Korsgaard [Wed, 19 Nov 2014 14:04:50 +0000 (15:04 +0100)]
e2fsprogs: fix static linking issues with libintl

Util-linux (and hence libuuid) links against libintl if
BR2_NEEDS_GETTEXT_IF_LOCALE, so e2fsprogs needs to link against it as when
when statically linking, otherwise the configure test for libuuid (and later
linking) fails.

Fixes:
http://autobuild.buildroot.net/results/833/8338a03028de9502be506a80bd947d80b3e50a49/
http://autobuild.buildroot.net/results/361/361aa2e47a7561ff6624829bdfcfe66ecaddc4a6/
http://autobuild.buildroot.net/results/4dc/4dc157bb9cd2e86b9b88ff9c1b66468fa930ede4/
http://autobuild.buildroot.net/results/ebf/ebf02964de98f82e7d5509c68cbfacdb5bc6f87e/

And many more.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
10 years agondisc6: use LIBS for libintl
Gustavo Zacarias [Wed, 19 Nov 2014 00:47:39 +0000 (21:47 -0300)]
ndisc6: use LIBS for libintl

Use LIBS instead of LDFLAGS for "-lintl", otherwise LDFLAGS gets
evaluated to the left of object files and fails to link statically
because of incorrect symbol resolution order. Fixes:
http://autobuild.buildroot.net/results/21b/21bf88c9dbaecc204598e60dd9c7392a85068dd6/

Also rename patch to new naming convention.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
10 years agoperl-cross: bump to version 0.9.4
Francois Perrad [Fri, 14 Nov 2014 17:31:29 +0000 (18:31 +0100)]
perl-cross: bump to version 0.9.4

this release fixes the build when BR2_PREFER_STATIC_LIB
see http://autobuild.buildroot.net/results/057/057a4b9976fd6b9c5cddd117a3f29de51efe719f/build-end.log
see https://github.com/arsv/perl-cross/issues/11

Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
10 years agonodejs: Revert "nodejs: disable ssl2 and ssl3 when openssl is not built"
Jörg Krause [Mon, 17 Nov 2014 11:41:56 +0000 (12:41 +0100)]
nodejs: Revert "nodejs: disable ssl2 and ssl3 when openssl is not built"

This reverts commit e712638b4adc6e18b3ce99ab37b94530e9aa786f.

The config options --without-ssl2 and --without-ssl3 are intended to be used if
nodejs is built with the bundled OpenSSL library for excluding the SSL2 and
SSL3 features.

Both options are actual only evaluated if --without-ssl is not set:

$ cat configure | grep configure_openssl -n -A 13
619:def configure_openssl(o):
620-  o['variables']['node_use_openssl'] = b(not options.without_ssl)
621-  o['variables']['node_shared_openssl'] = b(options.shared_openssl)
622-  o['variables']['openssl_no_asm'] = (
623-    1 if options.openssl_no_asm else 0)
624-
625-  if options.without_ssl:
626-    return
627-
628-  if options.ssl2:
629-    o['defines'] += ['OPENSSL_NO_SSL2=1']
630-
631-  if options.ssl3:
632-    o['defines'] += ['OPENSSL_NO_SSL3=1']

[Peter: adjusted commit text to make it clear that it is a revert]
Signed-off-by: Jörg Krause <jkrause@posteo.de>
Tested-by: Fabio Porcedda <fabio.porcedda@gmail.com>
Acked-by: Fabio Porcedda <fabio.porcedda@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
10 years agopackage/nodejs: fix build error without OpenSSL support
Jörg Krause [Mon, 17 Nov 2014 11:41:55 +0000 (12:41 +0100)]
package/nodejs: fix build error without OpenSSL support

Add a patch to fix broken build of nodejs without OpenSSL support.

Version 0.10.33 of nodejs introduced a bug which prevents us from building
nodejs without OpenSSL support. The bug is reported upstream:
https://github.com/joyent/node/issues/8676

This bug caused some build errors:
  * http://autobuild.buildroot.net/results/0bf/0bf17bf710db051d491123482c90f2f72810804b/
  * http://autobuild.buildroot.net/results/e1f/e1fb34818ff1167aa008b4011befb9fd14c81293/

and more...

Signed-off-by: Jörg Krause <jkrause@posteo.de>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
10 years agopackage/qemu: add support for FDT
Yann E. MORIN [Mon, 17 Nov 2014 21:25:40 +0000 (22:25 +0100)]
package/qemu: add support for FDT

FDT is the Flat Device Tree, and allows QEMU to pass DTs to the VMs.

Fixes:
http://autobuild.buildroot.net/results/7e8/7e8c6fecbb22e8835269171b8bfe6d5bda300dcc/
http://autobuild.buildroot.net/results/5e0/5e0ec37894d3d88962fb0fee9a3753b83fe18b71/
http://autobuild.buildroot.net/results/936/936c565b6dc883beea4fac47c2cb2b47d3e84f66/
http://autobuild.buildroot.net/results/2ab/2abe26be5be5e72d6e166dd9b63b61523f63e2f5/

And many more.

[Peter: add autobuilder references]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
10 years agopakage/erlang: fix host build without termcap (curses) library
Yann E. MORIN [Mon, 17 Nov 2014 22:33:16 +0000 (23:33 +0100)]
pakage/erlang: fix host build without termcap (curses) library

We do not need termcap (curses) support in the host variant of erlang.

Fixes a bunch of autobuild failures;
    http://autobuild.buildroot.net/results/4be/4bef658b6815929058c769037211f7e0fc8d1f9c/
    http://autobuild.buildroot.net/results/726/72619ed15590a3a5a41b7c398d973766ecab0a2e/
    http://autobuild.buildroot.net/results/366/366439438549d5f7656be72f71dae3bb5f99c6b2/
    ...

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Nathaniel Roach <nroach44@gmail.com>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
10 years agopackage/tzdata: fix installation commands
Yann E. MORIN [Tue, 18 Nov 2014 18:38:27 +0000 (19:38 +0100)]
package/tzdata: fix installation commands

If the destination directory already exists (e.g. because of a re-run or
a custom skeleton), then the zoneinfo files will be installed in a
sub-directory of where we are trying to install them.

Fix that by creating the destination directory and copying the content
of the source directory.

Also fix the host install commands to match what we do in the target
install commands.

Reported-by: Martin Dorwig <dorwig@tetronik.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
10 years agocoreutils: avoid prompt on rebuild
Baruch Siach [Tue, 18 Nov 2014 19:07:28 +0000 (21:07 +0200)]
coreutils: avoid prompt on rebuild

The mode bits of coreutils installed binaries are 555. As a result, on
rebuild mv prompts the user to confirm overwrite of non writable binaries.
Force overwrite to skip this prompt.

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
10 years agolibssh2: fix static linking issue with libgcrypt
Peter Korsgaard [Tue, 18 Nov 2014 14:31:33 +0000 (15:31 +0100)]
libssh2: fix static linking issue with libgcrypt

Fixes:
http://autobuild.buildroot.net/results/07e/07e50ba575b305b37e7a94a773c2b2e255393e9f/
http://autobuild.buildroot.net/results/072/07249f0a001a34ae608a8f8646b26a1152219252/
http://autobuild.buildroot.net/results/1c0/1c0447431e4c025732ea2eb8e9788e303f24fd04/
http://autobuild.buildroot.net/results/5e1/5e1f58c086e437b85b0d31310a93a3b2d0d70836/

And many more.

libgcrypt depends on libgpg-error and the configure script forgets to link
against it breaking static linking.  Fix it by using libgcrypt-config
--libs.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
10 years agocoreutils: disable documentation build
Baruch Siach [Tue, 18 Nov 2014 10:28:36 +0000 (12:28 +0200)]
coreutils: disable documentation build

The makeinfo utility may not be installed on the build machine, and we don't
install documentation anyway.

Fixes:
http://autobuild.buildroot.net/results/b42/b42ceb3128ed832f0dd901a1db8fa3dfd92ce5ef/
http://autobuild.buildroot.net/results/94f/94fcd06b320374f46b340f516c54b7ca726041af/
http://autobuild.buildroot.net/results/c54/c54608ac7e03f14055e2912cf06f6d41d21227c0/

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Tested-by: Karoly Kasza <kaszak@gmail.com>
Acked-by: Karoly Kasza <kaszak@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
10 years agotstools: rename patch to new convention
Baruch Siach [Mon, 17 Nov 2014 13:13:40 +0000 (15:13 +0200)]
tstools: rename patch to new convention

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
10 years agotstools: disable parallel build
Baruch Siach [Mon, 17 Nov 2014 13:13:39 +0000 (15:13 +0200)]
tstools: disable parallel build

Commit 0e8cbd5902e4 (tstools: fix build failure in parallel (-j) build) didn't
fix, apparently, the parallel build issue. Revert this commit, and just
disable parallel build.

Fixes:
http://autobuild.buildroot.net/results/b13/b13d31a8a915a740386befb018f859d3df5e9c35/
http://autobuild.buildroot.net/results/287/287249ce9d337d4efc587f833f811851cafc607a/
http://autobuild.buildroot.net/results/e4e/e4ee0ae40ac9d58b3182db52d5a39e6ac3692f60/

Cc: Tzu-Jung Lee <roylee17@gmail.com>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
10 years agolibgcrypt: link to a more informative homepage
Baruch Siach [Mon, 17 Nov 2014 18:38:50 +0000 (20:38 +0200)]
libgcrypt: link to a more informative homepage

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>