buildroot.git
7 years agomesa3d-headers: fix installation of dri.pc
Thomas Petazzoni [Wed, 15 Feb 2017 15:30:47 +0000 (16:30 +0100)]
mesa3d-headers: fix installation of dri.pc

/usr/lib/pkg-config/ is not the correct installation path for .pc files,
it should be in /usr/lib/pkgconfig/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7 years agopackage/x11r7/xserver_xorg-server: Add patch to fix v1.19.1 with SIGIO
Mylene JOSSERAND [Wed, 15 Feb 2017 17:12:16 +0000 (18:12 +0100)]
package/x11r7/xserver_xorg-server: Add patch to fix v1.19.1 with SIGIO

The commit 6a5a4e60373c from xserver v1.19.1 removes SIGIO support for
input [1].

The current patch coming from Open Embedded [2] removes a check of
'useSIGIO'. This check was producing a segfault error while using
X11 and Vivante driver [3]. Thanks to Gary Bisson to point out this
patch!

[1] https://cgit.freedesktop.org/xorg/xserver/commit/?id=6a5a4e60373c1386b311b2a8bb666c32d68a9d99
[2] https://patchwork.openembedded.org/patch/136696/
[3] http://lists.busybox.net/pipermail/buildroot/2017-February/183994.html

Signed-off-by: Mylène Josserand <mylene.josserand@free-electrons.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7 years agolinux-headers: bump 3.10.x series
Gustavo Zacarias [Wed, 15 Feb 2017 19:07:03 +0000 (16:07 -0300)]
linux-headers: bump 3.10.x series

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7 years agoredis: bump to version 3.2.8
Gustavo Zacarias [Wed, 15 Feb 2017 18:10:36 +0000 (15:10 -0300)]
redis: bump to version 3.2.8

It fixes a regression in the 3.2.7 security release that can cause server
deadlocks.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7 years agomusl: no SSP on i386 and PowerPC
Thomas Petazzoni [Wed, 15 Feb 2017 10:50:52 +0000 (11:50 +0100)]
musl: no SSP on i386 and PowerPC

Due to what appears a bug in gcc according to the musl developers, but
that the gcc developers don't want to fix, SSP support currently don't
work on i386 and PowerPC with musl.

Additional details can be found at:

  http://www.openwall.com/lists/musl/2016/12/04/2

OpenWRT and Alpine Linux both have musl and gcc patches to work around
the issue, but in the context of Buildroot, we at this point don't care
enough about SSP support specifically with musl on those architectures
to carry additional patches.

Currently, having SSP enabled with musl/i386 causes a number of build
failures in the autobuilders: cups, ipmiutil, openssh, ruby, stunnel,
sudo and mosh at least all fail to build because of this.

So we simply disable SSP support in the toolchain when musl is used on
i386 and PowerPC. The PowerPC case is not tested in the autobuilders,
but has been reproduced locally and is also fixed by this patch.

Fixes:

  mosh
  http://autobuild.buildroot.net/results/60aa12f1aed08e3b7a98f9ce7091bee3a44d692c/

  ipmi-util
  http://autobuild.buildroot.net/results/fb9a071b8739527f424cfe2886ec480f438f70ab/

  cups
  http://autobuild.buildroot.net/results/486dea944d6ecba5c4e6e8ac664261c1909f4b4c/

  openssh
  http://autobuild.buildroot.net/results/742a8bf4726de6e9ba6926e3fb6019a434454e48/

  sudo
  http://autobuild.buildroot.net/results/682531f368c4e982cafe9e625dd41f6d8c7f93f9/

  ruby
  http://autobuild.buildroot.net/results/dac660f96c7f85e933a6b82cf61edd429eeae9aa/

  stunnel
  http://autobuild.buildroot.net/results/cee52505f1ac2da2f5ba86c9ebfd1f5cd9e301be/

Thanks to Yann E. Morin for suggesting to simply disable SSP support
rather than trying to fix it.

[Peter: add comment explaining why]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
7 years agopackage/libgpiod: bump version to 0.1.3
Bartosz Golaszewski [Tue, 14 Feb 2017 09:33:54 +0000 (10:33 +0100)]
package/libgpiod: bump version to 0.1.3

Release 0.1.2 claimed to fix an issue with requesting both types of
line events, but actually didn't. This time it's really fixed.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7 years agoddrescue: fix uclibc compile
Peter Seiderer [Tue, 14 Feb 2017 19:45:08 +0000 (20:45 +0100)]
ddrescue: fix uclibc compile

