[oe] [meta-oe][PATCH] android-tools: fix build with glibc-2.28

akuster808 akuster808 at gmail.com
Mon Aug 13 05:18:38 UTC 2018



On 08/11/2018 07:58 AM, Martin Jansa wrote:
> Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
> ---
>  ...sb_linux.c-fix-build-with-glibc-2.28.patch | 24 +++++++++++++++++++
>  .../android-tools/android-tools_5.1.1.r37.bb  |  1 +
>  2 files changed, 25 insertions(+)
>  create mode 100644 meta-oe/recipes-devtools/android-tools/android-tools/0001-usb_linux.c-fix-build-with-glibc-2.28.patch
>
> diff --git a/meta-oe/recipes-devtools/android-tools/android-tools/0001-usb_linux.c-fix-build-with-glibc-2.28.patch b/meta-oe/recipes-devtools/android-tools/android-tools/0001-usb_linux.c-fix-build-with-glibc-2.28.patch
> new file mode 100644
> index 0000000000..15401d1524
> --- /dev/null
> +++ b/meta-oe/recipes-devtools/android-tools/android-tools/0001-usb_linux.c-fix-build-with-glibc-2.28.patch
> @@ -0,0 +1,24 @@
> +From cb80906bd3869bba370a088e4634ae4a8093fdd8 Mon Sep 17 00:00:00 2001
> +From: Martin Jansa <Martin.Jansa at gmail.com>
> +Date: Sat, 11 Aug 2018 13:23:37 +0000
> +Subject: [PATCH] usb_linux.c: fix build with glibc-2.28
> +
> +* include sysmacros for major, minor
Shouldn't this also have "Upstream-Status" ?

> +
> +Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
> +---
> + adb/usb_linux.c | 1 +
> + 1 file changed, 1 insertion(+)
> +
> +diff --git a/adb/usb_linux.c b/adb/usb_linux.c
> +index f16bdd036..c8a773244 100644
> +--- a/adb/usb_linux.c
> ++++ b/adb/usb_linux.c
> +@@ -22,6 +22,7 @@
> + #include <sys/ioctl.h>
> + #include <sys/types.h>
> + #include <sys/time.h>
> ++#include <sys/sysmacros.h>
> + #include <dirent.h>
> + #include <fcntl.h>
> + #include <errno.h>
> diff --git a/meta-oe/recipes-devtools/android-tools/android-tools_5.1.1.r37.bb b/meta-oe/recipes-devtools/android-tools/android-tools_5.1.1.r37.bb
> index 780ecaa11a..a85e8b6652 100644
> --- a/meta-oe/recipes-devtools/android-tools/android-tools_5.1.1.r37.bb
> +++ b/meta-oe/recipes-devtools/android-tools/android-tools_5.1.1.r37.bb
> @@ -47,6 +47,7 @@ SRC_URI = " \
>      file://ext4_utils.mk;subdir=${BPN} \
>      file://fastboot.mk;subdir=${BPN} \
>      file://mkbootimg.mk;subdir=${BPN} \
> +    file://0001-usb_linux.c-fix-build-with-glibc-2.28.patch;patchdir=system/core \
>  "
>  
>  S = "${WORKDIR}/git"




More information about the Openembedded-devel mailing list