buildroot.git
9 years agolua-periphery: depend on c-periphery instead of cloning it
Thomas Petazzoni [Sat, 16 May 2015 13:49:21 +0000 (15:49 +0200)]
lua-periphery: depend on c-periphery instead of cloning it

lua-periphery currently clones and builds the c-periphery library by
itself. This causes two problems:

 1/ It does not integrate properly with the download infrastructure of
    Buildroot, making offline builds impossible since not the entire
    source code is downloaded by Buildroot.

 2/ It does not use the latest version of c-periphery, which has some
    fixes contributed by Vicente to fix c-periphery on MIPS.

This commit fixes:

  http://autobuild.buildroot.org/results/0ad/0ad656970b3cbc84b5531b28155ba2f747715fe3/

[Peter: fix minor typo in patch 0001 description]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agoc-periphery: new package
Thomas Petazzoni [Sat, 16 May 2015 13:49:20 +0000 (15:49 +0200)]
c-periphery: new package

This package is needed as a dependency of lua-periphery. Currently,
c-periphery is automatically cloned by lua-periphery, which causes two
problems:

 1/ It does not integrate properly with the download infrastructure of
    Buildroot, making offline builds impossible since not the entire
    source code is downloaded by Buildroot.

 2/ It does not use the latest version of c-periphery, which has some
    fixes contributed by Vicente to fix c-periphery on MIPS.

Introducing this package is needed as part of the fix for the
following build failure:

  http://autobuild.buildroot.org/results/0ad/0ad656970b3cbc84b5531b28155ba2f747715fe3/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agoneardal: fix readline/libedit detection with static linking
Peter Korsgaard [Sat, 16 May 2015 20:57:37 +0000 (22:57 +0200)]
neardal: fix readline/libedit detection with static linking

Fixes:
http://autobuild.buildroot.net/results/c3e/c3ea67d9b341749b9591451da3f3b0cb4a9fbb74/
http://autobuild.buildroot.net/results/586/586fa95149aa37df7ef430e3a47a3418e6f7ed97/
http://autobuild.buildroot.net/results/3ea/3eabd3a2cea0d5863b1c0dd8f55c73f34a684f79/

Both readline and libedit link with ncurses but the configure script forgets
to take that into account, causing the detection to fail when linking
statically.

Fix it by using pkg-config to add the needed linker options for ncurses.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agoxmlstarlet: fix static linking
Thomas Petazzoni [Sat, 16 May 2015 15:39:46 +0000 (17:39 +0200)]
xmlstarlet: fix static linking

Make sure we take into account libgpg-error when linking against
libgcrypt, by adding a patch against xmlstarlet configure.ac. The
handling of static libraries is clearly horrible in this configure.ac
script, using pkg-config would be a lot better, but it's also a lot
more work.

Fixes:

  http://autobuild.buildroot.org/results/931/931dede013d94f88fcb5185dac494775603063ec/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agouboot-tools: fix dynamic linking against OpenSSL
Thomas Petazzoni [Sat, 16 May 2015 16:37:05 +0000 (18:37 +0200)]
uboot-tools: fix dynamic linking against OpenSSL

Commit 95f9a5c3df8e4226b99438efccf0bf21eecb573d fixed the static
linking issue of uboot-tools mkimage against OpenSSL, but in the
process broke the dynamic linking case. This commit adjusts the
uboot-tools patch to make sure both static and dynamic linking work.

An updated version of the patch has been submitted upstream.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agotinyxml2: fix line-endings of patches
Thomas Petazzoni [Sat, 16 May 2015 16:26:44 +0000 (18:26 +0200)]
tinyxml2: fix line-endings of patches

This commit fixes the line endings of the tinyxml2 patches added in
commits 22f5be171c6f9bb2611e7b87197e9faeabcaab18 and
0fa452df185545d3781b3015195bee9431496b5d. Thanks to Romain Naour for
providing the correct version of the patches.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agoRevert "kmod: disable --gc-sections ld option when building for xtensa"
Max Filippov [Thu, 14 May 2015 04:39:00 +0000 (07:39 +0300)]
Revert "kmod: disable --gc-sections ld option when building for xtensa"

This reverts commit 55c83179c4b30c9ec715a75297849abd74a63e05.
Now that binutils bug with --gc-section is fixed this workaroud is no
longer needed.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agobinutils: fix xtensa ld bug triggered by --gc-sections
Max Filippov [Thu, 14 May 2015 04:38:59 +0000 (07:38 +0300)]
binutils: fix xtensa ld bug triggered by --gc-sections

elf_xtensa_gc_sweep_hook doesn't correctly unreference symbols that were
made local, that results in link failure with the following message:

  BFD (GNU Binutils) 2.24 internal error, aborting at elf32-xtensa.c line
  3372 in elf_xtensa_finish_dynamic_sections

elf_xtensa_gc_sweep_hook determines symbol reference type (PLT or GOT) by
relocation type. Relocation types are not changed when symbol becomes
local, but its PLT references are added to GOT references and
plt.refcount is set to 0. Such symbol cannot be unreferences in the
elf_xtensa_gc_sweep_hook and its extra references make calculated GOT
relocations section size not match number of GOT relocations.

Fix it by treating PLT reference as GOT reference when plt.refcount is
not positive.

Fixes:
  http://autobuild.buildroot.net/results/3e2e24f697e26c93d4d95782b1cb7799fa620a7a/
  http://autobuild.buildroot.org/results/97d4c96d6f6cdc1ed4007456f4ab70be9dfa41b5/

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agopostgresql: mark as not available for static linking
Thomas Petazzoni [Sat, 16 May 2015 14:12:44 +0000 (16:12 +0200)]
postgresql: mark as not available for static linking

postgresql currently does not build in BR2_STATIC_LIBS=y
configurations, and since there is little interest in using such a big
piece of software in statically linked configuration, this commit
makes postgresql depends on !BR2_STATIC_LIBS.

Fixes:

  http://autobuild.buildroot.net/results/f9ed96d22e91cdba9ad92c4d4ea52e422bf1f1c9/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agolibmatroska: add host-pkgconf dependency
Thomas Petazzoni [Sat, 16 May 2015 13:36:50 +0000 (15:36 +0200)]
libmatroska: add host-pkgconf dependency

libmatroska configure.ac uses PKG_CHECK_MODULES(), so this package
needs to depend on host-pkgconf.

Fixes:

  http://autobuild.buildroot.org/results/80a/80a9f0f5594ab833600ea8514dc184e50d2bf08c/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agoacl, attr: fix libdir variable in .la files
Thomas Petazzoni [Sat, 16 May 2015 12:54:26 +0000 (14:54 +0200)]
acl, attr: fix libdir variable in .la files

The acl and attr packages are using autoconf and libtool, but not
automake, which causes all sort of troubles. Some of them are already
worked around in acl.mk and attr.mk, but there is another one: the
libdir variable in the .la file remains empty, which causes libtool to
sometimes be confused about where the acl and attr libraries are
installed.

