]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
9 years agodevtool: extract: use the correct datastore for builddir
Markus Lehtonen [Fri, 18 Dec 2015 08:39:41 +0000 (10:39 +0200)]
devtool: extract: use the correct datastore for builddir

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agobusybox: backport upstream truncate open mode fix
Andre McCurdy [Fri, 22 Jan 2016 20:39:08 +0000 (12:39 -0800)]
busybox: backport upstream truncate open mode fix

  https://git.busybox.net/busybox/commit/?h=1_24_stable&id=be729c1d3b5c923f10871dd68ea94156d0f8c803

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agogstreamer1.0-plugins-base.inc: drop obsolete dependency on liboil
Andre McCurdy [Fri, 22 Jan 2016 01:13:12 +0000 (17:13 -0800)]
gstreamer1.0-plugins-base.inc: drop obsolete dependency on liboil

liboil was replaced by Orc prior to the gst-plugins-base 0.10.30 release:

  http://cgit.freedesktop.org/gstreamer/gst-plugins-base/commit/?id=8e4314f0fbfa4957f8e84d46824d10178b106fe6

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoe2fsprogs: disable blkid
Ross Burton [Mon, 25 Jan 2016 22:58:54 +0000 (22:58 +0000)]
e2fsprogs: disable blkid

Both e2fsprogs and util-linux can build blkid, but we want to always use
util-linux's for consistency.

(blkid was enabled again in a1f235)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopango.inc: drop obsolete FULL_OPTIMIZATION over-ride
Andre McCurdy [Tue, 26 Jan 2016 04:38:22 +0000 (20:38 -0800)]
pango.inc: drop obsolete FULL_OPTIMIZATION over-ride

Legacy workaround dating back to 2007, no longer required.

  http://git.openembedded.org/openembedded-core/commit/?id=975809901d32756a1abb03d23a459ab0c6eadc17

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodevtool: add configure-help subcommand
Paul Eggleton [Tue, 26 Jan 2016 02:53:54 +0000 (15:53 +1300)]
devtool: add configure-help subcommand

When you need to set EXTRA_OECONF for a recipe, you need to know what
options the configure script actually supports; the configure script
however is only accessible from within a devshell and (at least in the
case of autotooled software fetched from an SCM repository) may not
actually exist until do_configure has run. Thus, provide a "devtool
configure-help" subcommand that runs the configure script for a recipe
with --help and shows you the output through a pager (e.g. less),
prefaced by a header describing the current options being specified.

There is basic support for autotools, cmake and bare configure scripts.
The cmake support is a little hacky since cmake doesn't really have a
concise help option that lists user-defined knobs (without actually
running through the configure process), however that being a design
feature of cmake there's not much I can think of to do about that at
the moment.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodevtool: properly handle bb.build.FuncFailed when extracting source
Paul Eggleton [Tue, 26 Jan 2016 02:53:57 +0000 (15:53 +1300)]
devtool: properly handle bb.build.FuncFailed when extracting source

When we run the tasks required to extract the source for a recipe (e.g.
within "devtool modify" or "devtool extract") if one of those tasks
fails you get a bb.build.FuncFailed exception; handle this properly so
you don't see a traceback.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodevtool: add: warn if modified recipe found in attic directory
Paul Eggleton [Tue, 26 Jan 2016 02:53:56 +0000 (15:53 +1300)]
devtool: add: warn if modified recipe found in attic directory

If a recipe generated by "devtool add" has been modified since then when
you run "devtool reset", it will be moved into the "attic" subdirectory
of the workspace in case those modifications need to be preserved. It
seems natural that if those modifications were worth preserving we
should warn the user if such a file exists when they run "devtool add"
to create the same recipe again, so they can pick up where they left off
if they want to.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodevtool: build-image: allow specifying packages to add to image
Paul Eggleton [Tue, 26 Jan 2016 02:53:55 +0000 (15:53 +1300)]
devtool: build-image: allow specifying packages to add to image

Provide an option to devtool build-image to specify the list of packages
instead of taking the list of packages produced by recipes in the
workspace. Sometimes you don't want all of these packages; other times
you want to add more.

