buildroot.git
8 years agopackage/skeleton: parameterise the symlinks-or-mkdir macro
Yann E. MORIN [Thu, 26 Nov 2015 22:13:40 +0000 (23:13 +0100)]
package/skeleton: parameterise the symlinks-or-mkdir macro

currently, we only make the merged symlinks or non-merged mkdirs in the
target directory. This is fine, as long as one does not run gdb.

However, as soon as one wants to run gdbserver on the target,
gdb will only search for libraries in /lib in the sysroot.

In preparation for a patch to fix that, make the symlink-or-mkdir macro
a function that takes as parameter the base directory where to create
symlinks or mkdir in.

Move the function declarations out of the custom/non-custom skeleton
conditional block, so they are always available.

Reported-by: Pieterjan Camerlynck <pieterjan.camerlynck@gmail.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Pieterjan Camerlynck <pieterjan.camerlynck@gmail.com>
Cc: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
Cc: Peter Korsgaard <jacmet@uclibc.org>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
8 years agoopencv: use the same logic as opencv3 for gstreamer support
Vicente Olivert Riera [Mon, 23 Nov 2015 12:54:32 +0000 (12:54 +0000)]
opencv: use the same logic as opencv3 for gstreamer support

The logic for enabling gstreamer support in opencv is not correct. We
select gstreamer-0.10 packages but then we enable gstreamer1 support in
the opencv.mk file. opencv3 has the correct logic, so let's use it in
opencv as well.

Fixes:

  http://autobuild.buildroot.net/results/f6d/f6d0a4ffe347cbb868998856aca674ba8bc2e281/

Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
8 years agopackage/minidlna/S60minidlnad: add force-reload to rebuild DB
Benoît Thébaudeau [Fri, 21 Aug 2015 17:55:18 +0000 (19:55 +0200)]
package/minidlna/S60minidlnad: add force-reload to rebuild DB

Add a force-reload operation that restarts minidlnad and makes it
rebuild its database. This is what Debian does, and this is useful when
media_dir is changed in the configuration file or when inotify can not
detect changes inside the media directories (e.g. in case of a mount).

Signed-off-by: Benoît Thébaudeau <benoit@wsystem.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agodcron: startup fails with setpgid: Operation not permitted
Dale Ghent [Thu, 13 Aug 2015 19:33:56 +0000 (19:33 +0000)]
dcron: startup fails with setpgid: Operation not permitted

Signed-off-by: Dale Ghent <daleg@omniti.com>
Reviewed-by: "Maxime Hadjinlian" <maxime.hadjinlian@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agodocs/website: fix invalid links to the mailing list page
Thomas Petazzoni [Sat, 28 Nov 2015 17:14:45 +0000 (18:14 +0100)]
docs/website: fix invalid links to the mailing list page

As noticed by Peter Korsgaard, all the links to links.html are broken,
they should point to support.html instead.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agorubix: add a hash file
Vicente Olivert Riera [Wed, 25 Nov 2015 12:17:59 +0000 (12:17 +0000)]
rubix: add a hash file

Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agodocs/website: fix invalid link
Thomas Petazzoni [Sat, 28 Nov 2015 13:54:07 +0000 (14:54 +0100)]
docs/website: fix invalid link

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agopackage/autossh: really fix the path to ssh
Yann E. MORIN [Fri, 27 Nov 2015 22:20:03 +0000 (23:20 +0100)]
package/autossh: really fix the path to ssh

The ./configure script is not up-to-date with what is in configure.ac,
which prevents --with-ssh from working properly.

So, we autoreconfigure autossh, which fixes the issue.

Note however that this is not really an autotools package, since it only
uses autoconf and not automake. However, making it a generic pacakge is
not trivial, since autossh really wants config.h as generated by
./configure. Using the autotools infra in this case helps us easily
autoreconfiguring without to manual depend on all the autotools-relates
host packages.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agoespeak: fix build on sparc64
Thomas Petazzoni [Fri, 27 Nov 2015 14:24:21 +0000 (15:24 +0100)]
espeak: fix build on sparc64

sparc64 needs object files to be built with -fPIC in order to be
usable in shared libraries, otherwise the shared library cannot be
created.

Fixes:

  http://autobuild.buildroot.org/results/8b8/8b894f0bd42c18e7cda98c15480757f10d743423/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
8 years agopackage/gstreamer1: add symlink to gstconfig.h in legacy location
Yann E. MORIN [Fri, 27 Nov 2015 13:58:56 +0000 (14:58 +0100)]
package/gstreamer1: add symlink to gstconfig.h in legacy location

After version 1.4 (the previous one packaged in Buildroot), gstreamer
has changed the location where it installs its gstconfig.h, because it
is architecture-dependent, see upstream commit:
    http://cgit.freedesktop.org/gstreamer/gstreamer/commit/?id=444ceb068424122ceba46d8cc48a53b8b32c3cf5

However, this causes build failures in some pcakges (at least FreeRDP
is known to break) because either they do not use pkg-config (bad!) or,
like FreeRDP, have a broken buildsystem and have not yet fixed their
build failures [0].

In Buildroot, we do not really care about architecture-dependent
locatios, because we only build for one architecture. So, the legacy
location of that header is not problematic to us.

Create a symbolic link to gstconfig.h in its legacy location.

Fixes numerous FreeRDP build failures:
    http://autobuild.buildroot.org/results/438/4384ab572bdcb1d148bcdae5a67d8b0bf26d3049
    http://autobuild.buildroot.org/results/b00/b0060f16c7464c240bc7d3b0ff17c9cb311fe30d
    http://autobuild.buildroot.org/results/cad/cadb2fb90ce66b1fa3051a6fcfb7c8142f420c31
    ...

[0] FreeRDP does have a commit supposedly fixing the build with "newer"
gstreamer versions:
    https://github.com/FreeRDP/FreeRDP/commit/bea27fd919b64ee8d97996409e279e1e83d13594

