]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
9 years agotoolchain-shar-extract.sh: improve behaviour when xz is not installed
Paul Eggleton [Fri, 22 Jan 2016 11:59:55 +0000 (00:59 +1300)]
toolchain-shar-extract.sh: improve behaviour when xz is not installed

Currently if xz isn't installed when installing the SDK you get an error
from tar and then the SDK installation continues, cascading into a load
of other failures since files are missing. Add a check to see if xz can
be run and error out if it can't, and also exit if tar fails.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoclasses/populate_sdk*: add dependencies on script files
Paul Eggleton [Fri, 22 Jan 2016 11:59:54 +0000 (00:59 +1300)]
classes/populate_sdk*: add dependencies on script files

If the script files we use to construct the SDK installer change then
that really ought to trigger re-execution of the do_populate_sdk(_ext)
task, so add file-checksums varflags to ensure that happens.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoclasses/populate_sdk_ext: drop ext-sdk-prepare.py when installing
Paul Eggleton [Fri, 22 Jan 2016 11:59:53 +0000 (00:59 +1300)]
classes/populate_sdk_ext: drop ext-sdk-prepare.py when installing

At the end of the extensible SDK installation, if we've successfully
prepared the build system then we don't need ext-sdk-prepare.py. I had
thought earlier that this would be used when updating, but a different
mechanism was needed there so this script isn't used for that.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodevtool: add sdk-install subcommand
Paul Eggleton [Fri, 22 Jan 2016 11:59:52 +0000 (00:59 +1300)]
devtool: add sdk-install subcommand

Add the ability to install additional pre-built items (from shared
state) into the extensible SDK. This can already be done implicitly by
adding something to DEPENDS within a recipe you're working on and then
running "devtool build", but it's useful to be able to explicitly
install things particularly if you're using the extensible SDK as a
traditional toolchain.

Note that for this command to be useful you need to have SSTATE_MIRRORS
set in your SDK configuration, and that mirror needs to be populated
with sstate artifacts for recipes you wish to be able to install.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodevtool: sdk-update: improve SDK update process robustness
Paul Eggleton [Fri, 22 Jan 2016 11:59:51 +0000 (00:59 +1300)]
devtool: sdk-update: improve SDK update process robustness

Make the following improvements to the SDK update process:

* Use a manifest file with sha256sums to track files other than sstate
  and metadata that we need to update - e.g. conf files. This allows us
  to handle where files such as auto.conf may or may not be present,
  as well as the configuration changing without affecting task signatures
  - we still want the config files copied in that case rather than it
  saying nothing needs to be done.
* Write the SSTATE_MIRRORS_append to site.conf rather than local.conf
  so that local.conf remains static (since we don't want to trigger an
  update every time). Also, If there is an SSTATE_MIRRORS value already
  set in the configuration we can skip this and assume it contains the
  needed packages.
* Allow the update process to be run in any directory, don't assume
  we're already at the base of the SDK
* Where practical, fetch remote files into a temporary location and
  then move them to the desired location at the end, to avoid a
  failed update leaving the SDK in a broken state.
* Update all installed do_populate_sysroot / do_packagedata tasks
  instead of using the SDK targets. This ensures any item installed
  through dependencies after installation (e.g. when running
  "devtool build") won't go stale.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodevtool: sdk-update: improve temp directory handling
Paul Eggleton [Fri, 22 Jan 2016 11:59:50 +0000 (00:59 +1300)]
devtool: sdk-update: improve temp directory handling

* Use tempfile.mkdtemp() instead of hardcoding temp dir
* Set a variable early for the temp locked sigs file and use that
  everywhere
* Delete the temp dir at the end

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodevtool: build: ensure pkgdata is written out
Paul Eggleton [Fri, 22 Jan 2016 11:59:49 +0000 (00:59 +1300)]
devtool: build: ensure pkgdata is written out

When you run devtool build, you need to have the pkgdata written out at
the end, so that if what you're adding is a library and the next thing
you add is something that depends on that library, the necessary
information to map the dependency back to the recipe is present. In
practical terms all this means is we need do_packagedata to run in
addition to do_populate_sysroot.

This does mean that do_package needs to run which wasn't running before,
and that means that the few package QA tests that run within do_package
such as installed-vs-shipped will now be run. This may be a bit
bothersome, and prompted a fix for one of our oe-selftest tests as a
result, but I don't see an easy way around it. Ultimately if you care
about using the recipe in an image you'll need to fix any such errors
anyway.

Fixes [YOCTO #8887].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoclasses/populate_sdk_ext: add option to bring in pkgdata for world
Paul Eggleton [Fri, 22 Jan 2016 11:59:48 +0000 (00:59 +1300)]
classes/populate_sdk_ext: add option to bring in pkgdata for world

Add a variable SDK_INCLUDE_PKGDATA which you can set to "1" to include
pkgdata for all recipes in the world target. There are a couple of uses
for this:

1) If you use "devtool add" to add a recipe that builds something which
   depends on anything in world, the dependency can then be correctly
   mapped to the recipe providing it and that recipe can be added to
   DEPENDS, since we have the pkg-config and shared library dependency
   data within pkgdata.
2) You'll be able to search for these recipes and any files they
   package for the target with "devtool search" since that also uses
   pkgdata

This of course assumes you've tailored world through EXCLUDE_FROM_WORLD
to only include recipes you'd want built in your distro, but I think
that's a reasonable assumption; failing that there is a
WORLD_PKGDATA_EXCLUDE variable that you can set to exclude any recipes
you don't want.

Note that this patch relies on functionality implemented in a recent
BitBake patch and will not work without it.