This is the most immediate fix for [YOCTO #8855], though it is a little
crude so I would like to provide better means of customising the image
contents later.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodevtool: move edit-recipe to a separate module
Paul Eggleton [Tue, 26 Jan 2016 02:53:53 +0000 (15:53 +1300)]
devtool: move edit-recipe to a separate module

standard.py is getting a bit large; move the "utility" commands to
another module.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoimage: Don't create tasks with '.' in the name
Richard Purdie [Tue, 26 Jan 2016 18:02:21 +0000 (18:02 +0000)]
image: Don't create tasks with '.' in the name

Similarly to "-", "." doesn't work well in task names but is used in
some real world image classes. Work around this with some replacements
for now to unbreak layers.

(Issues don't show themselves until runtime, e.g. with --dry-run)

Tested-By: Otavio Salvador <otavio.salvador@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorootfs-postcommands: fix allow-empty-password on read-only rootfs
Ross Burton [Tue, 26 Jan 2016 16:20:00 +0000 (16:20 +0000)]
rootfs-postcommands: fix allow-empty-password on read-only rootfs

When a read-only rootfs is being used sshd uses a different sshd_config file,
which also needs to be editted.

[ YOCTO #8680 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agokernel: Clean DEPLOYDIR before do_deploy runs
Richard Purdie [Mon, 25 Jan 2016 15:07:34 +0000 (15:07 +0000)]
kernel: Clean DEPLOYDIR before do_deploy runs

If we don't do this, the deploy sstate object contains an every
increasing number of modules tarballs and kernel images, one per
execution of "-c deploy -f".

Cleaning the directory before we start makes things much tidier.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogcc-cross-canadian: Add missing DEPENDS on virtual/${HOST_PREFIX}gcc-crosssdk
Richard Purdie [Mon, 25 Jan 2016 15:06:01 +0000 (15:06 +0000)]
gcc-cross-canadian: Add missing DEPENDS on virtual/${HOST_PREFIX}gcc-crosssdk

The cross-canadian compiler needs the nativesdk compiler to build
but for some reason this was missing. Add the missing dependency.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolibtirpc: Drop unneeded xz-native dependency
Richard Purdie [Mon, 25 Jan 2016 15:05:18 +0000 (15:05 +0000)]
libtirpc: Drop unneeded xz-native dependency

xz-native is needed to decompress the sources but DEPENDS isn't correct
for this, its needed at do_unpack time. base.bbclass already handles
this correctly so drop the unneeded dependency.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolibuser: Drop unneeded xz-native dependency
Richard Purdie [Mon, 25 Jan 2016 15:04:47 +0000 (15:04 +0000)]
libuser: Drop unneeded xz-native dependency

xz-native is needed to decompress the sources but DEPENDS isn't correct
for this, its needed at do_unpack time. base.bbclass already handles
this correctly so drop the unneeded dependency.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoRevert "xz: Allow to work with ASSUME_PROVIDED xz-native"
Richard Purdie [Mon, 25 Jan 2016 10:05:56 +0000 (10:05 +0000)]
Revert "xz: Allow to work with ASSUME_PROVIDED xz-native"

This reverts commit 5c69c561a76cb10d7896ae0a0399190f11b2e0ca.

The change was incomplete, not handling cases such as the fetcher
using xz, or linux-yocto, dpkg or apt or the lzma image type.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoacpid: upgrade to 2.0.26
Maxin B. John [Wed, 20 Jan 2016 15:58:47 +0000 (17:58 +0200)]
acpid: upgrade to 2.0.26

2.0.25 -> 2.0.26

a) Fixed an out of tree build error with musl
b) Updated HOMEPAGE and BUGTRACKER info

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobuild-perf-test.sh: add eSDK testing
Markus Lehtonen [Thu, 21 Jan 2016 17:46:41 +0000 (19:46 +0200)]
build-perf-test.sh: add eSDK testing

Add simple initial eSDK test. Currently, only download size and
installation time of eSDK is measured. The eSDK to be tested is
generated from the same image that the other tests are run for. This
patch will add two new fields to the global results log and that needs
to be taken into account when examining the results.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobuild-perf-test.sh: more generic timing function
Markus Lehtonen [Thu, 21 Jan 2016 17:46:40 +0000 (19:46 +0200)]
build-perf-test.sh: more generic timing function

Make it possible to time also other than bitbake commands. The name of
the log file is changed from bitbake.log to commands.log.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopython3-pip: Upgrade to 8.0.0
Alejandro Hernandez [Thu, 21 Jan 2016 17:58:00 +0000 (17:58 +0000)]
python3-pip: Upgrade to 8.0.0

LIC_FILES_CHKSUM changed, but LICESE still applies, dates changed

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoorc: update HOMEPAGE
Andre McCurdy [Fri, 22 Jan 2016 03:23:53 +0000 (19:23 -0800)]
orc: update HOMEPAGE

The old entropywave.com URL no longer responds.

Also remove unnecessary 'name=orc' from SRC_URI.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogstreamer1.0-plugins.inc: drop obsolete ${S}/po/Makefile.in.in workaround
Andre McCurdy [Fri, 22 Jan 2016 03:23:37 +0000 (19:23 -0800)]
gstreamer1.0-plugins.inc: drop obsolete ${S}/po/Makefile.in.in workaround

The workaround was originally added to the 0.10.x gst-plugins recipes
in late 2012 [1] and the root cause seems to have been fixed upstream
in late 2013 [2] (ie prior to the 1.4.0 release).

 [1] http://lists.openembedded.org/pipermail/openembedded-core/2012-November/071149.html
 [2] https://bugzilla.gnome.org/show_bug.cgi?id=705455

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobusybox: Add support for busybox-init
Khem Raj [Fri, 22 Jan 2016 20:49:09 +0000 (20:49 +0000)]
busybox: Add support for busybox-init

in config metadata we can configure busybox based init and device
initializer ( mdev ) using e.g.

VIRTUAL-RUNTIME_dev_manager = "busybox-mdev"
VIRTUAL-RUNTIME_login_manager = "busybox"
VIRTUAL-RUNTIME_init_manager = "busybox"
VIRTUAL-RUNTIME_initscripts = "initscripts"
VIRTUAL-RUNTIME_keymaps = "keymaps"
DISTRO_FEATURES_BACKFILL_CONSIDERED += "sysvinit"

busybox can be used to provide init system
combined with mdev it makes it a complete init
system for really tiny systems.

This patch uses above defines to configure features in busybox to enable
the init system and mdev in a configurable manner

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopulseaudio.inc: drop obsolete dependency on liboil
Andre McCurdy [Fri, 22 Jan 2016 03:23:45 +0000 (19:23 -0800)]
pulseaudio.inc: drop obsolete dependency on liboil

Pulseaudio dropped its dependency on liboil in 2009.

  http://cgit.freedesktop.org/pulseaudio/pulseaudio/commit/?id=25724cdd40283a00e6edd9449d0f3cf16823b41b

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosqlite3: update 3.10.0 -> 3.10.2
Andre McCurdy [Sat, 23 Jan 2016 01:26:05 +0000 (17:26 -0800)]
sqlite3: update 3.10.0 -> 3.10.2

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosqlite3.inc: add PACKAGECONFIG to support building against libedit
Andre McCurdy [Sat, 23 Jan 2016 01:26:04 +0000 (17:26 -0800)]
sqlite3.inc: add PACKAGECONFIG to support building against libedit

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosqlite3.inc: dynamically link the sqlite3 command-line utility
Andre McCurdy [Sat, 23 Jan 2016 01:26:03 +0000 (17:26 -0800)]
sqlite3.inc: dynamically link the sqlite3 command-line utility

By default, the sqlite3 command-line utility will be statically linked
with sqlite3. For OE, dynamic linking is probably more appropriate and
can be enabled by configuring with "--disable-static-shell".

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosqlite: formatting improvements, move more stuff into sqlite3.inc
Andre McCurdy [Sat, 23 Jan 2016 01:26:02 +0000 (17:26 -0800)]
sqlite: formatting improvements, move more stuff into sqlite3.inc

Reformatting only, no functional changes.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosqlite3.inc: drop obsolete config_BUILD_CC, etc exports
Andre McCurdy [Sat, 23 Jan 2016 01:26:01 +0000 (17:26 -0800)]
sqlite3.inc: drop obsolete config_BUILD_CC, etc exports

These exports date back to 2007, when sqlite needed patching
in order to cross compile:

  http://git.openembedded.org/openembedded-core/commit/?id=4ffe8f6b1ff640722880cf2cd88990956de87e30

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosqlite3.inc: fix readline PACKAGECONFIG
Andre McCurdy [Sat, 23 Jan 2016 01:26:00 +0000 (17:26 -0800)]
sqlite3.inc: fix readline PACKAGECONFIG

Make it clearer that readline support for the target build is now
disabled by default.

Since readline dependencies and configure options are now handled by
PACKAGECONFIG, avoid duplicating readline in DEPENDS or duplicating
--disable-readline in EXTRA_OECONF.

Also add --disable-editline to EXTRA_OECONF to avoid a potential
floating dependency, since the configure script checks for libedit
before it checks for libreadline.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosqlite3: fix the parallel build fix patch
Andre McCurdy [Sat, 23 Jan 2016 01:25:59 +0000 (17:25 -0800)]
sqlite3: fix the parallel build fix patch

The previous parallel.patch broke dynamically linking sqlite3 with
libsqlite3.so (ie using the --disable-static-shell configure option).

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoweston: Add missing DEPENDS on wayland-native
Richard Purdie [Sun, 24 Jan 2016 10:49:14 +0000 (10:49 +0000)]
weston: Add missing DEPENDS on wayland-native

Weston needs wayland-scanner which comes from wayland-native. Add the missing
dependency to avoid build failures from:

bitbake wayland; bitbake wayland-native:do_clean weston:do_cleansstate; bitbake weston

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agouninative: Fix conflicts with normal sysroot
Richard Purdie [Fri, 22 Jan 2016 17:17:10 +0000 (17:17 +0000)]
uninative: Fix conflicts with normal sysroot

Currently this code installs into the standard sysroot, however this causes
some conflicts when linking since the linker can look specifically for
versioned .so files (e.g. like libpthreads.so.0). This breaks builds
of util-linux-native for example.

The easiest solution is to install uninative into its own separate sysroot.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoinsane: Drop do_stage test
Richard Purdie [Fri, 22 Jan 2016 13:07:32 +0000 (13:07 +0000)]
insane: Drop do_stage test

do_stage was obsoleted years ago, drop the test now.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopopulate_sdk: Use pixz instead of xz
Richard Purdie [Fri, 22 Jan 2016 13:06:50 +0000 (13:06 +0000)]
populate_sdk: Use pixz instead of xz

xz is slow at compressing the SDKs, we can speed it up by using the
parallel compressor, pixz.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolib/oe/sdk: Partially revert "sdk.py: fix conflicts of packages"
Richard Purdie [Fri, 22 Jan 2016 13:06:09 +0000 (13:06 +0000)]
lib/oe/sdk: Partially revert "sdk.py: fix conflicts of packages"

OE-Core rev: f2b64f725803ad8be7c2876c531e057a4fe5ca7c (poky
1362986886cc96c8cc11fb60795f729b41770414) unintentionally broke opkg/dpkg
multilib support within the SDK by making things not honour
self.install_order. This reinstates that code for opkg/dpkg but
not rpm where the original problem was.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agouninative: Add fetch capability
Richard Purdie [Fri, 22 Jan 2016 13:05:21 +0000 (13:05 +0000)]
uninative: Add fetch capability

Originally, the idea was that the init environment would handle
fetching or providing the binary shim that uninative needs.

This turns out to be ugly, especially when you consider proxy
environments and so on getting involved. Instead, lets therefore
support our fetcher which already handles all this.

The distro is expected to setup configuration like:

UNINATIVE_URL ?= "http://mydomain/mypath/"
UNINATIVE_CHECKSUM[i586] =
"md5sum1"
UNINATIVE_CHECKSUM[x86_64] = "md5sum2"

and then it should all work if the user inherits the uninative class.

This patch also improves the error handling in the class to give more
user readable error messages.

If the shim binary is already provided, the system will just use that
and ignore the url information.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopixz: Add 1.0.6
Richard Purdie [Fri, 22 Jan 2016 12:58:11 +0000 (12:58 +0000)]
pixz: Add 1.0.6

xz gives better compression results than bzip/gz but is often slower.
Using parallel compression mitigates this somewhat and is particularly
useful for the SDK.

Whilst xz does have some parallel support, pixz appears to perform better
and supports parallel decompression as well as a simpler command line.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoxz: Allow to work with ASSUME_PROVIDED xz-native
Richard Purdie [Fri, 22 Jan 2016 12:59:35 +0000 (12:59 +0000)]
xz: Allow to work with ASSUME_PROVIDED xz-native

At some point we may want to add xz-native to ASSUME_PROVIDED. This
allows that to work whilst still allowing access to liblzma for
those things which need it (e.g. pixz).

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolib/oe/package_manager: prevent testing an undefined variable
Joshua Lock [Fri, 22 Jan 2016 09:43:59 +0000 (09:43 +0000)]
lib/oe/package_manager: prevent testing an undefined variable

This prevents an error in do_populate_sdk when building
buildtools-tarball with ipk as the package manager:

Exception: UnboundLocalError: local variable 'pkg' referenced
before assignment

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorecipetool: create: better fix for fetch error handling
Paul Eggleton [Fri, 22 Jan 2016 12:00:01 +0000 (01:00 +1300)]
recipetool: create: better fix for fetch error handling

I was a little bit hasty in OE-Core revision
c2cc5abe34169eae92067d97ce1e747e7c1413f5 - it turns out BitBake's
fetcher code is not consistent in whether it logs something useful or
not; when fetching from an http URL it does but with a git repository
it doesn't. In advance of any major reworking of fetch error handling in
BitBake, let's just print the text of the exception and then we know we
have shown something to the user.

Additionally, we were only catching FetchException here but there are
several other classes of exception that the fetcher can raise (e.g.
MalformedUrl); catch the parent BBFetchException class instead so we
avoid tracebacks for those other classes as well.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorecipetool: create: fix extraction of name from URLs ending in /
Paul Eggleton [Fri, 22 Jan 2016 12:00:00 +0000 (01:00 +1300)]
recipetool: create: fix extraction of name from URLs ending in /

If the URL ends in a / then we want to strip that off the path we split
out of the URL before calling os.path.basename() on it.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorecipetool: create: extract SRC_URI from local git repositories
Paul Eggleton [Fri, 22 Jan 2016 11:59:59 +0000 (00:59 +1300)]
recipetool: create: extract SRC_URI from local git repositories

If you specify a local directory which happens to be a git repository
with an origin remote (and it is in fact remote), we can use that for
SRC_URI rather than leaving it blank in the recipe.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodevtool / recipetool: support specifying a subdirectory within the fetched source
Paul Eggleton [Fri, 22 Jan 2016 11:59:58 +0000 (00:59 +1300)]
devtool / recipetool: support specifying a subdirectory within the fetched source

Sometimes you don't want to build an entire project, just a subdirectory
of it; add a --src-subdir option to make that easier. (We still look for
a single subdirectory in what gets unpacked, e.g. what you might find
within a tarball, so whatever you specify with this option is added onto
the end of that.)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorecipetool: create: strip quotes from values extracted from CMakeLists.txt
Paul Eggleton [Fri, 22 Jan 2016 11:59:57 +0000 (00:59 +1300)]
recipetool: create: strip quotes from values extracted from CMakeLists.txt

Quoting is optional in CMakeLists.txt and is occasionally used, so strip
out quotes if they are present.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogen-lockedsig-cache: copy correct native sstate into ext SDK
Paul Eggleton [Fri, 22 Jan 2016 11:59:56 +0000 (00:59 +1300)]
gen-lockedsig-cache: copy correct native sstate into ext SDK

When constructing the sstate-cache directory for the extensible SDK,
we were copying in any matching native sstate packages, and as the
signature doesn't actually change when the distro changes (since
NATIVELSBSTRING is just a path separator for the artifacts and is not
part of the signature) we ended up copying duplicated packages when the
distro changed e.g. upon host distro upgrade. Only search in the
NATIVELSBSTRING-named subdirectory for native packages and the issue
goes away.

Fixes [YOCTO #8885].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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>