Fixes compile failure with uclibc [1] because of missing stdio.h include:

  In file included from io.cc:28:0:
  block.h:219:22: error: ‘FILE’ has not been declared
     int write_mapfile( FILE * f = 0, const bool timestamp = false,

[1] http://autobuild.buildroot.net/results/4ac0754f1cc5ea934d6437e89d1f4906fb3fd0a8

Signed-off-by: Peter Seiderer <ps.report@gmx.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7 years agolibv4l/ir-ctl: fix musl compile
Peter Seiderer [Tue, 14 Feb 2017 20:34:50 +0000 (21:34 +0100)]
libv4l/ir-ctl: fix musl compile

- add copy of TEMP_FAILURE_RETRY macro
- use strdup instead of strdupa

Fixes [1]:

  ir-ctl.c:(.text+0xb06): undefined reference to `strndupa'
  ir-ctl.c:(.text+0xe01): undefined reference to `TEMP_FAILURE_RETRY'

[1] http://autobuild.buildroot.net/results/b8b96c7bbf2147dacac62485cbfdbcfd758271a5

Signed-off-by: Peter Seiderer <ps.report@gmx.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7 years agocups: add host-pkgconf as a dependency
Thomas Petazzoni [Tue, 14 Feb 2017 20:47:59 +0000 (21:47 +0100)]
cups: add host-pkgconf as a dependency

cups configure script checks for a pkg-config program. If host-pkgconf
has not been built prior to cups, it uses the system pkg-config, which
might potentially lead to bogus results:

checking for i586-buildroot-linux-musl-pkg-config... no
checking for pkg-config... /usr/bin/pkg-config

With this patch applied:

checking for i586-buildroot-linux-musl-pkg-config... no
checking for pkg-config... /home/thomas/projets/buildroot/output/host/usr/bin/pkg-config

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
7 years agocbootimage: disable on musl
Thomas Petazzoni [Tue, 14 Feb 2017 20:34:58 +0000 (21:34 +0100)]
cbootimage: disable on musl

cbootimage uses non-standard u_intXX_t types instead of the C99 types
uintXX_t types, which prevents it from building with the musl C library.

A patch to fix this has been submitted upstream, but since there are
many many occurences of such types, the patch is a bit large to carry in
Buildroot, especially compared to the fact that having this package
building against musl is probably not a top priority.

So for now, simply disable this package on musl, until upstream fixes
the issue and releases a new version.

Fixes:

  http://autobuild.buildroot.net/results/61bdfb7e0ff9628190d9eb86e40c4c90e768b8e2

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
7 years agopackage/hiredis: fix makefile code
Yann E. MORIN [Tue, 14 Feb 2017 20:21:31 +0000 (21:21 +0100)]
package/hiredis: fix makefile code

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7 years agopackage/ccache: do not force colored diagnostics
Yann E. MORIN [Tue, 14 Feb 2017 17:24:32 +0000 (18:24 +0100)]
package/ccache: do not force colored diagnostics

When GCC_COLORS is set, ccache passes '-fdiagnostics-color' to GCC but
this flag requires GCC v4.9 or later. Older versions complain about the
unrecognized command line option.

Using GCC_COLORS in the context of Buildroot is seldom useful, so we
just unexport GCC_COLORS altogether.

Reported-by: Carlos Santos <casantos@datacom.ind.br>
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>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
7 years agokmsxx: fix build error for m68k/coldfire
Waldemar Brodkorb [Tue, 14 Feb 2017 14:10:06 +0000 (15:10 +0100)]
kmsxx: fix build error for m68k/coldfire

Fixes:
  http://autobuild.buildroot.org/results/fc8/fc820e0b558537f771588b0e1291a8332427ff8d/

Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
7 years agolibasplib: add url to gcc bug report
Waldemar Brodkorb [Tue, 14 Feb 2017 14:09:27 +0000 (15:09 +0100)]
libasplib: add url to gcc bug report

Add comment to bug report.

Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
7 years agolcdapi: fix build error for m68k/coldfire
Waldemar Brodkorb [Tue, 14 Feb 2017 14:08:31 +0000 (15:08 +0100)]
lcdapi: fix build error for m68k/coldfire

Fixes:
  http://autobuild.buildroot.net/results/d47/d47fa41aa860d82471b83ac90967d3a3dacd8611/

Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
7 years agoopenswan: fix autobuild failures with uClibc-ng
Waldemar Brodkorb [Mon, 13 Feb 2017 21:30:45 +0000 (22:30 +0100)]
openswan: fix autobuild failures with uClibc-ng

Add patch to fix following autobuild failures:

Fixes:
  http://autobuild.buildroot.net/results/31cf680c48bec8ba4450a6fe2156cb441c4dd660
  http://autobuild.buildroot.net/results/95220f231810cb12ba97a6b44af79f84af706c82

Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
7 years agontfs-3g: add security fix for CVE-2017-0358
Peter Korsgaard [Mon, 13 Feb 2017 22:51:10 +0000 (23:51 +0100)]
ntfs-3g: add security fix for CVE-2017-0358

Jann Horn, Project Zero (Google) discovered that ntfs-3g, a read-write
NTFS driver for FUSE does not not scrub the environment before
executing modprobe to load the fuse module. This influence the behavior
of modprobe (MODPROBE_OPTIONS environment variable, --config and
--dirname options) potentially allowing for local root privilege
escalation if ntfs-3g is installed setuid.

Notice that Buildroot does NOT install netfs-3g setuid root, but custom
permission tables might be used, causing it to vulnerable to the above.

ntfs-3g does not seem to have a publicly available version control system
and no new releases have been made, so instead grab the patch from Debian.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
7 years agovim: security bump to version 8.0.0329
Peter Korsgaard [Mon, 13 Feb 2017 22:08:08 +0000 (23:08 +0100)]
vim: security bump to version 8.0.0329

Fixes:

- CVE-2016-1248: vim before patch 8.0.0056 does not properly validate values
  for the 'filetype', 'syntax' and 'keymap' options, which may result in the
  execution of arbitrary code if a file with a specially crafted modeline is
  opened.

- CVE-2017-5953: vim before patch 8.0.0322 does not properly validate values
  for tree length when handling a spell file, which may result in an integer
  overflow at a memory allocation site and a resultant buffer overflow.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
7 years agobctoolbox: fix typos and logic error
Waldemar Brodkorb [Tue, 14 Feb 2017 09:01:32 +0000 (10:01 +0100)]
bctoolbox: fix typos and logic error

To get the directory path from the library name you need to
use a single filename. Fix typo in variable name.

This fixes the ortp autobuild errors which uses the broken pkgconfig file
from bctoolbox.

Fixes:
  http://autobuild.buildroot.net/results/37d5625df4be11ccdc063871e9f6e13d5f59fb52
  http://autobuild.buildroot.net/results/1999c841fae41f860f00747a362327cb2857e687

Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
7 years agoglmark2: bump version to fix build
Gary Bisson [Mon, 13 Feb 2017 20:06:19 +0000 (21:06 +0100)]
glmark2: bump version to fix build

The package otherwise fails to build with a recent toolchain with GCC6
(tested with Linaro ARM 2016.11).

It used to fail at sqrt check during package configuration:
 Checking for function sqrt               : not found
 The configuration failed

Bumping version to latest HEAD fixes the issue as explained in the
following discussion:
https://github.com/glmark2/glmark2/issues/15

Fixes:

  http://autobuild.buildroot.net/results/8dc9400505b9087ce290981d95486598df0beb56/

Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com>
[Thomas: add reference to autobuilder failure.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7 years agopackage/classpath: Don't depend on jamvm
Marcus Hoffmann [Mon, 13 Feb 2017 20:08:38 +0000 (21:08 +0100)]
package/classpath: Don't depend on jamvm

GNU classpath can exist without jamvm, so don't depend on it.

Signed-off-by: Marcus Hoffmann <m.hoffmann@cartelsol.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7 years agowget: bump to 1.19.1 to fix build issue
Thomas Petazzoni [Mon, 13 Feb 2017 21:10:43 +0000 (22:10 +0100)]
wget: bump to 1.19.1 to fix build issue

Due to the patches we have on wget 1.19, we need to
autoreconf. Unfortunately, when the autoreconfiguration process occurs
with host-gettext already built and installed, the build of wget fails
with a fairly weird error:

In file included from str-two-way.h:44:0,
                 from c-strcasestr.c:37:
./stdint.h:89:5: error: #if with no expression
 #if

As explained in http://git.net/ml/bug-gnulib-gnu/2017-01/msg00067.html
and the links pointed by this page, this is due to an incompatibility
between the newer version of gnulib used in wget, and an older .m4 file
in gettext.

In the context of Buildroot, the easiest way to avoid the issue is to
not autoreconf wget. The wget project has conveniently released a 1.19.1
release, which contains our two patches, plus just one small feature
addition. It is therefore reasonable to apply this as a solution to this
build issue.

Fixes:

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

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7 years agoxfsprogs: needs thread support
Thomas Petazzoni [Mon, 13 Feb 2017 20:26:20 +0000 (21:26 +0100)]
xfsprogs: needs thread support

Fixes:

 http://autobuild.buildroot.net/results/57975f401f39b673eeec304b4738cfb41a19ece7/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7 years agodocs/website/news.html: fix link to 2017.02-rc1 tarball
Thomas Petazzoni [Mon, 13 Feb 2017 20:01:33 +0000 (21:01 +0100)]
docs/website/news.html: fix link to 2017.02-rc1 tarball

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7 years agoriemann-c-client: disable parallel make
Peter Korsgaard [Mon, 13 Feb 2017 09:07:41 +0000 (10:07 +0100)]
riemann-c-client: disable parallel make

Fixes:
http://autobuild.buildroot.net/results/2f8/2f85a2d19232365f7e5fddde6092af9dd74d4518/
http://autobuild.buildroot.net/results/80d/80d83c650c668ee1e87c288bd7a0ce63eab95631/

The build system doesn't specify any dependencies between the generated
header files and the source files including them, causing a race condition:

  GEN      lib/riemann/proto/riemann.pb-c.c
  GEN      lib/riemann/proto/riemann.pb-c.h
  CC       src/src_riemann_client-riemann-client.o
In file included from ./lib/riemann/riemann-client.h:23:0,
                 from src/riemann-client.c:18:
./lib/riemann/attribute.h:21:40: fatal error: riemann/proto/riemann.pb-c.h: No such file or directory

Work around it by forcing non-parallel make.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
7 years agobind: security bump to version 9.11.0-P3
Peter Korsgaard [Sun, 12 Feb 2017 21:59:58 +0000 (22:59 +0100)]
bind: security bump to version 9.11.0-P3

Fixes CVE-2017-3135: Combination of DNS64 and RPZ Can Lead to Crash:

https://kb.isc.org/article/AA-01453

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
7 years agosupport/test-pkg: report number and types of failures
Yann E. MORIN [Sun, 12 Feb 2017 14:53:09 +0000 (15:53 +0100)]
support/test-pkg: report number and types of failures

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: Luca Ceresoli <luca@lucaceresoli.net>
Cc: Thomas De Schampheleire <patrickdepinguin@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7 years agosupport/test-pkg: be less verbose
Yann E. MORIN [Sun, 12 Feb 2017 14:53:08 +0000 (15:53 +0100)]
support/test-pkg: be less verbose

Requested-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7 years agosupport/test-pkg: simplify the config check
Yann E. MORIN [Sun, 12 Feb 2017 14:53:07 +0000 (15:53 +0100)]
support/test-pkg: simplify the config check

Use comm(1) to check that all our config options are properly set in the
resulting configuration, rather than our canned and fragile code.

Reported-by: Cam Hutchison <camh@xdna.net>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7 years agosupport/test-pkg: check the config snippet exists
Yann E. MORIN [Sun, 12 Feb 2017 14:53:06 +0000 (15:53 +0100)]
support/test-pkg: check the config snippet exists

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7 years agosupport/test-pkg: fix code style
Yann E. MORIN [Sun, 12 Feb 2017 14:53:05 +0000 (15:53 +0100)]
support/test-pkg: fix code style

Reported-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7 years agowiringpi: fix static linking
Peter Seiderer [Sat, 11 Feb 2017 22:04:08 +0000 (23:04 +0100)]
wiringpi: fix static linking

Update patch 0001-Adjust-for-buildroot-build.patch to
use real static linking (command line flag '-static' for
target gpio-static).

Fixes [1]:

  [Link]
  .../output/host/usr/lib/gcc/powerpc-buildroot-linux-uclibc/5.4.0/libgcc.a(unwind-dw2-fde-dip.o): In function `_Unwind_Find_FDE':
  ...output/build/host-gcc-final-5.4.0/build/powerpc-buildroot-linux-uclibc/libgcc/../../../libgcc/unwind-dw2-fde-dip.c:465: undefined reference to `dl_iterate_phdr'
  collect2: error: ld returned 1 exit status
  make[1]: *** [gpio-static] Error 1
  make[1]: Leaving directory `.../output/build/wiringpi-2.32/gpio'

[1] http://autobuild.buildroot.net/results/b905617dda0e120d04c54daf7cae2bad236ac767

Signed-off-by: Peter Seiderer <ps.report@gmx.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7 years agopackage/gdb: backport upstream fix for simulator build issue with bfin
Romain Naour [Sat, 11 Feb 2017 22:51:19 +0000 (23:51 +0100)]
package/gdb: backport upstream fix for simulator build issue with bfin

This revert the commit [1] which break the simulator for aarch64.
Backport the upstream fix instead (from 7.12).

[1] f71ad71f24fbeca1a81cc9efe79016a7db6f1320

Tested with gcc 4.4.5 (debian squeeze chroot).

Fixes:
http://autobuild.buildroot.net/results/cfd/cfdc9117fef7ecdf5cc5fc907a6fe8701a2c174a

Signed-off-by: Romain Naour <romain.naour@gmail.com>
Cc: Waldemar Brodkorb <wbx@openadk.org>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7 years agoDEVELOPERS: update my entry list
Peter Seiderer [Fri, 10 Feb 2017 20:28:43 +0000 (21:28 +0100)]
DEVELOPERS: update my entry list

Interested in all qt5 stuff.

Signed-off-by: Peter Seiderer <ps.report@gmx.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7 years agodocs/website: update release announcement with mailing list link
Thomas Petazzoni [Sat, 11 Feb 2017 15:31:46 +0000 (16:31 +0100)]
docs/website: update release announcement with mailing list link

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7 years agoCHANGES: final updates before 2017.02-rc1
Thomas Petazzoni [Sat, 11 Feb 2017 14:47:42 +0000 (15:47 +0100)]
CHANGES: final updates before 2017.02-rc1

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7 years agoPrepare for 2017.02-rc1
Thomas Petazzoni [Sat, 11 Feb 2017 14:47:27 +0000 (15:47 +0100)]
Prepare for 2017.02-rc1

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7 years agoCHANGES: prepare for 2017.02-rc1
Thomas Petazzoni [Sat, 11 Feb 2017 14:41:10 +0000 (15:41 +0100)]
CHANGES: prepare for 2017.02-rc1

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7 years agopoppler: qt5 support needs c++11 (since Qt5.7)
Naumann Andreas [Sat, 11 Feb 2017 11:05:31 +0000 (12:05 +0100)]
poppler: qt5 support needs c++11 (since Qt5.7)

Signed-off-by: Andreas Naumann <anaumann@ultratronik.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7 years agopoppler: Add option for Qt5 support
Jens Kleintje [Sat, 11 Feb 2017 11:05:30 +0000 (12:05 +0100)]
poppler: Add option for Qt5 support

Add an option to build the libpoppler-qt5 library.

Signed-off-by: Andreas Naumann <anaumann@ultratronik.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7 years agoqt5: Rename version variable to include _PACKAGE_
Naumann Andreas [Sat, 11 Feb 2017 11:05:29 +0000 (12:05 +0100)]
qt5: Rename version variable to include _PACKAGE_

Signed-off-by: Andreas Naumann <anaumann@ultratronik.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7 years agomotion: disable autotools host optimization
Ray Kinsella [Fri, 10 Feb 2017 10:36:59 +0000 (10:36 +0000)]
motion: disable autotools host optimization

The motion autotools script helpfully detects the host
Microprocessors intr set and optimizes for it.
Disabling this feature causes autotools to use the
target parameters passed by BR instead.

Signed-off-by: Ray Kinsella <ray.kinsella@intel.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7 years agowget: add upstream patch to fix build failure
Rahul Bedarkar [Fri, 10 Feb 2017 06:54:40 +0000 (12:24 +0530)]
wget: add upstream patch to fix build failure

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

Signed-off-by: Rahul Bedarkar <rahul.bedarkar@imgtec.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7 years agoutil-linux: enable AUTORECONF
Rahul Bedarkar [Fri, 10 Feb 2017 14:01:40 +0000 (19:31 +0530)]
util-linux: enable AUTORECONF

Commit 55a9737895cb ("util-linux: link scriptreplay with libm (for isnan)")
added two patches that touch configure.ac and Makemodule.am. But forgot
to enable AUTORECONF.

When AUTORECONF is disabled and configure.ac is patched, it looks like
make will detect change in timestamps and trigger reconfig. But it
later fails because of missing dependencies. To fix this, explicitly
enable AUTORECONF.

Fixes:
  http://autobuild.buildroot.net/results/544/544e8da290d40424ea3d1bffad7e0b8a566de495

Fixes: 55a9737895cb ("util-linux: link scriptreplay with libm (for isnan)")
Signed-off-by: Rahul Bedarkar <rahul.bedarkar@imgtec.com>
Cc: Carlos Santos <casantos@datacom.ind.br>
Acked-by: Carlos Santos <casantos@datacom.ind.br>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7 years agoddrescue: needs c++ compiler
Peter Seiderer [Fri, 10 Feb 2017 20:21:12 +0000 (21:21 +0100)]
ddrescue: needs c++ compiler

Fixes [1].

[1] http://autobuild.buildroot.net/results/0af569ad06efa36e8e1ae45acd1facfd98b86f20

Signed-off-by: Peter Seiderer <ps.report@gmx.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7 years agomkpimage: bump to latest barebox version
Lionel Flandrin [Mon, 30 Jan 2017 10:33:25 +0000 (11:33 +0100)]
mkpimage: bump to latest barebox version

Adds support for header v1 (used on Arria 10 SoCs)

Signed-off-by: Lionel Flandrin <lionel@svkt.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7 years agolxc: bump to version 2.0.7
Fabrice Fontaine [Thu, 9 Feb 2017 21:36:48 +0000 (22:36 +0100)]
lxc: bump to version 2.0.7

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7 years agosupport/test-pkg: add option to limit the number of tests
Yann E. MORIN [Wed, 8 Feb 2017 20:15:27 +0000 (21:15 +0100)]
support/test-pkg: add option to limit the number of tests

Sometimes, it interesting to have a global overview of whether the
package builds at all or not, rather than test on all toolchains.

Add an option that allows testing on a limited set of randomly choosen
toolchains.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: Luca Ceresoli <luca@lucaceresoli.net>
Cc: Thomas De Schampheleire <patrickdepinguin@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7 years agosupport/test-pkg: store lines missing from resulting configuraiton
Yann E. MORIN [Wed, 8 Feb 2017 20:15:25 +0000 (21:15 +0100)]
support/test-pkg: store lines missing from resulting configuraiton

When a build is skipped, store the lines from the config snippet, that
are missing in the resulting configuration, in a file in the build
directory, for the user to inspect.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: Luca Ceresoli <luca@lucaceresoli.net>
Cc: Thomas De Schampheleire <patrickdepinguin@gmail.com>
Acked-by: Luca Ceresoli <luca@lucaceresoli.net>
Tested-by: Luca Ceresoli <luca@lucaceresoli.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7 years agosupport/scripts: add script to test a package
Yann E. MORIN [Wed, 8 Feb 2017 20:15:24 +0000 (21:15 +0100)]
support/scripts: add script to test a package

This script helps in testing that a package builds fine on a wide range
of architectures and toolchains: BE/LE, 32/64-bit, musl/glibc/uclibc...

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
[yann.morin.1998@free.fr:
 - completely rewrite the script from Thomas, with help from Luca
]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Luca Ceresoli <luca@lucaceresoli.net>
Cc: Thomas De Schampheleire <patrickdepinguin@gmail.com>
Acked-by: Luca Ceresoli <luca@lucaceresoli.net>
Reviewed-by: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
Tested-by: Luca Ceresoli <luca@lucaceresoli.net>
Acked-by: Luca Ceresoli <luca@lucaceresoli.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7 years agopackage/x11r7/xdriver_xf86-input-libinput: bump version to 0.24.0
Bernd Kuhls [Thu, 9 Feb 2017 20:57:25 +0000 (21:57 +0100)]
package/x11r7/xdriver_xf86-input-libinput: bump version to 0.24.0

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7 years agoconfigs/mx25pdk: Bump U-Boot and kernel versions
Fabio Estevam [Thu, 9 Feb 2017 21:10:50 +0000 (19:10 -0200)]
configs/mx25pdk: Bump U-Boot and kernel versions

Bump U-Boot to 2017.01 version and kernel to 4.9.9.

Signed-off-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7 years agopackage/qt5: add meaningful help texts and package URLs
Zoltan Gyarmati [Wed, 8 Feb 2017 10:26:35 +0000 (11:26 +0100)]
package/qt5: add meaningful help texts and package URLs

Signed-off-by: Zoltan Gyarmati <mr.zoltan.gyarmati@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7 years agopackage/qt5: remove menu comment about deprecated modules
Zoltan Gyarmati [Wed, 8 Feb 2017 10:26:34 +0000 (11:26 +0100)]
package/qt5: remove menu comment about deprecated modules

As now the Qt version is configurable to simplify the menu display
logic we remove the menu comment about deprecated modules and
indicate it in the relevant modules' help text instead, and also
mention in the help text if a package's tech preview status has been
changed between Qt 5.6 and Qt 5.8

Signed-off-by: Zoltan Gyarmati <mr.zoltan.gyarmati@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7 years agoutil-linux: link scriptreplay with libm (for isnan)
Carlos Santos [Wed, 8 Feb 2017 15:17:43 +0000 (13:17 -0200)]
util-linux: link scriptreplay with libm (for isnan)

- Cherry-pick a patch from upstream to link scriptreplay to libm (for
  "isnam").
- Add a patch that improves the detection of isnan when using uClibc.
  This patch is for util-linux v2.29.1 and must be adapted to their
  master branch to be submitted upstream.

Fixes:
  http://autobuild.buildroot.net/results/2c2/2c29a78ed81ca844a87dcd076ab3e14ea080296d
  http://autobuild.buildroot.net/results/404/404b10f359b2ae8a7216729fa1bab37fed2d3d4c

Signed-off-by: Carlos Santos <casantos@datacom.ind.br>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7 years agopackage/cryptodev-linux: fix build with recent kernels
Sébastien Szymanski [Thu, 9 Feb 2017 10:32:04 +0000 (11:32 +0100)]
package/cryptodev-linux: fix build with recent kernels

cryptodev-linux-1.8 build is broken with kernel >= 4.6.0 because of
APIs changes in the kernel. Upstream already fixed this:

https://github.com/cryptodev-linux/cryptodev-linux/commit/2b29be8ac41414ed19cb4f5d5626d9bd0d7b11a8
https://github.com/cryptodev-linux/cryptodev-linux/commit/f126e4837e6334d0464540995df7426fedf6b175
https://github.com/cryptodev-linux/cryptodev-linux/commit/f14b4706b0d04988e7e5bc8c4d2aefef9f029d9d
https://github.com/cryptodev-linux/cryptodev-linux/commit/cb186f682679383e8b5806240927903730ce85d9

Bump to latest commit to fix cryptodev-linux build.

Signed-off-by: Sébastien Szymanski <sebastien.szymanski@armadeus.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7 years agoddrescue: fix target build
Baruch Siach [Thu, 9 Feb 2017 19:50:18 +0000 (21:50 +0200)]
ddrescue: fix target build

ddrescue is not an autotools package. Convert to generic package to make
it build correctly for target architecture.

Cc: Peter Seiderer <ps.report@gmx.net>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7 years agolzip: bump to version 1.18
Baruch Siach [Thu, 9 Feb 2017 19:50:13 +0000 (21:50 +0200)]
lzip: bump to version 1.18

Also, correct license.

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7 years agolzip: use the more informative homepage link
Baruch Siach [Thu, 9 Feb 2017 19:50:12 +0000 (21:50 +0200)]
lzip: use the more informative homepage link

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7 years agotoolchain/toolchain-common.in: fix definition of BR2_TOOLCHAIN_HAS_GCC_BUG_64735
Thomas Petazzoni [Thu, 9 Feb 2017 20:31:28 +0000 (21:31 +0100)]
toolchain/toolchain-common.in: fix definition of BR2_TOOLCHAIN_HAS_GCC_BUG_64735

The rework done on commit
accba02a47942b54c01b506512ddccf34d57c357 ("toolchain: add option for
toolchains affected by GCC PR libstdc++/64735") by me was wrong. The
BR2_TOOLCHAIN_HAS_GCC_BUG_64735 option should be enabled when the bug is
present in the toolchain, not the opposite.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7 years agopackage/mpd: affected by GCC PR libstdc++/64735
Jörg Krause [Thu, 9 Feb 2017 17:47:58 +0000 (18:47 +0100)]
package/mpd: affected by GCC PR libstdc++/64735

MPD uses `exception_ptr` from libstdc++ which is not available for
architectures affected by GCC PR libstdc++/64735.

Fixes:
http://autobuild.buildroot.net/results/552/552e0c4d6482b60045a91fd398c4ffecd8877cce/
http://autobuild.buildroot.net/results/4d3/4d384950b6dba21163bdcd7721ddad133beeb72b/
http://autobuild.buildroot.net/results/842/842e992315dd78765938e6b629386a18fa9bb00c/
.. and many more.

Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7 years agotoolchain: add option for toolchains affected by GCC PR libstdc++/64735
Jörg Krause [Thu, 9 Feb 2017 17:47:54 +0000 (18:47 +0100)]
toolchain: add option for toolchains affected by GCC PR libstdc++/64735

exception_ptr, nested_exception, and future from libstdc++ are not
available for architectures not supporting always lock-free atomic ints
before GCC 7.

Bug report:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64735

Fix available starting from GCC 7 (not yet released):
https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=244051

Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
[Thomas:
 - directly define the value where BR2_TOOLCHAIN_HAS_GCC_BUG_64735
   rather than having additional patches touching affected architectures
   Config.in files
 - add a better comment above the Config.in option.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7 years agoqt5: latest/5.8.0 needs c++11 host compiler support
Peter Seiderer [Thu, 9 Feb 2017 18:00:31 +0000 (19:00 +0100)]
qt5: latest/5.8.0 needs c++11 host compiler support

Signed-off-by: Peter Seiderer <ps.report@gmx.net>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
7 years agoddrescue: new package
Peter Seiderer [Thu, 9 Feb 2017 17:48:29 +0000 (18:48 +0100)]
ddrescue: new package

Signed-off-by: Peter Seiderer <ps.report@gmx.net>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
7 years agolibevent: drop openssl static linking workaround
Peter Korsgaard [Thu, 9 Feb 2017 10:29:52 +0000 (11:29 +0100)]
libevent: drop openssl static linking workaround

Commit f29bb169cf (libevent: fix openssl detection when statically linking)
forced libevent to link against zlib when statically linking against openssl
as the configure script failed to do this.

Since then libevent has been bumped, and it now uses pkg-config to figure
out how to link with openssl, so ensure pkg-config is available and drop the
now-unneeded workaround.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
7 years agolibevent: disable sample programs to workaround static linking issue
Peter Korsgaard [Thu, 9 Feb 2017 10:29:51 +0000 (11:29 +0100)]
libevent: disable sample programs to workaround static linking issue

Fixes:
http://autobuild.buildroot.net/results/1e7/1e7027b1b87d88b4517b1b19d3a2ae54c24f2c10/
http://autobuild.buildroot.net/results/ff7/ff7e010b41e7448d15d20396e9e9bd7319dd493b/
http://autobuild.buildroot.net/results/269/269a3a76f61c65423ba703a85e94cc003fb75e4c/

Libevent/libtool gets confused by the library order when statically linking
the sample programs and passes -lz before -lcrypto even though libcrypto
uses zlib.

/bin/bash ./libtool --tag=CC --mode=link ..  -o sample/https-client \
sample/https-client.o sample/hostcheck.o \
sample/openssl_hostname_validation.o libevent.la \
libevent_openssl.la -lssl -lcrypto -lz -lz -lcrypto

libtool: link: ..  -o sample/https-client sample/https-client.o \
sample/hostcheck.o sample/openssl_hostname_validation.o \
./.libs/libevent.a ./.libs/libevent_openssl.a \
-lssl -lz -lcrypto

../libcrypto.a(c_zlib.o): In function `zlib_stateful_expand_block':
c_zlib.c:(.text+0x30): undefined reference to `inflate'

This is most likely fixable, but as the sample programs aren't installed /
used, simply skip building them to save time and work around this issue.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
7 years agotslib: bump to 1.5
Martin Kepplinger [Thu, 9 Feb 2017 13:37:24 +0000 (14:37 +0100)]
tslib: bump to 1.5

Signed-off-by: Martin Kepplinger <martin.kepplinger@ginzinger.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
7 years agoed: security bump to version 1.14.1
Baruch Siach [Thu, 9 Feb 2017 13:32:30 +0000 (15:32 +0200)]
ed: security bump to version 1.14.1

Fixes CVE-2017-5357: crash with some malformed commands.

Upstream now provides .tar.lz archive. Add the necessary extract command.

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
7 years agoquagga: security bump to version 1.1.1
Baruch Siach [Thu, 9 Feb 2017 12:31:28 +0000 (14:31 +0200)]
quagga: security bump to version 1.1.1

Fixes CVE-2017-5495: Telnet interface input buffer allocates unbounded amounts
of memory, leading to DoS.

Add optional dependency on protobuf-c.

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
7 years agolinux-headers: bump 4.{4, 9}.x and 3.18 series
Fabio Estevam [Thu, 9 Feb 2017 10:27:09 +0000 (08:27 -0200)]
linux-headers: bump 4.{4, 9}.x and 3.18 series

Signed-off-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
7 years agolinux: bump default to version 4.9.9
Fabio Estevam [Thu, 9 Feb 2017 10:27:08 +0000 (08:27 -0200)]
linux: bump default to version 4.9.9

Signed-off-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
7 years agoRevert "tslib: needs kernel headers 3.12"
Martin Kepplinger [Thu, 9 Feb 2017 05:55:04 +0000 (07:55 +0200)]
Revert "tslib: needs kernel headers 3.12"

This reverts commit 7c60211ce38273580f1f8bf5886771406f9899ca.

tslib-1.4 removes this dependency.

Add upstream patch that fixes input macros declaration for older kernels.

The ts_uinput tool requires 3.6 headers; disable for older kernels.

Signed-off-by: Martin Kepplinger <martin.kepplinger@ginzinger.com>
[baruch: add tslib patch; disable ts_uinput]
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
7 years agolm-sensors: download from debian snapshot archive
Baruch Siach [Thu, 9 Feb 2017 04:36:32 +0000 (06:36 +0200)]
lm-sensors: download from debian snapshot archive

ftp.netroedge.com is (also) down. Download the package from the Debian
snapshot archive.

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
7 years agowget: add upstream patch to fix build failure
Rahul Bedarkar [Wed, 8 Feb 2017 13:32:18 +0000 (19:02 +0530)]
wget: add upstream patch to fix build failure

Fixes:
  http://autobuild.buildroot.net/results/fed/fed53124d43c37629295ddc4cdc371f4dc862860

Signed-off-by: Rahul Bedarkar <rahul.bedarkar@imgtec.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
7 years agobash: add upstream security fixes to patch level 12
Peter Korsgaard [Wed, 8 Feb 2017 08:12:03 +0000 (09:12 +0100)]
bash: add upstream security fixes to patch level 12

Fixes CVE-2017-5932 - Shell code execution on tab completion of specially
crafted files. For details, see the report:

https://github.com/jheyens/bash_completion_vuln/raw/master/2017-01-17.bash_completion_report.pdf

We unfortunately cannot easily download these because of the file names (not
ending in patch) and patch format (p0), so convert to p1 format and include
in package/bash with the following script:

for i in 06 07 08 09 10 11 12; do
cat > bash44-0$i.patch << EOF
>From https://ftp.gnu.org/gnu/bash/bash-4.4-patches/bash44-0$i

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
EOF
curl https://ftp.gnu.org/gnu/bash/bash-4.4-patches/bash44-0$i | \
sed -e 's|^\*\*\* \.\./|*** |' -e 's|^--- |--- b/|' >> bash44-0$i.patch
done

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
7 years agolm-sensors: update homepage link
Baruch Siach [Wed, 8 Feb 2017 08:06:23 +0000 (10:06 +0200)]
lm-sensors: update homepage link

The lm-sensors.org website is down, and won't be coming back anytime soon. Use
the suggested[1], far from adequate, alternative.

[1] https://github.com/groeck/lm-sensors/issues/3

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
7 years agoreproducible: enable fakedate
Jérôme Pouiller [Tue, 20 Dec 2016 13:46:21 +0000 (14:46 +0100)]
reproducible: enable fakedate

Enable fakedate for whole build process.

This work was sponsored by `BA Robotic Systems'.

Signed-off-by: Jérôme Pouiller <jezz@sysmic.org>
Reviewed-by: Samuel Martin <s.martin49@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
7 years agofakedate: new package
Jérôme Pouiller [Tue, 20 Dec 2016 13:46:19 +0000 (14:46 +0100)]
fakedate: new package

`date' is widely used by packages to include build information in their
binaries. Unfortunately, this is incompatible with BR2_REPRODUCIBLE.

Instead of having to identify all `date' invocations in the different
packages, this commit adds a small tool that allows to always return
the same date.

This work was sponsored by `BA Robotic Systems'.

[Peter: drop debugging print]
Signed-off-by: Jérôme Pouiller <jezz@sysmic.org>
Reviewed-by: Samuel Martin <s.martin49@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
7 years agoreproducible: fix DATE/TIME macros in toolchain-wrapper
Jérôme Pouiller [Tue, 20 Dec 2016 13:46:18 +0000 (14:46 +0100)]
reproducible: fix DATE/TIME macros in toolchain-wrapper

The use of the __DATE__ and __TIME__ macros are one of the most common
sources of non-reproducible binaries. In order to fix that, gcc 7 supports
the SOURCE_DATE_EPOCH variable:

https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=e3e8c48c4a494d9da741c1c8ea6c4c0b7c4ff934

This patch take advantage of toolchain-wrapper to provide support of
SOURCE_DATE_EPOCH to older gcc versions.

Function get_source_date_epoch() come directly from gcc git.

This work was sponsored by `BA Robotic Systems'.

[Peter: use sizeof for character array sizes, make function static,
extend commit message, add upstream gcc commit]
Signed-off-by: Jérôme Pouiller <jezz@sysmic.org>
Reviewed-by: Samuel Martin <s.martin49@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
7 years agopython-pyyaml: bump to version 3.12
Yegor Yefremov [Tue, 7 Feb 2017 15:56:36 +0000 (16:56 +0100)]
python-pyyaml: bump to version 3.12

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
7 years agopython-pyqt: use 'depends on' rather than 'select' for Qt
Naumann Andreas [Thu, 22 Dec 2016 14:21:14 +0000 (15:21 +0100)]
python-pyqt: use 'depends on' rather than 'select' for Qt

When pyqt is used it's obvious that qt needs to be selected and
configured by the user, hence we enforce it by making pyqt depending on
qt, rather than selecting it and depending only on the qt requirements.

Signed-off-by: Andreas Naumann <anaumann@ultratronik.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7 years agopython-pyqt5: use 'depends on' rather than 'select' for Qt5
Naumann Andreas [Tue, 31 Jan 2017 07:59:10 +0000 (08:59 +0100)]
python-pyqt5: use 'depends on' rather than 'select' for Qt5

When pyqt5 is used it's obvious that qt5 needs to be selected and
configured by the user, hence we enforce it by making pyqt5 depending on
qt5, rather than selecting it and depending only on the qt5
requirements.

Signed-off-by: Andreas Naumann <anaumann@ultratronik.de>
Signed-off-by: Zoltan Gyarmati <mr.zoltan.gyarmati@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7 years agoqt5quickcontrols: More deterministic target install
Naumann Andreas [Tue, 31 Jan 2017 07:59:08 +0000 (08:59 +0100)]
qt5quickcontrols: More deterministic target install

Restrict target install to quickcontrols(1) qmls only.

Installing everything under qml/QtQuick includes e.g. quickcontrols2 if
existent in staging (but not selected). Another issue may arise e.g. for a
external package that creates more files than it installs itself under
qml/QtQuick. In that case, it would depend on the order of the packages how
much gets installed into target.

Signed-off-by: Andreas Naumann <anaumann@ultratronik.de>
Signed-off-by: Zoltan Gyarmati <mr.zoltan.gyarmati@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7 years agoqt5base: conditionally install bundled fonts to target
Julien Corjon [Tue, 31 Jan 2017 07:59:06 +0000 (08:59 +0100)]
qt5base: conditionally install bundled fonts to target

qtbase carries nor more fonts since c5ceabb9a1caf6b9b7615a28c3097f221772f645

So for Qt Version 5.8.0 this reverts commit
cdfa21b06041eb601e0bea79f2c8f50e9d637384 and part of
186ef9f6f4647ed34b67a3427a5e0e249f0794e7.

Signed-off-by: Andreas Naumann <anaumann@ultratronik.de>
Signed-off-by: Julien Corjon <corjon.j@ecagroup.com>
Signed-off-by: Zoltan Gyarmati <mr.zoltan.gyarmati@gmail.com>
[Thomas: adjust commit log.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7 years agoqt53d/qt5quickcontrols2/qt5serialbus: move out of tech preview
Julien Corjon [Tue, 31 Jan 2017 07:59:05 +0000 (08:59 +0100)]
qt53d/qt5quickcontrols2/qt5serialbus: move out of tech preview

See http://blog.qt.io/blog/2016/06/16/qt-5-7-released/

Signed-off-by: Julien Corjon <corjon.j@ecagroup.com>
Signed-off-by: Andreas Naumann <anaumann@ultratronik.de>
Signed-off-by: Zoltan Gyarmati <mr.zoltan.gyarmati@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7 years agoqt5enginio: move into legacy compatibility
Julien Corjon [Tue, 31 Jan 2017 07:59:04 +0000 (08:59 +0100)]
qt5enginio: move into legacy compatibility

See https://wiki.qt.io/New_Features_in_Qt_5.7

Signed-off-by: Julien Corjon <corjon.j@ecagroup.com>
Signed-off-by: Andreas Naumann <anaumann@ultratronik.de>
Signed-off-by: Zoltan Gyarmati <mr.zoltan.gyarmati@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7 years agoqt5: add choice between version 5.6.2 and 5.8.0
Naumann Andreas [Tue, 31 Jan 2017 07:59:03 +0000 (08:59 +0100)]
qt5: add choice between version 5.6.2 and 5.8.0

For 5.8.0
- add hashes
- qt5 need C++11 compliant compiler since 5.7 ([1])
- use different licenses: since version 5.7 Qt removed the LGPL v2.1 option in favor
  of v3 with a different exception
- qt5base: renamed library to EglFSDeviceIntegration ([2])
- qt5base: remove ras-pi patch, commit c0cc5052097c723d0331a7619d686af9eb93d33c fix it ([3])
- qt5base: remove 0007-eglfs-fix-eglfs_mali-compile-for-odroid-mali.patch (upstream committed [3b])
- qt5base: remove obsolete config-option -large ([4])
- qt5base: gstreamer support fully moved to qt5multimedia, so gstreamer
  related options are no longer passed ([5])
- add patch for python-pyqt5 to fix the build with Qt 5.8
- add tweak in libv4l to fix the build with Qt 5.8, originally provided
  by Peter Seiderer
- add patch from Peter Seiderer fixing a build issue with freetype

For 5.6.2
- moved patches to subdir, and renumber patches

[1]  http://blog.qt.io/blog/2016/06/16/qt-5-7-released/
[2]  https://code.qt.io/cgit/qt/qtbase.git/commit/?id=ec4eb4db61094179bc6a9ec26ec68fb710177053
[3]  https://codereview.qt-project.org/#/c/167172/
[3b] https://code.qt.io/cgit/qt/qtbase.git/commit/?id=f1b4bd4790860e1ff5afcec111a359bc3a91cfda
[4]  https://code.qt.io/cgit/qt/qtbase.git/commit/?id=84d3a21c9efe7efb2cce6d3bd14af1f9580b1108
[5]  https://code.qt.io/cgit/qt/qtbase.git/commit/?id=7d4da559afb62a779b3d90a65fb679cb5433f203

Signed-off-by: Andreas Naumann <anaumann@ultratronik.de>
Signed-off-by: Julien Corjon <corjon.j@ecagroup.com>
Signed-off-by: Zoltan Gyarmati <mr.zoltan.gyarmati@gmail.com>
[Thomas:
 - tweak commit log about GStreamer related changes, suggested by Arnout
 - move the gcc 4.8 dependency from the main qt5 option to just the
   qt5.8 selection, so that qt5.6 can still be built if gcc < 4.8 is
   used. Noticed by Arnout.
 - rename the options of the version selection to not include the
   version number itself so that we don't have to keep legacy
   symbols. Noticed by Arnout.
 - introduce changes to qt5quickcontrols2.mk needed to handle qt5.6
   vs. qt5.8, borrowed from a later patch in the series.
 - add patch for python-pyqt5 to fix the build with Qt 5.8.
 - add fix to libv4l.mk from Peter Seiderer to fix the build with Qt
   5.8.
 - renumber patches for 5.6.2, suggested by Arnout.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7 years agologrotate: enable selinux support
Adam Duskett [Tue, 7 Feb 2017 14:04:11 +0000 (09:04 -0500)]
logrotate: enable selinux support

Selinux is currently disabled staticly in logrotate. This patch fixes
this by checking for libselinux and adding it as a dependecy if it has
been selected.

Signed-off-by: Adam Duskett <Adamduskett@outlook.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7 years agologrotate: bump to version 3.11.0
Adam Duskett [Tue, 7 Feb 2017 14:04:10 +0000 (09:04 -0500)]
logrotate: bump to version 3.11.0

Also removed both patches as they have been added to this release.
Aslo removed reference to github patch in makefile as it has been
added to this release as well.

Signed-off-by: Adam Duskett <Adamduskett@outlook.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7 years agontp: security bump to verserion 4.2.8p9
Adam Duskett [Mon, 6 Feb 2017 14:12:25 +0000 (09:12 -0500)]
ntp: security bump to verserion 4.2.8p9

This version of ntp fixes several vulnerabilities.

CVE-2016-9311
CVE-2016-9310
CVE-2016-7427
CVE-2016-7428
CVE-2016-9312
CVE-2016-7431
CVE-2016-7434
CVE-2016-7429
CVE-2016-7426
CVE-2016-7433

http://www.kb.cert.org/vuls/id/633847

In addition, libssl_compat.h is now included in many files, which
references openssl/evp.h, openssl/dsa.h, and openssl/rsa.h.
Even if a you pass --disable-ssl as a configuration option, these
files are now required.

As such, I have also added openssl as a dependency, and it is now
automatically selected when you select ntp.

Signed-off-by: Adam Duskett <aduskett@codeblue.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
7 years agodocs/manual: centralize recommendations about BR2_DL_DIR
Luca Ceresoli [Mon, 6 Feb 2017 21:59:33 +0000 (22:59 +0100)]
docs/manual: centralize recommendations about BR2_DL_DIR

We currently have two places where we recommend where BR2_DL_DIR
should be set: "Environment variables" and "Location of downloaded
packages". The former recommends setting BR2_DL_DIR in the .config,
the latter kind of endorses using ~/.bashrc.

We prefer suggesting the ~/.bashrc way since it avoids downloading the
same file multiple times, and anyway it's wise to have all the details
in a unique place. So remove the .config suggestion from "Environment
variables" and let it just point to "Location of downloaded packages".

Cc: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
7 years agodocs/manual: suggest 'YES' as the value for LIBFOO_GIT_SUBMODULES
Luca Ceresoli [Tue, 7 Feb 2017 11:08:17 +0000 (12:08 +0100)]
docs/manual: suggest 'YES' as the value for LIBFOO_GIT_SUBMODULES

The manual mentions LIBFOO_GIT_SUBMODULES but does not tell what value
it should have. The implementation only checks whether the variable is
non-empty, but we should suggest a specific value to avoid people
wondering what they have to set, and to try setting weird values.

Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
Cc: Baruch Siach <baruch@tkos.co.il>
Cc: Ricardo Herrero <ricardo.herrero@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
7 years agotslib: bump to 1.4
Martin Kepplinger [Tue, 7 Feb 2017 11:25:27 +0000 (12:25 +0100)]
tslib: bump to 1.4

additionally, this:

 * removes the patch adding missing headers (fixed upstream)
 * slightly changes the package description

Signed-off-by: Martin Kepplinger <martin.kepplinger@ginzinger.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
7 years agopython-service-identity: bump version to 16.0.0
Yegor Yefremov [Tue, 7 Feb 2017 11:48:12 +0000 (12:48 +0100)]
python-service-identity: bump version to 16.0.0

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
7 years agopython-ubjson: bump to version 0.8.5
Yegor Yefremov [Tue, 7 Feb 2017 11:48:11 +0000 (12:48 +0100)]
python-ubjson: bump to version 0.8.5

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
7 years agopython-pyopenssl: bump to version 16.2.0
Yegor Yefremov [Tue, 7 Feb 2017 11:48:10 +0000 (12:48 +0100)]
python-pyopenssl: bump to version 16.2.0

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
7 years agopython-cbor: bump to version 1.0.0
Yegor Yefremov [Tue, 7 Feb 2017 11:48:09 +0000 (12:48 +0100)]
python-cbor: bump to version 1.0.0

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
7 years agoconfigs/qemu_nios2: add custom kernel headers version
Romain Naour [Tue, 7 Feb 2017 09:34:09 +0000 (10:34 +0100)]
configs/qemu_nios2: add custom kernel headers version

When this qemu nios2 defconfig has been added, the insternal toolchain
used for testing was build with Linux kernel headers 4.9, so
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_9 was missing in the defconfig.

Signed-off-by: Romain Naour <romain.naour@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
7 years agoruby: assume we always have finite, isinf and isnan for uClibc
Vicente Olivert Riera [Tue, 7 Feb 2017 09:47:59 +0000 (09:47 +0000)]
ruby: assume we always have finite, isinf and isnan for uClibc

On uClibc, finite, isinf and isnan are not directly implemented as
functions.  Instead math.h #define's these to __finite, __isinf and __isnan,
which are real functions.

This confuses the Ruby configure script which use AC_REPLACE_FUNCS to
detect these, as it really checks for a function without including math.h.

Because of the naming difference the checks fail, therefore the symbols
HAVE_FINITE, HAVE_ISINF and HAVE_ISNAN are not defined.
Ruby code relies on those symbols in order to define its own version of
the finite, isinf and isnan functions. Since the symbols haven't been
defined, those definitions cause conflicts with the already-existing
functions.

Fixes:
  http://autobuild.buildroot.net/results/f34/f34dc20749c6f6d12c51eddf3ee6c2ef41d7c13d/

[Peter: extend description, add comment in .mk]
Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
7 years agoipsec-tools: fix typo in variable name
Peter Korsgaard [Tue, 7 Feb 2017 09:02:14 +0000 (10:02 +0100)]
ipsec-tools: fix typo in variable name

As pointed out during the check-package discussion, there is a typo in a
variable name:

http://lists.busybox.net/pipermail/buildroot/2016-December/180765.html

Reported-by: Ricardo Martincoski <ricardo.martincoski@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>