xen: use PACKAGECONFIG for SDL and a bit of dependency cleanup
PATCH v2 1/1 xen: use PACKAGECONFIG for SDL and a bit of dependency cleanup
This patch moves the optional SDL dependency to a PACKAGECONFIG entry. It also cleans up dependencies on both the virtual libsdl and libsdl. The dependency on libgl is also removed. libGL support should be enabled with the 'opengl' distro feature instead. The dependency on glib-2.0 is now explicit as well.
--- recipes-extended/xen/xen_4.3.0.bb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
recipes-extended/xen/xen_4.3.0.bb +4 -2
@@ -21,17 +21,19 @@ COMPATIBLE_HOST = '(x86_64.*).*-linux' inherit autotools gettext setuptools update-rc.d PACKAGECONFIG ??= " \ + sdl \ xsm \ " +PACKAGECONFIG[sdl] = "--enable-sdl,--disable-sdl,virtual/libsdl," PACKAGECONFIG[xsm] = "--enable-xsmpolicy,--disable-xsmpolicy,checkpolicy-native," -DEPENDS = "util-linux util-linux-native file-native zlib ncurses openssl bison-native flex-native gettext dev86-native iasl-native pciutils virtual/libgl virtual/libsdl bridge-utils iproute2 procps yajl pixman python python-setuptools-native xz xz-native libsdl" +DEPENDS = "util-linux util-linux-native file-native zlib ncurses openssl bison-native flex-native gettext dev86-native iasl-native pciutils bridge-utils iproute2 procps yajl pixman python python-setuptools-native xz xz-native glib-2.0" # inherit setuptools adds python to RDEPENDS, override it RDEPENDS_${PN} = "" RDEPENDS_${PN}-base = "\ - libgcc libsdl udev bash perl xz \ + libgcc udev bash perl xz \ ${PN}-blktap \ ${PN}-console \ ${PN}-libblktapctl \
Signature · 1 line
1.7.10.4
FYI - removing libgl as a dependency exposes another hardcoded dependency/check/path (in this case adding /usr/include/GL to the include path for qemu-xen-traditional). Probably won't hit it unless you have the opengl or libsdl dev bits on your host (as I do).
WARNING: QA Issue: xen: The compile log indicates that host include and/or library paths were used.
...
CC audio/sdlaudio.o
cc1: warning: include location "/usr/include/GL" is unsafe for cross-compilation [-Wpoison-system-directories]
....
Quoted 53 lines · Philip Tricca
This patch moves the optional SDL dependency to a PACKAGECONFIG entry. It also cleans up dependencies on both the virtual libsdl and libsdl. The dependency on libgl is also removed. libGL support should be enabled with the 'opengl' distro feature instead. The dependency on glib-2.0 is now explicit as well.
Signed-off-by Philip Tricca <[email protected]>--- recipes-extended/xen/xen_4.3.0.bb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)recipes-extended/xen/ renamed from recipes-extended/xen/xen_4.3.0.bb +0
-0xen_4.3.0.bb
index 09c25aa..283da28 100644recipes-extended/xen/xen_4.3.0.bb +2
-0@@ -21,17 +21,19 @@ COMPATIBLE_HOST = '(x86_64.*).*-linux' inherit autotools gettext setuptools update-rc.d PACKAGECONFIG ??= " \ + sdl \ xsm \ " +PACKAGECONFIG[sdl] = "--enable-sdl,--disable-sdl,virtual/libsdl," PACKAGECONFIG[xsm] ="--enable-xsmpolicy,--disable-xsmpolicy,checkpolicy-native,"
-DEPENDS = "util-linux util-linux-native file-native zlib ncurses openssl bison-native flex-native gettext dev86-native iasl-native pciutils virtual/libgl virtual/libsdl bridge-utils iproute2 procps yajl pixman python python-setuptools-native xz xz-native libsdl"
+DEPENDS = "util-linux util-linux-native file-native zlib ncurses openssl bison-native flex-native gettext dev86-native iasl-native pciutils bridge-utils iproute2 procps yajl pixman python python-setuptools-native xz xz-native glib-2.0"# inherit setuptools adds python to RDEPENDS, override it RDEPENDS_${PN} = ""RDEPENDS_${PN}-base = "\
recipes-extended/xen/xen_4.3.0.bb +1
-2- libgcc libsdl udev bash perl xz \ + libgcc udev bash perl xz \ ${PN}-blktap \ ${PN}-console \ ${PN}-libblktapctl \ --1.7.10.4
_______________________________________________
meta-virtualization mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-virtualization
Quoted 5 lines · Chris Patterson
FYI - removing libgl as a dependency exposes another hardcoded dependency/check/path (in this case adding
/usr/include/GLto the include path for qemu-xen-traditional). Probably won't hit it unless you have the opengl or libsdl dev bits on your host (as I do).
Quoted 7 lines
WARNING: QA Issue: xen: The compile log indicates that host include and/or library paths were used.
...
CCaudio/sdlaudio.o
cc1: warning: include location "/usr/include/GL" is unsafe for cross-compilation [-Wpoison-system-directories]
....
Yuck. I'm seeing this in the qemu-xen-traditional configure script. It's a separate issue from this patch though no?
- Philip
Quoted 58 lines
On Tue, Nov 5, 2013 at 9:17 PM, Philip Tricca <[email protected] <mailto:[email protected]>> wrote:
This patch moves the optional SDL dependency to a PACKAGECONFIG entry. It also cleans up dependencies on both the virtual libsdl and libsdl. The dependency on libgl is also removed. libGL support should be enabled with the 'opengl' distro feature instead. The dependency on glib-2.0 is now explicit as well.
Signed-off-by Philip Tricca <[email protected] <mailto:[email protected]>>---
recipes-extended/xen/xen_4.3.0.bb <http://xen_4.3.0.bb> | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)diff --git a/recipes-extended/xen/xen_4.3.0.bb <http://xen_4.3.0.bb>
b/recipes-extended/xen/xen_4.3.0.bb <http://xen_4.3.0.bb>
index 09c25aa..283da28 100644
--- a/recipes-extended/xen/xen_4.3.0.bb <http://xen_4.3.0.bb>
+++ b/recipes-extended/xen/xen_4.3.0.bb <http://xen_4.3.0.bb>
@@ -21,17 +21,19 @@COMPATIBLE_HOST= '(x86_64.*).*-linux'
inherit autotools gettext setuptools update-rc.dPACKAGECONFIG ??= " \
+ sdl \
xsm \
"
+PACKAGECONFIG[sdl] = "--enable-sdl,--disable-sdl,virtual/libsdl,"
PACKAGECONFIG[xsm] =
"--enable-xsmpolicy,--disable-xsmpolicy,checkpolicy-native,"-DEPENDS = "util-linux util-linux-native file-native zlib ncurses openssl bison-native flex-native gettext dev86-native iasl-native pciutils virtual/libgl virtual/libsdl bridge-utils iproute2 procps yajl pixman python python-setuptools-native xz xz-native libsdl" +DEPENDS = "util-linux util-linux-native file-native zlib ncurses openssl bison-native flex-native gettext dev86-native iasl-native pciutils bridge-utils iproute2 procps yajl pixman python python-setuptools-native xz xz-native glib-2.0"
# inherit setuptools adds python to RDEPENDS, override it RDEPENDS_${PN} = ""
RDEPENDS_${PN}-base = "\
- libgcc libsdl udev bash perl xz \
+ libgcc udev bash perl xz \
${PN}-blktap \
${PN}-console \
${PN}-libblktapctl \
--
1.7.10.4_______________________________________________
meta-virtualization mailing list
[email protected]
<mailto:[email protected]>
https://lists.yoctoproject.org/listinfo/meta-virtualization
Quoted 14 lines · Philip Tricca
Quoted 5 lines · Chris Patterson
FYI - removing libgl as a dependency exposes another hardcoded dependency/check/path (in this case adding
/usr/include/GLto the include path for qemu-xen-traditional). Probably won't hit it unless you have the opengl or libsdl dev bits on your host (as I do).Quoted 7 lines
WARNING: QA Issue: xen: The compile log indicates that host include and/or library paths were used.
...
CCaudio/sdlaudio.o
cc1: warning: include location "/usr/include/GL" is unsafe for cross-compilation [-Wpoison-system-directories]
....
Quoted 4 lines
Yuck. I'm seeing this in the qemu-xen-traditional configure script. It's a separate issue from this patch though no?
Yeah, I though the removal of libgl triggered it, but I guess not. I'm looking at some of the trouble points, seeing what could be cleaned up for future revs.
Cheers,
-Chris
Quoted 64 lines
- Philip
Quoted 10 lines
On Tue, Nov 5, 2013 at 9:17 PM, Philip Tricca <[email protected] <mailto:[email protected]>> wrote:
This patch moves the optional SDL dependency to a PACKAGECONFIG entry. It also cleans up dependencies on both the virtual libsdl and libsdl. The dependency on libgl is also removed. libGL support should be enabled with the 'opengl' distro feature instead. The dependency on glib-2.0 is now explicit as well.
Signed-off-by Philip Tricca <[email protected] <mailto:Quoted 2 lines
--- recipes-extended/xen/xen_4.3.0.bb <http://xen_4.3.0.bb> | 6++++--
Quoted 46 lines
1 file changed, 4 insertions(+), 2 deletions(-)diff --git a/recipes-extended/xen/xen_4.3.0.bb <http://xen_4.3.0.bb> b/recipes-extended/xen/xen_4.3.0.bb <http://xen_4.3.0.bb> index 09c25aa..283da28 100644 --- a/recipes-extended/xen/xen_4.3.0.bb <http://xen_4.3.0.bb> +++ b/recipes-extended/xen/xen_4.3.0.bb <http://xen_4.3.0.bb> @@ -21,17 +21,19 @@ COMPATIBLE_HOST = '(x86_64.*).*-linux' inherit autotools gettext setuptools update-rc.d PACKAGECONFIG ??= " \ + sdl \ xsm \ " +PACKAGECONFIG[sdl] = "--enable-sdl,--disable-sdl,virtual/libsdl," PACKAGECONFIG[xsm] = "--enable-xsmpolicy,--disable-xsmpolicy,checkpolicy-native," -DEPENDS = "util-linux util-linux-native file-native zlib ncurses openssl bison-native flex-native gettext dev86-native iasl-native pciutils virtual/libgl virtual/libsdl bridge-utils iproute2 procps yajl pixman python python-setuptools-native xz xz-native libsdl" +DEPENDS = "util-linux util-linux-native file-native zlib ncurses openssl bison-native flex-native gettext dev86-native iasl-native pciutils bridge-utils iproute2 procps yajl pixman python python-setuptools-native xz xz-native glib-2.0" # inherit setuptools adds python to RDEPENDS, override it RDEPENDS_${PN} = "" RDEPENDS_${PN}-base = "\ - libgcc libsdl udev bash perl xz \ + libgcc udev bash perl xz \ ${PN}-blktap \ ${PN}-console \ ${PN}-libblktapctl \ -- 1.7.10.4 _______________________________________________ meta-virtualization mailing list [email protected] <mailto:[email protected]> https://lists.yoctoproject.org/listinfo/meta-virtualization
Quoted 5 lines · Philip Tricca
This patch moves the optional SDL dependency to a PACKAGECONFIG entry. It also cleans up dependencies on both the virtual libsdl and libsdl. The dependency on libgl is also removed. libGL support should be enabled with the 'opengl' distro feature instead. The dependency on glib-2.0 is now explicit as well.
Merged. We'll worry about the other issues mentioned in this thread in future patches.
Phillip: this should be all your pending patches merged, let me know if I've missed anything.
Bruce
Quoted 39 lines
Signed-off-by Philip Tricca <[email protected]>--- recipes-extended/xen/xen_4.3.0.bb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)recipes-extended/xen/xen_4.3.0.bb +4
-3@@ -21,17 +21,19 @@ COMPATIBLE_HOST = '(x86_64.*).*-linux' inherit autotools gettext setuptools update-rc.d PACKAGECONFIG ??= " \ + sdl \ xsm \ " +PACKAGECONFIG[sdl] = "--enable-sdl,--disable-sdl,virtual/libsdl," PACKAGECONFIG[xsm] = "--enable-xsmpolicy,--disable-xsmpolicy,checkpolicy-native," -DEPENDS = "util-linux util-linux-native file-native zlib ncurses openssl bison-native flex-native gettext dev86-native iasl-native pciutils virtual/libgl virtual/libsdl bridge-utils iproute2 procps yajl pixman python python-setuptools-native xz xz-native libsdl" +DEPENDS = "util-linux util-linux-native file-native zlib ncurses openssl bison-native flex-native gettext dev86-native iasl-native pciutils bridge-utils iproute2 procps yajl pixman python python-setuptools-native xz xz-native glib-2.0" # inherit setuptools adds python to RDEPENDS, override it RDEPENDS_${PN} = "" RDEPENDS_${PN}-base = "\ - libgcc libsdl udev bash perl xz \ + libgcc udev bash perl xz \ ${PN}-blktap \ ${PN}-console \ ${PN}-libblktapctl \ --1.7.10.4
_______________________________________________
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"