This was causing build issues with libarchive, but interestingly only
in situations where we had zlib *and* libxml2 also part of the build,
which maybe affects how libtool in libarchive behaves since libarchive
can use zlib and libxml2 as optional dependencies.

So what this patch does is to mungle the libattr.la and libacl.la
files to make sure they contain the right libdir values. Yocto is
doing exactly the same thing.

Upstream attr and acl have been converted fully to automake, so
hopefully the upcoming upstream release will allow us to get rid of
those hacks, but in the mean time, it seems to be the most appropriate
solution.

Here is a minimal defconfig that exhibits the problem, and which
allows to show that this patch fixes it:

BR2_bfin=y
BR2_BINFMT_FLAT=y
BR2_COMPILER_PARANOID_UNSAFE_PATH=y
BR2_INIT_NONE=y
BR2_PACKAGE_LIBARCHIVE=y
BR2_PACKAGE_LIBARCHIVE_BSDCPIO=y
BR2_PACKAGE_ZLIB=y
BR2_PACKAGE_LIBXML2=y
BR2_PACKAGE_ACL=y

Fixes:

  http://autobuild.buildroot.org/results/e96/e96c8bec1039d9fe8c6c51fd48b6be0dc8be51d7/
  (and many, many similar build failures)

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agopackage/ipmiutil: really force md2 off
Romain Naour [Fri, 15 May 2015 23:06:28 +0000 (01:06 +0200)]
package/ipmiutil: really force md2 off

If ALLOW_GNU is not defined, SKIP_MD2 is a nop.

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

Signed-off-by: Romain Naour <romain.naour@openwide.fr>
Cc: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agoqt5base: add patch to fix gold linker issue
Thomas Petazzoni [Fri, 15 May 2015 18:23:53 +0000 (20:23 +0200)]
qt5base: add patch to fix gold linker issue

The newly added patch makes sure that gold linker functionality is not
used when doing host builds, since qt5 only tests the availability of
this feature with the target compiler.

Fixes:

  http://autobuild.buildroot.net/results/f403a76ac0abbf8488373c0dffb4487f5d98c55d/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agoqt5base: rename patch to avoid conflict on 0002
Thomas Petazzoni [Fri, 15 May 2015 18:23:52 +0000 (20:23 +0200)]
qt5base: rename patch to avoid conflict on 0002

There are currently two patches with the 0002 sequence number, which
isn't great. Rename one of them to use the 0003 sequence number.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agomosquitto: disable with broken NIOS 2 toolchains
Thomas Petazzoni [Fri, 15 May 2015 18:23:50 +0000 (20:23 +0200)]
mosquitto: disable with broken NIOS 2 toolchains

mosquitto triggers the infamous _gp issue with the NIOS 2 toolchains,
so let's not allow mosquitto in such situations.

Fixes:

  http://autobuild.buildroot.net/results/b853369452115b0c6f32c6c960af2dbdf71a74af/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agoboost: do not allow boost-log on PowerPC with uClibc
Thomas Petazzoni [Fri, 15 May 2015 18:23:49 +0000 (20:23 +0200)]
boost: do not allow boost-log on PowerPC with uClibc

The build of boost-log with a uClibc toolchain on PowerPC fails with
some weird C++ issues. Since nobody ever looked into this problem,
let's "fix" the autobuilder issue by not allowing to select boost-log
in such a situation.

Fixes:

   http://autobuild.buildroot.net/results/13b43105caf4d3952de70030b51f8d96cf6604ee/
   (and many, many similar build failures)

[Peter: also add dependency to comment]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agopackage/boost: stop on the first error during install to staging
Romain Naour [Fri, 15 May 2015 20:36:17 +0000 (22:36 +0200)]
package/boost: stop on the first error during install to staging

-q option is missing in BOOST_INSTALL_STAGING_CMDS,
so the build doesn't stop on the first error.
This help to see what happened.

Signed-off-by: Romain Naour <romain.naour@openwide.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agozmqpp: fix compilation with some toolchains
Lionel Orry [Fri, 15 May 2015 12:26:40 +0000 (14:26 +0200)]
zmqpp: fix compilation with some toolchains

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

add cstdlib header to ensure EXIT_FAILURE presence

Using some cross-compiling toolchains, EXIT_FAILURE is not always
properly defined without this inclusion.

Patch is upstream:
https://github.com/zeromq/zmqpp/pull/109

[Thomas: use a patch formatted with git format-patch, rather than the
output of 'git show'.]

Signed-off-by: Lionel Orry <lionel.orry@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agopackage/tinyxml2: fix cmake warning
Romain Naour [Fri, 8 May 2015 10:49:55 +0000 (12:49 +0200)]
package/tinyxml2: fix cmake warning

CMake complains about Policy CMP0037 that reserve some
target name such "test".
So remove the warning by renaming test to xmltest.

Backport an upstream patch:
0b2c22bd46be95b08f234b8b4cb262f72ab3f0e8

Signed-off-by: Romain Naour <romain.naour@openwide.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agopackage/tinyxml2: Use BUILD_SHARED_LIBS cmake standard
Romain Naour [Fri, 8 May 2015 10:49:54 +0000 (12:49 +0200)]
package/tinyxml2: Use BUILD_SHARED_LIBS cmake standard

Backport an upstream patch to fix the static build:
c8ec6fcab4eb501cc5bd328c19dcbd4b30722d52

Fixes:
http://autobuild.buildroot.net/results/e56/e568d81030087f66f8ac4ccd4f496b550930cbae/

Signed-off-by: Romain Naour <romain.naour@openwide.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agolibftdi1: fix typos in config options and comments
Peter Korsgaard [Sat, 16 May 2015 07:29:28 +0000 (09:29 +0200)]
libftdi1: fix typos in config options and comments

It is ftdi1, not tfdi1.

As this is a new package for 2015.05 no legacy handling has been added.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agoboost: disable on NIOS 2 with broken toolchains
Thomas Petazzoni [Fri, 15 May 2015 18:23:48 +0000 (20:23 +0200)]
boost: disable on NIOS 2 with broken toolchains

The current NIOS 2 toolchains are not capable of building Boost, so
let's disable it and its reverse dependencies. Even though it's not
strictly an architecture dependency, we use the <pkg>_ARCH_SUPPORTS
paradigm for this dependency, since it simplifies a lot handling all
boost reverse dependencies, and is anyway quite similar to an
architecture dependency since we don't display a comment about this
dependency.

Fixes:

  http://autobuild.buildroot.net/results/e119b1ef55c546e0d0598b85c46ceefa5c43d5a6/

[Peter: also update mpd comment]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agoRevert "package/ola: fix autoreconf issue for host-ola"
Thomas Petazzoni [Thu, 14 May 2015 20:57:16 +0000 (22:57 +0200)]
Revert "package/ola: fix autoreconf issue for host-ola"

This reverts commit 884af65fd5ddc548f19a26162f905a32ef0b53b3. Thanks
to the change of the installation path of host-autoconf-archive
macros, host-ola will no longer see them when doing its autoreconf, so
the patch that was added by the commit being reverted here is no
longer needed.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agohost-autoconf-archive: install to a non-standard location
Thomas Petazzoni [Thu, 14 May 2015 20:57:15 +0000 (22:57 +0200)]
host-autoconf-archive: install to a non-standard location

