* [PATCH] lxc: workaround to ignore deprecated
@ 2016-05-17 13:35 Anders Roxell
2016-05-18 3:49 ` Bruce Ashfield
0 siblings, 1 reply; 2+ messages in thread
From: Anders Roxell @ 2016-05-17 13:35 UTC (permalink / raw)
To: meta-virtualization
Recent patch did deprecate a standard POSIX function [1].
This is the build error:
| ../../../lxc-2.0.0/src/lxc/cgfs.c: In function 'cgroup_rmdir':
| ../../../lxc-2.0.0/src/lxc/cgfs.c:172:2: error: 'readdir_r' is deprecated [-Werror=deprecated-declarations]
| while (!readdir_r(dir, &dirent, &direntp)) {
| ^
| In file included from ../../../lxc-2.0.0/src/lxc/cgfs.c:30:0:
| /.../build/tmp-glibc/sysroots/qemux86-64/usr/include/dirent.h:183:12: note: declared here
| extern int readdir_r (DIR *__restrict __dirp,
| ^
[1] https://www.sourceware.org/ml/libc-alpha/2016-02/msg00093.html
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
---
recipes-containers/lxc/lxc_2.0.0.bb | 2 ++
1 file changed, 2 insertions(+)
diff --git a/recipes-containers/lxc/lxc_2.0.0.bb b/recipes-containers/lxc/lxc_2.0.0.bb
index 9f01edd..5004b9e 100644
--- a/recipes-containers/lxc/lxc_2.0.0.bb
+++ b/recipes-containers/lxc/lxc_2.0.0.bb
@@ -47,6 +47,8 @@ ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)}"
EXTRA_OECONF += "--enable-log-src-basename"
+CFLAGS_append = " -Wno-error=deprecated-declarations"
+
PACKAGECONFIG ??= "templates \
${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'selinux', '', d)} \
"
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] lxc: workaround to ignore deprecated
2016-05-17 13:35 [PATCH] lxc: workaround to ignore deprecated Anders Roxell
@ 2016-05-18 3:49 ` Bruce Ashfield
0 siblings, 0 replies; 2+ messages in thread
From: Bruce Ashfield @ 2016-05-18 3:49 UTC (permalink / raw)
To: Anders Roxell; +Cc: meta-virtualization
[-- Attachment #1: Type: text/plain, Size: 1852 bytes --]
On Tue, May 17, 2016 at 9:35 AM, Anders Roxell <anders.roxell@linaro.org>
wrote:
> Recent patch did deprecate a standard POSIX function [1].
>
> This is the build error:
> | ../../../lxc-2.0.0/src/lxc/cgfs.c: In function 'cgroup_rmdir':
> | ../../../lxc-2.0.0/src/lxc/cgfs.c:172:2: error: 'readdir_r' is
> deprecated [-Werror=deprecated-declarations]
> | while (!readdir_r(dir, &dirent, &direntp)) {
> | ^
> | In file included from ../../../lxc-2.0.0/src/lxc/cgfs.c:30:0:
> | /.../build/tmp-glibc/sysroots/qemux86-64/usr/include/dirent.h:183:12:
> note: declared here
> | extern int readdir_r (DIR *__restrict __dirp,
> | ^
>
> [1] https://www.sourceware.org/ml/libc-alpha/2016-02/msg00093.html
>
>
Good timing, just ran into this myself .. saved me workign it out :D
Merged.
Bruce
> Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
> ---
> recipes-containers/lxc/lxc_2.0.0.bb | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/recipes-containers/lxc/lxc_2.0.0.bb b/recipes-containers/lxc/
> lxc_2.0.0.bb
> index 9f01edd..5004b9e 100644
> --- a/recipes-containers/lxc/lxc_2.0.0.bb
> +++ b/recipes-containers/lxc/lxc_2.0.0.bb
> @@ -47,6 +47,8 @@ ${@bb.utils.contains('DISTRO_FEATURES', 'systemd',
> 'systemd', '', d)}"
>
> EXTRA_OECONF += "--enable-log-src-basename"
>
> +CFLAGS_append = " -Wno-error=deprecated-declarations"
> +
> PACKAGECONFIG ??= "templates \
> ${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'selinux', '', d)}
> \
> "
> --
> 1.9.1
>
> --
> _______________________________________________
> meta-virtualization mailing list
> meta-virtualization@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-virtualization
>
--
"Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end"
[-- Attachment #2: Type: text/html, Size: 3344 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-05-18 3:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-17 13:35 [PATCH] lxc: workaround to ignore deprecated Anders Roxell
2016-05-18 3:49 ` Bruce Ashfield
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.