Commit Graph

4872 Commits

Author SHA1 Message Date
Jackie Huang
84d5454ade corosync: fixes for sysvinit and systemd
* Replace ${systemd_unitdir}/system with ${systemd_system_unitdir}

* Remove the upstar settings and don't install upstar config files

* Add volatile for sysvinit and tmpfiles for systemd

* Set the correct bash path for init scripts to avoid QA issue:
| corosync-2.4.2: /usr/share/corosync/corosync contained in package corosync
  requires /tmp/hosttools/bash, but no providers found in RDEPENDS_corosync?
  [file-rdeps]

* The systemd services are intalled properly by "make install",
  no need to install manually.

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
(cherry picked from commit 8ca8ec9be3)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-09-13 17:16:28 -07:00
Khem Raj
ff36b1a2ff freerdp: Fix build on mips
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
(cherry picked from commit b8deb41936)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-09-13 17:16:28 -07:00
Khem Raj
2946ce1c9a glade: Fix format string warnings with clang
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
(cherry picked from commit 059b3b2474)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-09-13 17:16:28 -07:00
Khem Raj
a2bd363d02 wvstreams: Fix parallel build
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
(cherry picked from commit 2b1e724cbb)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-09-13 17:16:28 -07:00
Khem Raj
a1e9dfd390 wvstreams: Fix build with musl
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
(cherry picked from commit 68b2dec5d4)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-09-13 17:16:28 -07:00
Ioan-Adrian Ratiu
2130b25c67 openldap: fix native LDFLAGS build error
LDFLAGS += "-pthread" adds the flag both for native and target builds,
however the openldap-native build overwrites the variable inside
native.bbclass causing "undefined reference to `pthread_getspecific'"
and other linker errors.

Change the append to happen after parsing by using the override
syntax and thus make sure it executes after native.bbclass (bitbake -e
reports pre-expansion value "${BUILD_LDFLAGS} -pthread").

Signed-off-by: Ioan-Adrian Ratiu <adrian.ratiu@ni.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
(cherry picked from commit 9d06ee2622)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-09-13 17:16:28 -07:00
Jackie Huang
17da020e0d gflags: add runtime dependency on bash
* add runtime dependency on bash to fix QA issue:
| ERROR: gflags-2.2.0-r0 do_package_qa: QA Issue:
| /usr/bin/gflags_completions.sh contained in package
| gflags-bash-completion requires /bin/bash, but
|  no providers found in RDEPENDS_gflags-bash-completion? [file-rdeps]

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
(cherry picked from commit 8530df3ff6)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-09-13 17:16:28 -07:00
Ming Liu
a7ec955470 json-spirit: Add -latomic to LDFLAGS
This fixes following errors when compiling with clang:
| ../json_spirit/libjson_spirit.so.4.0.8: error: undefined reference to '__atomic_load_4'
| ../json_spirit/libjson_spirit.so.4.0.8: error: undefined reference to '__atomic_compare_exchange_4'
| ../json_spirit/libjson_spirit.so.4.0.8: error: undefined reference to '__atomic_fetch_sub_4'
| ../json_spirit/libjson_spirit.so.4.0.8: error: undefined reference to '__atomic_fetch_add_4'

Signed-off-by: Ming Liu <peter.x.liu@external.atlascopco.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
(cherry picked from commit ac2a6d2b5d)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-09-13 17:16:28 -07:00
Khem Raj
4b01e200eb fbida: Fix build with libjpeg-turbo
Dont hardcode cpp to point to gcc collection, helps
compiling with clang

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-09-13 17:16:28 -07:00
Khem Raj
af09a2d721 php7: upgrade to 7.1.7
License checksum changed due to opyright year changed to 2017
Fix build with clang/hardening

ak] 7.1.x updates are bug or security fixes only. no new functions. Per PHP policy.
so update makes sence IMHO

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
(cherry picked from commit ad9df2b36a)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-09-13 17:16:28 -07:00
Yusuke Mitsuki
2bf084929e uim: Modified the order of package definition.
The uim-anthy package is created that empty.
To avoid this problem by defining a packages with a rough PATH list after the uim-anthy package.

Signed-off-by: Yusuke Mitsuki <mickey.happygolucky@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
(cherry picked from commit f1d6a48684)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-09-13 17:16:28 -07:00
Mikko Rapeli
100b13d6e1 krb5_1.15.1.bb: set CVE_PRODUCT to kerberos
It is used in NVD database for CVE's like:

https://nvd.nist.gov/vuln/detail/CVE-2016-3120

Signed-off-by: Mikko Rapeli <mikko.rapeli@bmw.de>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
(cherry picked from commit 236ca5e37c)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-09-13 17:16:28 -07:00
Mikko Rapeli
35ac565bd1 fribidi_0.19.7.bb: set CVE_PRODUCT to gnu_fribidi
gnu_fribidi is used in NVD for CVE's like:

https://nvd.nist.gov/vuln/detail/CVE-2010-3444