The host-autoconf-archive package was added to provide the necessary
autoconf macros for the libsigrok package, and later also used for the
thrift package.

However, it installs its autoconf macro in
$(HOST_DIR)/usr/share/aclocal, which is part of the include directory
of autoconf macros used for all autoreconf invocations. Unfortunately,
using those macros for all packages is causing a number of
regressions: one on host-ola fixed in commit
884af65fd5ddc548f19a26162f905a32ef0b53b3, and one in snmpp. Those
packages are autoreconf'ed, but if they are autoreconf'ed with the
autoconf-archive macros installed, they no longer work.

To solve this problem, this commit implements a simple solution that
makes using host-autoconf-archive macros an opt-in mechanism. To
achieve this, the autoconf-archive package is modified to install its
macros in a special directory, and only the packages that really want
to use those macros will have to pass a -I flag pointing to this
directory in their <pkg>_AUTORECONF_OPTS variable.

Fixes:

  http://autobuild.buildroot.org/results/712/712c8083b9eeafa41b60790961028c40b28f59ad/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Reviewed-by: Romain Naour <romain.naour@openwide.fr>
Tested-by: Romain Naour <romain.naour@openwide.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agomongoose: fix static build issue
Peter Korsgaard [Thu, 14 May 2015 22:47:23 +0000 (00:47 +0200)]
mongoose: fix static build issue

Fixes:
http://autobuild.buildroot.net/results/372/372515ba0a09a23237ae34024658f21c2625d6e7/

Disable the shared library support in mongoose, as the only thing it does is
including dlfcn.h - So it is useless.  Also remove the unneeded -ldl from
the web server linker flags.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agolibcap-ng: cannot be built with nios2 CS 2014.05 toolchain
Peter Korsgaard [Thu, 14 May 2015 22:33:25 +0000 (00:33 +0200)]
libcap-ng: cannot be built with nios2 CS 2014.05 toolchain

Fixes:
http://autobuild.buildroot.net/results/d13/d136f763ca3389cdc6a404db7a4fc0cd18329955/
http://autobuild.buildroot.net/results/e00/e002e2a3bd52a3cc3b0d06625de61315d86de524/
http://autobuild.buildroot.net/results/bba/bba9f7130315c9d97cc060a73663276d0fa2c1b3/
http://autobuild.buildroot.net/results/fc7/fc7bc050ef769716dedb0ad81a51e33a12deec47/

And many more.

Building libcap-ng with that toolchain triggers an internal compiler /
assembler bug, so blacklist that combination and propagate to the reverse
dependencies.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agolcdproc: needs dynamic library support
Peter Korsgaard [Thu, 14 May 2015 22:18:24 +0000 (00:18 +0200)]
lcdproc: needs dynamic library support

Fixes:
http://autobuild.buildroot.net/results/4ac/4ac625f4e888ba859a5867671664dc8d041ec9b9/
http://autobuild.buildroot.net/results/614/61450e889c3912e38e52759812fbb6ce03270788/
http://autobuild.buildroot.net/results/138/13800e3b52c9f6c84f85325710a59c7b3c04d0ee/
http://autobuild.buildroot.net/results/041/0410fb15e65561031453bedbc549ed82ce7bdc71/

And many more.

Lcdproc forces shared libraries for the drivers, so mark it as unavailable
for static only builds.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agoarmadillo: bump versin to 5.100.2
Alexey Brodkin [Wed, 13 May 2015 22:40:17 +0000 (01:40 +0300)]
armadillo: bump versin to 5.100.2

This is the most recent version of the package.