Implements [YOCTO #8600].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolinux-libc-headers: Port patches for linux-headers for musl
Khem Raj [Thu, 17 Dec 2015 07:06:42 +0000 (07:06 +0000)]
linux-libc-headers: Port patches for linux-headers for musl

These patches have revealed issues with linux kernel headers which has
been proposed upstream but hasnt been applied yet

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolibsolv: Update to 0.6.17+
Khem Raj [Fri, 8 Jan 2016 17:30:33 +0000 (17:30 +0000)]
libsolv: Update to 0.6.17+

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoglib-2.0: Fix locale location on musl
Khem Raj [Fri, 8 Jan 2016 18:06:42 +0000 (18:06 +0000)]
glib-2.0: Fix locale location on musl

gettext.m4 macro does not detect musl triplets and falls back to
${libdir}/locale

It ends up with lot of packging warning
"files installed but not packaged"

Signed-off-by: Khem Raj <raj.khem@gmail.com>
9 years agosyslinux: Set LD to avoid using build host ld
Khem Raj [Fri, 15 Jan 2016 18:38:52 +0000 (18:38 +0000)]
syslinux: Set LD to avoid using build host ld

base ld is used during link phase and since its x86 so it
works mostly, however it can cause problems depending upon
build host. During cross build we should use cross linker
Fixes errors e.g.

ld -shared -m elf_i386 --hash-style=gnu -T
/home/ubuntu/work/oe/openembedded-core/build/tmp-glibc/work/i586-oe-linux/syslinux/6.03-r0/syslinux-6.03/com32/lib/i386/elf.ld
-soname libcom32.c32 -o libcom32.elf zlib/adler32.o zlib/compress.
o zlib/crc32.o zlib/uncompr.o zlib/deflate.o zlib/trees.o zlib/zutil.o
zlib/inflate.o zlib/infback.o zlib/inftrees.o zlib/inffast.o sys/zfile.o
sys/zfopen.o libpng/png.o libpng/pngset.o libpng/pngget.o
libpng/pngrutil.o libpng/pngtrans.o
libpng/pngwutil.o libpng/pngread.o libpng/pngrio.o libpng/pngwio.o
libpng/pngwrite.o libpng/pngrtran.o libpng/pngwtran.o libpng/pngmem.o
libpng/pngerror.o libpng/pngpread.o jpeg/tinyjpeg.o jpeg/jidctflt.o
jpeg/decode1.o jpeg/decode3.o jpe
g/rgb24.o jpeg/bgr24.o jpeg/yuv420p.o jpeg/grey.o jpeg/rgba32.o
jpeg/bgra32.o pci/cfgtype.o pci/scan.o pci/bios.o pci/readb.o
pci/readw.o pci/readl.o pci/writeb.o pci/writew.o pci/writel.o
sys/vesacon_write.o sys/vesaserial_write.o sys/ve
sa/initvesa.o sys/vesa/drawtxt.o sys/vesa/background.o
sys/vesa/alphatbl.o sys/vesa/screencpy.o sys/vesa/fmtpixel.o
sys/vesa/i915resolution.o syslinux/reboot.o syslinux/keyboard.o
syslinux/version.o syslinux/pxe_get_cached.o syslinux/pxe_get_nic.o
syslinux/pxe_dns.o syslinux/video/fontquery.o
syslinux/video/reportmode.o syslinux/addlist.o syslinux/freelist.o
syslinux/memmap.o syslinux/movebits.o syslinux/shuffle.o
syslinux/shuffle_pm.o syslinux/shuffle_rm.o syslinux/bios$oot.o
syslinux/zonelist.o syslinux/dump_mmap.o syslinux/dump_movelist.o
syslinux/run_default.o syslinux/run_command.o syslinux/cleanup.o
syslinux/localboot.o syslinux/runimage.o syslinux/loadfile.o
syslinux/floadfile.o syslinux/zloadfile$o syslinux/load_linux.o
syslinux/initramfs.o syslinux/initramfs_file.o
syslinux/initramfs_loadfile.o syslinux/initramfs_archive.o sys/libansi.o
sys/gpxe.o atexit.o onexit.o abort.o
| ld: zlib/deflate.o: unrecognized relocation (0x2b) in section `.text'
| ld: final link failed: Bad value
| make[4]: *** [libcom32.elf] Error 1

Signed-off-by: Khem Raj <raj.khem@gmail.com>
9 years agobinutils: Fix gold linking errors due to unresolved R_ARM_MOVW_ABS_NC
Khem Raj [Thu, 14 Jan 2016 11:58:10 +0000 (03:58 -0800)]
binutils: Fix gold linking errors due to unresolved R_ARM_MOVW_ABS_NC

This issue has been seen in multiple times e.g.

http://patchwork.openembedded.org/patch/103083/

https://www.mail-archive.com/openembedded-core@lists.openembedded.org/msg72513.html

Signed-off-by: Khem Raj <raj.khem@gmail.com>
9 years agopuzzles: Silence warning on arm with clang
Khem Raj [Thu, 14 Jan 2016 07:16:24 +0000 (23:16 -0800)]
puzzles: Silence warning on arm with clang

Clang finds overflows when comparison is done between an unsigned char
and a integer constant. So explicitly typecast the constant before
comparison

Signed-off-by: Khem Raj <raj.khem@gmail.com>
9 years agoeglinfo: Fix build on raspberrypi
Khem Raj [Thu, 14 Jan 2016 00:20:51 +0000 (16:20 -0800)]
eglinfo: Fix build on raspberrypi

Signed-off-by: Khem Raj <raj.khem@gmail.com>
9 years agomdadm: Fix build with musl
Khem Raj [Wed, 13 Jan 2016 19:48:47 +0000 (19:48 +0000)]
mdadm: Fix build with musl

Define _POSIX_C_SOURCE if not defined
Add sockaddr_un* to sockaddr* typecast to make compiler happy

Signed-off-by: Khem Raj <raj.khem@gmail.com>
9 years agogpgme: Define __error_t_defined on musl
Khem Raj [Wed, 13 Jan 2016 19:40:52 +0000 (19:40 +0000)]
gpgme: Define __error_t_defined on musl

Configure looks for error_t in errno.h and musl does not define error_t
if its not defined then configure emits a definition to be used, now we
also use standalone argp implementation from glibc on musl based systems
which defines this in argp.h as well so now we have it defined twice
and errors like

|
/a/builder/mnt/build-oe/tmp-musl/sysroots/raspberrypi2/usr/include/argp.h:40:13:
error: cannot combine with previous 'int' declaration specifier
| typedef int error_t;
|             ^
| ../config.h:257:17: note: expanded from macro 'error_t'
| #define error_t int
|                 ^
| 1 error generated.

are seen. argp.h definition is conditional on __error_t_defined which is
true here so lets define it on musl

Signed-off-by: Khem Raj <raj.khem@gmail.com>
9 years agoconsole-tools: Fix header inclusion when not using glibc
Khem Raj [Wed, 13 Jan 2016 19:36:56 +0000 (19:36 +0000)]
console-tools: Fix header inclusion when not using glibc

It did differentiate on features in libc but assumed always glibc
this patch make that assumption clear

Signed-off-by: Khem Raj <raj.khem@gmail.com>
9 years agouclibc: Update to 1.0.11
Khem Raj [Tue, 12 Jan 2016 01:24:37 +0000 (01:24 +0000)]
uclibc: Update to 1.0.11

changes are here

http://mailman.uclibc-ng.org/pipermail/devel/2016-January/000665.html

Drop upstreamed patch

Signed-off-by: Khem Raj <raj.khem@gmail.com>
9 years agounfs3: Depend on libtirpc when building on musl
Khem Raj [Mon, 11 Jan 2016 09:28:50 +0000 (09:28 +0000)]
unfs3: Depend on libtirpc when building on musl

needs a rpc implementation

Signed-off-by: Khem Raj <raj.khem@gmail.com>
9 years agoguile: Fix build with musl
Khem Raj [Mon, 11 Jan 2016 09:27:17 +0000 (09:27 +0000)]
guile: Fix build with musl

strol_l is not available on musl
delete charset.alias as well its not needed

Use internal gc function on musl

We get errors on certain functions not being available in boeheme gc
when built with musl. Therefore use the internal versions
e.g.

Undefined gc_set_finalizer_notifier

Signed-off-by: Khem Raj <raj.khem@gmail.com>
9 years agobsd-headers: Package cdefs.h
Khem Raj [Mon, 11 Jan 2016 09:26:28 +0000 (09:26 +0000)]
bsd-headers: Package cdefs.h

Its used in several packages

Signed-off-by: Khem Raj <raj.khem@gmail.com>
9 years agomusl: Create ld.so as a relative symlink
Khem Raj [Sun, 10 Jan 2016 21:00:02 +0000 (21:00 +0000)]
musl: Create ld.so as a relative symlink

We have rootfs intercepts which fail on musl because ld.so on musl is an
absolute symlink to /usr/lib/libc.so and then it fails to load when run
with qemu user mode.

Fixes rootfs failures like

WARNING: The postinstall intercept hook 'update_pixbuf_cache' failed
(exit code: 255)! See log for details!
WARNING: The postinstalls for the following packages will be postponed
for first boot: libgdk-pixbuf-2.0-loader-jpeg li
bgdk-pixbuf-2.0-loader-png libgdk-pixbuf-2.0-loader-gif
libgdk-pixbuf-2.0-loader-xpm
WARNING: [log_check] core-image-sato: found a warning message in the
logfile (keyword 'WARNING:'):
[log_check] WARNING: The postinstall intercept hook
'update_pixbuf_cache' failed (exit code: 255)! See log for details!

WARNING: [log_check] core-image-sato: found a warning message in the
logfile (keyword 'WARNING:'):
[log_check] WARNING: The postinstalls for the following packages will be
postponed for first boot: libgdk-pixbuf-2.0-lo
ader-jpeg libgdk-pixbuf-2.0-loader-png libgdk-pixbuf-2.0-loader-gif
libgdk-pixbuf-2.0-loader-xpm

Signed-off-by: Khem Raj <raj.khem@gmail.com>
9 years agofts: Fix linker hash-style option
Khem Raj [Sun, 10 Jan 2016 19:15:20 +0000 (11:15 -0800)]
fts: Fix linker hash-style option

pass --hash-style explicitly to linker
and ensure that mips does not use gnu hash style
This inoculates fts when compiler does not pass
hash style option e.g. clang

Signed-off-by: Khem Raj <raj.khem@gmail.com>
9 years agodosfstools: Correct cross-compile CFLAGS and fix build with musl
Khem Raj [Sun, 10 Jan 2016 04:23:49 +0000 (20:23 -0800)]
dosfstools: Correct cross-compile CFLAGS and fix build with musl

enable largefile support if its in DISTRO_FEATURES

Signed-off-by: Khem Raj <raj.khem@gmail.com>
9 years agonss: Undefine HAVE_SYS_CDEFS_H
Khem Raj [Sun, 10 Jan 2016 04:00:39 +0000 (20:00 -0800)]
nss: Undefine HAVE_SYS_CDEFS_H

nss's build system assumes that cdefs.h is always available on linux
which is not the case with musl

Signed-off-by: Khem Raj <raj.khem@gmail.com>
9 years agoapmd: Fix build with musl
Khem Raj [Sun, 10 Jan 2016 03:42:19 +0000 (19:42 -0800)]
apmd: Fix build with musl

Fix error like below
| apmd.c:372:41: error: use of undeclared identifier '__WCOREFLAG'
|                                 status = __W_EXITCODE(0, SIGTERM) | __WCOREFLAG;
|                                                                     ^
| apmd.c:392:41: error: use of undeclared identifier '__WCOREFLAG'
|                                 status = __W_EXITCODE(0, SIGTERM) | __WCOREFLAG;

Signed-off-by: Khem Raj <raj.khem@gmail.com>
9 years agopcmciautils: Fix parallel build and include sys/types.h
Khem Raj [Sun, 10 Jan 2016 02:40:09 +0000 (18:40 -0800)]
pcmciautils: Fix parallel build and include sys/types.h

parallel build patch was removing dependencies on .c files mistakenly
just adding src/yacc_config.h to dependencies in existing rule should
have fixed the original build race

include sys/types.h in lex_config.l for getting u_long definition

Signed-off-by: Khem Raj <raj.khem@gmail.com>
9 years agokexec-tools: Define _GNU_SOURCE for getting loff_t definition
Khem Raj [Sun, 10 Jan 2016 01:25:35 +0000 (17:25 -0800)]
kexec-tools: Define _GNU_SOURCE for getting loff_t definition

Fixes errors e.g.

vmcore-dmesg/vmcore-dmesg.c:370:32: error: unknown type name 'loff_t'

Signed-off-by: Khem Raj <raj.khem@gmail.com>
9 years agosystemd: Skip parsing on musl based targets
Khem Raj [Sat, 9 Jan 2016 08:56:06 +0000 (08:56 +0000)]
systemd: Skip parsing on musl based targets

systemd on musl doesn't yet work even though we have patches to make it
compile it fails to run, therefore lets skip building it for now

Signed-off-by: Khem Raj <raj.khem@gmail.com>
9 years agooprofile: fix build with musl
Ross Burton [Fri, 8 Jan 2016 14:22:58 +0000 (14:22 +0000)]
oprofile: fix build with musl

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
9 years agoportmap: Point to tirpc headers and libraries on musl
Khem Raj [Fri, 8 Jan 2016 09:07:33 +0000 (09:07 +0000)]
portmap: Point to tirpc headers and libraries on musl

Signed-off-by: Khem Raj <raj.khem@gmail.com>
9 years agonfs-utils: Disable tcp-wrappers for musl
Khem Raj [Fri, 8 Jan 2016 09:06:40 +0000 (09:06 +0000)]
nfs-utils: Disable tcp-wrappers for musl

Doesnt build with musl

Signed-off-by: Khem Raj <raj.khem@gmail.com>
9 years agobsd-headers,musl: Add recipe for bsd missing features
Khem Raj [Fri, 8 Jan 2016 09:05:14 +0000 (09:05 +0000)]
bsd-headers,musl: Add recipe for bsd missing features

let musl depend on these headers so they are staged along with libc

Signed-off-by: Khem Raj <raj.khem@gmail.com>
9 years agotcf-agent: Implement canonicalize_file_name() for musl as well
Khem Raj [Fri, 8 Jan 2016 09:02:48 +0000 (09:02 +0000)]
tcf-agent: Implement canonicalize_file_name() for musl as well

Signed-off-by: Khem Raj <raj.khem@gmail.com>
9 years agochkconfig: Avoid using caddr_t
Khem Raj [Fri, 8 Jan 2016 09:01:33 +0000 (09:01 +0000)]
chkconfig: Avoid using caddr_t

Signed-off-by: Khem Raj <raj.khem@gmail.com>
9 years agonspr: Drop older glibc code
Khem Raj [Fri, 8 Jan 2016 08:57:36 +0000 (08:57 +0000)]
nspr: Drop older glibc code

This was not only getting included for libc5 but also for not-glibc libc
implementations e.g. musl

Signed-off-by: Khem Raj <raj.khem@gmail.com>
9 years agoirda-utils: Fix header inclusions
Khem Raj [Fri, 8 Jan 2016 08:56:23 +0000 (08:56 +0000)]
irda-utils: Fix header inclusions

Helps compile with musl

Signed-off-by: Khem Raj <raj.khem@gmail.com>
9 years agoiproute2: Fix build with musl
Khem Raj [Thu, 7 Jan 2016 03:00:06 +0000 (03:00 +0000)]
iproute2: Fix build with musl

Signed-off-by: Khem Raj <raj.khem@gmail.com>
9 years agolibuser: Fix build when secure getenv is not there
Khem Raj [Thu, 7 Jan 2016 02:31:19 +0000 (02:31 +0000)]
libuser: Fix build when secure getenv is not there

Fixes build on musl

Signed-off-by: Khem Raj <raj.khem@gmail.com>
9 years agoiputils: Use member based initialization for mrghdr struct
Khem Raj [Wed, 6 Jan 2016 22:18:00 +0000 (14:18 -0800)]
iputils: Use member based initialization for mrghdr struct

Fix build with musl

uclibc and glibc dont agree on structure of the struct, musl rightly
adds padding elements, so when doing anonymous initialization struct
elements gets wrongly mapped on 64bit arches

Signed-off-by: Khem Raj <raj.khem@gmail.com>
9 years agopax: Fix build with musl
Khem Raj [Wed, 6 Jan 2016 20:37:45 +0000 (12:37 -0800)]
pax: Fix build with musl

There are several BSD specific assumptions
and some GNU specific ones.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
9 years agotar: Fix build for musl based targets
Khem Raj [Wed, 6 Jan 2016 18:45:45 +0000 (10:45 -0800)]
tar: Fix build for musl based targets

It only considered linux-gnu hosts when cross compiling
here we add linux-musl to the mix as well

Fixes errors e.g.

1.28-r0/tar-1.28/src/tar.c:1351:5: error: 'SAVEDIR_SORT_INODE'
undeclared here (not in a function)
|      SAVEDIR_SORT_INODE
|      ^

Signed-off-by: Khem Raj <raj.khem@gmail.com>
9 years agort-tests: Fix build with non-gcc compilers
Khem Raj [Sun, 3 Jan 2016 18:57:13 +0000 (10:57 -0800)]
rt-tests: Fix build with non-gcc compilers

Makery hard sets CC to be some form of gcc, make it set only if CC
variable is absent in environment.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
9 years agowebkitgtk: Fix build with clang/musl
Khem Raj [Sat, 26 Sep 2015 16:03:23 +0000 (16:03 +0000)]
webkitgtk: Fix build with clang/musl

backtrace is glibc only feature on linux so check for glibc before using
it
Clangs clear_cache has different signature than gcc provided builtin
make it compatible for both

Signed-off-by: Khem Raj <raj.khem@gmail.com>
9 years agoconsole-tools: Include sys/types.h for u_char and u_short defs
Khem Raj [Sat, 2 Jan 2016 21:51:37 +0000 (21:51 +0000)]
console-tools: Include sys/types.h for u_char and u_short defs

Signed-off-by: Khem Raj <raj.khem@gmail.com>
9 years agosysklogd: untangle header inclusion maze
Khem Raj [Sat, 2 Jan 2016 21:49:23 +0000 (21:49 +0000)]
sysklogd: untangle header inclusion maze

wait is not union per posix it is int
remove assumption about glibc is linux

Signed-off-by: Khem Raj <raj.khem@gmail.com>
9 years agobabeltrace: Add missing header for MAXNAMLEN define
Khem Raj [Sat, 2 Jan 2016 21:45:23 +0000 (21:45 +0000)]
babeltrace: Add missing header for MAXNAMLEN define

Fix bug exposed on musl

Signed-off-by: Khem Raj <raj.khem@gmail.com>
9 years agolibunwind: backtrace APIs are glibc specific
Khem Raj [Sat, 2 Jan 2016 21:43:24 +0000 (21:43 +0000)]
libunwind: backtrace APIs are glibc specific

Make backtrace() API's use conditional on glibc
this helps make libunwind compile on musl

Signed-off-by: Khem Raj <raj.khem@gmail.com>
9 years agoapt: Add support for building for musl targets
Khem Raj [Sat, 2 Jan 2016 21:41:17 +0000 (21:41 +0000)]
apt: Add support for building for musl targets

Turn bzip2 support into a PACKAGECONFIG
zlibs is a must have and therefore add it to DEPENDS will make the build
consistent

Signed-off-by: Khem Raj <raj.khem@gmail.com>
9 years agopuzzles: Zero'ise structs before use
Khem Raj [Wed, 30 Dec 2015 23:34:20 +0000 (23:34 +0000)]
puzzles: Zero'ise structs before use

Fixes build failures with musl where gcc5 flags it used before
initialized.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
9 years agodpkg: Add musleabi to known architectures
Khem Raj [Wed, 30 Dec 2015 23:31:32 +0000 (23:31 +0000)]
dpkg: Add musleabi to known architectures

Remove a glibc specific patch to be applied only for native version,
this is a dpkg-native specific patch needed for Centos 5.8, this patch
should be redone to be glibc independent for it to be applied to all
types of dpkg recipes

Signed-off-by: Khem Raj <raj.khem@gmail.com>
9 years agoxinetd: Fix build with musl
Khem Raj [Wed, 30 Dec 2015 08:06:53 +0000 (08:06 +0000)]
xinetd: Fix build with musl

musl relies on external rpc implemetation (libtirpc)
and exposed a bug in configury when checking for rlim_t

Signed-off-by: Khem Raj <raj.khem@gmail.com>
9 years agowatchdog: Fix build with musl
Khem Raj [Wed, 30 Dec 2015 01:27:51 +0000 (01:27 +0000)]
watchdog: Fix build with musl

This patch is generic but is found during compiling watchdog with musl

Signed-off-by: Khem Raj <raj.khem@gmail.com>
9 years agogzip: Fix build with musl
Khem Raj [Tue, 29 Dec 2015 23:49:24 +0000 (23:49 +0000)]
gzip: Fix build with musl

gzip 1.6 uses an older version of gnulib when cross compiling it treats
fseeko as broken since it cant do runtime checks for it during configure
this only shows up on musl since for glibc since it has special check
for gnu c library, so we aid the system by telling it that fflush on
stdin works well with musl

Use NO_ASM to avoid textrels

Delete charset.alias for musl which is again another issue in gnulib not
knowing musl platform

Signed-off-by: Khem Raj <raj.khem@gmail.com>
9 years agodirectfb: Fix build with musl
Khem Raj [Tue, 29 Dec 2015 23:25:47 +0000 (23:25 +0000)]
directfb: Fix build with musl

compar_fn_t, sigval_t and non-posix recursive mutexes
are not available in musl

Signed-off-by: Khem Raj <raj.khem@gmail.com>
9 years agonet-tools: Link with libintl on uclibc
Khem Raj [Tue, 29 Dec 2015 01:22:42 +0000 (01:22 +0000)]
net-tools: Link with libintl on uclibc

libintl is needed explicitly on linker cmdline on uclibc since the APIs
are not in libc itelf.

Fix build on musl

Signed-off-by: Khem Raj <raj.khem@gmail.com>
9 years agoparted: Fix build with uclibc
Khem Raj [Tue, 29 Dec 2015 01:21:54 +0000 (01:21 +0000)]
parted: Fix build with uclibc

unlike glibc, uclibc does not have internal APIs implemented for
libiconv, so it needs to depend upon libiconv

Signed-off-by: Khem Raj <raj.khem@gmail.com>
9 years agomtools: Fix build with uclibc
Khem Raj [Tue, 29 Dec 2015 01:20:37 +0000 (01:20 +0000)]
mtools: Fix build with uclibc

unlike glibc, uclibc does not have internal APIs implemented for
libiconv, so it needs to depend upon libiconv

Signed-off-by: Khem Raj <raj.khem@gmail.com>
9 years agognutls: Link with libuargp on uclibc
Khem Raj [Tue, 29 Dec 2015 01:19:33 +0000 (01:19 +0000)]
gnutls: Link with libuargp on uclibc

uclibc has its own implementation for libargp

Signed-off-by: Khem Raj <raj.khem@gmail.com>
9 years agoguile: Fix build with uclibc
Khem Raj [Tue, 29 Dec 2015 01:18:47 +0000 (01:18 +0000)]
guile: Fix build with uclibc

Signed-off-by: Khem Raj <raj.khem@gmail.com>
9 years agopackagegroup-self-hosted.bb: Move glibc-gconv-ibm850 to glibc only case
Khem Raj [Sat, 26 Dec 2015 22:59:59 +0000 (22:59 +0000)]
packagegroup-self-hosted.bb: Move glibc-gconv-ibm850 to glibc only case

This package is not provided by non-glibc libcs therefore add it only
when libc is glibc

Signed-off-by: Khem Raj <raj.khem@gmail.com>
9 years agoutil-linux: Fix ptest builds on musl
Khem Raj [Sat, 19 Dec 2015 23:37:14 +0000 (23:37 +0000)]
util-linux: Fix ptest builds on musl

musl doesnt implement error() API, hence provide one

Signed-off-by: Khem Raj <raj.khem@gmail.com>
9 years agognutls: Link with libargp on musl and depend on argp-standalone
Khem Raj [Thu, 17 Dec 2015 08:53:21 +0000 (08:53 +0000)]
gnutls: Link with libargp on musl and depend on argp-standalone

Signed-off-by: Khem Raj <raj.khem@gmail.com>
9 years agoargp-standalone: Add recipe
Khem Raj [Thu, 17 Dec 2015 08:51:39 +0000 (08:51 +0000)]
argp-standalone: Add recipe

This helps packages like gnutls to compile with musl
any package that needs glibc's implementation of argp
can link to this library

Signed-off-by: Khem Raj <raj.khem@gmail.com>
9 years agogdk-pixbuf: Fix latent build issue exposed by musl
Khem Raj [Thu, 17 Dec 2015 07:38:43 +0000 (07:38 +0000)]
gdk-pixbuf: Fix latent build  issue exposed by musl

Signed-off-by: Khem Raj <raj.khem@gmail.com>
9 years agoxserver-xorg: Fix build with musl
Khem Raj [Thu, 17 Dec 2015 07:10:13 +0000 (07:10 +0000)]
xserver-xorg: Fix build with musl

inb/outb are implemented for ARM on glibc but not on linux in general
therefore the conditional has to reflect that

Signed-off-by: Khem Raj <raj.khem@gmail.com>
9 years agolibcgroup: Add dependency on fts when building on musl
Khem Raj [Thu, 17 Dec 2015 07:05:32 +0000 (07:05 +0000)]
libcgroup: Add dependency on fts when building on musl

Signed-off-by: Khem Raj <raj.khem@gmail.com>
9 years agoconnman: include config.h for HAVE_STRUCT_IN6_PKTINFO_IPI6_ADDR
Khem Raj [Tue, 15 Dec 2015 21:27:30 +0000 (21:27 +0000)]
connman: include config.h for HAVE_STRUCT_IN6_PKTINFO_IPI6_ADDR

We now check at configure time of libc has pktinfo struct

Signed-off-by: Khem Raj <raj.khem@gmail.com>
9 years agofts: Add recipe
Khem Raj [Tue, 15 Dec 2015 21:24:16 +0000 (21:24 +0000)]
fts: Add recipe

fts is not implemented in musl but many packages depend on it
glibc implements it even though posix does not requir it to do so.
So provide an alternative provider for fts

Signed-off-by: Khem Raj <raj.khem@gmail.com>
9 years agotcp-wrappers: Fix build with musl
Khem Raj [Mon, 14 Dec 2015 00:15:47 +0000 (00:15 +0000)]
tcp-wrappers: Fix build with musl

Signed-off-by: Khem Raj <raj.khem@gmail.com>
9 years agoppp: Fix build with musl
Khem Raj [Sat, 21 Nov 2015 00:12:33 +0000 (00:12 +0000)]
ppp: Fix build with musl

Therer are assumptions about glibc headers and features which needs to
be addressed for musl

Signed-off-by: Khem Raj <raj.khem@gmail.com>
9 years agoblktrace: Include <sys/types.h for dev_t
Khem Raj [Sun, 20 Sep 2015 16:22:56 +0000 (16:22 +0000)]
blktrace: Include <sys/types.h for dev_t

Signed-off-by: Khem Raj <raj.khem@gmail.com>
9 years agopowertop: Include right headers for timval struct
Khem Raj [Sun, 20 Sep 2015 16:16:40 +0000 (16:16 +0000)]
powertop: Include right headers for timval struct

Signed-off-by: Khem Raj <raj.khem@gmail.com>
9 years agoupdate-alternatives: when warning about alt_link==alt_target, say what PN
Ross Burton [Thu, 21 Jan 2016 20:37:58 +0000 (20:37 +0000)]
update-alternatives: when warning about alt_link==alt_target, say what PN

A warning that doesn't say what the PN is doesn't really help.

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agopython-setuptools: Unify and upgrade python-setuptools and python3-setuptools to...
Alejandro Hernandez [Thu, 21 Jan 2016 16:46:06 +0000 (16:46 +0000)]
python-setuptools: Unify and upgrade python-setuptools and python3-setuptools to 19.4

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agogstreamer1.0-libav: update git recipe to 1.7.1
Andre McCurdy [Tue, 19 Jan 2016 18:33:10 +0000 (10:33 -0800)]
gstreamer1.0-libav: update git recipe to 1.7.1

Move the ARM_INSTRUCTION_SET over-rides for armv4/armv5 out of the
1.6.3 recipe and into the common include, so that they also apply to
the git recipe.

The autogen.sh script takes care of cd'ing to the correct directory
before it does anything, so we don't need to cd on its behalf any more
in do_configure_prepend().

  http://cgit.freedesktop.org/gstreamer/gst-libav/tree/autogen.sh?id=1.7.1

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
9 years agogstreamer1.0-plugins-ugly: update git recipe to 1.7.1
Andre McCurdy [Tue, 19 Jan 2016 18:33:11 +0000 (10:33 -0800)]
gstreamer1.0-plugins-ugly: update git recipe to 1.7.1

The autogen.sh script takes care of cd'ing to the correct directory
before it does anything, so we don't need to cd on its behalf any more
in do_configure_prepend().

  http://cgit.freedesktop.org/gstreamer/gst-plugins-ugly/tree/autogen.sh?id=1.7.1

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
9 years agogstreamer1.0-plugins-bad: update git recipe to 1.7.1
Andre McCurdy [Tue, 19 Jan 2016 18:33:10 +0000 (10:33 -0800)]
gstreamer1.0-plugins-bad: update git recipe to 1.7.1

Handle renaming of the HLS plugin:

  http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=efe62292a3d045126654d93239fdf4cc8e48ae08

Switch AES decryption for the HLS plugin from nettle to openssl.

The autogen.sh script takes care of cd'ing to the correct directory
before it does anything, so we don't need to cd on its behalf any more
in do_configure_prepend().

  http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/tree/autogen.sh?id=1.7.1

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
9 years agogstreamer1.0-plugins-good: update git recipe to 1.7.1
Andre McCurdy [Tue, 19 Jan 2016 18:33:11 +0000 (10:33 -0800)]
gstreamer1.0-plugins-good: update git recipe to 1.7.1

The autogen.sh script takes care of cd'ing to the correct directory
before it does anything, so we don't need to cd on its behalf any more
in do_configure_prepend().

  http://cgit.freedesktop.org/gstreamer/gst-plugins-good/tree/autogen.sh?id=1.7.1

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
9 years agogstreamer1.0-plugins-base: update git recipe to 1.7.1
Andre McCurdy [Tue, 19 Jan 2016 18:33:11 +0000 (10:33 -0800)]
gstreamer1.0-plugins-base: update git recipe to 1.7.1

The autogen.sh script takes care of cd'ing to the correct directory
before it does anything, so we don't need to cd on its behalf any more
in do_configure_prepend().

  http://cgit.freedesktop.org/gstreamer/gst-plugins-base/tree/autogen.sh?id=1.7.1

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
9 years agogstreamer1.0: update git recipe to 1.7.1
Andre McCurdy [Tue, 19 Jan 2016 18:33:11 +0000 (10:33 -0800)]
gstreamer1.0: update git recipe to 1.7.1

The autogen.sh script takes care of cd'ing to the correct directory
before it does anything, so we don't need to cd on its behalf any more
in do_configure_prepend().

  http://cgit.freedesktop.org/gstreamer/gstreamer/tree/autogen.sh?id=1.7.1

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
9 years agogstreamer1.0-libav: update 1.6.2 -> 1.6.3
Andre McCurdy [Thu, 21 Jan 2016 03:38:13 +0000 (19:38 -0800)]
gstreamer1.0-libav: update 1.6.2 -> 1.6.3

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
9 years agogstreamer1.0-plugins-ugly: update 1.6.2 -> 1.6.3
Andre McCurdy [Thu, 21 Jan 2016 03:32:54 +0000 (19:32 -0800)]
gstreamer1.0-plugins-ugly: update 1.6.2 -> 1.6.3

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
9 years agogstreamer1.0-plugins-bad: update 1.6.2 -> 1.6.3
Andre McCurdy [Thu, 21 Jan 2016 03:32:23 +0000 (19:32 -0800)]
gstreamer1.0-plugins-bad: update 1.6.2 -> 1.6.3

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
9 years agogstreamer1.0-plugins-good: update 1.6.2 -> 1.6.3
Andre McCurdy [Thu, 21 Jan 2016 03:31:49 +0000 (19:31 -0800)]
gstreamer1.0-plugins-good: update 1.6.2 -> 1.6.3

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
9 years agogstreamer1.0-plugins-base: update 1.6.2 -> 1.6.3
Andre McCurdy [Thu, 21 Jan 2016 03:31:09 +0000 (19:31 -0800)]
gstreamer1.0-plugins-base: update 1.6.2 -> 1.6.3

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
9 years agogstreamer1.0: update 1.6.2 -> 1.6.3
Andre McCurdy [Thu, 21 Jan 2016 03:30:15 +0000 (19:30 -0800)]
gstreamer1.0: update 1.6.2 -> 1.6.3

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
9 years agogst-plugins-package.inc: drop perl RDEPEND for XXX-apps packages
Andre McCurdy [Thu, 21 Jan 2016 04:17:09 +0000 (20:17 -0800)]
gst-plugins-package.inc: drop perl RDEPEND for XXX-apps packages

Only one of the plugins recipes (gstreamer1.0-plugins-base) generates
a non-empty -apps package. However it contains only binaries, no perl
scripts.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
9 years agogstreamer1.0-plugins.inc: don't set base SRC_URI via python
Andre McCurdy [Tue, 19 Jan 2016 03:53:28 +0000 (19:53 -0800)]
gstreamer1.0-plugins.inc: don't set base SRC_URI via python

Setting the SRC_URI via python for the four gstreamer1.0-plugins-XXX
packages adds complexity and breaks consistency with the other
plugins packages and with gstreamer itself (which all also fetch from
freedesktop.org URLs but set SRC_URI conventionally).

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
9 years agogstreamer1.0-plugins.inc: drop obsolete lib-link.m4 workaround
Andre McCurdy [Wed, 20 Jan 2016 23:10:49 +0000 (15:10 -0800)]
gstreamer1.0-plugins.inc: drop obsolete lib-link.m4 workaround

There is no lib-link.m4 in any of the gst-plugins-XXX sources (and
there hasn't been for a long time). Drop the obsolete workaround.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
9 years agogstreamer1.0-plugins-bad.inc: update hls dependency gnutls -> nettle
Andre McCurdy [Thu, 21 Jan 2016 00:06:00 +0000 (16:06 -0800)]
gstreamer1.0-plugins-bad.inc: update hls dependency gnutls -> nettle

The HLS plugin requires AES decryption and links with nettle, not
with gnutls.

  http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/tree/configure.ac?h=1.6&id=7dee47fe39223d8a98615f03f34d9221f9e8a6c1#n3038

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
9 years agogstreamer1.0-plugins-bad.inc: don't set ${S} or apply version specific patch
Andre McCurdy [Tue, 19 Jan 2016 03:47:08 +0000 (19:47 -0800)]
gstreamer1.0-plugins-bad.inc: don't set ${S} or apply version specific patch

gstreamer1.0-plugins-bad.inc is shared by both the 1.6.2 and git
recipes, so must not set ${S} or apply any version specific patches.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
9 years agogstreamer1.0-plugins-good.inc: remove duplicate --disable-examples
Andre McCurdy [Wed, 20 Jan 2016 22:27:00 +0000 (14:27 -0800)]
gstreamer1.0-plugins-good.inc: remove duplicate --disable-examples

--disable-examples is added to EXTRA_OECONF by gstreamer1.0-plugins.inc

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
9 years agogstreamer1.0-plugins.inc: convert GSTREAMER_1_0_DEBUG to a PACKAGECONFIG
Andre McCurdy [Tue, 19 Jan 2016 03:12:33 +0000 (19:12 -0800)]
gstreamer1.0-plugins.inc: convert GSTREAMER_1_0_DEBUG to a PACKAGECONFIG

gstreamer1.0.inc has been updated to contol debug via a PACKAGECONFIG
option, so apply the same change to gstreamer1.0-plugins.inc as well.
Control valgrind support via a PACKAGECONFIG option too.

  http://git.openembedded.org/openembedded-core/commit/?id=81636555fa7f18407efc172c0d5b9f466b2d4014

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
9 years agogstreamer1.0-plugins.inc: add missing glib-2.0-native dependency
Andre McCurdy [Thu, 21 Jan 2016 00:25:21 +0000 (16:25 -0800)]
gstreamer1.0-plugins.inc: add missing glib-2.0-native dependency

Building the gstreamer1.0-plugins packages requires glib-mkenums.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
9 years agogstreamer1.0.inc: add missing glib-2.0-native dependency
Andre McCurdy [Thu, 21 Jan 2016 00:25:11 +0000 (16:25 -0800)]
gstreamer1.0.inc: add missing glib-2.0-native dependency

Building gstreamer1.0 requires glib-mkenums.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
9 years agogstreamer1.0-rtsp-server.inc: minor formatting improvements
Andre McCurdy [Tue, 19 Jan 2016 01:32:35 +0000 (17:32 -0800)]
gstreamer1.0-rtsp-server.inc: minor formatting improvements

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
9 years agogstreamer1.0-omx: minor formatting improvements + update HOMEPAGE
Andre McCurdy [Tue, 19 Jan 2016 01:32:21 +0000 (17:32 -0800)]
gstreamer1.0-omx: minor formatting improvements + update HOMEPAGE

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
9 years agogstreamer1.0-libav: minor formatting improvements + update HOMEPAGE
Andre McCurdy [Tue, 19 Jan 2016 01:32:02 +0000 (17:32 -0800)]
gstreamer1.0-libav: minor formatting improvements + update HOMEPAGE

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>