Signed-off-by: Mikko Rapeli <mikko.rapeli@bmw.de>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
(cherry picked from commit 854b98c05a)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-09-13 17:16:28 -07:00
Mikko Rapeli
bd4d8deaad udisks2_2.1.8.bb: set CVE_PRODUCT to udisks
It is used in NVD for CVE's like:

https://nvd.nist.gov/vuln/detail/CVE-2014-0004

Signed-off-by: Mikko Rapeli <mikko.rapeli@bmw.de>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
(cherry picked from commit 57fac9d8ac)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-09-13 17:16:28 -07:00
Khem Raj
7c42ef827e a2jmidid: Link with libexecinfo on musl
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
(cherry picked from commit 567e48cc76)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-09-13 17:16:28 -07:00
Khem Raj
2cdaeda7ff v4l-utils: Fix build with musl
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
(cherry picked from commit 0f55207ad2)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-09-13 17:16:28 -07:00
Khem Raj
d69c259e2d iperf3: Fix missing stdint.h and do not link with -pg
Helps compile with musl

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
(cherry picked from commit 85d4fe7335)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-09-13 17:16:28 -07:00
Khem Raj
29468b7a83 lmbench: Fix build with musl
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
(cherry picked from commit 68b6fbf28a)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-09-13 17:16:28 -07:00
Kai Kang
cf75f4ec02 gflags: update SRC_URI with git fetcher
Because github archives can be regenerated from time to time, update
SRC_URI with git fetcher for gflags.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
(cherry picked from commit 65a4fce6d8)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-09-13 17:16:28 -07:00
Khem Raj
17f682bc25 libdbus-c++: Add -pthread to linker flags
It uses symbols from libpthread e.g. pthread_mutexattr_init and pthread_mutexattr_settype
but does not link with pthreads, gold is strict about it and calls out with an error

../src/.libs/libdbus-c++-1.so: error: undefined reference to 'pthread_mutexattr_init'
../src/.libs/libdbus-c++-1.so: error: undefined reference to 'pthread_mutexattr_settype'

Therefore correct the linker cmdline

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
(cherry picked from commit 592e9f26cc)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-09-13 17:16:28 -07:00
Khem Raj
f751cb4ed6 ltrace: Fix build on musl
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
(cherry picked from commit 8a542c8912)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-09-13 17:16:28 -07:00
Khem Raj
21126cc5d5 ltrace: Add mips64 support
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
(cherry picked from commit 27a7e20e2b)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-09-13 17:16:28 -07:00
Khem Raj
8893ecdb44 libdbus-c++: Fix build with gcc7 and unblacklist
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
(cherry picked from commit 5693b474a5)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-09-13 17:16:28 -07:00
Khem Raj
ad47b4b247 gperftools: Fix build on ppc
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
(cherry picked from commit 23a1d7acca)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-09-13 17:16:28 -07:00
Khem Raj
4a1ca6ff12 libtorrent: Link in 64bit atomics for ppc
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
(cherry picked from commit a899acc81c)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-09-13 17:16:28 -07:00
Khem Raj
e52efa1b14 tinymembench: Disable on mips64
Not yet supported

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
(cherry picked from commit f52cbdcbe5)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-09-13 17:16:28 -07:00
Khem Raj
f80d7da5f2 uim: Add support for aarch64
Backport patch from
https://github.com/uim/libgcroots/pull/1

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
(cherry picked from commit 36aa6edabf)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-09-13 17:16:28 -07:00
Khem Raj
432dbf5e79 libtorrent: Implement 64bit atomics for mips32
Fixes build errors e.g.

| /mnt/a/oe/build/tmp/work/mips32r2-bec-linux/rtorrent/0.9.6+gitAUTOINC+226e670dec-r0/recipe-sysroot/usr/lib/../lib/libtorrent.so: undefined reference to `__sync_fetch_and_and_8'
| /mnt/a/oe/build/tmp/work/mips32r2-bec-linux/rtorrent/0.9.6+gitAUTOINC+226e670dec-r0/recipe-sysroot/usr/lib/../lib/libtorrent.so: undefined reference to `__sync_add_and_fetch_8'
| collect2: error: ld returned 1 exit status

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
(cherry picked from commit cf75eaaac3)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-09-13 17:16:28 -07:00
Armin Kuster
792548bce1 libexecinfo: fix complie issue
define _GNU_SOURCES to fix compile issue:
 execinfo.c:76:5: error: unknown type name 'Dl_info'