Also it fixes static builds (see
http://autobuild.buildroot.net/results/1cc/1ccf0829c13896c000aed1956155a34844207b2f)
with commit http://sourceforge.net/p/arma/code/3569/ that was made right
before 4.400.0 release.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: Yann E. MORIN <yann.morin.1998@free.fr>
Cc: Samuel Martin <s.martin49@gmail.com>
Acked-by: Samuel Martin <s.martin49@gmail.com>
Tested-by: Samuel Martin <s.martin49@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agoalsa-utils: amidi option needs seq support in alsa-lib
Peter Korsgaard [Thu, 14 May 2015 22:07:03 +0000 (00:07 +0200)]
alsa-utils: amidi option needs seq support in alsa-lib

Fixes:
http://autobuild.buildroot.net/results/5347b57d23b44e1b011a499875ce638ed654418a/

Otherwise the rawmidi_virt.c file doesn't get built, breaking static
linking.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agolibupnpp: fix static linking issue with libcurl
Peter Korsgaard [Thu, 14 May 2015 20:44:06 +0000 (22:44 +0200)]
libupnpp: fix static linking issue with libcurl

Fixes:
http://autobuild.buildroot.net/results/f38/f383bf4d7572a7dd59d382cd06a9baeb37e9161c/
http://autobuild.buildroot.net/results/d93/d934871d1b192706cd9163715c5ebcd96deff2b8/

Libcurl optionally links to a number of libraries that have to be taken into
consideration when linking statically.

Use pkg-config to get the correct libcurl link line, and also use it for
libupnp instead of the hardcoded list.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agorsyslog: drop autoreconf
Baruch Siach [Tue, 12 May 2015 20:10:07 +0000 (23:10 +0300)]
rsyslog: drop autoreconf

The patches touching configure.ac were dropped in 9d9bbf9b7935 (rsyslog: bump
to version 8.8.0, 2015-02-25). Remove autoreconf as well.

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agopostgresql: avoid AC_TRY_RUN when testing snprintf()
Baruch Siach [Tue, 12 May 2015 20:10:06 +0000 (23:10 +0300)]
postgresql: avoid AC_TRY_RUN when testing snprintf()

A few snprintf() compatibility tests in config/c-library.m4 use AC_TRY_RUN
that doesn't work for cross compilation. As a result configure.in decides to
build a bundled implementation of snprintf(). This implementation calls
isnan(), but -lm is missing. This breaks link with libpq.so. Preseed the
correct values to make the configure script happy, and fix rsyslog build.

Fixes:
http://autobuild.buildroot.net/results/e76/e769982e3131581b38698c109c9bc5215e3d5b11/
http://autobuild.buildroot.net/results/2b9/2b9d3edc8341675455bc3b74d1e84c8c0c24c521/
http://autobuild.buildroot.net/results/2a8/2a80357237ed7225823a008b5ff02bab01269814/

and many more.

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Tested-by: Gergely Imreh <imrehg@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agopackage/binutils (arc): backport PR56780 patches
Romain Naour [Wed, 13 May 2015 21:36:36 +0000 (23:36 +0200)]
package/binutils (arc): backport PR56780 patches

--disable-install-libiberty configure option is broken
in gcc 4.8.x, so libiberty.a is always installed in HOST_DIR.

This library broke the host-gdb build due to a fpic/fPIC issue.

Since binutils use a copy of gcc's libiberty sources, it's
affected by the same bug.

binutils-arc-2014.11 which is based on 2.23 branch doesn't have
the PR56780 fixies, so backport them.

Fixes:
http://autobuild.buildroot.net/results/ca4/ca45297aa0ffbc9062ed92dc7ac070b0b33001de/

Signed-off-by: Romain Naour <romain.naour@openwide.fr>
Cc: Alexey Brodkin <abrodkin@synopsys.com>
Acked-by: Alexey Brodkin <abrodkin@synopsys.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agoopenldap: fix static link with openssl
Baruch Siach [Wed, 13 May 2015 18:22:07 +0000 (21:22 +0300)]
openldap: fix static link with openssl

Use pkg-config to get openssl link dependencies.

Fixes:
http://autobuild.buildroot.net/results/dd3/dd3821e713b7da7cde0f059409fba46371c8bc40/
http://autobuild.buildroot.net/results/d60/d60c8b4522e99cf385ee41aa20a1d49deb59c5fb/
http://autobuild.buildroot.net/results/b41/b41c043fb3b2fad1d9cea0a95b512fb4942b5b19/

and more.

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agolinux: bump default to version 4.0.3
Peter Korsgaard [Wed, 13 May 2015 19:37:30 +0000 (21:37 +0200)]
linux: bump default to version 4.0.3

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agolinux-headers: bump 3.{2,10,12,14,18,19}.x / 4.0.x stable versions
Peter Korsgaard [Wed, 13 May 2015 19:36:00 +0000 (21:36 +0200)]
linux-headers: bump 3.{2,10,12,14,18,19}.x / 4.0.x stable versions

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agolibnftnl: needs kernel headers >= 3.1
Peter Korsgaard [Wed, 13 May 2015 13:27:28 +0000 (15:27 +0200)]
libnftnl: needs kernel headers >= 3.1

Contrary to what commit f5866484f (libnftnl: exclude for CS PPC toolchains)
stated, a missing sa_family_t definition IS specific to the kernel headers
version, and not something particular to the CS toolchains, so instead
require 3.1+ headers.

The specific kernel change fixing the headers is:
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=6602a4baf4d1a73cc

The only reverse dependency of libnftnl (nftables) already needs 3.4+, so
this dependency doesn't need to be propagated.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agodhcpcd: needs kernel headers >= 3.1
Peter Korsgaard [Wed, 13 May 2015 13:22:34 +0000 (15:22 +0200)]
dhcpcd: needs kernel headers >= 3.1

commit dfbfa6ef (dhcpcd: blacklist Sourcery PowerPC toolchains) blacklisted
specific toolchains, but the issue is actually that the kernel headers
before 3.1 didn't define sa_family_t, so instead require 3.1+ headers.

The specific kernel change fixing the headers is:
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=6602a4baf4d1a73cc

The only reverse dependency of dhcpcd (network-manager) already needs 3.7+,
so this dependency doesn't need to be propagated.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agovsftpd: correct openssl linking after 1d046a5c (vsftpd: use pkg-config to get OpenSSL...
Peter Korsgaard [Wed, 13 May 2015 11:29:17 +0000 (13:29 +0200)]
vsftpd: correct openssl linking after 1d046a5c (vsftpd: use pkg-config to get OpenSSL link flags)

Fixes:
http://autobuild.buildroot.net/results/221/221c987a9657caefad54bcc2fe9d2d71189c94c5/
http://autobuild.buildroot.net/results/90c/90cea7c4fdb3e5af923eedf96d79594d6d02e563/

vsftpd directly uses symbols from libcrypto (X509_{digest,free}), so it
needs to link against both.

This doesn't trigger for static builds as libssl internally uses libcrypto
(and lists it in Requires.private).

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agolibmodbus: add hash
Baruch Siach [Wed, 13 May 2015 06:31:27 +0000 (09:31 +0300)]
libmodbus: add hash

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agolibmodbus: update download location
Baruch Siach [Wed, 13 May 2015 06:31:26 +0000 (09:31 +0300)]
libmodbus: update download location

Saves one HTTP 301 redirection.

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agogoogle-breakpad: add patch to fix AArch64 build issue
Thomas Petazzoni [Tue, 12 May 2015 21:48:05 +0000 (23:48 +0200)]
google-breakpad: add patch to fix AArch64 build issue

Fixes:

  http://autobuild.buildroot.org/results/b2b/b2bfbcc922b3041ab3a1892d5c1469ec68476682/

[Peter: fix s/wiht/with/ typo as pointed out by Romain]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Reviewed-by: Romain Naour <romain.naour@openwide.fr>
Tested-by: Romain Naour <romain.naour@openwide.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agolxc: mark as not available in BR2_STATIC_LIBS configs
Thomas Petazzoni [Tue, 12 May 2015 21:21:21 +0000 (23:21 +0200)]
lxc: mark as not available in BR2_STATIC_LIBS configs

Even though lxc uses the autotools, it does not use libtool to build
its libraries, and does it manually. It forces building a shared
library. So let's comply with this decision, and mark lxc as not
available in BR2_STATIC_LIBS configurations.

Fixes:

  http://autobuild.buildroot.org/results/588/588dc28315a9114374f148bbc64c4ec3d7b4e295/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agovsftpd: use pkg-config to get OpenSSL link flags
Thomas Petazzoni [Tue, 12 May 2015 21:07:04 +0000 (23:07 +0200)]
vsftpd: use pkg-config to get OpenSSL link flags

Instead of hardcoding -lssl -lcrypto as the linker flags to link with
OpenSSL, use pkg-config to fetch those flags. This allows to behave
properly when doing static linking, since pkg-config returns the
entire set of libraries we should link against.

Fixes:

  http://autobuild.buildroot.org/results/d71/d710ecfa9ed0a8e3f97d2010d3dabb372485c7f2/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tested-by: Gergely Imreh <imrehg@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agouboot-tools: fix static linking with OpenSSL
Thomas Petazzoni [Tue, 12 May 2015 21:02:13 +0000 (23:02 +0200)]
uboot-tools: fix static linking with OpenSSL

Add a patch to U-Boot to use pkg-config to get the OpenSSL link flags
when pkg-config is available. This allows to make sure that static
linking works properly. The patch requires adding $(TARGET_MAKE_ENV)
so that the Buildroot provided pkg-config is used instead of the host
one.

The U-Boot patch has been submitted upstream.

Fixes:

  http://autobuild.buildroot.org/results/a9f/a9f316cd076a74b8730ce4cdcdb8176da4ed9eb3/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tested-by: Gergely Imreh <imrehg@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agoczmq: needs host-pkgconf
Peter Korsgaard [Wed, 13 May 2015 07:17:49 +0000 (09:17 +0200)]
czmq: needs host-pkgconf

It uses pkg-config to find zeromq, so ensure it is available.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agoRevert "czmq: unbreak static linking"
Peter Korsgaard [Wed, 13 May 2015 07:16:27 +0000 (09:16 +0200)]
Revert "czmq: unbreak static linking"

This reverts commit aa5254f1a2bc0ea3181d51990c18681b3071b9db.

Now that zeromq's pkg-config file is fixed, we no longer need this
workaround for static linking.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agozeromq: fix pkg-config file for static linking
Peter Korsgaard [Wed, 13 May 2015 07:13:28 +0000 (09:13 +0200)]
zeromq: fix pkg-config file for static linking

Fixes:
http://autobuild.buildroot.net/results/faf/faf0bb00fccb1350afaef55f6cf14c11a5f5dc3c/
http://autobuild.buildroot.net/results/8d2/8d279baa4c8bffbb01f897119092c7b736942df4/
http://autobuild.buildroot.net/results/4d3/4d3dea604da9a5a1e7fe20548813f8de474ae33f/
http://autobuild.buildroot.net/results/fd6/fd602617839817352763e51754553960b7f795ac/

And many more.

Libzmq uses C++ standard library features, so users of it should link
against that as well when statically linking.

Add it to Libs.private so users using pkg-config automatically gets the
correct linker flags.

Patch is upstream:
https://github.com/zeromq/libzmq/pull/1398

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agoczmq: unbreak static linking
Peter Korsgaard [Tue, 12 May 2015 18:43:12 +0000 (20:43 +0200)]
czmq: unbreak static linking

Fixes:
http://autobuild.buildroot.net/results/faf/faf0bb00fccb1350afaef55f6cf14c11a5f5dc3c/
http://autobuild.buildroot.net/results/8d2/8d279baa4c8bffbb01f897119092c7b736942df4/
http://autobuild.buildroot.net/results/4d3/4d3dea604da9a5a1e7fe20548813f8de474ae33f/
http://autobuild.buildroot.net/results/fd6/fd602617839817352763e51754553960b7f795ac/

And many more.

Zeromq uses C++, but czmq forgets to explicitly link with libstdc++
(or use g++ to link), breaking static linking.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agolibmemcached: don't use -fPIE and -pie when linking statically
Thomas Petazzoni [Mon, 11 May 2015 20:55:36 +0000 (22:55 +0200)]
libmemcached: don't use -fPIE and -pie when linking statically

These compiler options shouldn't be used when linking statically, and in
particular FLAT binaries cannot use -fPIE and -pie code, so let's teach
libmemcached to not use such flags in those setups.

Fixes:

  http://autobuild.buildroot.org/results/8cb/8cbf57f9136cb42be31c88e0f1f32d3d2353e5ff/
  and many previous similar build failures

[Peter: rework/reword to do this based on BR2_STATIC_LIBS]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Reviewed-by: Romain Naour <romain.naour@openwide.fr>
Tested-by: Romain Naour <romain.naour@openwide.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agohwloc: fix race condition in make install
Peter Korsgaard [Tue, 12 May 2015 14:11:22 +0000 (16:11 +0200)]
hwloc: fix race condition in make install

Fixes:
http://autobuild.buildroot.net/results/983/98364cdbffa06f151ab34b301762321b2a251ec6/
http://autobuild.buildroot.net/results/414/41403f8ce4751a27dd1bb9c43f5a97895dea3980/
http://autobuild.buildroot.net/results/d97/d979624843d2d2020cf43770350a8b9a63dcd04f/

Make install contains a race condition in utils/hwloc, as both
install-exec-hook (through intall-exec) and install-data trigger
install-man.

The install-exec-hook target doesn't do anything with the manual pages, so
fix the race condition by dropping the dependency.

Patch sent upstream:
https://www.open-mpi.org/community/lists/hwloc-devel/2015/05/4442.php

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agopackage/gcc (arc): backport PR56780 patches
Romain Naour [Mon, 11 May 2015 21:45:16 +0000 (23:45 +0200)]
package/gcc (arc): backport PR56780 patches

--disable-install-libiberty configure option is broken
in gcc 4.8.x, so libiberty.a is always installed in HOST_DIR.

This library broke the host-gdb build due to a fpic/fPIC issue.

Note: host-binutils-arc-2014.12 install libiberty.a in HOST_DIR
but it was overwritten by the gcc one. The host-binutils's
libiberty.a also broke the host-gdb build. This should be
fixed in a followup patch.

Signed-off-by: Romain Naour <romain.naour@openwide.fr>
Cc: Alexey Brodkin <abrodkin@synopsys.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agoqemu: fix build on sh4a and sh4aeb
Thomas Petazzoni [Mon, 11 May 2015 20:53:41 +0000 (22:53 +0200)]
qemu: fix build on sh4a and sh4aeb

Qemu doesn't understand sh4a and sh4aeb as separate architectures, it
only knows about sh4 and sh4eb. However, it does support sh4a, since
it emulates the SH7785 CPU which is a SH4A.

Therefore, with this commit, sh4a/sh4aeb are translated as sh4/sh4eb
for Qemu.

Fixes:

  http://autobuild.buildroot.org/results/8f9/8f99a776f35d4ab0841d9fd2db509850ef603bd4/
  and many previous similar build failures

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agofbterm: fix linking issue when static linking and a toolchain with threads
Peter Korsgaard [Mon, 11 May 2015 20:26:39 +0000 (22:26 +0200)]
fbterm: fix linking issue when static linking and a toolchain with threads

Fixes:
http://autobuild.buildroot.net/results/899/899eb7e36dc31b7dcb51c0dd23d91965111d22c4/
http://autobuild.buildroot.net/results/43a/43a34d8b64f536caa579709508bb5e00633ba6e7/
http://autobuild.buildroot.net/results/f34/f343d015b127f29d614e7ea38b173d3a5c270d84/
http://autobuild.buildroot.net/results/da8/da88f40dfc51aea122c146e5bfee19b031cfaab6/

And many more.

Fontconfig uses pthreads if available, but fbterm forgets to link with it
breaking static builds.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agophp: openssl support needs to link against zlib for static linking
Peter Korsgaard [Mon, 11 May 2015 15:37:46 +0000 (17:37 +0200)]
php: openssl support needs to link against zlib for static linking

Fixes:
http://autobuild.buildroot.net/results/490/490a9558635c90bf510b6f80cd0891fe322c3f46/
http://autobuild.buildroot.net/results/bf1/bf12eb189ab35ce00a2212695d2dbf8b8a126529/

Otherwise the configure script fails to detect openssl and bails out.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agoUpdate for 2015.05-rc2
Peter Korsgaard [Mon, 11 May 2015 11:28:26 +0000 (13:28 +0200)]
Update for 2015.05-rc2

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agouclibc-ng/uclibc: enable context functions
Waldemar Brodkorb [Mon, 11 May 2015 08:12:34 +0000 (10:12 +0200)]
uclibc-ng/uclibc: enable context functions

For mongrel2/libsigsegv we need to enable this in the uClibc-ng/uClibc-snapshot config.
Tested with ARM:

file output/target/usr/bin/mongrel2
output/target/usr/bin/mongrel2: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), stripped

Should fix:
http://autobuild.buildroot.net/results/a144bc6024415a5272c3cbe60ff636d078d0a555/
http://autobuild.buildroot.net/results/00195d89a115a314bf4916af127407f61cd1b418/
http://autobuild.buildroot.net/results/5ee7e83ebcfa43f6ee0a2a8b9f40f1ae84664aca/

Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agopackage/monolite: adding hash file
Angelo Compagnucci [Sat, 9 May 2015 08:41:29 +0000 (10:41 +0200)]
package/monolite: adding hash file

This patch adds hash file for monolite version 117.

Signed-off-by: Angelo Compagnucci <angelo.compagnucci@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agopackage/mono: adding hash file
Angelo Compagnucci [Sat, 9 May 2015 08:41:28 +0000 (10:41 +0200)]
package/mono: adding hash file

This patch adds the hash file for mono 4.0.0.

Signed-off-by: Angelo Compagnucci <angelo.compagnucci@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agopackage/mono: fixing mono version
Angelo Compagnucci [Sat, 9 May 2015 08:41:27 +0000 (10:41 +0200)]
package/mono: fixing mono version

This patch fixes to the correct mono version 4.0.0 as stated on
the download page.

Fixes:
http://autobuild.buildroot.net/results/227/227f942107e4fcbc14bb1e7d97e1e2758d6f3f2d/

