* [PATCH 1/2] alsa-tools: fix build when x11 and gtk+ not available
@ 2013-04-03 0:34 Rogerio Nunes
2013-04-03 0:34 ` [PATCH 2/2] gst-plugins-bad: disable librsvg when x11 is disabled Rogerio Nunes
2013-04-08 13:33 ` [PATCH 1/2] alsa-tools: fix build when x11 and gtk+ not available Trevor Woerner
0 siblings, 2 replies; 7+ messages in thread
From: Rogerio Nunes @ 2013-04-03 0:34 UTC (permalink / raw)
To: openembedded-core
Current verion of gtk+ (2.15.24) does not accept pure framebuffer as
backend and some alsa-tools sub-modules depend on gtk+.
This patch removes those sub-modules from the build only when x11 is not
set in DISTRO_FEATURES.
Signed-off-by: Rogerio Nunes <ronunes@gmail.com>
---
.../alsa/alsa-tools/makefile_no_gtk.patch | 21 ++++++++++++++++++++
.../recipes-multimedia/alsa/alsa-tools_1.0.26.1.bb | 8 ++++++--
2 files changed, 27 insertions(+), 2 deletions(-)
create mode 100644 meta/recipes-multimedia/alsa/alsa-tools/makefile_no_gtk.patch
diff --git a/meta/recipes-multimedia/alsa/alsa-tools/makefile_no_gtk.patch b/meta/recipes-multimedia/alsa/alsa-tools/makefile_no_gtk.patch
new file mode 100644
index 0000000..51f934d
--- /dev/null
+++ b/meta/recipes-multimedia/alsa/alsa-tools/makefile_no_gtk.patch
@@ -0,0 +1,21 @@
+Remove some sub-components which need gtk+.
+
+Signed-off-by: Rogerio Nunes <ronunes@gmail.com>
+
+Upstream-Status: Inappropriate [configuration]
+
+diff --git a/Makefile b/Makefile
+--- a/Makefile
++++ b/Makefile
+@@ -1,8 +1,8 @@
+ VERSION = 1.0.26.1
+ TOP = .
+-SUBDIRS = ac3dec as10k1 envy24control \
+- mixartloader pcxhrloader rmedigicontrol sb16_csp seq sscape_ctl \
+- us428control usx2yloader vxloader echomixer \
++SUBDIRS = ac3dec as10k1 \
++ mixartloader pcxhrloader sb16_csp seq sscape_ctl \
++ us428control usx2yloader vxloader \
+ hwmixvolume hda-verb
+
+ all:
diff --git a/meta/recipes-multimedia/alsa/alsa-tools_1.0.26.1.bb b/meta/recipes-multimedia/alsa/alsa-tools_1.0.26.1.bb
index 2b46aaf..81ad55a 100644
--- a/meta/recipes-multimedia/alsa/alsa-tools_1.0.26.1.bb
+++ b/meta/recipes-multimedia/alsa/alsa-tools_1.0.26.1.bb
@@ -5,14 +5,15 @@ SECTION = "console/utils"
LICENSE = "GPLv2 & LGPLv2+"
DEPENDS = "alsa-lib ncurses"
-PR = "r0"
+PR = "r1"
LIC_FILES_CHKSUM = "file://hdsploader/COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \
file://ld10k1/COPYING.LIB;md5=7fbc338309ac38fefcd64b04bb903e34"
SRC_URI = "ftp://ftp.alsa-project.org/pub/tools/alsa-tools-${PV}.tar.bz2 \
file://mips_has_no_io_h.patch \
- file://autotools.patch"
+ file://autotools.patch \
+ ${@base_contains('DISTRO_FEATURES', 'x11', '', 'file://makefile_no_gtk.patch', d)}"
SRC_URI[md5sum] = "805526ea5d6c40e1f2c94cee86141230"
SRC_URI[sha256sum] = "553338693707fe6ddfc430b9edc4cd2677390e200c9e38de82ede3394e733841"
@@ -21,6 +22,9 @@ inherit autotools
EXTRA_OEMAKE += "GITCOMPILE_ARGS='--host=${HOST_SYS} --build=${BUILD_SYS} --target=${TARGET_SYS} --with-libtool-sysroot=${STAGING_DIR_HOST} --prefix=${prefix}' ACLOCAL_FLAGS='-I ${STAGING_DATADIR}/aclocal'"
+PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'x11', 'gtk+', '', d)}"
+PACKAGECONFIG[gtk+] = ",,gtk+,"
+
do_compile_prepend () {
#Automake dir is not correctly detected in cross compilation case
export AUTOMAKE_DIR=${STAGING_DATADIR_NATIVE}/$(ls ${STAGING_DATADIR_NATIVE} | grep automake)
--
1.7.9.5
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 2/2] gst-plugins-bad: disable librsvg when x11 is disabled
2013-04-03 0:34 [PATCH 1/2] alsa-tools: fix build when x11 and gtk+ not available Rogerio Nunes
@ 2013-04-03 0:34 ` Rogerio Nunes
2013-04-03 11:30 ` Burton, Ross
2013-04-08 13:33 ` [PATCH 1/2] alsa-tools: fix build when x11 and gtk+ not available Trevor Woerner
1 sibling, 1 reply; 7+ messages in thread
From: Rogerio Nunes @ 2013-04-03 0:34 UTC (permalink / raw)
To: openembedded-core
librsvg depends on gtk+, which in turn does not support framebuffer
as backend in current version (2.15.24). This patch disables librsvg
when x11 is not in the distro.
Signed-off-by: Rogerio Nunes <ronunes@gmail.com>
---
.../gstreamer/gst-plugins-bad_0.10.23.bb | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/meta/recipes-multimedia/gstreamer/gst-plugins-bad_0.10.23.bb b/meta/recipes-multimedia/gstreamer/gst-plugins-bad_0.10.23.bb
index 9039f97..eb289c7 100644
--- a/meta/recipes-multimedia/gstreamer/gst-plugins-bad_0.10.23.bb
+++ b/meta/recipes-multimedia/gstreamer/gst-plugins-bad_0.10.23.bb
@@ -6,9 +6,9 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3 \
file://COPYING.LIB;md5=55ca817ccb7d5b5b66355690e9abc605 \
file://gst/tta/crc32.h;beginline=12;endline=29;md5=71a904d99ce7ae0c1cf129891b98145c"
-DEPENDS += "gst-plugins-base tremor librsvg curl"
+DEPENDS += "gst-plugins-base tremor curl"
-PR = "r3"
+PR = "r4"
inherit gettext
@@ -16,6 +16,9 @@ EXTRA_OECONF += "--disable-examples --disable-experimental --disable-sdl --disab
--with-plugins=wavpack,ivorbis,mpegvideoparse --disable-vdpau --disable-apexsink \
--disable-orc"
+PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'x11', 'librsvg', '', d)}"
+PACKAGECONFIG[librsvg] = "--enable-librsvg,--disable-librsvg,librsvg,"
+
ARM_INSTRUCTION_SET = "arm"
do_configure_prepend() {
--
1.7.9.5
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH 2/2] gst-plugins-bad: disable librsvg when x11 is disabled
2013-04-03 0:34 ` [PATCH 2/2] gst-plugins-bad: disable librsvg when x11 is disabled Rogerio Nunes
@ 2013-04-03 11:30 ` Burton, Ross
2013-04-03 11:57 ` Otavio Salvador
0 siblings, 1 reply; 7+ messages in thread
From: Burton, Ross @ 2013-04-03 11:30 UTC (permalink / raw)
To: Rogerio Nunes; +Cc: openembedded-core
On 3 April 2013 01:34, Rogerio Nunes <ronunes@gmail.com> wrote:
> librsvg depends on gtk+, which in turn does not support framebuffer
> as backend in current version (2.15.24). This patch disables librsvg
> when x11 is not in the distro.
One of my plans is to make every optional dependency a packageconfig
option in the long term, so feel free to do the rest whilst you're
there! :)
Ross
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 2/2] gst-plugins-bad: disable librsvg when x11 is disabled
2013-04-03 11:30 ` Burton, Ross
@ 2013-04-03 11:57 ` Otavio Salvador
2013-04-03 13:49 ` Rogerio Nunes
0 siblings, 1 reply; 7+ messages in thread
From: Otavio Salvador @ 2013-04-03 11:57 UTC (permalink / raw)
To: Burton, Ross; +Cc: Patches and discussions about the oe-core layer
On Wed, Apr 3, 2013 at 8:30 AM, Burton, Ross <ross.burton@intel.com> wrote:
> On 3 April 2013 01:34, Rogerio Nunes <ronunes@gmail.com> wrote:
>> librsvg depends on gtk+, which in turn does not support framebuffer
>> as backend in current version (2.15.24). This patch disables librsvg
>> when x11 is not in the distro.
>
> One of my plans is to make every optional dependency a packageconfig
> option in the long term, so feel free to do the rest whilst you're
> there! :)
I agree with the longterm goal but let's not hold this until the goal
is accomplished. This fixes a real issue and delay it won't help.
--
Otavio Salvador O.S. Systems
E-mail: otavio@ossystems.com.br http://www.ossystems.com.br
Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 2/2] gst-plugins-bad: disable librsvg when x11 is disabled
2013-04-03 11:57 ` Otavio Salvador
@ 2013-04-03 13:49 ` Rogerio Nunes
0 siblings, 0 replies; 7+ messages in thread
From: Rogerio Nunes @ 2013-04-03 13:49 UTC (permalink / raw)
To: Otavio Salvador; +Cc: Patches and discussions about the oe-core layer
[-- Attachment #1: Type: text/plain, Size: 841 bytes --]
On Wed, Apr 3, 2013 at 7:57 AM, Otavio Salvador <otavio@ossystems.com.br>wrote:
> On Wed, Apr 3, 2013 at 8:30 AM, Burton, Ross <ross.burton@intel.com>
> wrote:
> > On 3 April 2013 01:34, Rogerio Nunes <ronunes@gmail.com> wrote:
> >> librsvg depends on gtk+, which in turn does not support framebuffer
> >> as backend in current version (2.15.24). This patch disables librsvg
> >> when x11 is not in the distro.
> >
> > One of my plans is to make every optional dependency a packageconfig
> > option in the long term, so feel free to do the rest whilst you're
> > there! :)
>
> I agree with the longterm goal but let's not hold this until the goal
> is accomplished. This fixes a real issue and delay it won't help.
I agree with both. This is a real issue and I like the long term plan.
Hope I can help to execute it :)
[-- Attachment #2: Type: text/html, Size: 1437 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 1/2] alsa-tools: fix build when x11 and gtk+ not available
2013-04-03 0:34 [PATCH 1/2] alsa-tools: fix build when x11 and gtk+ not available Rogerio Nunes
2013-04-03 0:34 ` [PATCH 2/2] gst-plugins-bad: disable librsvg when x11 is disabled Rogerio Nunes
@ 2013-04-08 13:33 ` Trevor Woerner
2013-04-08 18:20 ` Saul Wold
1 sibling, 1 reply; 7+ messages in thread
From: Trevor Woerner @ 2013-04-08 13:33 UTC (permalink / raw)
To: Rogerio Nunes, Saul Wold; +Cc: Patches and discussions about the oe-core layer
[-- Attachment #1: Type: text/plain, Size: 1692 bytes --]
With a rather recent HEAD
Build Configuration:
BB_VERSION = "1.17.1"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "openSUSE-project-12.3"
TARGET_SYS = "x86_64-poky-linux"
MACHINE = "qemux86-64"
DISTRO = "poky"
DISTRO_VERSION = "1.3+snapshot-20130407"
TUNE_FEATURES = "m64"
TARGET_FPU = ""
meta
meta-yocto
meta-yocto-bsp = "master:813127247a1100b1abe179dfba25795560eac864"
I am able to successfully perform a "bitbake world" on a number of
different targets:
- qemux86
- qemuarm
- qemumips
- qemux86-64
Unfortunately qemuppc fails when building alsa-tools. Is anyone else seeing
the same thing?
| make[1]: Entering directory
`/home/trevor/build/yocto/fullbuild/qemuppc/work/ppc603e-poky-linux/alsa-tools/1.0.26.1-r1/alsa-tools-1.0.26.1/hda-verb'
| make[1]: warning: jobserver unavailable: using -j1. Add `+' to parent
make rule.
| powerpc-poky-linux-gcc -m32 -mhard-float -mcpu=603e
--sysroot=/home/trevor/build/yocto/fullbuild/qemuppc/sysroots/qemuppc
-DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\"
-DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\"
-DPACKAGE=\"hda-verb\" -DVERSION=\"0.4\" -DSTDC_HEADERS=1 -I. -O2 -Wall
-pipe -g -MT hda-verb.o -MD -MP -MF .deps/hda-verb.Tpo -c -o hda-verb.o
hda-verb.c
| hda-verb.c:17:20: fatal error: sys/io.h: No such file or directory
| compilation terminated.
| make[1]: *** [hda-verb.o] Error 1
| make[1]: Leaving directory
`/home/trevor/build/yocto/fullbuild/qemuppc/work/ppc603e-poky-linux/alsa-tools/1.0.26.1-r1/alsa-tools-1.0.26.1/hda-verb'
| make: *** [all] Error 1
| ERROR: oe_runmake failed
[-- Attachment #2: Type: text/html, Size: 2048 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 1/2] alsa-tools: fix build when x11 and gtk+ not available
2013-04-08 13:33 ` [PATCH 1/2] alsa-tools: fix build when x11 and gtk+ not available Trevor Woerner
@ 2013-04-08 18:20 ` Saul Wold
0 siblings, 0 replies; 7+ messages in thread
From: Saul Wold @ 2013-04-08 18:20 UTC (permalink / raw)
To: Trevor Woerner; +Cc: Patches and discussions about the oe-core layer
On 04/08/2013 06:33 AM, Trevor Woerner wrote:
> With a rather recent HEAD
>
> Build Configuration:
> BB_VERSION = "1.17.1"
> BUILD_SYS = "x86_64-linux"
> NATIVELSBSTRING = "openSUSE-project-12.3"
> TARGET_SYS = "x86_64-poky-linux"
> MACHINE = "qemux86-64"
> DISTRO = "poky"
> DISTRO_VERSION = "1.3+snapshot-20130407"
> TUNE_FEATURES = "m64"
> TARGET_FPU = ""
> meta
> meta-yocto
> meta-yocto-bsp = "master:813127247a1100b1abe179dfba25795560eac864"
>
> I am able to successfully perform a "bitbake world" on a number of
> different targets:
>
> - qemux86
> - qemuarm
> - qemumips
> - qemux86-64
>
> Unfortunately qemuppcfails when building alsa-tools. Is anyone else
> seeing the same thing?
>
> | make[1]: Entering directory
> `/home/trevor/build/yocto/fullbuild/qemuppc/work/ppc603e-poky-linux/alsa-tools/1.0.26.1-r1/alsa-tools-1.0.26.1/hda-verb'
> | make[1]: warning: jobserver unavailable: using -j1. Add `+' to parent
> make rule.
> | powerpc-poky-linux-gcc -m32 -mhard-float -mcpu=603e
> --sysroot=/home/trevor/build/yocto/fullbuild/qemuppc/sysroots/qemuppc
> -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\"
> -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\"
> -DPACKAGE=\"hda-verb\" -DVERSION=\"0.4\" -DSTDC_HEADERS=1 -I. -O2
> -Wall -pipe -g -MT hda-verb.o -MD -MP -MF .deps/hda-verb.Tpo -c -o
> hda-verb.o hda-verb.c
> | hda-verb.c:17:20: fatal error: sys/io.h: No such file or directory
> | compilation terminated.
> | make[1]: *** [hda-verb.o] Error 1
> | make[1]: Leaving directory
> `/home/trevor/build/yocto/fullbuild/qemuppc/work/ppc603e-poky-linux/alsa-tools/1.0.26.1-r1/alsa-tools-1.0.26.1/hda-verb'
> | make: *** [all] Error 1
> | ERROR: oe_runmake failed
I recall doing a patch for this, I just reviewed it and it seems I did
not do the right #if directive.
I was fixing the mips build which had the same problem and did not
correctly retest.
Patch out shortly.
Sau!
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2013-04-08 18:38 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-03 0:34 [PATCH 1/2] alsa-tools: fix build when x11 and gtk+ not available Rogerio Nunes
2013-04-03 0:34 ` [PATCH 2/2] gst-plugins-bad: disable librsvg when x11 is disabled Rogerio Nunes
2013-04-03 11:30 ` Burton, Ross
2013-04-03 11:57 ` Otavio Salvador
2013-04-03 13:49 ` Rogerio Nunes
2013-04-08 13:33 ` [PATCH 1/2] alsa-tools: fix build when x11 and gtk+ not available Trevor Woerner
2013-04-08 18:20 ` Saul Wold
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox