image.bbclass: add postinst_enable_logging

Add a function postinst_enable_logging, so that when 'debug-tweaks'
is in IMAGE_FEATURES, we create ${sysconfdir}/default/postinst config
file, which is sourced by run-postinst scripts to determine whether
to log or not, and where to log.

[YOCTO #4262]

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
dpkg: modify the run-postinst script to enable postinst logging

Enable postinst logging by checking the configuration in ${sysconfdir}
/default/postinst.

In this way, the postinst logging is enabled if 'debug-tweaks' is
in IMAGE_FEATURES, and at the same time, we avoid unnecessary rebuilt
if IMAGE_FEATURES is changed.

[YOCTO #4262]

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
opkg: modify the run-postinst script to enable postinst logging

Enable postinst logging by checking the configuration in ${sysconfdir}
/default/postinst.

In this way, the postinst logging is enabled if 'debug-tweaks' is
in IMAGE_FEATURES, and at the same time, we avoid unnecessary rebuilt
if IMAGE_FEATURES is changed.

[YOCTO #4262]

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
rpm-postinsts.bb: enable postinst logging

Enable postinst logging by checking the configuration in ${sysconfdir}
/default/postinst.

In this way, the postinst logging is enabled if 'debug-tweaks' is
in IMAGE_FEATURES, and at the same time, we avoid unnecessary rebuild
if IMAGE_FEATURES is changed.

[YOCTO #4262]

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
buildhistory: Sync with bitbake changes

Adjust to the recent changes in the git fetcher. This code should work
with current and previous versions of bitbake and can be cleaned up when
we move to new bitbake versions.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
packagedata: Show error when trying to change PE/PV/PR from runtime/pkgdata

* causes build failure before do_package_write_ipk fails when trying to use wrong WORKDIR

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
kconfig-frontends: fix building with gperf without  prefix

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
kconfig-frontends: temporary export unprefixed GPERF
bitbake.conf: export GPERF

* remove exports from systemd
* this is causing issues in webkit-efl and kconfig-frontends

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
tcmode-default.inc: Use gcc 4.8

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
flex: fix reported executable name caused by OE wrapper

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
gcc-4.8: temporary disable thumb

* temporary work around for build issue on armv4t:
| cp/decl.o: In function `bad_specifiers':
| /OE/shr-core/tmp-eglibc/work-shared/gcc-4.8.0-r0/gcc-4.8.0/gcc/cp/decl.c:7171:(.text.unlikely+0x24): relocation truncated to fit: R_ARM_THM_CALL against sym
bol `error(char const*, ...)' defined in .glue_7 section in linker stubs
| /OE/shr-core/tmp-eglibc/work-shared/gcc-4.8.0-r0/gcc-4.8.0/gcc/cp/decl.c:7173:(.text.unlikely+0x32): relocation truncated to fit: R_ARM_THM_CALL against sym
bol `error(char const*, ...)' defined in .glue_7 section in linker stubs
| /OE/shr-core/tmp-eglibc/work-shared/gcc-4.8.0-r0/gcc-4.8.0/gcc/cp/decl.c:7176:(.text.unlikely+0x3e): relocation truncated to fit: R_ARM_THM_CALL against sym
bol `error(char const*, ...)' defined in .glue_7 section in linker stubs
| /OE/shr-core/tmp-eglibc/work-shared/gcc-4.8.0-r0/gcc-4.8.0/gcc/cp/decl.c:7180:(.text.unlikely+0x4c): relocation truncated to fit: R_ARM_THM_CALL against sym
bol `error(char const*, ...)' defined in .glue_7 section in linker stubs
| /OE/shr-core/tmp-eglibc/work-shared/gcc-4.8.0-r0/gcc-4.8.0/gcc/cp/decl.c:7182:(.text.unlikely+0x5a): relocation truncated to fit: R_ARM_THM_CALL against sym
bol `error(char const*, ...)' defined in .glue_7 section in linker stubs
| /OE/shr-core/tmp-eglibc/work-shared/gcc-4.8.0-r0/gcc-4.8.0/gcc/cp/decl.c:7185:(.text.unlikely+0x66): relocation truncated to fit: R_ARM_THM_CALL against sym
bol `error(char const*, ...)' defined in .glue_7 section in linker stubs
| /OE/shr-core/tmp-eglibc/work-shared/gcc-4.8.0-r0/gcc-4.8.0/gcc/cp/decl.c:7189:(.text.unlikely+0x74): relocation truncated to fit: R_ARM_THM_CALL against sym
bol `error(char const*, ...)' defined in .glue_7 section in linker stubs
| /OE/shr-core/tmp-eglibc/work-shared/gcc-4.8.0-r0/gcc-4.8.0/gcc/cp/decl.c:7191:(.text.unlikely+0x82): relocation truncated to fit: R_ARM_THM_CALL against symbol `error(char const*, ...)' defined in .glue_7 section in linker stubs
| /OE/shr-core/tmp-eglibc/work-shared/gcc-4.8.0-r0/gcc-4.8.0/gcc/cp/decl.c:7194:(.text.unlikely+0x8e): relocation truncated to fit: R_ARM_THM_CALL against symbol `error(char const*, ...)' defined in .glue_7 section in linker stubs
| /OE/shr-core/tmp-eglibc/work-shared/gcc-4.8.0-r0/gcc-4.8.0/gcc/cp/decl.c:7198:(.text.unlikely+0x9c): relocation truncated to fit: R_ARM_THM_CALL against symbol `error(char const*, ...)' defined in .glue_7 section in linker stubs
| /OE/shr-core/tmp-eglibc/work-shared/gcc-4.8.0-r0/gcc-4.8.0/gcc/cp/decl.c:7200:(.text.unlikely+0xaa): additional relocation overflows omitted from the output
| collect2: error: ld returned 1 exit status
| make[2]: *** [cc1plus] Error 1

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
pixman: temporary disable thumb

* building with thumb triggers ICE with gcc-4.8
OE @ ~/oe-core/tmp-eglibc/work/armv5te-oe-linux-gnueabi/pixman/1_0.29.4-r0/pixman-0.29.4/test $ make
../arm-oe-linux-gnueabi-libtool  --tag=CC   --mode=compile arm-oe-linux-gnueabi-gcc  -march=armv5te -mthumb -mthumb-interwork
--sysroot=/OE/oe-core/tmp-eglibc/sysroots/qemuarm -DHAVE_CONFIG_H -I. -I..  -I../pixman -I../pixman
-I/OE/oe-core/tmp-eglibc/sysroots/qemuarm/usr/include/libpng16    -O2 -pipe -g -feliminate-unused-debug-types -Wall -fno-strict-aliasing -fvisibility=hidden
-c -o utils-prng.lo utils-prng.c
arm-oe-linux-gnueabi-libtool: compile:  arm-oe-linux-gnueabi-gcc -march=armv5te -mthumb -mthumb-interwork --sysroot=/OE/oe-core/tmp-eglibc/sysroots/qemuarm
-DHAVE_CONFIG_H -I. -I.. -I../pixman -I../pixman -I/OE/oe-core/tmp-eglibc/sysroots/qemuarm/usr/include/libpng16 -O2 -pipe -g -feliminate-unused-debug-types
-Wall -fno-strict-aliasing -fvisibility=hidden -c utils-prng.c  -fPIC -DPIC -o .libs/utils-prng.o
utils-prng.c: In function 'prng_srand_r':
utils-prng.c:73:1: internal compiler error: Segmentation fault
 }
 ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make: *** [utils-prng.lo] Error 1

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
pixman: upgrade to 0.30.0

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
qt: updated qmake2 class to export qconfig.pri mkspec

This is necessary when Qt applicatins want to know variables such as
QT_MAJOR_VERSION, QT_VERSION, QT_MINOR_VERSION, gcc version etc.

OBS: This change made the build system crazy. When I changed it and run
bitbake my-qt-app-recipe, qmake was consuming 100% cpu usage for long time. I
had to stop it. So I recommend rebuild the entire Qt stack when changing this.

Signed-off-by: Felipe F. Tonello <eu@felipetonello.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
kernel: Remove unnecessary cd and rm, fix MODULE_TARBALL_SYMLINK_NAME creation

* DEPLOYDIR is used as target for every other file deployed by do_deploy,
  this was just unnecessary switching CWD to create relative symlink and I
  have no idea why rm -f was used together with ln -sf.

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
libdrm: fix packaging after last upgrade

* 2.4.44 adds 2 more tests kmstest and vbltest which got packaged
  to PN, causing PKG rename and breaking upgrade path
  * check_data_file_clashes: Package libdrm wants to install file /usr/lib/libdrm.so.2
         But that file is already provided by package  * libdrm2
  * check_data_file_clashes: Package libdrm wants to install file /usr/lib/libdrm.so.2.4.0
         But that file is already provided by package  * libdrm2
  put them to PN-tests where they belong

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>