|      Dl_info info;
|      ^~~~~~~
| execinfo.c:83:13: warning: implicit declaration of function 'dladdr' [-Wimplicit-function-declaration]
|          if (dladdr(buffer[i], &info) != 0) {

Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-09-13 17:16:28 -07:00
Armin Kuster
b21475f1c8 libmtp: fix build issue
DEBUG: Executing shell function BUILDSPEC
| error: line 109: %package -n mtp-tools: package mtp-tools already exists

Yes, there are two entries in libmtp.spec. Under packages-split, mtp-tools is empty but
libmtp-bin is not.

Removed PKG_${PN}-bin , this alignes how Debian split its packages

Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-09-13 17:16:28 -07:00
Tomas Novotny
80c1bb2195 ltrace: fix build failure under icecream
The ltrace package fails to build under icecream distributed compiler
because of harmless warning emitted during preprocessing. See the patch
itself for more information.

Colleague of mine has submitted the patch but I'm afraid that the
project is dead.

Please note that icecream support in oe-core has some issues currently.
I have some local fixes and I plan to send them.

Signed-off-by: Tomas Novotny <tomas@novotny.cz>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-09-13 17:16:28 -07:00
Khem Raj
c027939f70 crash: Pass optimization flags to configure via CC
This is because when using fortify warnings we need to have
some level of optimization, while we append warnings to CC
we dont do the same for optimization, which results in compile
failures when doing build with hardened flags

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-09-13 17:16:28 -07:00
Khem Raj
f4024e0f16 orrery: Fix build with hardening flags
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-09-13 17:16:28 -07:00
Khem Raj
6acb57592f cdrkit: Fix build with hardening flags
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-09-13 17:16:28 -07:00
Khem Raj
693c3acaa7 lmbench: Fix build with hardening flags
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-09-13 17:16:28 -07:00
Khem Raj
4807010e14 wmiconfig: Fix build with hardening flags
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-09-13 17:16:28 -07:00
Khem Raj
f6e92b3790 gtkperf: Fix build with hardening flags
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-09-13 17:16:28 -07:00
Khem Raj
1026e0d182 umip: Fix buid with hardening
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-09-13 17:16:28 -07:00
Khem Raj
13edb026a5 sqlite: Fix build with hardening flags
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-07-17 11:17:47 -07:00
Khem Raj
d641cf98ea makedumpfile: Fix build with hardening
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-07-17 11:17:47 -07:00
Zhixiong Chi
ef316309bb mercurial: CVE-2017-9462
Backport the CVE patch from
https://www.mercurial-scm.org/repo/hg/rev/77eaf9539499

"hg serve --stdio" allows remote authenticated users to launch the
Python debugger, and consequently execute arbitrary code, by using
 --debugger as a repository name.

CVE: CVE-2017-9462

Signed-off-by: Zhixiong Chi <zhixiong.chi@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-07-17 11:17:47 -07:00
Ismo Puustinen
9fefaa6a98 gflags: change download name.
Just having "v2.2.0.tar.gz" was causing problems with other similarly
misconfigured packages.

Signed-off-by: Ismo Puustinen <ismo.puustinen@intel.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-07-17 11:17:47 -07:00
Andrej Valek
10c2024587 srecord: add collection of tools for manipulating EPROM load files
This collection of tools is used for EPROM data manipulation.
More info could be found on page: http://srecord.sourceforge.net/

Signed-off-by: Andrej Valek <andrej.valek@siemens.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-07-17 11:17:47 -07:00
Khem Raj
9e024f4de9 openipmi: Fix build with musl
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-07-17 11:17:47 -07:00
Jackie Huang
7af73a14e1 umip: fix EXTRA_OECONF and add RRECOMMENDS
* fix EXTRA_OE_CONF -> EXTRA_OECONF
* add RRECOMMENDS on kernel modules

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-07-17 11:17:47 -07:00
Jackie Huang
258a82ceff umip: add systemd and sysvinit support
Add systemd service and and sysvinit script
so it's easy to manage the mip6d daemon.

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-07-17 11:17:47 -07:00
Jackie Huang
b16e4010e3 umip: fix for parallel compilation
Add missing dependency in Makefile to fix the
parallel compile issue and re-enable PARALLEL_MAKE

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-07-17 11:17:47 -07:00
Khem Raj
55d9648664 audiofile: Inherit pkgconfig instead of binconfig
Fixes build with musl
../audiofile-0.3.6/configure: line 16964: PKG_PROG_PKG_CONFIG: command not found
../audiofile-0.3.6/configure: line 16971: syntax error near unexpected token `FLAC,'

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-07-17 11:17:47 -07:00
Pascal Bach
5f94e3d41b poco: make cmake packages relocatable
Before the path to the dependencies was hard coded into the generated
PocoConfig.cmake file. This causes issues with sstate.

This change overrides the libraries with just the library names and thus
let's the linker take care of finding them.

Signed-off-by: Pascal Bach <pascal.bach@siemens.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-07-17 11:17:47 -07:00
Max Krummenacher
a50d969e89 gpsd: don't compile with gold
When linking with gold libgps and libgpsd error out with:
 | ./libgpsd.so: error: undefined reference to 'atan2'
 | ./libgpsd.so: error: undefined reference to 'pow'
 | ./libgpsd.so: error: undefined reference to 'sqrt'
 | ./libgpsd.so: error: undefined reference to 'sin'
 | ./libgpsd.so: error: undefined reference to 'cos'
 | collect2: error: ld returned 1 exit status

Using the bfd linker fixes the issue.

Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-07-17 11:17:47 -07:00