but it makes the whole build completely fail, as it does not even
detect gstreamer anymore. Sigh... :-(

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
8 years agorpi-userland: fix musl compile
Sergio Prado [Fri, 27 Nov 2015 17:37:37 +0000 (15:37 -0200)]
rpi-userland: fix musl compile

When building with musl, the build fails with a conflicting type
qualifier error.

This is because musl defines stdout and stderr as const pointers
and RaspiVidYUV.c adds an extern declaration as normal pointers.

Since this declaration already comes in on the header (stdio.h),
there is no need to add an extern declaration, so removes it.

Fixes:

http://autobuild.buildroot.net/results/27bd6f32cecdb4e7c95247c1feaf2732c1d8e3fa

Signed-off-by: Sergio Prado <sergio.prado@e-labworks.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
8 years agolibsoc: fix MUSL build issue
Yegor Yefremov [Fri, 27 Nov 2015 15:31:21 +0000 (16:31 +0100)]
libsoc: fix MUSL build issue

Without <linux/ioctl.h> include compiler cannot find _IOC_SIZEBITS
macro, when using MUSL C library.

Fixes:
  http://autobuild.buildroot.net/results/c86/c86fc75212df75906222772854c283396bb880d2/

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
8 years agomongrel2: disable polarssl assembly as we do in the polarssl package
Vicente Olivert Riera [Fri, 27 Nov 2015 13:54:28 +0000 (13:54 +0000)]
mongrel2: disable polarssl assembly as we do in the polarssl package

Fixes:
http://autobuild.buildroot.net/results/a92292a1defd441938d3de6c5049473d520ebc4e/
http://autobuild.buildroot.net/results/f3db555dc29e0e0e87762fcace913853ffe2b176/

mongrel2 bundles polarssl so it has the same problem as the polarssl
with the assembly optimization, so let's use the same solution here.

Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
8 years agoCHANGES: update with recent changes
Peter Korsgaard [Fri, 27 Nov 2015 15:21:18 +0000 (16:21 +0100)]
CHANGES: update with recent changes

Should have been part of -rc3, but seems like I forgot to save the file :/

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
8 years agopolarssl: disable assembly for MIPS R6
Vicente Olivert Riera [Fri, 27 Nov 2015 10:37:18 +0000 (10:37 +0000)]
polarssl: disable assembly for MIPS R6

Fixes:
http://autobuild.buildroot.net/results/c34/c343c68d3e0dae4a7ecd59693298a9622bc56662/

Is not yet supported and the compilation will fail like this:

[  4%] Building C object library/CMakeFiles/polarssl.dir/bignum.c.o
/tmp/ccLDxl9G.s: Assembler messages:
/tmp/ccLDxl9G.s:92: Error: opcode not supported on this processor:
mips32r6 (mips32r6) `multu $13,$14'
/tmp/ccLDxl9G.s:93: Error: opcode not supported on this processor:
mips32r6 (mips32r6) `addi $10,$10,4'
/tmp/ccLDxl9G.s:94: Error: opcode not supported on this processor:
mips32r6 (mips32r6) `mflo $14'
/tmp/ccLDxl9G.s:95: Error: opcode not supported on this processor:
mips32r6 (mips32r6) `mfhi $9'

[...]

Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
8 years agogcc: fix incorrect handling of the comparison arguments
Lada Trimasova [Thu, 26 Nov 2015 17:21:38 +0000 (20:21 +0300)]
gcc: fix incorrect handling of the comparison arguments

This patch fixes compiler error during libbroadvoice build.
The comparison arguments where not correctly handled.
The fix is done in development tree:
https://github.com/foss-for-synopsys-dwc-arc-processors/gcc/commit/b4035128ba8f8bbbf9527f54f261a87b304ca4c5
and will be a part of the next release of ARC GNU tools.
Once that new release happens this patch must be removed.

Fixes:
http://autobuild.buildroot.net/results/bea/beace68a19382b43370c798dcf7d2ef412f9d75e/

Signed-off-by: Lada Trimasova <ltrimas@synopsys.com>
Cc: Alexey Brodkin <abrodkin@synopsys.com>
Cc: Anton Kolesov <akolesov@synopsys.com>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: Peter Korsgaard <peter@korsgaard.com>
Acked-by: Alexey Brodkin <abrodkin@synopsys.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
8 years agodocs: images: re-add github image
Peter Korsgaard [Thu, 26 Nov 2015 22:25:11 +0000 (23:25 +0100)]
docs: images: re-add github image

This got removed with the addition of the new website, but it is used by the
manual so it no longer builds.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
8 years agoUpdate for 2015.11-rc3
Peter Korsgaard [Thu, 26 Nov 2015 22:06:02 +0000 (23:06 +0100)]
Update for 2015.11-rc3

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
8 years agonews.html: fix typo in 2015.05-rc3 link
Peter Korsgaard [Thu, 26 Nov 2015 21:54:41 +0000 (22:54 +0100)]
news.html: fix typo in 2015.05-rc3 link

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
8 years agoconntrack-tools: add patch to fix build with musl
Rodrigo Rebello [Mon, 23 Nov 2015 05:28:10 +0000 (03:28 -0200)]
conntrack-tools: add patch to fix build with musl

The conntrack-tools sources use the GNU version of 'struct tcphdr',
which is not exposed by the musl headers unless _GNU_SOURCE is defined.

The included patch adds the missing definition to 'src/helpers/rpc.c'.

Fixes:

  http://autobuild.buildroot.net/results/046/04613c47b9669c28cc3ff47c65607c23730ef691/
  http://autobuild.buildroot.net/results/520/520e8f327b9bd7eea59657bad702c35c632d115d/
  http://autobuild.buildroot.net/results/3d3/3d36403ba80089faea5dd06bc7e4414d593bbfc1/
  ...

Signed-off-by: Rodrigo Rebello <rprebello@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
8 years agogst-plugins-ugly: add legal info
Gustavo Zacarias [Thu, 19 Nov 2015 22:14:21 +0000 (19:14 -0300)]
gst-plugins-ugly: add legal info

Even though COPYING is LGPLv2.1+ many code files state v2+

Signed-off-by: Gustavo Zacarias <gustavo.zacarias@free-electrons.com>
Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
8 years agogst-plugins-bad: add legal info
Gustavo Zacarias [Thu, 19 Nov 2015 22:14:20 +0000 (19:14 -0300)]
gst-plugins-bad: add legal info

Even though COPYING.LIB is LGPLv2+ many code files state v2.1+

Signed-off-by: Gustavo Zacarias <gustavo.zacarias@free-electrons.com>
Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
8 years agogst-plugins-good: add legal info
Gustavo Zacarias [Thu, 19 Nov 2015 22:14:19 +0000 (19:14 -0300)]
gst-plugins-good: add legal info

Signed-off-by: Gustavo Zacarias <gustavo.zacarias@free-electrons.com>
Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
8 years agogst-plugins-base: add legal info
Gustavo Zacarias [Thu, 19 Nov 2015 22:14:18 +0000 (19:14 -0300)]
gst-plugins-base: add legal info

Signed-off-by: Gustavo Zacarias <gustavo.zacarias@free-electrons.com>
Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
8 years agogstreamer: add legal info
Gustavo Zacarias [Thu, 19 Nov 2015 22:14:17 +0000 (19:14 -0300)]
gstreamer: add legal info

Even though COPYING is LGPLv2+ many code files state v2.1+

Signed-off-by: Gustavo Zacarias <gustavo.zacarias@free-electrons.com>
Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
8 years agogstreamer: can optionally use libxml2
Gustavo Zacarias [Fri, 20 Nov 2015 13:06:51 +0000 (10:06 -0300)]
gstreamer: can optionally use libxml2

gstreamer can optionally build against libxml2, so account for it in
the dependencies.
Functionality seems somewhat reduced without it, an example being
misdetecting subtitle (.srt) files as subrip mime type instead of
subtitle itself.

A failed scenario would be:

$ gst-typefind-0.10 some.srt
some.srt - application/x-subrip

When built with libxml2:

$ gst-typefind-0.10 some.srt
some.srt - application/x-subtitle

This doesn't affect gstreamer 1.x since it dropped any use of libxml2.

Signed-off-by: Gustavo Zacarias <gustavo.zacarias@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
8 years agojimtcl: fix sparc64 compile
Waldemar Brodkorb [Mon, 23 Nov 2015 16:48:53 +0000 (17:48 +0100)]
jimtcl: fix sparc64 compile

It is general safe to use -fPIC for all architectures.
-fpic breaks sparc64 compile.

Generally gcc just optimize position independent code
for m68k, powerpc and sparc with -fpic.
The size differences are minimal, f.e. for powerpc:
   text    data     bss     dec     hex filename
 235983    5336     684  242003   3b153 output/target/usr/lib/libjim.0.75
 236255    8456     684  245395   3be93 output/target/usr/lib/libjim.so.0.75

So instead of keeping special settings for sparc64 it would be better
to always use -fPIC in general.

Runtime tested on Qemu ARM, MIPS, PPC and SPARC64.
Fixes:
http://autobuild.buildroot.net/results/98f391ad13f22828c022f185c0166daabdb4c1ad/

[Peter: tweak comment as suggested by Thomas]
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
8 years agojimtcl: fix broken symlinks
Waldemar Brodkorb [Mon, 23 Nov 2015 16:47:43 +0000 (17:47 +0100)]
jimtcl: fix broken symlinks

The created symlinks are wrong.

Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tested-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
8 years agocollectd: fix musl builds (ipc module)
Alex Suykov [Mon, 23 Nov 2015 11:12:42 +0000 (13:12 +0200)]
collectd: fix musl builds (ipc module)

src/ipc.c uses shm_info.used_ids which musl only provides when
_GNU_SOURCE is defined.

The issue has been fixed upstream, but the fix is not in their
latest 5.5.0 release. Adding their patch as a temporary fix
to be removed on the next version bump.

https://github.com/collectd/collectd/issues/1147
https://github.com/collectd/collectd/commit/3e3848349b753d78a0b1d19648fb394866856bda

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

Signed-off-by: Alex Suykov <alex.suykov@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
8 years agolocaledef: add a hash file
Vicente Olivert Riera [Wed, 25 Nov 2015 12:04:06 +0000 (12:04 +0000)]
localedef: add a hash file

Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
8 years agoqt5base: support OVERRIDE_SRCDIR
Peter Korsgaard [Tue, 24 Nov 2015 21:21:49 +0000 (22:21 +0100)]
qt5base: support OVERRIDE_SRCDIR

With OVERRIDE_SRCDIR we don't apply any of the qt5base patches, but the
custom specs files are needed to be able to build - So install these in the
configure step instead of having them as a patch.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
8 years agolibethumb: add patch to fix static builds
Peter Korsgaard [Thu, 26 Nov 2015 21:11:06 +0000 (22:11 +0100)]
libethumb: add patch to fix static builds

Fixes:
http://autobuild.buildroot.net/results/060/060c4b7303976994a13ecd286e936fee59c7a095/
http://autobuild.buildroot.net/results/d01/d0111a8524f74c6bc596d85289addbed0e77f8c6/
http://autobuild.buildroot.net/results/147/1471f8a4838369ed825da406f88aae425465e827/
http://autobuild.buildroot.net/results/a35/a35a39fee7c24abe0bbe12d71bebf92005367391/

And many more.

Ethumb includes dlfcn.h even though it isn't used, breaking builds with
purely static toolchains.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
8 years agostrongswan: bump to version 5.3.5
Gustavo Zacarias [Thu, 26 Nov 2015 18:53:15 +0000 (15:53 -0300)]
strongswan: bump to version 5.3.5

Fixes only one connection regresssion in 5.3.4, see
https://wiki.strongswan.org/issues/1213

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
8 years agolibgsasl: fix auto dependencies
Gustavo Zacarias [Thu, 26 Nov 2015 17:47:01 +0000 (14:47 -0300)]
libgsasl: fix auto dependencies

IDN can be picked up from the distro installation so use a prefix when
it's available or otherwise just disable it, fixes:
http://autobuild.buildroot.org/results/5d9/5d9baf528c47c5167ec8d2a6941cb06b4ca761ca/

Also disable libgcrypt support which wasn't accounted for and doesn't
seem to work either to possibly avoid the same problem.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
8 years agoquagga: fix static linking
Thomas Petazzoni [Thu, 26 Nov 2015 15:24:59 +0000 (16:24 +0100)]
quagga: fix static linking

This commit adds a patch to quagga's configure.ac to fix a library
ordering problem that is causing a build failure in static linking
scenario.

Fixes:

  http://autobuild.buildroot.org/results/c08/c086f3128232af70d24fd5faf9282ce91d6488ef/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
8 years agodropbear: bump version to 2015.70
Peter Korsgaard [Thu, 26 Nov 2015 15:29:55 +0000 (16:29 +0100)]
dropbear: bump version to 2015.70

Bugfix release, fixes password auth support detection.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agopackage/audiofile: add patch to fix static linking issue
Jörg Krause [Tue, 24 Nov 2015 21:22:46 +0000 (22:22 +0100)]
package/audiofile: add patch to fix static linking issue

Static linking userspace programs such as MPD against libaudiofile fails if
FLAC is available, because libaudiofile is linked against FLAC, but this isn't
expressed in the pkg-config file:

[..]
arm-buildroot-linux-uclibcgnueabi/sysroot/usr/lib/libaudiofile.a(FLAC.o): In function `FLACDecoder::reset2()':
FLAC.cpp:(.text+0x58): undefined reference to `FLAC__stream_decoder_seek_absolute'
/home/buildroot/build/instance-1/output/host/usr/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/lib/libaudiofile.a(FLAC.o): In function `FLACEncoder::sync2()':
FLAC.cpp:(.text+0x88): undefined reference to `FLAC__stream_encoder_finish'
/home/buildroot/build/instance-1/output/host/usr/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/lib/libaudiofile.a(FLAC.o): In function `FLACDecoder::~FLACDecoder()':
FLAC.cpp:(.text+0xc4): undefined reference to `FLAC__stream_decoder_delete'
/home/buildroot/build/instance-1/output/host/usr/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/lib/libaudiofile.a(FLAC.o): In function `FLACEncoder::~FLACEncoder()':
FLAC.cpp:(.text+0x164): undefined reference to `FLAC__stream_encoder_delete'
/home/buildroot/build/instance-1/output/host/usr/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/lib/libaudiofile.a(FLAC.o): In function `FLACDecoder::runPull()':
[..]

The Libs.private field is specifically designed for such usage:

>From pkg-config documentation:

  Libs.private:

    This line should list any private libraries in use.  Private
    libraries are libraries which are not exposed through your
    library, but are needed in the case of static linking.

Therefore, this patch adds a reference to FLAC as well as to lcov in the
Libs.private field of the pkg-config file.

Patch status: Pending
https://github.com/mpruett/audiofile/pull/26

Fixes:
http://autobuild.buildroot.net/results/e95/e959e703a8db81032da27bece295c121e53d830d/
http://autobuild.buildroot.net/results/10b/10bd00209f098e8782016355cb2f46d1d3e7d3a3/

Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agolibgtk3: mark wayland support as broken
Gustavo Zacarias [Fri, 20 Nov 2015 16:00:50 +0000 (13:00 -0300)]
libgtk3: mark wayland support as broken

As discussed on the list it requires a matching XDG runtime API level
which is currently not the case (wayland/weston newer than libgtk3 at
the moment). It doesn't normall exhibit build failures, but it fails at
runtime regardless.

Also fixes:
http://autobuild.buildroot.net/results/aae/aae4266c16189b295cc7ceb60000c504ebb60752/

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agokompexsqlite: needs threads and wchar
Gustavo Zacarias [Fri, 20 Nov 2015 15:19:07 +0000 (12:19 -0300)]
kompexsqlite: needs threads and wchar

Wchar is used by the wrapper, fixes:
http://autobuild.buildroot.net/results/763/763d9aff86085b67077fc665e462cee81962246d/

Threads can be disabled by the sqlite build system, but since
kompexsqlite doesn't use the sqlite buildsystem and only uses a bundled
version it falls back to the default for *nixes (enabled), fixes:
http://autobuild.buildroot.net/results/c0b/c0b65be99603a2c2f07a38078f6b5622353915ca/

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agodropbear: bump to version 2015.69
Gustavo Zacarias [Wed, 25 Nov 2015 22:05:15 +0000 (19:05 -0300)]
dropbear: bump to version 2015.69

Fixes a port-forwarding regression in 2015.68

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agosqlite: add license file
Peter Rosin [Wed, 25 Nov 2015 12:29:11 +0000 (13:29 +0100)]
sqlite: add license file

Signed-off-by: Peter Rosin <peda@axentia.se>
Acked-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agoguile: needs strtol_l, not available for musl
Peter Korsgaard [Wed, 25 Nov 2015 22:19:35 +0000 (23:19 +0100)]
guile: needs strtol_l, not available for musl

Fixes:
http://autobuild.buildroot.net/results/861/861c3038dff03ded6d97b8bb61ba8754dc21c7f8/
http://autobuild.buildroot.net/results/cd3/cd3377585e4fa5c7457c50e827d96adeceaac04b/
http://autobuild.buildroot.net/results/b45/b453c419292dba39aaa309ea057e56662e9af2f6/

Musl doesn't implement strtol_l, which is used by guile.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agoguile: use libltdl, needs dynamic libraries
Peter Korsgaard [Wed, 25 Nov 2015 22:10:40 +0000 (23:10 +0100)]
guile: use libltdl, needs dynamic libraries

Fixes:
http://autobuild.buildroot.net/results/8d0/8d0e8ab0e7a83fda9ee65f973b5b749b246f1c1a/
http://autobuild.buildroot.net/results/381/38137ccf29023f38c540483a6655c4b8d6778abd/
http://autobuild.buildroot.net/results/1d8/1d864588f71b8c13a67781cf91ad058c74eb7abc/

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agoc-ares: define random file
Gustavo Zacarias [Wed, 25 Nov 2015 12:44:13 +0000 (09:44 -0300)]
c-ares: define random file

When cross-compiling it assumes there's none, however that's not true.
Specify the usual /dev/urandom for this usage, it's used for random key
generation on startup.

Signed-off-by: Gustavo Zacarias <gustavo.zacarias@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agomacchanger: add license file
Peter Rosin [Wed, 25 Nov 2015 12:45:34 +0000 (13:45 +0100)]
macchanger: add license file

[Peter: use the "main" source file, main.c]
Signed-off-by: Peter Rosin <peda@axentia.se>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agopackage/autossh: do not look for the host's ssh command
Yann E. MORIN [Wed, 25 Nov 2015 21:44:58 +0000 (22:44 +0100)]
package/autossh: do not look for the host's ssh command

autossh looks for 'ssh' in the PATH, which may not exist on a build
machine.

Fixes a private autobuild failure (soon to go public).

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Peter Korsgaard <jacmet@uclibc.org>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agospidev_test: add a hash file
Vicente Olivert Riera [Wed, 25 Nov 2015 15:16:53 +0000 (15:16 +0000)]
spidev_test: add a hash file

Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agolttng-tools: fix build with gcc 5.x
Thomas Petazzoni [Wed, 25 Nov 2015 17:15:03 +0000 (18:15 +0100)]
lttng-tools: fix build with gcc 5.x

This commit backports an upstream commit from lttng-tools to solve gcc
5.x related build issues.

Fixes:

  http://autobuild.buildroot.org/results/65e/65e0fbddfee14aff84a4ca59cd7315e1e250b55b/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agoiodine: fix build issue with musl
Peter Korsgaard [Wed, 25 Nov 2015 21:01:43 +0000 (22:01 +0100)]
iodine: fix build issue with musl

Fxies:
http://autobuild.buildroot.net/results/1ab/1ab4f284c9cfc2a6a42aebc6da12a766b09acc4c/
http://autobuild.buildroot.net/results/a39/a39603a143821eb4e07af42ee4ee44fdde02f9e0/
http://autobuild.buildroot.net/results/384/3847e8ef28e1527764eee18224f361115aa7063b/
http://autobuild.buildroot.net/results/899/899f8844291d384cde96475e7a9ee98b69f8c803/

Iodine contains a local implementation of daemon(3) for older systems,
unless __GLIBC__ is defined.  Musl does provide it, but unlike uClibc it
doesn't define __GLIBC__.  Work around it by pretending to be glibc as we
otherwise end up with symbol conflicts.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agoiodine: use correct CFLAGS/LDFLAGS
Peter Korsgaard [Wed, 25 Nov 2015 20:38:44 +0000 (21:38 +0100)]
iodine: use correct CFLAGS/LDFLAGS

The iodine build system correctly appends the needed CFLAGS/LDFLAGS to what
was passed in the environment, so use TARGET_CONFIGURE_OPTS to ensure our
flags are passed.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agogmp: disable assembly for MIPS r6 ISA
Gustavo Zacarias [Tue, 24 Nov 2015 13:32:27 +0000 (10:32 -0300)]
gmp: disable assembly for MIPS r6 ISA

It's still not supported/implemented, fixes:
http://autobuild.buildroot.net/results/d06/d0686b3e7b8884f93034d4ea4b79fa8590ffa221/

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
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 agopcre: security bump to version 8.38
Gustavo Zacarias [Tue, 24 Nov 2015 21:57:12 +0000 (18:57 -0300)]
pcre: security bump to version 8.38

Fixes:
https://blog.fuzzing-project.org/29-Heap-Overflow-in-PCRE.html

Signed-off-by: Gustavo Zacarias <gustavo.zacarias@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agogstreamer1: fix unaligned detection for nios2
Peter Korsgaard [Tue, 24 Nov 2015 21:43:27 +0000 (22:43 +0100)]
gstreamer1: fix unaligned detection for nios2

Fixes:
http://autobuild.buildroot.net/results/cc6/cc6a6cab4f8c405941a71c6665a7dc2e34c39cb9/
http://autobuild.buildroot.net/results/2a3/2a350ac8be87a25d7f87f240943c816932f80a14/

Similar to how we do it for arc/xtensa/microblaze.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agogstreamer: fix unaligned detection for nios2
Peter Korsgaard [Tue, 24 Nov 2015 21:44:47 +0000 (22:44 +0100)]
gstreamer: fix unaligned detection for nios2

Fixes:
http://autobuild.buildroot.net/results/874/874c4da3ca7d27551f580994e016bcbd3597a107/
http://autobuild.buildroot.net/results/f8b/f8ba30408b5ce15022792e823a0c8fd3a004fb31/
http://autobuild.buildroot.net/results/bf2/bf2f374357ed7a36f072d89ed0687c942eb1ee6d/
http://autobuild.buildroot.net/results/14a/14aaac32b92939957a9f39ac2ba8a949f9ddd22a/

Similar to how we do it for arc/xtensa/microblaze.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agolibfreeimage: fix build issue with gcc 5.x
Peter Korsgaard [Tue, 24 Nov 2015 20:29:09 +0000 (21:29 +0100)]
libfreeimage: fix build issue with gcc 5.x

Fixes:
http://autobuild.buildroot.net/results/fe9/fe9c5ee9cdc52c48df5efe7560ccd5a0d3cde154/
http://autobuild.buildroot.net/results/358/3580d520da6f8d8f4ffeffcd2b969ebb0851ad37/
http://autobuild.buildroot.net/results/0cb/0cb2f0c69301c7a85a354c435da245cd904533fb/
http://autobuild.buildroot.net/results/52c/52c2967015aa79843db05e901a1563447a4029b2/

gcc 5.x gets confused by the string literals used in the inline assembly in
the files from the embedded libwebp library.  This issue is already fixed in
upstream libwebp, but that fix is not directly applicable to the tweaked version
embedded in libfreeimage.

I haven't been able to find a public VCS for libfreeimage, but the issue has
been discussed on the freeimage list:

http://sourceforge.net/p/freeimage/discussion/36110/thread/605ef8e4/

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agoopenntpd: fix linking problem when building statically
Vicente Olivert Riera [Mon, 7 Sep 2015 08:35:03 +0000 (09:35 +0100)]
openntpd: fix linking problem when building statically

The problem looks like this:

  CCLD     ntpd
../compat/.libs/libcompat.a(libcompat_la-arc4random.o): In function
`arc4random':
/br/output/build/openntpd-5.7p4/compat/arc4random.c:183: undefined
reference to `pthread_mutex_lock'
/br/output/build/openntpd-5.7p4/compat/arc4random.c:185: undefined
reference to `pthread_mutex_unlock'
../compat/.libs/libcompat.a(libcompat_la-arc4random.o): In function
`arc4random_buf':
/br/output/build/openntpd-5.7p4/compat/arc4random.c:192: undefined
reference to `pthread_mutex_lock'
/br/output/build/openntpd-5.7p4/compat/arc4random.c:194: undefined
reference to `pthread_mutex_unlock'
/br/output/build/openntpd-5.7p4/compat/arc4random.c:194: undefined
reference to `pthread_mutex_unlock'
collect2: error: ld returned 1 exit status

Adding -pthread to CFLAGS fixes the problem.

Fixes:

  http://autobuild.buildroot.net/results/b12/b120b6da87ae4eb355d06f2fd8f4fc8050410897/

[Peter: unconditionally pass in CFLAGS, add comment about why]
Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agodocs/website: New website
Angelo Compagnucci [Tue, 13 Oct 2015 19:03:29 +0000 (21:03 +0200)]
docs/website: New website

This patch introduces a new buildroot website based on a modern flat
layout inspired by material design.

Each page of the old website is converted to the new css/layout, the
big bump is in main page which is completely rewritten. Content of
the old website is copied more or less verbatim, planning to add more
content in the future.

Signed-off-by: Angelo Compagnucci <angelo.compagnucci@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agoRevert "openssl: enable parallel build and installation"
Yann E. MORIN [Mon, 23 Nov 2015 16:23:57 +0000 (17:23 +0100)]
Revert "openssl: enable parallel build and installation"

This reverts commit 55e4ec054c21b9164e10c323a5f0afff1deb1d67.

There are still build failures in parallel builds:
    http://autobuild.buildroot.org/results/9a0/9a0fc1064010a658155e6a18ec72e0e3c58ec7f6/
    http://autobuild.buildroot.org/results/c28/c28064f383da1f577bd9227d004f1939daf4579f/
    http://autobuild.buildroot.org/results/218/2180b9d900b27103acc92a2932f7ffa560b04831/
    and so on...

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Ryan Barnett <rjbarnet@rockwellcollins.com>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agofastd: add upstream patch to fix build with musl
Rodrigo Rebello [Sun, 22 Nov 2015 13:40:26 +0000 (11:40 -0200)]
fastd: add upstream patch to fix build with musl

The missing 'sys/queue.h' issue when building with musl has been solved
by an upstream commit which eliminates the dependency on
'net/if_ether.h' and, consequently, 'sys/queue.h' (needed on OpenBSD
since 'net/if_ether.h' uses LIST_* definitions).

As usual, the included patch can be dropped in the future when a new
version of this package gets released and integrated into Buildroot.

Fixes:
  http://autobuild.buildroot.net/results/14e/14e291e22b8c8a9c590f0c6ef4316f8ab0aa1fff/
  http://autobuild.buildroot.net/results/ed4/ed4437bed01138380cd42c0dc943cd3ec85e26f0/
  http://autobuild.buildroot.net/results/ad2/ad226962413dece4fee07143a2bcfe07c44d55b6/
  ...

Signed-off-by: Rodrigo Rebello <rprebello@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agopackage/rpi-userland: bump version
Yann E. MORIN [Sun, 22 Nov 2015 14:03:34 +0000 (15:03 +0100)]
package/rpi-userland: bump version

Fixes build with glibc-2.22.

Also fixes hard-to-trigger deadlock in highly threaded case, and fix
libraries dependencies.

Misc minor improvements in test programs as well.

Fixes #8446.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: gamadril.dev@gmail.com
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agooprofile: don't install shared library in BR2_STATIC_LIBS=y configs
Thomas Petazzoni [Sun, 22 Nov 2015 20:29:47 +0000 (21:29 +0100)]
oprofile: don't install shared library in BR2_STATIC_LIBS=y configs

When building with BR2_STATIC_LIBS=y, no shared library gets built, so
the installation of libopagent.so* fails. This commit gets rid of this
installation step when BR2_STATIC_LIBS=y.

Fixes:

  http://autobuild.buildroot.net/results/2a6604622392a3f127fb61505e2751a88a90af7b/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agoconfigs/arm_foundationv8: fix build and update documentation
Thomas Petazzoni [Sun, 22 Nov 2015 19:11:51 +0000 (20:11 +0100)]
configs/arm_foundationv8: fix build and update documentation

The arm_foundationv8_defconfig currently doesn't build because it uses
an external AArch64 toolchain that has been updated (Linaro toolchain)
and is now based on gcc 5.x. Unfortunately, Linux 3.13 is too old to
be built with gcc 5.x.

As a minimal fix to make this defconfig build again, we switch to use
the internal toolchain backend. At the time this defconfig was
introduced, there was no support for AArch64 in the internal toolchain
backend, but now that it is available, there is no reason to not use
it. This makes the defconfig also more consistent with the other
defconfigs.

Obviously, the kernel headers used to build the toolchain are set to
the fixed version 3.13, so that they match the kernel being used.

While we're at it, the readme.txt file corresponding to this defconfig
is updated. Runtime testing has been performed with the latest version
of the ARM Foundation model.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agopackage/zmqpp: add patch to fix build issue
Jörg Krause [Fri, 20 Nov 2015 20:54:40 +0000 (21:54 +0100)]
package/zmqpp: add patch to fix build issue

Add a patch from upstream to fix build error:
  error: no match for 'operator<<'

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

Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tested-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agoapitrace: do not use bundled version of libpng
Jérôme Pouiller [Sat, 21 Nov 2015 11:09:36 +0000 (12:09 +0100)]
apitrace: do not use bundled version of libpng

In case libpng is not found apitrace its own version of libpng. However
current bundled version (1.1.16) is impacted by
https://sourceforge.net/p/libpng/bugs/230/. We simplify problem by
forcing use of external libpng.

Notice this patch also impact use of zlib. Apitrace also use its own
version of zlib if none was found. Since we select libpng, external
zlib is also selected.

Fix:
  http://autobuild.buildroot.net/results/ac790191127cf4d8b19d0c7c640981264772f503/

Signed-off-by: Jérôme Pouiller <jezz@sysmic.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agobullet: disable on microblaze
Arnout Vandecappelle [Sat, 21 Nov 2015 21:10:07 +0000 (22:10 +0100)]
bullet: disable on microblaze

gcc doesn't finish compiling btSoftBody.cpp when optimization is
enabled.

Fixes:
http://autobuild.buildroot.net/results/6e4a9ede477b031f47f7e271c38f67f432a3573c
http://autobuild.buildroot.net/results/7dc4ab759dd3b1e3e03fe52c78e31327340bf8c9
http://autobuild.buildroot.net/results/637bae8b2be6c4c64f4f7c661cc8d4606b553538

[Thomas: add reference to gcc bug.]

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agopackage/mpd: fix static build issue with alsa
Jörg Krause [Sat, 21 Nov 2015 23:16:20 +0000 (00:16 +0100)]
package/mpd: fix static build issue with alsa

mpd forgets to link the archive libmixer_plugins.a against libasound leading
to undefined references in a static context.

Add a patch sent upstream to fix:
http://autobuild.buildroot.net/results/f10/f10c6ea2d29bbcef8f33fc9ba1430e99edca895d/
http://autobuild.buildroot.net/results/312/31212c484f452fe4ea6ae084d3edefc4580830d8/

Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agogpsd: add work-around and re-enable for microblaze
Sergio Prado [Sun, 22 Nov 2015 12:24:00 +0000 (10:24 -0200)]
gpsd: add work-around and re-enable for microblaze

Fix (works around) bug #6872
https://bugs.busybox.net/show_bug.cgi?id=6872

The gpsd package was disabled due to an internal compiler error for
the microblaze architecture in the following commit:
http://git.buildroot.net/buildroot/commit/?id=d517415bcda380336f4a27bf248cef4d81791c9e

The problem is due to an specific GCC optimization flag
(-fexpensive-optimizations), so disabling it we can work around this
problem and compile gpsd for the microblaze architecture.

Signed-off-by: Sergio Prado <sergio.prado@e-labworks.com>
Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agolibxml2: security bump to version 2.9.3
Danomi Manchego [Sun, 22 Nov 2015 01:38:28 +0000 (20:38 -0500)]
libxml2: security bump to version 2.9.3

- Fixes:
  - CVE-2015-5312 - Another entity expansion issue
  - CVE-2015-7497 - Avoid an heap buffer overflow in xmlDictComputeFastQKey
  - CVE-2015-7500 - Fix memory access error due to incorrect entities boundaries
  - CVE-2015-8242 - Buffer overead with HTML parser in push mode

- Incorporates upstreamed patches as well, which also fixed:
  - CVE-2015-1819 - The xmlreader in libxml allows remote attackers to cause
    a denial of service (memory consumption) via crafted XML data, related
    to an XML Entity Expansion (XEE) attack.
  - CVE-2015-7941 - out-of-bounds memory access.
  - CVE-2015-7942 - heap-buffer-overflow in xmlParseConditionalSections.
  - CVE-2015-8035 - DoS via crafted xz file.

Signed-off-by: Danomi Manchego <danomimanchego123@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agopackage/yajl: add patch to fix static build issue
Jörg Krause [Sat, 21 Nov 2015 19:22:06 +0000 (20:22 +0100)]
package/yajl: add patch to fix static build issue

mpd's plugin soundcloud requires yajl. In static build context yajl library is
named yajl_s so linking against yajl fails:
  /bin/ld: cannot find -lyajl

Use a pull request patch [1] to let the shared and the static library
have the same name. They will be differentiated by the extension (.so or .a).

Fixes:
http://autobuild.buildroot.net/results/5ac/5acba9b0ed852512fc88e83973a3b5389e6d54be/
http://autobuild.buildroot.net/results/739/73934ad67efa121fedeaa03fdad290aa63f1485e/

[1] https://github.com/lloyd/yajl/pull/174

Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agopackage/yajl: add hash
Jörg Krause [Sat, 21 Nov 2015 19:22:05 +0000 (20:22 +0100)]
package/yajl: add hash

Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agoustr: fix build issue with GCC5
Sergio Prado [Sat, 21 Nov 2015 19:28:28 +0000 (17:28 -0200)]
ustr: fix build issue with GCC5

This patch fixes the following error messages:

ustr-cmp-code-so-dbg.o: In function `ustr_pool_make_subpool':
ustr-cmp-dbg-code.c:(.text+0x0): multiple definition of `ustr_pool_make_subpool'
ustr-b-code-so-dbg.o:ustr-b-dbg-code.c:(.text+0x0): first defined here
ustr-cmp-code-so-dbg.o: In function `ustr_pool_clear':
ustr-cmp-dbg-code.c:(.text+0x44): multiple definition of `ustr_pool_clear'
ustr-b-code-so-dbg.o:ustr-b-dbg-code.c:(.text+0x44): first defined here
ustr-cmp-code-so-dbg.o: In function `ustr_pool_free':
...

That's because the application assumes gnu89 behaviour of "inline" and
"extern inline", but gcc5 defaults to gnu11. So we need to force gnu89
in the compilation flags.

Fixes:
http://autobuild.buildroot.org/results/fde02ae2883a058b98e57ba087466d820ab1a5eb/
http://autobuild.buildroot.org/results/e04849c31e2a2528282ce6cdcf69aa10076d721d/
http://autobuild.buildroot.org/results/7b3295e711fc51907c311adb63f0b7d06a90a7b9/
...and many others.

Signed-off-by: Sergio Prado <sergio.prado@e-labworks.com>
Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agopackage/zmqpp: add hash file
Jörg Krause [Fri, 20 Nov 2015 20:54:39 +0000 (21:54 +0100)]
package/zmqpp: add hash file

Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agomongrel2: add upstream patch to fix symbol conflict
Rodrigo Rebello [Fri, 20 Nov 2015 22:48:15 +0000 (20:48 -0200)]
mongrel2: add upstream patch to fix symbol conflict

The symbol 'max_align_t', defined in the mongrel2 sources
(src/mem/align.h), is also defined in one of the standard headers in
some toolchains (the ones based on GCC 5+ apparently).

This conflict has been solved upstream, and a new version (1.10.0)
containing the fix has been released already, so this backported patch
may be dropped in the future when mongrel2 gets a version bump.

Fixes:

  http://autobuild.buildroot.net/results/b7f/b7f86bdda094de96633e9921e0e5895eadc89217/
  http://autobuild.buildroot.net/results/f62/f623703aa6d7992b67d305331734e4ed0c7b2be4/
  http://autobuild.buildroot.net/results/eb3/eb385cb4f87078122028e85cbe31caa01d794991/
  ...

Signed-off-by: Rodrigo Rebello <rprebello@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agocryptodev-linux: add build fix patch for 4.3+ kernels
Gustavo Zacarias [Thu, 19 Nov 2015 15:41:53 +0000 (12:41 -0300)]
cryptodev-linux: add build fix patch for 4.3+ kernels

Patch status: sent upstream
https://mail.gna.org/public/cryptodev-linux-devel/2015-11/msg00003.html

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agoconfigs/qemu: enable dhcp on network interfaces
Gustavo Zacarias [Thu, 19 Nov 2015 00:38:31 +0000 (21:38 -0300)]
configs/qemu: enable dhcp on network interfaces

Enable dhcp networking for qemu configs considered good enough for
testing purposes.

This excludes:
arm_nuri - emulation doesn't seem 100% correct for networking.
ppc_virtex_ml507 - doesn't emulate networking.
sh4eb - emulation doesn't seem 100% correct for the NIC.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Reviewed-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agoconfigs/qemu: cleanup and capitalization
Gustavo Zacarias [Thu, 19 Nov 2015 00:38:30 +0000 (21:38 -0300)]
configs/qemu: cleanup and capitalization

Capitalize comments in a consistent way.
Cleanup redundant entries.
Drop global patch dir for sparc ss10 since it's not required any more.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Reviewed-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agosdl: overwrite libpth autodetection
Peter Seiderer [Thu, 19 Nov 2015 21:42:47 +0000 (22:42 +0100)]
sdl: overwrite libpth autodetection

The sdl libpth autodetection gets confused in case a host
version is present. Overwrite libpth autodection for the
target build dependent on BR2_PACKAGE_LIBPTHSEM_COMPAT and
use pth-config from staging directory.

Fixes [1]:

checking for pthreads... no
checking for pth-config... /usr/bin/pth-config
checking pth... yes
[...]
./src/SDL.c:33:17: fatal error: pth.h: No such file or directory
 #include <pth.h>

[1] http://autobuild.buildroot.net/results/733/73330e51b3c099d179004db0b9522ac13358b8f7

Signed-off-by: Peter Seiderer <ps.report@gmx.net>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agoiproute2: fix build with musl
Thomas Petazzoni [Thu, 19 Nov 2015 21:07:00 +0000 (22:07 +0100)]
iproute2: fix build with musl

This commit adds two patches to the iproute2 package that are
necessary to build it against the musl C library. Both patches have
been submitted upstream.

Fixes:

  http://autobuild.buildroot.org/results/5d3/5d3f8c2242e9a89bb545166fc7d70429d2cddd42/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agoxapp_sessreg: fix build issue with gcc 5
Thomas Petazzoni [Thu, 19 Nov 2015 16:34:04 +0000 (17:34 +0100)]
xapp_sessreg: fix build issue with gcc 5

Backport an upstream commit that fixes the build of xapp_sessreg with
gcc 5.

Fixes:

  http://autobuild.buildroot.org/results/ec0/ec01564854f0738df05b8d995d9f0db396a0e5a8/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agoUpdate for 2015.11-rc2
Peter Korsgaard [Thu, 19 Nov 2015 12:07:41 +0000 (13:07 +0100)]
Update for 2015.11-rc2

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agoperl-file-util: restore host variant and fix dependencies
Carlos Santos [Tue, 17 Nov 2015 12:24:06 +0000 (10:24 -0200)]
perl-file-util: restore host variant and fix dependencies

The host variant was added by us (DATACOM) because it is useful to
build some third-party packages that we use in our firmware. We humbly
request you to keep it alive.

Declare that it requires host-perl-module-build.

Signed-off-by: Carlos Santos <casantos@datacom.ind.br>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agolibserial: add patch to fix build failure on sparc/sparc64
Thomas Petazzoni [Wed, 18 Nov 2015 20:40:38 +0000 (21:40 +0100)]
libserial: add patch to fix build failure on sparc/sparc64

Like c-periphery and lua-periphery, libserial fails to build because
it tries to use some baud rate definitions that are not available on
sparc and sparc64 (the highest baud rates).

This commit fixes that by introducing a patch to libserial to make the
use of these high baud rates conditional on their availability.

Fixes:

  http://autobuild.buildroot.org/results/f9b/f9bbb8a6636cd3e3203b059f627aac7b1d511eb2/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agolibuecc: not available in static builds
Peter Korsgaard [Thu, 19 Nov 2015 10:17:48 +0000 (11:17 +0100)]
libuecc: not available in static builds

Fixes:
http://autobuild.buildroot.net/results/c0d/c0d91fc0fa28fda0ffd1c9a236bde5435222bcc0/

Unconditionally builds a shared library.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agopackage/minidlna: fix static build
Yann E. MORIN [Wed, 18 Nov 2015 23:31:06 +0000 (00:31 +0100)]
package/minidlna: fix static build

libvorbis.pc does not exist, it is named vorbis.pc.
Also, sqlite3 was missing when querying pkg-config.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agoslang: fix build on musl
Thomas Petazzoni [Wed, 18 Nov 2015 22:29:14 +0000 (23:29 +0100)]
slang: fix build on musl

Add patch from Alpine Linux to fix the build of slang with the musl C
library.

Fixes:

  http://autobuild.buildroot.org/results/bc3/bc3cca6e6a906afa4c57dcddfb4a9ecd0cb44398/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agodirectfb: disable for musl toolchains
Peter Korsgaard [Wed, 18 Nov 2015 22:07:30 +0000 (23:07 +0100)]
directfb: disable for musl toolchains

Fixes:
http://autobuild.buildroot.net/results/548/548bf7b800a946e97135c0ba66363f388e517d6f/

Directfb doesn't build with musl, and upstream seems dead - So just disable
it.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agoqt5base: use 'depends on' for directfb
Peter Korsgaard [Wed, 18 Nov 2015 22:03:42 +0000 (23:03 +0100)]
qt5base: use 'depends on' for directfb

This is the only package where we select directfb. Change it to use depends
on to match what we do for the X11 backend.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agocore/pkg-infrastructures: remove LD_LIBRARY_PATH from the environment
Ben Boeckel [Fri, 13 Nov 2015 21:48:52 +0000 (22:48 +0100)]
core/pkg-infrastructures: remove LD_LIBRARY_PATH from the environment

If system tools are selected, the host's lib/ directory may shadow
libraries from the system which are configured differently and do not
have all of the symbols required by the system tool.

Since buildroot now uses rpath everywhere, LD_LIBRARY_PATH should not
be necessary anyways.

Signed-off-by: Ben Boeckel <mathstuf@gmail.com>
Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agocore: check host executables have appropriate RPATH
Yann E. MORIN [Fri, 13 Nov 2015 21:48:51 +0000 (22:48 +0100)]
core: check host executables have appropriate RPATH

When we build our host programs, and they depend on a host library we
also build, we want to ensure that program actually uses that library at
runtime, and not the one from the system.

We currently ensure that in two ways:
  - we add a RPATH tag that points to our host library directory,
  - we export LD_LIBRARY_PATH to point to that same directory.

With these two in place, we're pretty much confident that our host
libraries will be used by our host programs.

However, it turns our that not all the host programs we build end up
with an RPATH tag:
  - some packages do not use our $(HOST_LDFLAGS)
  - some packages' build system are oblivious to those LDFLAGS

In this case, there are two situations:
  - the program is not linked to one of our host libraries: it in fact
    does not need an RPATH tag [0]
  - the program actually uses one of our host libraries: in that case it
    should have had an RPATH tag pointing to the host directory.

For libraries, they only need an RPATH if they depend on another library
that is not installed in the standard library path. However, any system
library will already be in the standard library path, and any library we
install ourselves is in $(HOST_DIR)/usr/lib so already in RPATH.

We add a new support script that checks that all ELF executables have
a proper DT_RPATH (or DT_RUNPATH) tag when they link to our host
libraries, and reports those file that are missing an RPATH. If a file
missing an RPATH is an executable, the script aborts; if only libraries
are are missing an RPATH, the script does not abort.

[0] Except if it were to dlopen() it, of course, but the only program
I'm aware of that does that is openssl, and it has a correct RPATH tag.

[Peter: reworded as suggested by Arnout, fix HOT_DIR typo in comment]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: Arnout Vandecappelle <arnout@mind.be>
Cc: Peter Korsgaard <jacmet@uclibc.org>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 years agopackage/mplayer: Fix linking with libvorbis/libdvdread
Bernd Kuhls [Sun, 8 Nov 2015 15:55:17 +0000 (16:55 +0100)]
package/mplayer: Fix linking with libvorbis/libdvdread

Fixes
http://autobuild.buildroot.net/results/7f6/7f6e5396e95a3c3b676ca59bedc5317aa88e5f4c/
http://autobuild.buildroot.net/results/6ac/6acd9cf25c3088d313247510db47a214fff30c67/
http://autobuild.buildroot.net/results/a0d/a0da41bb734dbcdb17e13d852cfbdba5e069429e/
http://autobuild.buildroot.net/results/d0c/d0caf60c1ddf4e05086c93f646e32b5ddc75b6ce/

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Reviewed-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
Tested-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agolibxml2: add several security patches
Gustavo Zacarias [Tue, 17 Nov 2015 23:08:45 +0000 (20:08 -0300)]
libxml2: add several security patches

Fixes:
CVE-2015-1819 - The xmlreader in libxml allows remote attackers to cause
a denial of service (memory consumption) via crafted XML data, related
to an XML Entity Expansion (XEE) attack.
CVE-2015-7941 - out-of-bounds memory access.
CVE-2015-7942 - heap-buffer-overflow in xmlParseConditionalSections.
CVE-2015-8035 - DoS via crafted xz file.

All patches upstream.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agoqemu: add patch to fix SSP support detection
Rodrigo Rebello [Mon, 16 Nov 2015 10:58:18 +0000 (08:58 -0200)]
qemu: add patch to fix SSP support detection

The QEMU configure script incorrectly assumes SSP is supported by the
toolchain in some cases where the compiler accepts -fstack-protector*
flags but the C library does not provide the necessary __stack_chk_*()
functions.

Even though a full compile and link test is performed by the script,
this is done with a code fragment which does not actually meet any of
the conditions required to cause the compiler to emit canary code when
the -fstack-protector-strong variant is used. As no compile or link
failure occurs in this case, a false positive is generated and a
subsequent error is seen when the probe for pthreads is performed.

The fix consists in patching the configure script to use a more
appropriate test program for the SSP support checks.

Fixes:

  http://autobuild.buildroot.net/results/efb/efbb4e940543894b8745bb405478a096c90a5ae2/
  http://autobuild.buildroot.net/results/32d/32d6d984febad2dee1f0d31c5fa0aea823297096/
  http://autobuild.buildroot.net/results/aa6/aa6e71c957fb6f07e7bded35a8e47be4dadd042c/
  ...and many others.

Signed-off-by: Rodrigo Rebello <rprebello@gmail.com>
Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Reviewed-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
Tested-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agopackage/gauche: fix build error on BR2_STATIC_LIBS
kei-k@ca2.so-net.ne.jp [Wed, 18 Nov 2015 09:30:23 +0000 (18:30 +0900)]
package/gauche: fix build error on BR2_STATIC_LIBS

Building gauche depends on dynamic link, so add dependency on
!BR2_STATIC_LIBS.

Fix:
http://autobuild.buildroot.org/results/da5/da5b9605552d4914c5e6f0d890367b92536419c1

Signed-off-by: Hiroshi Kawashima <kei-k@ca2.so-net.ne.jp>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agolinux-headers: bump 3.2.x series
Gustavo Zacarias [Wed, 18 Nov 2015 18:20:17 +0000 (15:20 -0300)]
linux-headers: bump 3.2.x series

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agoconfigs/qemu: enable tmpfs for microblaze
Gustavo Zacarias [Tue, 17 Nov 2015 16:37:14 +0000 (13:37 -0300)]
configs/qemu: enable tmpfs for microblaze

Otherwise the tmpfs-backed filesystems fail:
mount: mounting tmpfs on /dev/shm failed: Invalid argument
mount: mounting tmpfs on /tmp failed: Invalid argument
mount: mounting tmpfs on /run failed: Invalid argument

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agoconfigs/qemu: fix networking for sparc64
Gustavo Zacarias [Tue, 17 Nov 2015 16:37:13 +0000 (13:37 -0300)]
configs/qemu: fix networking for sparc64

It contained a typo that prevented the driver from being built.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agoconfigs/qemu: bump x86 to 4.3 kernel
Gustavo Zacarias [Tue, 17 Nov 2015 16:37:12 +0000 (13:37 -0300)]
configs/qemu: bump x86 to 4.3 kernel

Now that uclibc-ng was bumped to version 1.0.9 nothing prevents x86
from working correctly.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agoliquid-dsp: blacklist CS powerpc toolchains
Gustavo Zacarias [Tue, 17 Nov 2015 18:20:44 +0000 (15:20 -0300)]
liquid-dsp: blacklist CS powerpc toolchains

They're unable to build liquid-dsp successfully resulting in an internal
compiler error. Fixes:
http://autobuild.buildroot.net/results/2ac/2acd745f4e5ec6edfd09afcd57b9ece216724c1b/

[Thomas: propagate the dependencies to the comment.]

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agoqt5base: Patch Qt config to detect sunxi-mali
Daniel Nyström [Wed, 16 Sep 2015 12:52:58 +0000 (14:52 +0200)]
qt5base: Patch Qt config to detect sunxi-mali

Currently Qt 5.5 only detects and build the eglfs_mali device
integration if the commercial Mali driver package from ARM is used.
This patch makes sure the Qt configure script also test for the
sunxi-mali driver package. It also removes the dependency of
the proprietary fbdev_window.h.

This issue is set to be fixed in upcoming Qt 5.6:
https://codereview.qt-project.org/#/c/125837/

[Thomas: renumber patch from 0010 to 0009.]

Signed-off-by: Daniel Nyström <daniel.nystrom@timeterminal.se>
Tested-by: Ariel D'Alessandro <ariel@vanguardiasur.com.ar>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tested-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
[Thomas: build tested before the patch, verified that indeed the
eglfs-mali plugin doesn't get built, and that after the patch it gets
built as expected.]

9 years agopulseaudio: fix build issue with old gcc versions
Thomas Petazzoni [Tue, 17 Nov 2015 12:27:54 +0000 (13:27 +0100)]
pulseaudio: fix build issue with old gcc versions

This commit adds a patch to pulseaudio (already submitted upstream)
that avoids a structure redefinition build failure that occurs with
old gcc versions.

Fixes:

  http://autobuild.buildroot.org/results/a1e/a1e7e59f9c65a6ce38800439c78b7808048ad708/

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