[Peter: add autobuilder reference]
Signed-off-by: Angelo Compagnucci <angelo.compagnucci@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agopackage/gnuchess: add hash
Romain Naour [Sun, 10 May 2015 20:33:06 +0000 (22:33 +0200)]
package/gnuchess: add hash

Signed-off-by: Romain Naour <romain.naour@openwide.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agopackage/gnuchess: fix static build with uClibc
Romain Naour [Sun, 10 May 2015 20:33:05 +0000 (22:33 +0200)]
package/gnuchess: fix static build with uClibc

Patch src/Makefile.in to avoid to use autoconf and it's
dependencies.

Signed-off-by: Romain Naour <romain.naour@openwide.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agopackage/gnuchess: add gettext dependency
Romain Naour [Sun, 10 May 2015 20:33:04 +0000 (22:33 +0200)]
package/gnuchess: add gettext dependency

gnuchess check for libintl library if BR2_NEEDS_GETTEXT_IF_LOCALE is set.

checking for GNU gettext in libintl... yes
checking whether to use NLS... yes
checking where the gettext function comes from... external libintl
checking how to link with libintl... -lintl

But the dependency on gettext package is missing to ensures
reproducible builds.

Signed-off-by: Romain Naour <romain.naour@openwide.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agopackage/gcc: backport PR56780 patches
Romain Naour [Sun, 10 May 2015 19:01:26 +0000 (21:01 +0200)]
package/gcc: backport PR56780 patches

--disable-install-libiberty configure option is broken
in gcc 4.8.x, so libiberty.a is always installed in HOST_DIR.

This library broke the host-gdb build due to a fpic/fPIC issue.

Fixes:
http://autobuild.buildroot.net/results/28f/28f3074e99a35f4321dad2fa6c5abdad14d2d2c6/

And many more.

Signed-off-by: Romain Naour <romain.naour@openwide.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agobinutils: fix xtensa gas trampolines regression
Max Filippov [Sun, 10 May 2015 13:43:49 +0000 (16:43 +0300)]
binutils: fix xtensa gas trampolines regression

xtensa trampolines relaxation optimization caused the following build
errors:
  Error: operand 1 of 'j' has out of range value '131643'
  Error: operand 1 of 'j' has out of range value '4294836162'
  Error: operand 1 of 'j' has out of range value '4294836072'

Extra condition 'abs (addr - trampaddr) < J_RANGE / 2' for trampoline
selection results in regressions: when relaxable jump is little longer
than J_RANGE so that single trampoline makes two new jumps, one longer
than J_RANGE / 2 and one shorter, correct trampoline cannot be found.

Drop that condition.

Upstream status: patch submitted.
Fix squashed into the optimization patch.
Fixes:
  http://autobuild.buildroot.net/results/5ba7d18262ce6a2dfd69db07d064a971267f1128/

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agoMakefile: Handle whitespace when stripping .ko
erico.nunes [Sat, 9 May 2015 20:25:33 +0000 (17:25 -0300)]
Makefile: Handle whitespace when stripping .ko

It is possible to end up with a path containing spaces if the kernel
localversion contains spaces.
Be it good practice or not, there are third party vendors which
distribute kernel configuration files for reference platforms which have
quoted strings containing whitespaces in the localversion.

There was already a fix to handle paths with whitespaces or other
special characters when running strip, which consists of using the find
-print0 and xargs -0 pair of arguments, but the kernel module stripping
wasn't included in the fix.
This commit includes the same fix to the kernel module stripping line.

Signed-off-by: Erico Nunes <erico.nunes@datacom.ind.br>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agoxlib_libXfont: work around missing __ELF__ symbol on microblaze
Peter Korsgaard [Sun, 10 May 2015 20:28:29 +0000 (22:28 +0200)]
xlib_libXfont: work around missing __ELF__ symbol on microblaze

Fixes:
http://autobuild.buildroot.net/results/688/688a839ec57e7bc83b490535871b2dac0b1309ff/
http://autobuild.buildroot.net/results/75c/75c676b1baed6f39657578caf7fc213ce71c1089/
http://autobuild.buildroot.net/results/2b9/2b9e9ebaaabe4880e7d258d88f12ce90738ca779/
http://autobuild.buildroot.net/results/988/988022e559af81d9b7dfc716dfb84bd0fa3698f2/

And many more.

The microblaze toolchains don't define the __ELF__ preprocessor symbol even
though they do use the elf format.  LibXfont checks for this symbol to know
if weak symbols are supported, and otherwise falls back to emulation code
using dlopen - Causing linker issues for stuff using libXfont.

Work around it by defining the symbol here as well.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agosqlite: security bump to 3.8.10
Peter Korsgaard [Fri, 8 May 2015 07:51:05 +0000 (09:51 +0200)]
sqlite: security bump to 3.8.10

Fixes: CVE-2015-3414, CVE-2015-3415 and CVE-2015-3416.
For details, see the Debian advisory:
https://www.debian.org/security/2015/dsa-3252

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agofix typo in package install suggestion for dependencies
Gergely Imreh [Fri, 8 May 2015 02:42:29 +0000 (02:42 +0000)]
fix typo in package install suggestion for dependencies

Signed-off-by: Gergely Imreh <imrehg@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agoguile: add patch borrowed from Yocto to fix compiler error
Thomas Petazzoni [Mon, 4 May 2015 20:52:32 +0000 (22:52 +0200)]
guile: add patch borrowed from Yocto to fix compiler error

Fixes:

  http://autobuild.buildroot.org/results/85b/85bd849e17c6e5ed6b5b56a4d4ad1a73f7de99c2/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agopackage/efl/expedite: x-includes and x-libraries must be set for cross-compiling
