lxc: workaround to ignore deprecated
PATCH 1/1 lxc: workaround to ignore deprecated
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
--- recipes-containers/lxc/lxc_2.0.0.bb | 2 ++ 1 file changed, 2 insertions(+)
recipes-containers/lxc/lxc_2.0.0.bb +2 -0
@@ -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)} \ "
Signature · 1 line
1.9.1
Quoted 10 lines · Anders Roxell
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:
Quoted 7 lines
note: declared here
| extern intreaddir_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
Quoted 30 lines
Signed-off-by Anders Roxell <[email protected]>--- recipes-containers/lxc/lxc_2.0.0.bb | 2 ++ 1 file changed, 2 insertions(+)recipes-containers/lxc/ renamed from recipes-containers/lxc/lxc_2.0.0.bb +0
-0lxc_2.0.0.bb
index 9f01edd..5004b9e 100644recipes-containers/lxc/lxc_2.0.0.bb +0
-0@@ -47,6 +47,8 @@ ${@bb.utils.contains('DISTRO_FEATURES', 'systemd','systemd', '', d)}"
EXTRA_OECONF+= "--enable-log-src-basename"recipes-containers/lxc/lxc_2.0.0.bb +2
-0+CFLAGS_append = " -Wno-error=deprecated-declarations" + PACKAGECONFIG ??= "templates \ ${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'selinux', '', d)}\
"
--
1.9.1--
_______________________________________________
meta-virtualization mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-virtualization
Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"