[lxc-devel] [PATCH 00/17] Android/Bionic compatibility changes

Stéphane Graber stgraber at ubuntu.com
Mon Aug 19 12:40:53 UTC 2013


On Fri, Aug 16, 2013 at 05:13:46PM +0200, Stéphane Graber wrote:
> LXC recently regressed with regard to Android/Bionic buildability, the
> following commits try to address that.
> 
> With those changes, LXC now builds with an up to date NDK using
> android-9.

This patchset has now been pushed upstream, please note that from now on
I'll be running automatic Android builds of staging, so any regression
there may lead to your patch being reverted (if it's non-trivial to
fix).

> 
> Stéphane Graber (17):
>   Add a local implementation of ifaddrs.h
>   Replace all calls to rindex by strrchr
>   Export the local getmntent_r implementation
>   Define BLKGETSIZE64 and LO_FLAGS_AUTOCLEAR
>   Android now uses a sane clone() definition
>   Add arm defines for __NR_signalfd(4)
>   Add missing syscall.h include to utils.h
>   Add missing sys/select.h include for fd_set
>   Import local getline copy on bionic
>   Include stdio.h in getline.h for FILE
>   Use srand/rand instead of initstate/random
>   Define SOCK_CLOEXEC when missing
>   Add missing sys/socket.h include
>   Don't define new_personality when building without personalities
>   Allow building without confstr
>   Add missing namespace.h include
>   Fix lxc-user-nic to work on bionic
> 
>  configure.ac            |   4 +-
>  src/include/getline.h   |   2 +
>  src/include/ifaddrs.c   | 597 ++++++++++++++++++++++++++++++++++++++++++++++++
>  src/include/ifaddrs.h   |  54 +++++
>  src/include/lxcmntent.h |   1 +
>  src/lxc/Makefile.am     |   2 +
>  src/lxc/attach.c        |  16 +-
>  src/lxc/bdev.c          |  20 +-
>  src/lxc/cgroup.c        |  10 +-
>  src/lxc/conf.c          |  12 +-
>  src/lxc/lxc.h           |   1 +
>  src/lxc/lxc_user_nic.c  |  18 +-
>  src/lxc/lxccontainer.c  |  12 +-
>  src/lxc/namespace.h     |   3 -
>  src/lxc/utils.h         |   5 +
>  15 files changed, 729 insertions(+), 28 deletions(-)
>  create mode 100644 src/include/ifaddrs.c
>  create mode 100644 src/include/ifaddrs.h
> 
> -- 
> 1.8.3.2
> 

-- 
Stéphane Graber
Ubuntu developer
http://www.ubuntu.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20130819/f9398fe5/attachment.pgp>


More information about the lxc-devel mailing list