Romain Naour [Wed, 6 May 2015 21:50:44 +0000 (23:50 +0200)]
package/efl/expedite: x-includes and x-libraries must be set for cross-compiling

If those flags are not explicitly passed, the libecore configure
script will include -I/usr/X11R6/include and -L/usr/X11R6/lib in the
compile flags, which are obviously unsafe for cross-compilation.

The fix is similar to 0d9d8984a9240a27f5ed2e15f1977ada67266906 and
da50b6b61c4a566fd28888f5a3a6dcb06fe1b495.

Fixes:
http://autobuild.buildroot.org/results/24b/24b578a28455409b7bcc0277abc6b478c51ae67f

Signed-off-by: Romain Naour <romain.naour@openwide.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agovalgrind: Backport patch to fix build on 4.0 host kernels
Christian Artin [Wed, 6 May 2015 17:26:58 +0000 (13:26 -0400)]
valgrind: Backport patch to fix build on 4.0 host kernels

Valgrind fails to build when the host kernel is >=4.0. This patch
backports the commit from upstream that fixes the kernel version
verification. This verification is pointless for buildroot anyway, but
it fixes the building process.

[Peter: rename patch to 0002-* and add SoB, slightly reword commit msg]
Signed-off-by: Christian Artin <christian@gridshowsystems.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agocc-tool: fix static build problem with boost regex
Thomas Petazzoni [Tue, 5 May 2015 21:36:45 +0000 (23:36 +0200)]
cc-tool: fix static build problem with boost regex

The boost.m4 logic is a bit crappy, and needs some help to know that
boost_regex needs the pthread library.

Fixes:

  http://autobuild.buildroot.org/results/69a/69aff0b9d0ac8fe08e1d2f7ffb691f6a8fc8693b/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agocryptsetup: disable on broken NIOS 2 toolchains
Thomas Petazzoni [Tue, 5 May 2015 20:59:32 +0000 (22:59 +0200)]
cryptsetup: disable on broken NIOS 2 toolchains

This package triggers the infamous _gp issue with the external NIOS 2
toolchains, so let's disable it.

Fixes:

  http://autobuild.buildroot.org/results/ff4/ff456344eb5bc8af619c1f5d88be0cb758dd5075/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agoiproute2: fix static build
Baruch Siach [Thu, 7 May 2015 07:20:12 +0000 (10:20 +0300)]
iproute2: fix static build

Fixes:
http://autobuild.buildroot.net/results/a10/a107ac3252ad48732069ec0de6ff8692b32c6a71/
http://autobuild.buildroot.net/results/e27/e2785a35bc6bc63d5da77e406e589889e7d39055/

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agoexpedite: fix dependencies comment logic
Baruch Siach [Thu, 7 May 2015 06:35:26 +0000 (09:35 +0300)]
expedite: fix dependencies comment logic

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agoola: depend on python for bindings instead of selecting it
Peter Korsgaard [Wed, 6 May 2015 21:42:44 +0000 (23:42 +0200)]
ola: depend on python for bindings instead of selecting it

Most likely people have already enabled python if they want to use the
bindings for ola, so use depends on instead of select so we don't need to
propagate the dependencies here.

Python already depends on mmu, so drop that here.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agodstat: propagate python !static dependency
Peter Korsgaard [Wed, 6 May 2015 21:39:54 +0000 (23:39 +0200)]
dstat: propagate python !static dependency

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agogiflib: remove from the description the reference to libungif
Fabio Porcedda [Sun, 12 Apr 2015 10:13:57 +0000 (12:13 +0200)]
giflib: remove from the description the reference to libungif

Starting from version 5.0 giflib it's no longer compatible with
libungif, also the libungif is now deprecated so just remove the
reference to libungif.

Signed-off-by: Fabio Porcedda <fabio.porcedda@gmail.com>
Cc: Yann E. MORIN <yann.morin.1998@free.fr>
Cc: Baruch Siach <baruch@tkos.co.il>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Reviewed-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agopackage/postgresql: fix pthread flags detection
Max Filippov [Mon, 23 Mar 2015 17:23:30 +0000 (20:23 +0300)]
package/postgresql: fix pthread flags detection

PostgreSQL configure may not correctly determine flags for compiling and
linking with pthreads support when compiler or linker give irrelevant
warnings.

Record default compiler and linker output and see if adding pthread
option changes that, instead of assuming that linker and compiler are
silent by default.

Fixes:
  http://autobuild.buildroot.net/results/916487aae929c181d4e3f471c6c7508552f0b683/
  http://autobuild.buildroot.net/results/921a94d1a489d81b362c5b6a403a156b4691effd/
  http://autobuild.buildroot.net/results/dbcdc58ad32b7b811ea47b6fc0f926a477e30786/
  http://autobuild.buildroot.net/results/68b582f4caec223a646f095487263353f273156d/

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agopackage/poppler: autoconf options take two dashes
Yann E. MORIN [Tue, 5 May 2015 22:48:08 +0000 (00:48 +0200)]
package/poppler: autoconf options take two dashes

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Olivier Schonken <olivier.schonken@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agopython-pyqt: fix opengl build failure
Gwenhael Goavec-Merou [Wed, 6 May 2015 14:59:36 +0000 (16:59 +0200)]
python-pyqt: fix opengl build failure

Fix:
http://autobuild.buildroot.net/results/206/2062208c171207428c9121215971e00c52bf306a/

According to configure-ng.py, PyQt_NoOpenGLES must be added to qtdetail when
QT_OPENGL_ES is set.

[Thomas: add comment to explain the double negation.]

Signed-off-by: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agoqt: fix missing target
Gwenhael Goavec-Merou [Wed, 6 May 2015 13:28:49 +0000 (15:28 +0200)]
qt: fix missing target

Fix :
 http://autobuild.buildroot.net/results/093/09302c153418c3af6dc4cdd12a0149505cfbca0b/
 http://autobuild.buildroot.net/results/96f/96f8a9758f0116aec999028fde1b9c983c143809/

sh target must be provided instead of generic to have the correct QT_NO_FPU
behaviour.

Signed-off-by: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agopackage/autoconf-archive: fix ax_tls syntax error
Romain Naour [Sun, 3 May 2015 22:04:24 +0000 (00:04 +0200)]
package/autoconf-archive: fix ax_tls syntax error

The ax_tls.m4 serial 11 procude a syntax error
in configure scripts.

Fixes:
http://autobuild.buildroot.net/results/619/619339810617212a667fe72278ec727ee992ffbf/

Signed-off-by: Romain Naour <romain.naour@openwide.fr>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agodocs/manual: add list of instrumentation steps
Yann E. MORIN [Sun, 3 May 2015 15:42:44 +0000 (17:42 +0200)]
docs/manual: add list of instrumentation steps

The names of steps are not obvious, so add this list to the manual.

Small formatting fix at the same time.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Arnout Vandecappelle <arnout@mind.be>
Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agotoolchain/external: better report RPC error for custom toolchains
Yann E. MORIN [Sun, 3 May 2015 15:39:16 +0000 (17:39 +0200)]
toolchain/external: better report RPC error for custom toolchains

