kmod: add patch to fix build failure with old gcc versions
When building with old gcc versions (such as gcc 4.3), the current
version of kmod fails with:
shared/util.c:52: error: expected identifier or '(' before 'do'
shared/util.c:52: error: expected identifier or '(' before 'while'
This is due to a use of the internal assert_cc() macro outside of a
function, while this macro is defined for old gcc versions in a way that
cannot be used outside functions.
This wasn't noticed by the autobuilders because we don't have such old
target compilers. On the host side, we have some autobuilder instances
with such old gcc versions, but host-kmod is only used by the linux
package, which is never tested by the autobuilders.
Bernd Kuhls [Mon, 5 Jun 2017 15:48:22 +0000 (17:48 +0200)]
package/gnuradio: needs boost regex module
Since
https://git.gnuradio.org/cgit/gnuradio.git/commit/cmake/Modules/GrBoost.cmake?id=27fbbf22e359e8ec4a04399f3dc139f8c25031cb
gnuradio needs the boost regex module.
Adam Duskett [Sat, 20 May 2017 20:41:43 +0000 (16:41 -0400)]
refpolicy: add ability to set default state.
SELinux requires a config file in /etc/selinux which controls the state
of SELinux on the system.
This config file has two options set in it:
SELINUX which set's the state of selinux on boot.
SELINUXTYPE which should equal the name of the policy. In this case, the
default name is targeted.
This patch adds:
- A choice menu on Config.in that allows the user to select a default
SELinux state.
- A basic config file that will be installed to
target/etc/selinux and will set SELINUX= to the selected state.
Signed-off-by: Adam Duskett <[email protected]> Acked-by: Matt Weber <[email protected]>
[Thomas:
- rename option to BR2_PACKAGE_REFPOLICY_POLICY_STATE
- qstrip the variable
- drop unused REFPOLICY_NAME variable.] Signed-off-by: Thomas Petazzoni <[email protected]>
Adam Duskett [Sat, 20 May 2017 20:41:42 +0000 (16:41 -0400)]
refpolicy: add ability to specify policy version
Refpolicy by default will build the highest version supported. This may
cause older kernels to not load the policy.
This patch adds a custom policy version string which is defaulted to 30,
which is the highest supported as of today.
Signed-off-by: Adam Duskett <[email protected]> Acked-by: Matt Weber <[email protected]>
[Thomas:
- rename option to BR2_PACKAGE_REFPOLICY_POLICY_VERSION
- use qstrip to remove double quotes] Signed-off-by: Thomas Petazzoni <[email protected]>
Adam Duskett [Sat, 20 May 2017 20:41:41 +0000 (16:41 -0400)]
refpolicy: new package
The patch is for adding selinux reference policy (refpolicy).
It is a complete SELinux policy that can be used as the system policy
for a variety of systems and used as the basis for creating other policies.
Signed-off-by: Adam Duskett <[email protected]> Tested-by: Matt Weber <[email protected]> Acked-by: Matt Weber <[email protected]>
[Thomas:
- add entry to DEVELOPERS file
- remove redundant dependencies
- drop unused REFPOLICY_PYINC option
- use SPDX tag for license
- minor formatting fixes.] Signed-off-by: Thomas Petazzoni <[email protected]>
Johan Oudinet [Tue, 6 Jun 2017 14:33:11 +0000 (16:33 +0200)]
ejabberd: bump to version 17.04
There are new dependencies: erlang-p1-jiffy, erlang-p1-oauth2,
erlang-p1-stun, erlang-p1-tls, erlang-p1-utils, erlang-p1-xmpp
as well as two host dependencies on erlang-p1-utils and
erlang-p1-xmpp. Otherwise the compilation via rebar fails.
4 patches have been refreshed and a new patch have been introduced to
tell rebar to use host dependencies instead of trying to download them.
Hopefully this patch could be drop in ejabberd 17.06. Missing SoB in
patches have been added as well.
Tobias Blass [Tue, 6 Jun 2017 14:29:11 +0000 (16:29 +0200)]
botan: disable AltiVec if the CPU does not support it
Botan compiles all PowerPC code with AltiVec support and only determines
at runtime whether the CPU even supports it. If the target CPU uses the
older SPE extensions, though, this is too late; since SPE and AltiVec
are incompatible, gcc aborts the compilation. This patch explicitly
disables AltiVec support unless BR2_POWERPC_CPU_HAS_ALTIVEC is defined
Bernd Kuhls [Sun, 4 Jun 2017 10:08:18 +0000 (12:08 +0200)]
package/gnu-efi: add arm/aarch64 support
We need BR2_ARM_CPU_HAS_ARM, otherwise build for cortex-m4 breaks with
"target CPU does not support ARM mode".
We only enable arm/aarch64 support for now, mips support is broken:
test-pkg/br-mips64-n64-full/build/gnu-efi-3.0.5/lib/mips64el/setjmp.S:40:
Error: opcode not supported on this processor: mips64 (mips64) `ext $v0,$v0,29,1'
Tested by test-pkg using this defconfig
BR2_PACKAGE_GNU_EFI=y
with the following results:
armv5-ctng-linux-gnueabi [ 1/49]: OK
armv7-ctng-linux-gnueabihf [ 2/49]: OK
br-aarch64-glibc [ 3/49]: OK
br-arcle-hs38 [ 4/49]: SKIPPED
br-arm-basic [ 5/49]: OK
br-arm-cortex-a9-glibc [ 6/49]: OK
br-arm-cortex-a9-musl [ 7/49]: OK
br-arm-cortex-m4-full [ 8/49]: SKIPPED
br-arm-full [ 9/49]: OK
br-arm-full-nothread [10/49]: OK
br-arm-full-static [11/49]: OK
br-bfin-full [12/49]: SKIPPED
br-i386-pentium4-full [13/49]: OK
br-i386-pentium-mmx-musl [14/49]: OK
br-m68k-5208-full [15/49]: SKIPPED
br-m68k-68040-full [16/49]: SKIPPED
br-microblazeel-full [17/49]: SKIPPED
br-mips32r6-el-hf-glibc [18/49]: SKIPPED
br-mips64-n64-full [19/49]: SKIPPED
br-mips64r6-el-hf-glibc [20/49]: SKIPPED
br-mipsel-o32-full [21/49]: SKIPPED
br-nios2-glibc [22/49]: SKIPPED
br-openrisc-uclibc [23/49]: SKIPPED
br-powerpc-603e-basic-cpp [24/49]: SKIPPED
br-powerpc64le-power8-glibc [25/49]: SKIPPED
br-powerpc64-power7-glibc [26/49]: SKIPPED
br-powerpc-e500mc-full [27/49]: SKIPPED
br-sh4-full [28/49]: SKIPPED
br-sparc64-glibc [29/49]: SKIPPED
br-sparc-uclibc [30/49]: SKIPPED
br-x86-64-core2-full [31/49]: OK
br-x86-64-musl [32/49]: OK
br-xtensa-full [33/49]: SKIPPED
i686-ctng-linux-gnu [34/49]: OK
linaro-aarch64 [35/49]: OK
linaro-arm [36/49]: OK
mips64el-ctng_n32-linux-gnu [37/49]: SKIPPED
mips64el-ctng_n64-linux-gnu [38/49]: SKIPPED
powerpc-ctng_e500v2-linux-gnuspe [39/49]: SKIPPED
sourcery-arm-armv4t [40/49]: OK
sourcery-arm [41/49]: OK
sourcery-arm-thumb2 [42/49]: OK
sourcery-mips64 [43/49]: SKIPPED
sourcery-mips [44/49]: SKIPPED
sourcery-nios2 [45/49]: SKIPPED
sourcery-sh [46/49]: SKIPPED
sourcery-x86-64 [47/49]: OK
sourcery-x86 [48/49]: OK
x86_64-ctng_locales-linux-gnu [49/49]: OK
49 builds, 27 skipped, 0 build failed, 0 legal-info failed
Bernd Kuhls [Mon, 5 Jun 2017 10:14:52 +0000 (12:14 +0200)]
package/icu: bump version to 59.1
According to the release notes "Compiler support for C++11 is now
required for building the ICU libraries.
GCC: version 4.8 and later has been tested."
Bernd Kuhls [Mon, 5 Jun 2017 11:47:03 +0000 (13:47 +0200)]
package/exiv2: disable on musl
Musl build is broken:
/home/buildroot/build/instance-0/output/build/exiv2-910f3507795e1930ae216c9febee0bf9a88e99c0/src/actions.cpp:2052:32:
error: 'PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP' was not declared in this scope
According to http://www.openwall.com/lists/musl/2017/02/20/3
the define is not available on musl.
Bernd Kuhls [Thu, 1 Jun 2017 20:39:29 +0000 (22:39 +0200)]
package/ffmpeg: add optional support for alsa-lib
ffmpeg has optional support for alsa as input and/or output device:
http://git.videolan.org/?p=ffmpeg.git;a=blob;f=configure;h=23823e3b7012d847b614bd43316fb614676bedb2;hb=refs/heads/release/3.3#l2987
Jörg Krause [Thu, 1 Jun 2017 07:37:58 +0000 (09:37 +0200)]
gcc: add upstream patch to fix build of GCC6 with GCC7
Building host-gcc-initial with GCC7 on the host fails due to the
comparison of a pointer to an integer in ubsan_use_new_style_p, which
is forbidden by ISO C++:
ubsan.c:1474:23: error: ISO C++ forbids comparison between pointer and
integer [-fpermissive]
|| xloc.file == '\0' || xloc.file[0] == '\xff'
Bernd Kuhls [Sat, 3 Jun 2017 13:12:53 +0000 (15:12 +0200)]
package/libldns: bump version to 1.7.0
Commit https://git.nlnetlabs.nl/ldns/commit/host2str.c?id=f7b3a9700e91f8e46477f335c5aaac7c6cdd8acb
added compatability with openssl 1.1.0 but, at the same time, breaks
build without openssl:
./host2str.c:1934:74: error: unknown type name ‘BIGNUM’
ldns_print_bignum_b64_line(ldns_buffer* output, const char* label, const BIGNUM* num)
This bump makes openssl a mandatory dependency to circumvent the
problem, we do not gain much by leaving out crypto support in a
sensitive area like dns. The only package using libldns, freeswitch,
selects openssl as well, so we have no use case for having libldns
without openssl support.
--disable-dane-verify is needed until we bump our openssl to 1.1.x.,
this fixes the following configure error:
checking for SSL_get0_dane... no
configure: error: OpenSSL does not support offline DANE verification
(Needed for the DANE-TA usage type). Please upgrade OpenSSL to version
>= 1.1.0 or rerun with --disable-dane-verify or --disable-dane-ta-usage
Bernd Kuhls [Sun, 4 Jun 2017 08:43:17 +0000 (10:43 +0200)]
package/exiv2: fix gettext detection, part II
It seems getting the gettext stuff right on all platforms is not that
easy, this patch bumps exiv2 to include all gettext (and pthreads)
patches applied upstream.
To reproduce the problem gettext has to be built before exiv2 so we
make gettext an optional dependency when NLS support is used.
Bernd Kuhls [Sun, 4 Jun 2017 08:27:14 +0000 (10:27 +0200)]
package/exiv2: fix pthread detection
This commit fixes an error during configure:
-- Check if compiler accepts -pthread
CMake Error: TRY_RUN() invoked in cross-compiling mode, please set the
following cache variables appropriately:
THREADS_PTHREAD_ARG (advanced)
Bernd Kuhls [Sat, 3 Jun 2017 17:34:59 +0000 (19:34 +0200)]
package/gdbm: add optional support for readline
readline support was added in version 1.13:
http://puszcza.gnu.org.ua/forum/forum.php?forum_id=1145
"The gdbmtool utility now offers the usual line-editing facilities
(if the package has been compiled with GNU Readline."
Bernd Kuhls [Sat, 3 Jun 2017 18:04:30 +0000 (20:04 +0200)]
package/gmrender-resurrect: bump version
gmrender-resurrect now builds with musl after
https://github.com/hzeller/gmrender-resurrect/commit/4ebbb5cabee79aefd88e0cffc8655dd703512e7a
removed the usage of error.h.
Build tested based on
http://autobuild.buildroot.net/toolchains/configs/br-x86-64-musl.config
Since [1] (freetype 2.8), freetype-config is now a wrapper of
pkg-config. So we don't need to pass the freetype installation
prefixes on the configure command line anymore.
Setting freetype prefixes on the command line append the result
returned by pkg-config and the one provided on the command line.
Bernd Kuhls [Sat, 3 Jun 2017 14:15:40 +0000 (16:15 +0200)]
package/vdr: needs headers >= 3.9
DVBv5 statistics properties were added in kernel 3.9:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/log/include/uapi/linux/dvb/frontend.h?h=v3.9