buildroot.git
8 years agovalgrind: do not use host mpicc
Jérôme Pouiller [Wed, 9 Nov 2016 09:51:24 +0000 (10:51 +0100)]
valgrind: do not use host mpicc

Valgrind may use 'mpicc' (from openmi project) to compile libmpiwrap-*.so.
Without any option, it will detect and use 'mpicc' from host and generate
libmpiwrap-*.so for host:

  $ file target/usr/lib/valgrind/libmpiwrap-arm-linux.so
  target/usr/lib/valgrind/libmpiwrap-arm-linux.so: ELF 64-bit LSB  shared object,
  x86-64, version 1 (SYSV), dynamically linked, not stripped

We simply disable openmi support for valgrind.

Signed-off-by: Jérôme Pouiller <jezz@sysmic.org>
[Thomas: refactor with other unconditional CONF_OPTS.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agophp: fix bfin compile issue
Waldemar Brodkorb [Wed, 9 Nov 2016 07:05:31 +0000 (08:05 +0100)]
php: fix bfin compile issue

Fixes:
  http://autobuild.buildroot.net/results/8326f24511d3b109d22a76660adc017bbcaca197

Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agopython3: fix double format detection
Jérôme Pouiller [Wed, 9 Nov 2016 09:25:08 +0000 (10:25 +0100)]
python3: fix double format detection

Python is not able to detect if compiler double representation is
compliant with IEE754:

  checking whether C doubles are little-endian IEEE 754 binary64... no
  checking whether C doubles are big-endian IEEE 754 binary64... no
  checking whether C doubles are ARM mixed-endian IEEE 754 binary64... no

Accordingly 'legacy' mode isused. It is possible to check this at
runtime by check if 'sys.float_repr_style' contains 'short' or
'legacy'. Calculus correctness is not garanteed with 'legacy'.

Problem is better described here:

  http://stackoverflow.com/questions/29920294/what-causes-pythons-float-repr-style-to-use-legacy
  https://bugs.python.org/issue7117

However, all gcc architecture use a representation compliant with
IEE754. So, we can enable it unconditionnaly.

Signed-off-by: Jérôme Pouiller <jezz@sysmic.org>
[Thomas: rework condition to not use strip, as suggested by Baruch.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agopython: fix double format detection
Jérôme Pouiller [Wed, 9 Nov 2016 09:25:07 +0000 (10:25 +0100)]
python: fix double format detection

Python is not able to detect if compiler double representation is
compliant with IEE754:

  checking whether C doubles are little-endian IEEE 754 binary64... no
  checking whether C doubles are big-endian IEEE 754 binary64... no
  checking whether C doubles are ARM mixed-endian IEEE 754 binary64... no

Accordingly 'legacy' mode isused. It is possible to check this at
runtime by check if 'sys.float_repr_style' contains 'short' or
'legacy'. Calculus correctness is not garanteed with 'legacy'.

Problem is better described here:

  http://stackoverflow.com/questions/29920294/what-causes-pythons-float-repr-style-to-use-legacy
  https://bugs.python.org/issue7117

However, all gcc architecture use a representation compliant with
IEE754. So, we can enable it unconditionnaly.

Signed-off-by: Jérôme Pouiller <jezz@sysmic.org>
[Thomas: adjust condition to avoid usage of qstrip, suggested by Baruch.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agoolimex_a20_olinuxino_lime2: bump U-Boot to 2016.05
Jan Viktorin [Wed, 9 Nov 2016 13:27:39 +0000 (14:27 +0100)]
olimex_a20_olinuxino_lime2: bump U-Boot to 2016.05

The patch fixes build by GCC 5 (unsupported by the older U-Boot).

Signed-off-by: Jan Viktorin <viktorin@rehivetech.com>
Reported-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agoci20_defconfig: use XBurst CPU
Vicente Olivert Riera [Wed, 9 Nov 2016 16:16:58 +0000 (16:16 +0000)]
ci20_defconfig: use XBurst CPU

Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agoarch/Config.in.mips: add support for XBurst cores
Vicente Olivert Riera [Wed, 9 Nov 2016 16:16:57 +0000 (16:16 +0000)]
arch/Config.in.mips: add support for XBurst cores

The Ingenic XBurst is a MIPS32R2 microprocessor.

It has a bug in the FPU that can generate incorrect results in certain
cases. The problem shows up when you have several fused madd
instructions in sequence with dependant operands.

Using the -mno-fused-madd option prevents gcc from emitting these
instructions. This patch adds changes to the toolchain wrapper to use
that option.

Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agoconfigs: freescale_imx31_3stack: bump kernel version to 4.1.15_2.0.0_ga
Vincent Stehlé [Wed, 9 Nov 2016 16:38:23 +0000 (17:38 +0100)]
configs: freescale_imx31_3stack: bump kernel version to 4.1.15_2.0.0_ga

Switch to the kernel of release 4.1.15_2.0.0_ga, as it builds properly with
gcc 5.x, which is now the default.

We add a linux config fragment to disable the framebuffer, to repair the
build for imx_v6_v7_defconfig.

Suggested-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Vincent Stehlé <vincent.stehle@laposte.net>
Signed-off-by: Julien Olivain <juju@cotds.org>
Tested-by: Julien Olivain <juju@cotds.org>
Cc: Fabio Estevam <fabio.estevam@nxp.com>
[Thomas: adjust syntax in fragment.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agolibxslt: add upstream security fix
Baruch Siach [Wed, 9 Nov 2016 19:01:56 +0000 (21:01 +0200)]
libxslt: add upstream security fix

Fixes CVE-2016-4738 - heap overread.

https://www.debian.org/security/2016/dsa-3709

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agolibxslt: correct homepage link
Baruch Siach [Wed, 9 Nov 2016 16:40:44 +0000 (18:40 +0200)]
libxslt: correct homepage link

Link to the actual webpage of libxslt, not to the xslt spec page.

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agompv: fix build on powerpc64 w/ altivec
Sam bobroff [Tue, 8 Nov 2016 03:09:37 +0000 (14:09 +1100)]
mpv: fix build on powerpc64 w/ altivec

Fixes
http://autobuild.buildroot.net/results/77f/77f00633b0b25f001cd4ca54ed3a12aee301c287

Add a patch to work around a name collision between bool and altivec's
bool apparent when using sdl2.

Signed-off-by: Sam Bobroff <sam.bobroff@au1.ibm.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agopackage/ccache: bump to version 3.3.3
Jörg Krause [Mon, 7 Nov 2016 23:02:32 +0000 (00:02 +0100)]
package/ccache: bump to version 3.3.3

Note, that version 3.3.3 of ccache fixes a bug [1] where the Linux
kernel image is the same even after changing the source code and
rebuilding it.

[1] https://github.com/ccache/ccache/issues/136

Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agolibmpeg2: add patch to fix build on ARMv7-M
Thomas Petazzoni [Sat, 5 Nov 2016 18:18:50 +0000 (19:18 +0100)]
libmpeg2: add patch to fix build on ARMv7-M

This commit adds a patch to libmpeg2 that improves the ARM detection
to not use the optimized ARM code on ARMv7-M architectures.

Fixes:

  http://autobuild.buildroot.net/results/9c44de035ce81c6cc8a92ea8bad4def25cd99cd0

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agoassimp: disable package with the ADI Blackfin toolchain
Thomas Petazzoni [Sat, 5 Nov 2016 16:32:13 +0000 (17:32 +0100)]
assimp: disable package with the ADI Blackfin toolchain

assimp fails to build with an internal compiler error with the ADI
Blackfin toolchain, while it builds fine with the mainline gcc for
Blackfin. So let's disable this package (which has no reverse
dependencies that select it) for the ADI Blackfin toolchain.

Fixes:

  http://autobuild.buildroot.net/results/394e3545a7bbe5d6fbaf4c97f0a3eb51c7d57076

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agoffmpeg: disable on Microblaze
Thomas Petazzoni [Sat, 5 Nov 2016 15:23:53 +0000 (16:23 +0100)]
ffmpeg: disable on Microblaze

Building ffmpeg on Microblaze triggers the gcc PR71124, which causes
an infinite loop in the compiler. This causes numerous timeouts in the
autobuilders, such as, just over the last two days:

http://autobuild.buildroot.net/results/b47fb2ae810ada475fef215c1efb54a9891fef6f
http://autobuild.buildroot.net/results/a8a1dfb7d4a7a6babe665214030e2245d572d1d3
http://autobuild.buildroot.net/results/248c58cd20686497c4dabc1a19b2c8c7c76b33ab
http://autobuild.buildroot.net/results/3641092f62551bd41c24eafdce46804f9551b761
http://autobuild.buildroot.net/results/f2f65106c3e9dcfd546d5dad7cd0f7cd7145420c
http://autobuild.buildroot.net/results/c45f085ca421b12195fe6a9298b3b3a9cb761360
http://autobuild.buildroot.net/results/349de9b8251b9b72ace595920303e45497833c29

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agonet-tools: fix field with incomplete type error
Vicente Olivert Riera [Mon, 7 Nov 2016 15:18:14 +0000 (15:18 +0000)]
net-tools: fix field with incomplete type error

Update 0002 patch to match the one sent as a pull request. The previous
one introduced a new problem that has been addressed in the new version.

Some Linux headers included in certain toolchains may not have an
updated linux/if_tunnel.h which includes linux/ip.h, so we need to
include it unconditionally otherwise linux/if_tunnel.h will use the
struct iphdr before being defined and the compilation will fail in this
way:

In file included from iptunnel.c:33:0:
/usr/include/linux/if_tunnel.h:37:16: error: field 'iph' has incomplete
type
  struct iphdr  iph;
                  ^

Pull request URL:
  https://sourceforge.net/p/net-tools/code/merge-requests/4/

Fixes:
  http://autobuild.buildroot.net/results/34f/34f9b10ef6a613057e8f6457d8a0a2fa142ad123/

Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agoboard/boundarydevices: fix boot partition number in bootscript
Gary Bisson [Mon, 7 Nov 2016 16:54:00 +0000 (17:54 +0100)]
board/boundarydevices: fix boot partition number in bootscript

It was previously hardcoded to use the 1st partition although the
bootpart variable was used to download kernel/dtb from any partition.

Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agoDEVELOPERS: add Yegor Yefremov for the ser2net package
Yegor Yefremov [Mon, 7 Nov 2016 06:51:33 +0000 (07:51 +0100)]
DEVELOPERS: add Yegor Yefremov for the ser2net package

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agoser2net: bump to version 3.1
Yegor Yefremov [Mon, 7 Nov 2016 06:51:32 +0000 (07:51 +0100)]
ser2net: bump to version 3.1

Version 3.1 adds librt to the list of required libraries.

Fixes:
http://autobuild.buildroot.net/results/7f1/7f152e2255f8d2cf9378812998fe9a239319c116

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agoconfigs/qmx6: remove defconfig
Thomas Petazzoni [Mon, 7 Nov 2016 21:01:51 +0000 (22:01 +0100)]
configs/qmx6: remove defconfig

The original submitter and follow-up contributors to the qmx6
defconfig no longer have the hardware available or the time/interest
to update this defconfig, which currently fails to build with gcc
5.x. Due to this, this commit removes this defconfig.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agoconfigs/freescale_p2020ds: remove defconfig
Thomas Petazzoni [Mon, 7 Nov 2016 21:01:05 +0000 (22:01 +0100)]
configs/freescale_p2020ds: remove defconfig

This defconfig no longer builds with gcc 5.x, and the original
submitter, Gustavo, no longer has the hardware to test this
configuration.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agoboard/armadeus: bump apf28 kernel version to 4.4.30 (latest LTS)
Julien BOIBESSOT [Mon, 7 Nov 2016 15:58:04 +0000 (16:58 +0100)]
board/armadeus: bump apf28 kernel version to 4.4.30 (latest LTS)

Signed-off-by: Julien BOIBESSOT <julien.boibessot@armadeus.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agoboard/armadeus: bump apf51 kernel to 4.4.30 (latest LTS)
Julien BOIBESSOT [Mon, 7 Nov 2016 15:14:42 +0000 (16:14 +0100)]
board/armadeus: bump apf51 kernel to 4.4.30 (latest LTS)

This will fix:
http://free-electrons.com/~thomas/pub/buildroot-defconfigs/armadeus_apf51_defconfig.log.FAIL

Signed-off-by: Julien BOIBESSOT <julien.boibessot@armadeus.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agopackage/qemu: disable Qemu user-land emulation for musl toolchains
Romain Naour [Sun, 6 Nov 2016 16:04:48 +0000 (17:04 +0100)]
package/qemu: disable Qemu user-land emulation for musl toolchains

Like for cyclictest (rt-test)[1], linux-user/syscall.c use the
definition of the "struct sigevent" from Glibc/uClibc which doesn't
build with musl libc.

So, disable Qemu user-land emulation for musl toolchains.

Fixes:
http://autobuild.buildroot.net/results/b27/b277e668d9e22b624416bf46f6ccba802acd257e

[1] 43bffa59e7359610c8f00038ddd97795c0ca35e1

Signed-off-by: Romain Naour <romain.naour@gmail.com>
Cc: Francois Perrad <francois.perrad@gadz.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agoolimex_a20_olinuxino_lime_mali: bump u-boot to 2016.09.01
Francois Perrad [Sun, 6 Nov 2016 14:38:51 +0000 (15:38 +0100)]
olimex_a20_olinuxino_lime_mali: bump u-boot to 2016.09.01

U-Boot KConfig allows to take care of CONFIG_OLD_SUNXI_KERNEL_COMPAT
in order to properly start the kernel (Error: unrecognized/unsupported machine ID)

Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agoconfigs/mini2440_defconfig: remove defconfig
Thomas Petazzoni [Sat, 5 Nov 2016 14:24:59 +0000 (15:24 +0100)]
configs/mini2440_defconfig: remove defconfig

This defconfig has not been updated in any significant way since 2011,
when Peter moved it to use a mainline kernel. It's now using an
ancient 3.0 kernel, and a vendor-specific U-Boot version that fails to
build with various "undefined reference" errors:

  undefined reference to `show_boot_progress'
  undefined reference to `image_print_contents'
  undefined reference to `wait_ms'

So it's time to get rid of the defconfig for this platform.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Acked-by: Romain Naour <romain.naour@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agoRevert "package/x265: bump version to 2.1"
Bernd Kuhls [Sun, 6 Nov 2016 16:19:24 +0000 (17:19 +0100)]
Revert "package/x265: bump version to 2.1"

This reverts commit 1ba7b6a4f12977aec994c4f38d5be38cfdb27846.

Adding -DCROSS_COMPILE_ARM=ON to _CONF_OPTS will not fix the build:

/home/buildroot/br2/output/host/usr/arm-buildroot-linux-gnueabihf/sysroot/usr/include/gnu/stubs.h:7:29:
  fatal error: gnu/stubs-soft.h: No such file or directory

because cross-compiling x265 is only supported for soft-float abi:
https://bitbucket.org/multicoreware/x265/src/583fc74fc0a29f330187dbd78151c30a3e03d5a7/source/CMakeLists.txt?at=default#CMakeLists.txt-211

Fixes
http://autobuild.buildroot.net/results/6ec/6ec75cc176e05bfc6287dc54fa1a53e0ffc0521d/

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agopackage/mesa3d: Remove opengl headers files if opengl support is disabled
Bernd Kuhls [Sun, 6 Nov 2016 18:11:00 +0000 (19:11 +0100)]
package/mesa3d: Remove opengl headers files if opengl support is disabled

Mesa3d used to install GL/gl.h & co. only if libGL.so was installed.

After this commit
https://cgit.freedesktop.org/mesa/mesa/commit/?h=13.0&id=a89faa2022fd995af2019c886b152b49a01f9392

this is no longer the case leading to misdetection of opengl support by
vlc if mesa3d was built before:

http://git.videolan.org/?p=vlc.git;a=blob;f=configure.ac;h=c8900d216540816224e872bef46fbcc93d83ca41;hb=HEAD#l3010

This patch partly re-introduces a mechanism to clean unwanted files
installed by mesa3d which was removed when bumping to 12.0.0:
https://git.buildroot.net/buildroot/commit/package/mesa3d?id=ff3e522e748925f6be5732a6e5df6553468ca0a1

Fixes
http://autobuild.buildroot.net/results/13e/13e7c0f5fc6ae8ba5e62b2597d188496c64090fd/

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agopkg-cmake: Change -DNEBUG to -DNDEBUG
Stefan Nickl [Sun, 6 Nov 2016 20:05:13 +0000 (21:05 +0100)]
pkg-cmake: Change -DNEBUG to -DNDEBUG

Signed-off-by: Stefan Nickl <Stefan.Nickl@gmail.com>
Acked-by: Samuel Martin <s.martin49@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agojamvm: fix build with uClibc on i386/x86_64
Thomas Petazzoni [Sun, 6 Nov 2016 21:19:38 +0000 (22:19 +0100)]
jamvm: fix build with uClibc on i386/x86_64

Commit 0b6b67f34d6d4aeb340bbca579dbf85363c3f4ea ("jamvm: add patch to
fix musl build") introduced a patch to fix the jamvm build with the
musl C library. While the commit log pretends that the build was still
working with uClibc, it is not correct: it no longer builds fine with
uClibc on i386/x86_64, because the Buildroot default configuration for
uClibc doesn't enable <fenv.h> support.

Therefore this commit adapts the patch to use <fenv.h> if available
(which is the case with musl), and otherwise fall back to
<fpu_control.h>, which is available in uClibc.

Thanks to Waldemar for the investigation.

Fixes:

  http://autobuild.buildroot.net/results/325a50d15e1836b31df4e84ba83b296abfb73041/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agopackage/ser2net: disable threads for toolchains without threads support
Romain Naour [Sun, 6 Nov 2016 13:15:23 +0000 (14:15 +0100)]
package/ser2net: disable threads for toolchains without threads support

ser2net configure script provide an option to disable threads support,
use it.

Fixes:
http://autobuild.buildroot.net/results/6bc/6bc0f99917c2069a1614f4cfcaa98af1b21762e4

Signed-off-by: Romain Naour <romain.naour@gmail.com>
[Thomas: use --{with,without}-pthreads instead of --with-pthreads={yes,no}.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agoprivoxy: needs thread support
Thomas Petazzoni [Sun, 6 Nov 2016 14:00:43 +0000 (15:00 +0100)]
privoxy: needs thread support

Even though privoxy has some conditional code to handle configurations
without threads, it is not properly handled everywhere, leading to a
build failure. Since this package is unlikely to be used in
non-threaded environment, just disable it for non-threaded
configurations.

Fixes:

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

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agolibnss: add upstream patch to fix uninitialized variable warning
Thomas Petazzoni [Sun, 6 Nov 2016 13:41:11 +0000 (14:41 +0100)]
libnss: add upstream patch to fix uninitialized variable warning

Fixes:

  http://autobuild.buildroot.net/results/47e611036be12844ebca093ddd8fe95c326c6056/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agobinutils: add patch to 2.27 to fix arm issue with file having no data
Thomas Petazzoni [Sun, 6 Nov 2016 13:12:25 +0000 (14:12 +0100)]
binutils: add patch to 2.27 to fix arm issue with file having no data

This commit adds a patch to binutils 2.27, which fixes the build of
kvmtool on ARM. The fix is taken from the upstream mailing list at
https://lists.gnu.org/archive/html/bug-binutils/2016-08/msg00165.html.

Fixes:

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

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agokvm-unit-tests: add patch to remove -Werror
Thomas Petazzoni [Sun, 6 Nov 2016 12:57:51 +0000 (13:57 +0100)]
kvm-unit-tests: add patch to remove -Werror

Fixes:

  http://autobuild.buildroot.net/results/52c02c68be6c0b3e907f7ed645bd2d18476ec4f3/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agokvm-unit-tests: really use KVM_UNIT_TESTS_ARCH and fix value on x86-64
Thomas Petazzoni [Sun, 6 Nov 2016 12:39:26 +0000 (13:39 +0100)]
kvm-unit-tests: really use KVM_UNIT_TESTS_ARCH and fix value on x86-64

The kvm-unit-tests package defines a KVM_UNIT_TESTS_ARCH variable, but
never used it. Due to this, on PowerPC64, we were passing an incorrect
value, causing a build failure.

In addition, once the KVM_UNIT_TESTS_ARCH is used, it appeared that
its value for x86_64 was incorrect, due a typo: it was x86_84 instead
of x86_64.

Fixes:

  http://autobuild.buildroot.net/results/16836c02f4d1ab5df6b2e21a4fcdbbf4a7542f22/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agobinutils: add upstream patch to fix open microblaze issue
Waldemar Brodkorb [Sat, 5 Nov 2016 15:42:19 +0000 (16:42 +0100)]
binutils: add upstream patch to fix open microblaze issue

This reenables the use of 2.27 for microblaze.

Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agopackage/pseudo: update version
Yann E. MORIN [Sat, 5 Nov 2016 16:34:54 +0000 (17:34 +0100)]
package/pseudo: update version

Brings in a fix about externded attributes (xattrs).

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agoconfigs/kb9202_defconfig: remove defconfig
Thomas Petazzoni [Sat, 5 Nov 2016 13:45:54 +0000 (14:45 +0100)]
configs/kb9202_defconfig: remove defconfig

This configuration for the KwikByte KB9202 was added back in July 2008
(commit e27fef51834042a1b108e04927a2a91742a54327), and was never
updated since then. It still uses a 2.6.38 kernel, with the out of
tree patches from the former AT91 kernel maintainer. The board has
been discontinued according to its page at
http://www.kwikbyte.com/KB9202.html.

This defconfig no longer builds since the switch to gcc 5.x as the
default. Therefore, it's time to get rid of this defconfig.

Signed-off-by: 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>
8 years agomakedevs: make device node creation idempotent
Arnout Vandecappelle [Sat, 5 Nov 2016 13:38:12 +0000 (14:38 +0100)]
makedevs: make device node creation idempotent

We use makedevs to create device nodes in the target rootfs. However,
this can be called several times, e.g. when building several filesystem
images or when rebuilding. When makedevs is called the second time, the
device node already exists so mknod() errors out.

This wasn't noticed before because fakeroot's mknod() wrapper
(incorrectly) does _not_ error out when the file exists already. Now
we switched from fakeroot to pseudo, the problem becomes apparent.

Before creating the device node, check if it already exists and if so,
if it has the correct device type and number. Change of mode and
ownership is still done.

This approach was preferred over removing the target files before
creating them, which would be simpler. However, when e.g. a file exists
as a normal file and makedevs specifies it as a device node, that
really is an error so we should detect it.

The other types don't have to be changed. The 'd' (directory) type is
already OK because it already only creates directories if they don't
exist yet. The 'f' (file mode) and 'r' (recursive) types only operate
on files and directories that exist already.

Patch also sent upstream to busybox.

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Reported-by: Fabio Estevam <festevam@gmail.com>
Tested-by: Fabio Estevam <festevam@gmail.com>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Tested-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agomakedevs: resync device creation with upstream busybox
Arnout Vandecappelle [Sat, 5 Nov 2016 13:38:11 +0000 (14:38 +0100)]
makedevs: resync device creation with upstream busybox

In upstream busbyox, the code to create devices has been simplified:
the code for a single and for multiple devices is no longer duplicated.

Since we are going to change the device creation code next, it's
convenient to have only one copy to modify.

There are two behavioural changes with this, but they were introduced
silently together with other commits in upstream busybox.

- When mknod() fails, the chmod was still done. This is pointless so it
  is no longer done now.

- There was a check for mode != -1; however, a mode of -1 would not
  have worked anyway because all bits would be set for mknod(), which
  would fail. So this check is redundant.

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Tested-by: Fabio Estevam <festevam@gmail.com>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agolibxml2: add upstream security fixes
Baruch Siach [Sat, 5 Nov 2016 19:24:06 +0000 (21:24 +0200)]
libxml2: add upstream security fixes

Fixes: CVE-2016-5131, CVE-2016-4658.
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agoczmq: fix build with glibc 2.24
Thomas Petazzoni [Sat, 5 Nov 2016 14:35:54 +0000 (15:35 +0100)]
czmq: fix build with glibc 2.24

czmq uses readdir_r(), which has been marked as deprecated in glibc
2.24, and czmq uses -Werror which causes the warning to be turned into
an error that aborts the build.

This commit fixes that by removing -Werror. Long-term, we might want
to upgrade czmq to a newer version, since they've removed the use of
readdir_r() in commit 2594d406d8ec6f54e54d7570d7febba10a6906b2. But
getting rid of -Werror is anyway always a good idea in Buildroot.

Fixes:

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

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agopackages/pseudo: needs attr
Yann E. MORIN [Sat, 5 Nov 2016 12:26:46 +0000 (13:26 +0100)]
packages/pseudo: needs attr

This fixes the build on machines that do not have attr development files
installed.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agopseudo: fix build for python3 based distros
Gaël PORTAY [Sat, 5 Nov 2016 03:55:49 +0000 (23:55 -0400)]
pseudo: fix build for python3 based distros

Pseudo is not python3 friendly. It causes build failure on distros using
python3 as default python interpretor.

./maketables enums/*.in
  File "./makewrappers", line 327
    return """/* This function is not called if pseudo is configured --enable-force-async */
                                                                                           ^
TabError: inconsistent use of tabs and spaces in indentation
  File "./maketables", line 76
    print "Flags: set for %s" % self.name
                            ^
SyntaxError: Missing parentheses in call to 'print'
make[2]: *** [Makefile:150: wrappers] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [Makefile:147: tables] Error 1

Those patches make pseudo works with python2 and python3.

Signed-off-by: Gaël PORTAY <gael.portay@savoirfairelinux.com>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Tested-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agotinyalsa: avoid install in /usr/local/
Maxime Hadjinlian [Fri, 4 Nov 2016 15:28:42 +0000 (16:28 +0100)]
tinyalsa: avoid install in /usr/local/

Set the PREFIX to avoid installing files in [...]/usr/local/.

Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agolttng-babeltrace: fix static build again
Philippe Proulx [Fri, 4 Nov 2016 16:41:37 +0000 (12:41 -0400)]
lttng-babeltrace: fix static build again

I accidentally removed the static build patch when bumping to v1.4.0,
thinking it was merged upstream as of this version, but it's not the
case (it's merged in master), so let's keep the patch file.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agoconfigs/nanopi-neo: use a more conventional kernel
Yann E. MORIN [Fri, 4 Nov 2016 17:19:40 +0000 (18:19 +0100)]
configs/nanopi-neo: use a more conventional kernel

It turns out that linux-4.9-rc3 has all that is needed for the NanoPi
NEO, so use that rather than the franken-kernel I assembled.

Reported-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agopackage/mesa3d: Fix endianess detection with musl-based toolchains
Bernd Kuhls [Fri, 4 Nov 2016 20:20:58 +0000 (21:20 +0100)]
package/mesa3d: Fix endianess detection with musl-based toolchains

Fixes
http://autobuild.buildroot.net/results/e27/e27a9a95f72dba3076549beb2a2ccfdbea2fcfee/
http://autobuild.buildroot.net/results/462/4629ee4813aa36de884bba2576612f909c007264/

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agoget-developers: fix parentheses for print
Gaël PORTAY [Sat, 5 Nov 2016 04:10:00 +0000 (00:10 -0400)]
get-developers: fix parentheses for print

Python3 complains about missing parentheses.

$ ./support/scripts/get-developers
  File "./support/scripts/get-developers", line 45
    print f
          ^
SyntaxError: Missing parentheses in call to 'print'

Signed-off-by: Gaël PORTAY <gael.portay@savoirfairelinux.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agoboard: atmel: genimage: add 1M offset for FAT partition
Ludovic Desroches [Fri, 4 Nov 2016 10:15:17 +0000 (11:15 +0100)]
board: atmel: genimage: add 1M offset for FAT partition

With older SoCs and some SD cards, a 1024-bytes offset is needed to allow
ROM code to read the content of the FAT partition. As it is usual to get
a 1M bytes offset for the first partition, use this value to avoid boot
issues.

Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agodocs/website: update news with 2016.11-rc1 release e-mail link
Thomas Petazzoni [Fri, 4 Nov 2016 09:09:34 +0000 (10:09 +0100)]
docs/website: update news with 2016.11-rc1 release e-mail link

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agoUpdate for 2016.11-rc1
Thomas Petazzoni [Thu, 3 Nov 2016 20:54:07 +0000 (21:54 +0100)]
Update for 2016.11-rc1

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agoCHANGES: mention fakeroot as a removed package
Thomas Petazzoni [Thu, 3 Nov 2016 22:31:53 +0000 (23:31 +0100)]
CHANGES: mention fakeroot as a removed package

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agopackage/fakeroot: remove
Yann E. MORIN [Thu, 3 Nov 2016 22:21:08 +0000 (23:21 +0100)]
package/fakeroot: remove

We've now entirely switched to using pseudo istead of fakeroot, so it is
time to remove the fakeroot package now.

Reported-by: Arnout Vandecappelle <arnout@mind.be>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agopackage/pseudo: add a legacy symlink to emulate fakeroot
Yann E. MORIN [Thu, 3 Nov 2016 22:21:07 +0000 (23:21 +0100)]
package/pseudo: add a legacy symlink to emulate fakeroot

In case some post-image script want to call fakeroot, add a symlink to
use pseudo instead.

Reported-by: Arnout Vandecappelle <arnout@mind.be>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agofs/iso9660: drop reference to host-fakeroot
Thomas Petazzoni [Thu, 3 Nov 2016 22:28:01 +0000 (23:28 +0100)]
fs/iso9660: drop reference to host-fakeroot

Since commit 41f0688d9113dd33a5971c5654c7efd022727ed2 ("fs/iso9660:
convert to the filesystem infrastructure"), the is9660 logic uses the
common filesystem infrastructure, so the dependency on host-fakeroot is
no longer needed, and has actually become bogus since we switched to
host-pseudo.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agopackage/pseudo: needs sqlite
Yann E. MORIN [Thu, 3 Nov 2016 22:21:05 +0000 (23:21 +0100)]
package/pseudo: needs sqlite

pseudo uses sqlite to store its state.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
[Thomas: add comment about --libdir.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agoCHANGES: final update
Thomas Petazzoni [Thu, 3 Nov 2016 21:56:20 +0000 (22:56 +0100)]
CHANGES: final update

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agoCHANGES: extend 2016.11-rc1 changelog
Arnout Vandecappelle [Thu, 3 Nov 2016 21:49:29 +0000 (22:49 +0100)]
CHANGES: extend 2016.11-rc1 changelog

- Longer explanation of multi-BR2_EXTERNAL
- Mention nobody UID 99 -> 65534 change
- Mention removal of BR2_DEPRECATED
- Mention use of system cmake
- Mention new dependency on ExtUtils::MakeMaker. The other perl
  dependencies are not mentioned since they only apply if mpv is built.
- Mention the $(STAGING_DIR)/$(O) check.
- Mention unsafe path detection in -isystem etc.
- Mention linux-tools split.
- Mention changes in legal-info.
- Mention that pseudo is used instead of fakeroot.
- Correct the info of toolchainfile.cmake: it still sets cflags but it
  doesn't force them anymore (doesn't append).

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agoconfigs: drop cubieboard_defconfig
Thomas Petazzoni [Wed, 26 Oct 2016 21:53:56 +0000 (23:53 +0200)]
configs: drop cubieboard_defconfig

This defconfig is affected by bug #8516, reported more than a year ago,
and nobody has updated the defconfig since then. In addition, it should
be migrated to the genimage mechanism instead of having its own
mkcubieboard.sh script.

Therefore, let's get rid of this defconfig.

Fixes bug #8516.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: Carlo Caione <carlo.caione@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agobridge-utils: fix build with musl
Baruch Siach [Thu, 3 Nov 2016 05:53:50 +0000 (07:53 +0200)]
bridge-utils: fix build with musl

Apply a patch that removes direct include of kernel headers to avoid conflict
of definitions.

Fixes:
http://autobuild.buildroot.net/results/4aa/4aaeca4f1fca1794b039d7255a1828ff724f2234/
http://autobuild.buildroot.net/results/b48/b48a70137a4a568b31337f899fd21d05552db5e2/
http://autobuild.buildroot.net/results/bff/bff5767fc7e821a7674ee022111db84e4a9449d0/

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agoconfigs: atmel: at91sam9x5ek: bump to linux4sam_5.5
Ludovic Desroches [Thu, 3 Nov 2016 14:08:41 +0000 (15:08 +0100)]
configs: atmel: at91sam9x5ek: bump to linux4sam_5.5

Bump at91bootstrap to v3.8.7, U-Boot to linux4sam_5.5, Linux to
linux4sam_5.5 (based on v4.4.x).

Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agoconfigs: atmel: xplained boards: bump to linux4sam_5.5
Ludovic Desroches [Thu, 3 Nov 2016 14:08:40 +0000 (15:08 +0100)]
configs: atmel: xplained boards: bump to linux4sam_5.5

Bump at91bootstrap to v3.8.7, U-Boot to linux4sam_5.5, Linux to linux4sam_5.5
(based on v4.4.x).

Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agodomoticz: bump to version 3.5837
Fabrice Fontaine [Thu, 3 Nov 2016 15:32:44 +0000 (16:32 +0100)]
domoticz: bump to version 3.5837

Signed-off-by: Fabrice Fontaine <fabrice.fontaine@orange.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agoalsa-lib: fix build on powerpc64 and powerpc64le
Sam bobroff [Thu, 3 Nov 2016 03:25:34 +0000 (14:25 +1100)]
alsa-lib: fix build on powerpc64 and powerpc64le

Fixes linker error
http://autobuild.buildroot.net/results/c6272ac900d1a53b976839ac4f50a210b3e6b354

On powerpc64 (and powerpc64le) the build fails due to linker problems
because of an old (2003) workaround for powerpc64, presumably working
around an old toolchain problem that is no longer present. Removing
the workaround allows the build to succeed. A new patch is added for
this.

Additionally, there was a mistake in patch 3: the patch added a test
for HAVE_LIBDL to include/alsa-symbols.h but it was positioned in the
file before config.h was included, so HAVE_LIBDL is never seen as
defined.  The test was also using HAVE_LIBDL (which indicates the
library) rather than HAVE_DLFCN (which indicates the header).

Signed-off-by: Sam Bobroff <sam.bobroff@au1.ibm.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agoDEVELOPERS: transfer lttng-* and liburcu projects to Philippe Proulx
Philippe Proulx [Wed, 2 Nov 2016 23:23:35 +0000 (19:23 -0400)]
DEVELOPERS: transfer lttng-* and liburcu projects to Philippe Proulx

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agolibcurl: move site to https
Baruch Siach [Thu, 3 Nov 2016 07:53:13 +0000 (09:53 +0200)]
libcurl: move site to https

Saves a redirect.

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agonet-tools: add a patch to avoid struct redefinition
Vicente Olivert Riera [Thu, 3 Nov 2016 13:25:46 +0000 (13:25 +0000)]
net-tools: add a patch to avoid struct redefinition

This fixes a struct redefinition problem like this one:

================================
In file included from /usr/include/linux/if_tunnel.h:6:0,
from iptunnel.c:34:
/usr/include/linux/ip.h:85:8: error: redefinition of 'struct iphdr'
struct iphdr {
^
In file included from iptunnel.c:29:0:
/usr/include/netinet/ip.h:45:8: note: originally defined here
struct iphdr
^
================================

iptunnel.c includes netinet/ip.h which contains a definition of the
iphdr struct.

iptunnel.c also includes linux/if_tunnel.h which includes linux/ip.h
which contains a definition of the iphdr struct.

So, both netinet/ip.h and linux/ip.h define the iphdr struct, and both
of them have been included directly or indirectly by iptunnel.c. Because
of that the compilation fails due to a struct redefinition.

The problem can be solved by just not including netinet/ip.h.

The patch has been sent upstream as a merge request:
  https://sourceforge.net/p/net-tools/code/merge-requests/3/

Fixes:
  http://autobuild.buildroot.net/results/dce/dce499da84b2a41bab946d5109a283ccb85c8b81/

Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agoowfs: install python bindings in the correct location
Arnout Vandecappelle [Thu, 3 Nov 2016 20:36:04 +0000 (21:36 +0100)]
owfs: install python bindings in the correct location

The owfs build system has a pretty complicated way of configuring the
Python bindings. It ends up with setting PYSITEDIR to the host-python
site-packages path, and it still prepends DESTDIR to that.

As a simple fix, override PYSITEDIR with the correct value on the make
command line.

Fixes:
http://autobuild.buildroot.net/results/200/200846650641494290aa67d28ea6fb2c9351d4dc
http://autobuild.buildroot.net/results/99c/99c00248dd8b00071bcdbc73336cc276c68a4c16
and many more

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agoDEVELOPERS: Add an entry for mx6udoo_defconfig
Fabio Estevam [Thu, 3 Nov 2016 18:40:17 +0000 (16:40 -0200)]
DEVELOPERS: Add an entry for mx6udoo_defconfig

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agoconfigs: Remove udoo_quad_defconfig
Fabio Estevam [Thu, 3 Nov 2016 18:40:16 +0000 (16:40 -0200)]
configs: Remove udoo_quad_defconfig

configs/mx6udoo_defconfig supports the quad and dual-lite variants,
so there is no need to keep udoo_quad_defconfig anymore.

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agocore: remove redundant "override O := $(O)"
Arnout Vandecappelle [Thu, 3 Nov 2016 01:55:17 +0000 (02:55 +0100)]
core: remove redundant "override O := $(O)"

The top-level Makefile contains an "override O := $(O)" statement that
is purportedly required to make sure the O flag doesn't leak into the
environment of sub-makes. However, since commit 173135d, there is
already an "override O := ..." a few lines down. Therefore, the first
override is redundant.

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Reviewed-by: Samuel Martin <s.martin49@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agocore: don't reset MAKEOVERRIDES when re-entering make
Arnout Vandecappelle [Thu, 3 Nov 2016 01:55:16 +0000 (02:55 +0100)]
core: don't reset MAKEOVERRIDES when re-entering make

We reset MAKEOVERRIDES to avoid passing down variables that are
overridden on the command line to the package build systems. Indeed,
the variables overridden on the command line will be Buildroot
variables and not relevant to the package build system. In particular
the O option is used by some packages and the value passed in on the
command line is plain wrong for the individual package.

However, in commit 916e614b, MAKEOVERRIDES was moved earlier and it
was reset _before_ re-entering make in the cases when something has
to be fixed up (incorrect umask, non-absolute paths in O or CURDIR).
Therefore, if make is re-entered, any command line overrides are lost.

This particularly bites the autobuilders, because they use
O=<relative path> to specify the output directory, and they add
BR2_JLEVEL=... to avoid starting too many jobs in parallel. The
BR2_JLEVEL override is lost.

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Cc: Samuel Martin <s.martin49@gmail.com>
Cc: Yann E. MORIN <yann.morin.1998@free.fr>
Reviewed-by: Samuel Martin <s.martin49@gmail.com>
Tested-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agoDEVELOPERS: remove invalid email address
Baruch Siach [Thu, 3 Nov 2016 07:59:27 +0000 (09:59 +0200)]
DEVELOPERS: remove invalid email address

Merge the two entries of Richard Braun under the correct address.

Cc: Richard Braun <rbraun@sceen.net>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agoCHANGES: additional updates for 2016.11-rc1
Thomas Petazzoni [Thu, 3 Nov 2016 20:46:51 +0000 (21:46 +0100)]
CHANGES: additional updates for 2016.11-rc1

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agoboards: add FriendlyARM Nanopi NEO
Yann E. MORIN [Thu, 3 Nov 2016 20:17:58 +0000 (21:17 +0100)]
boards: add FriendlyARM Nanopi NEO

The FriendlyARM Nanopi NEO is a 4x4cm² board with an Allwiner H3 SoC:
  - quad-core Cortex-A7 @1.2GHz
  - 256 or 512MiB of DDR
  - uSDCard as only storage option
  - 3x USB 2.0 host (one socket, two on expansion pin-holes)
  - 1x USB 2.0 OTG (also used as power source)
  - 10/100 etehrnet MAC
  - GPIOs, SPI, I2c...

Support for the Nanopi NEO in U-Boot and Linux is very recent, so much
so that we have to use an -rc tag for U-Boot and a special Linux tree.

As for Linux, I pushed a git tree on Github with a single tag that
matches what is currently queued in the sunxi-next queued for 4.10,
based on 4.9-rc3. All those commits are from Maxime's tree, the
maintainer for most sunxi stuff.

This also means that we can't use the Linux headers from the kernel
being built (which is what we usually do) because those report 4.9,
while Buildroot currently knows only of 4.8 at best. So this is what we
use.

Unfortunately, support for the ethernet MAC and the USB OTG are not yet
upstream, but are being actively worked on.

The Nanopi NEO is very similar to the Orangepi PC, so I was able to
scanvenge most of its configuration. ;-)

Thanks Maxime for your help on IRC! :-)

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agofs: use pseudo instead of fakeroot
Yann E. MORIN [Sat, 29 Oct 2016 08:26:42 +0000 (10:26 +0200)]
fs: use pseudo instead of fakeroot

fakeroot misbhaves when there are SElinux contexts, as reported in #9386,
and further detailed in https://bugzilla.redhat.com/show_bug.cgi?id=1238802

A proposal in the FC bug is to use pseudo instead of fakeroot. Pseudo is
a from-scratch re-implementation of fakeroot; it is used in Poky/OE
instead of fakeroot.

Fixes #9386.

Reported-by: Andrey Yurovsky <yurovsky@gmail.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Andrey Yurovsky <yurovsky@gmail.com>
Cc: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agopackage/pseudo: new package
Yann E. MORIN [Sat, 29 Oct 2016 08:26:41 +0000 (10:26 +0200)]
package/pseudo: new package

Pseudo is a program that can either be used directly or as an
LD_PRELOAD, which allows these operations to succeed as if the
user did have system administrator privileges even though they
are an ordinary user.

Pseudo has a lot of similarities to fakeroot but is a new
implementation that improves on the problems seen using fakeroot.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Andrey Yurovsky <yurovsky@gmail.com>
Cc: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agoCHANGES: prepare for 2016.11-rc1
Thomas Petazzoni [Thu, 3 Nov 2016 20:31:14 +0000 (21:31 +0100)]
CHANGES: prepare for 2016.11-rc1

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agoDEVELOPERS: add David Lechner
David Lechner [Wed, 2 Nov 2016 21:01:12 +0000 (16:01 -0500)]
DEVELOPERS: add David Lechner

Signed-off-by: David Lechner <david@lechnology.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agotinyalsa: bump version to 1.0.2
Maxime Hadjinlian [Wed, 2 Nov 2016 17:46:24 +0000 (18:46 +0100)]
tinyalsa: bump version to 1.0.2

tinyalsa has started doing release, so we will use it.

With this release, both our patches were applied mainline:
    - 0001-tinypcminfo-make-function-pcm_get_format_name-static.patch [1]
    - 0002-asound.h-include-time.h-to-get-struct-timespec-proto.patch [2]

The Makefile has changed a lot, so we take advantage of that to simplify
our package.

1. https://github.com/tinyalsa/tinyalsa/commit/7d204edfe87f4e22105bcaeb750d69ac769afdd6
2. https://github.com/tinyalsa/tinyalsa/commit/c8333f8c7a4e4b9549abeef7530b2cd20a18e537

Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
[Thomas: add patch to remove doxygen usage.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agolttng-babeltrace: add debug info support
Philippe Proulx [Wed, 2 Nov 2016 06:55:08 +0000 (02:55 -0400)]
lttng-babeltrace: add debug info support

Since Babeltrace 1.4, there is support for printing debug information
along with compatible traces and event records. Babeltrace needs
elfutils in this case.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
[Thomas:
 - add better description for
   0002-m4-ax_lib_elfutils.m4-add-cache-variable.patch
 - use automatic dependency on elfutils rather than a very complicated
   Config.in symbol]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agolttng-babeltrace: add host Babeltrace as host utility
Philippe Proulx [Wed, 2 Nov 2016 06:55:07 +0000 (02:55 -0400)]
lttng-babeltrace: add host Babeltrace as host utility

Although Babeltrace is available for all major Linux distributions, some
of them have a quite old version of this project.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agolttng-babeltrace: bump to version 1.4.0
Philippe Proulx [Wed, 2 Nov 2016 06:55:06 +0000 (02:55 -0400)]
lttng-babeltrace: bump to version 1.4.0

Current patches are dropped because they were merged upstream.

Official upstream site of Babeltrace for the distribution of tarballs
changed from lttng.org to efficios.com (see
<http://diamon.org/babeltrace>).

Official Babeltrace's website changed from
<http://www.efficios.com/babeltrace> to <http://diamon.org/babeltrace>.

I explicitly disable the support for debug informations in this patch to
add it in a separate patch.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agolttng-tools: bump to version 2.8.2
Philippe Proulx [Wed, 2 Nov 2016 06:55:05 +0000 (02:55 -0400)]
lttng-tools: bump to version 2.8.2

The current patches are dropped because they were merged upstream.

The new patches exist to fix the build with musl. They were submitted on
the lttng-dev mailing list, but not merged yet, or not merged in 2.8.2.

LTTng-tools now has its man pages written in AsciiDoc and they get
converted to troff at build time. This is not needed in a Buildroot
image anyway.

The --enable-lttng-ust/--disable-lttng-ust configure options are renamed
to --with-lttng-ust/--without-lttng-ust in v2.8.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agoboard/lego/ev3: Use ev3dev linux ext for ev3dev drivers
David Lechner [Wed, 2 Nov 2016 03:15:56 +0000 (22:15 -0500)]
board/lego/ev3: Use ev3dev linux ext for ev3dev drivers

This uses the ev3dev linux extension to compile the ev3dev drivers for
LEGO MINDSTORMS EV3.

Signed-off-by: David Lechner <david@lechnology.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agolinux: add ev3dev extension
David Lechner [Wed, 2 Nov 2016 03:15:55 +0000 (22:15 -0500)]
linux: add ev3dev extension

This adds an ev3dev Linux drivers extension that provides Linux kernel
drivers for LEGO MINDSTORMS EV3 from the ev3dev project.

Signed-off-by: David Lechner <david@lechnology.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agoboard/lego/ev3: Create images using genimage
David Lechner [Wed, 2 Nov 2016 03:15:54 +0000 (22:15 -0500)]
board/lego/ev3: Create images using genimage

This adds a script to create SD card and flash images for LEGO MINDSTORMS
EV3 using the genimage tool.

The default kernel config had to be modified to add support for squashfs
and to add a ram disk.

Signed-off-by: David Lechner <david@lechnology.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agoconfigs/lego_ev3: add U-Boot support
David Lechner [Wed, 2 Nov 2016 03:15:53 +0000 (22:15 -0500)]
configs/lego_ev3: add U-Boot support

This adds U-Boot configuration for LEGO MINDSTORMS EV3. U-Boot has
had support for LEGO MINDSTORMS EV3 since v2016.05.

Signed-off-by: David Lechner <david@lechnology.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agopackage/{mesa3d, mesa3d-headers}: bump version to 13.0.0
Bernd Kuhls [Tue, 1 Nov 2016 19:24:51 +0000 (20:24 +0100)]
package/{mesa3d, mesa3d-headers}: bump version to 13.0.0

Udev support was removed upstream:
https://cgit.freedesktop.org/mesa/mesa/commit/configure.ac?h=13.0&id=f9f7e44c94f7eee4778768adf7afffba6c0581e7

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agomemcached: security bump to version 1.4.33
Gustavo Zacarias [Tue, 1 Nov 2016 22:59:30 +0000 (19:59 -0300)]
memcached: security bump to version 1.4.33

Fixes:
CVE-2016-8704 - server append/prepend remote code execution
vulnerability.
CVE-2016-8705 - server update remote code execution vulnerability.
CVE-2016-8706 - server SASL authentication remote code execution
vulnerability.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agobind: security bump to version 9.11.0-P1
Gustavo Zacarias [Tue, 1 Nov 2016 22:59:14 +0000 (19:59 -0300)]
bind: security bump to version 9.11.0-P1

Fixes:
CVE-2016-8864 - denial-of-service vector which can potentially be
exploited against BIND 9 servers.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
[Thomas: fix hash URL in .hash file, noticed by Vicente.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agolibcurl: bump version to 7.51.0 (security)
Vicente Olivert Riera [Wed, 2 Nov 2016 11:52:31 +0000 (11:52 +0000)]
libcurl: bump version to 7.51.0 (security)

List of fixed CVEs:

CVE-2016-8615: cookie injection for other servers
CVE-2016-8616: case insensitive password comparison
CVE-2016-8617: OOB write via unchecked multiplication
CVE-2016-8618: double-free in curl_maprintf
CVE-2016-8619: double-free in krb5 code
CVE-2016-8620: glob parser write/read out of bounds
CVE-2016-8621: curl_getdate read out of bounds
CVE-2016-8622: URL unescape heap overflow via integer truncation
CVE-2016-8623: Use-after-free via shared cookies
CVE-2016-8624: invalid URL parsing with '#'
CVE-2016-8625: IDNA 2003 makes curl use wrong host

Full ChangeLog:

https://curl.haxx.se/changes.html#7_51_0

Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agoboard/boundarydevices: remove u-boot from genimage.cfg
Gary Bisson [Wed, 2 Nov 2016 09:17:43 +0000 (10:17 +0100)]
board/boundarydevices: remove u-boot from genimage.cfg

Adding a comment to explain how to update the bootloader since it is
located in NOR flash memory.

Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agosshpass: bump version to 1.06
Gary Bisson [Wed, 2 Nov 2016 09:01:36 +0000 (10:01 +0100)]
sshpass: bump version to 1.06

Changelog:
- Add -P for overriding the password prompt we search for
- Add -v for verbose logging of the prompt detection prompt.
- Allow packagers and compilers to change the default password prompt.
- When giving -V, also print the default password prompt.

Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agoDEVELOPERS: add entry for xdriver_xf86-video-imx-viv
Gary Bisson [Wed, 2 Nov 2016 08:59:11 +0000 (09:59 +0100)]
DEVELOPERS: add entry for xdriver_xf86-video-imx-viv

Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agoDEVELOPERS: add Sam Bobroff as PowerPC-interested person
Thomas Petazzoni [Tue, 1 Nov 2016 20:19:44 +0000 (21:19 +0100)]
DEVELOPERS: add Sam Bobroff as PowerPC-interested person

This will allow Sam to receive PowerPC64(le) related build failures.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agoimx-vpuwrap: bump to version 1.0.68
Gary Bisson [Tue, 1 Nov 2016 16:10:05 +0000 (17:10 +0100)]
imx-vpuwrap: bump to version 1.0.68

Changelog:
- Coverity fixes for checkign return values, unused values, null checking
- H.263 encoder invalid frame rate

This patch is based on the Yocto equivalent:
https://github.com/Freescale/meta-freescale/commit/fd160ae9

Implicitly tested through gstreamer as the 0.10 plugin relies on it:
 # gst-launch-0.10 playbin uri=file:///root/tears_of_steel_1080p.webm

Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 years agoimx-parser: bump to version 4.1.4
Gary Bisson [Tue, 1 Nov 2016 16:10:04 +0000 (17:10 +0100)]
imx-parser: bump to version 4.1.4

Changelog:
- Update license checksum to align to EULA
- Updates for coverity, memory leaks, corrupted content

This patch is based on the Yocto equivalent:
https://github.com/Freescale/meta-freescale/commit/4bbd9dc4

Implicitly tested through gstreamer as the 0.10 plugin relies on it:
 # gst-launch-0.10 playbin uri=file:///root/tears_of_steel_1080p.webm

Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>