Currently, we instruct users to enable/disable BR2_TOOLCHAIN_HAS_NATIVE_RPC
but that is a blind option. The only option users can set/unset is
BR2_TOOLCHAIN_EXTERNAL_INET_RPC.

Use that in the error message.

Notes: the only way for this message to appear is for a custom external
toolchain, either downloaded or pre-installed, so even though we check
the validity of the toolchain with BR2_TOOLCHAIN_HAS_NATIVE_RPC, we do
report on BR2_TOOLCHAIN_EXTERNAL_INET_RPC.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agobinutils: backport xtensa trampolines relaxation optimization
Max Filippov [Tue, 5 May 2015 19:57:21 +0000 (22:57 +0300)]
binutils: backport xtensa trampolines relaxation optimization

This optimization alone reduces gnuradio build time for xtensa from 2
hours to 40 minutes.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agoarch/Config.in.xtensa: provide BR2_ENDIAN symbol
Max Filippov [Tue, 5 May 2015 16:18:24 +0000 (19:18 +0300)]
arch/Config.in.xtensa: provide BR2_ENDIAN symbol

Packages get hints from the buildroot at configure time, e.g.
ac_cv_c_bigendian=yes/no. This particular hint is based on the value of
BR2_ENDIAN and when it doesn't match actual toolchain endiannes the
build may break.
Provide BR2_ENDIAN for xtensa to fix this sort of build errors.

Fixes:
  http://autobuild.buildroot.net/results/31115fe8d88f52d77ed0f2da769eb8896a1b34a2/

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agofreerdp: fix build with uClibc
Baruch Siach [Tue, 5 May 2015 18:15:32 +0000 (21:15 +0300)]
freerdp: fix build with uClibc

Add upstream patch disabling use of C99 long double math functions (powl,
ceill, ...) that uClibc(-ng) don't have.

Fixes:
http://autobuild.buildroot.net/results/bda/bda53fffd4a0937fd4b2313cdf2d12ced95cc7a7/
http://autobuild.buildroot.net/results/d96/d9613c9f791157e1de3a34923f1c91b35cec693f/
http://autobuild.buildroot.net/results/bfd/bfd4ef86b257ee918e3c4463ebc5cf77694244a0/

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agopackage/at: fix glibcism
Yann E. MORIN [Tue, 5 May 2015 17:57:48 +0000 (19:57 +0200)]
package/at: fix glibcism

at needs __isleap() which is in (e)glibc and uClibc, but not in musl.

Add a patch (from Open Embedded) that removes use of the macros, and
directly expands the corresponding code in lieu of the macro calls.

Fixes:
    http://autobuild.buildroot.org/results/6f2/6f25e80e8aedec91323ef9b67576b550d7abee60/
    http://autobuild.buildroot.org/results/da5/da5bb779f3077b079203fcbdb2533dd790963cd4/
    http://autobuild.buildroot.org/results/8a6/8a6ce608c6f46d08ed77049f796e98e6e10a1709/
    ...

Thanks to Jörg for pointing to the OE patch! :-)

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Jörg Krause <joerg.krause@embedded.rocks>
Tested-by: Jörg Krause <joerg.krause@embedded.rocks>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agoipmiutil: force md2 off
Gustavo Zacarias [Tue, 5 May 2015 13:43:54 +0000 (10:43 -0300)]
ipmiutil: force md2 off

The configure test runs against LIB_DIR (which is --libdir in configure
parlay) hence it's against the distro openssl version.
On newish openssl versions md2 is disabled by default, and buildroot
doesn't try to enable it (it's obsolete), but if the distro
libcrypto/openssl has it enabled then ipmiutil tries to use it.

Force it off to avoid build breakage. Fixes:
http://autobuild.buildroot.net/results/cd2/cd2e617f8e2b00581ab5936029f85e62ed3259ba/

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agopackage/neard: needs shared libs
Yann E. MORIN [Mon, 4 May 2015 22:12:27 +0000 (00:12 +0200)]
package/neard: needs shared libs

neard uses dlopen(), so needs shared libs.

Fixes:
    http://autobuild.buildroot.org/results/0a4/0a466cde55c5e128a2e201924f80f0ec6b8b5c2a/

Reported-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agowebsite/sponsors: fix typo
Yann E. MORIN [Mon, 4 May 2015 21:38:14 +0000 (23:38 +0200)]
website/sponsors: fix typo

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agoRevert "qt: add QT_COORD_TYPE to double option"
Peter Korsgaard [Tue, 5 May 2015 15:06:35 +0000 (17:06 +0200)]
Revert "qt: add QT_COORD_TYPE to double option"

This reverts commit 7619aba496208102e098e24454371b9513ec2f90.

This change causes a number of build issues with poppler / pinentry /
python-pyqt and Qt itself on various architectures, so lets revert it for
now and rework it for the 2015.08 cycle.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agoRevert "qt: QT_COORD_TYPE_DOUBLE should only be set on soft float"
Peter Korsgaard [Tue, 5 May 2015 15:06:13 +0000 (17:06 +0200)]
Revert "qt: QT_COORD_TYPE_DOUBLE should only be set on soft float"

This reverts commit e07ec136ee3dd4bf16b18571623ac57f99136faa.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agodocs/website/news.html: add 2015.05-rc1 announcement link
Peter Korsgaard [Mon, 4 May 2015 20:39:48 +0000 (22:39 +0200)]
docs/website/news.html: add 2015.05-rc1 announcement link

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agoUpdate for 2015.05-rc1
Peter Korsgaard [Mon, 4 May 2015 19:25:41 +0000 (21:25 +0200)]
Update for 2015.05-rc1

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agowpa_supplicant: apply upstream security patches
Baruch Siach [Mon, 4 May 2015 18:04:40 +0000 (21:04 +0300)]
wpa_supplicant: apply upstream security patches

This commit adds patches for three different upstream security advisories. No
CVE numbers stated.

http://w1.fi/security/2015-2/wps-upnp-http-chunked-transfer-encoding.txt
http://w1.fi/security/2015-3/integer-underflow-in-ap-mode-wmm-action-frame.txt
http://w1.fi/security/2015-4/eap-pwd-missing-payload-length-validation.txt

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agohostapd: apply upstream security patches
Baruch Siach [Mon, 4 May 2015 18:04:39 +0000 (21:04 +0300)]
hostapd: apply upstream security patches

This commit adds patches for three different upstream security advisories. No
CVE numbers stated.

http://w1.fi/security/2015-2/wps-upnp-http-chunked-transfer-encoding.txt
http://w1.fi/security/2015-3/integer-underflow-in-ap-mode-wmm-action-frame.txt
http://w1.fi/security/2015-4/eap-pwd-missing-payload-length-validation.txt

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agoCHANGES: document external-deps / legal-info / source / source-checks changes
Peter Korsgaard [Mon, 4 May 2015 18:44:02 +0000 (20:44 +0200)]
CHANGES: document external-deps / legal-info / source / source-checks changes

And fixup indentation for version/patch dependencies section.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>