Skip to contentSkip to conversation

elementary: use B = "$S"

PATCH New Martin Jansa 1 participant 6 messages May 11, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/6 elementary: use B = "$S"

---
 meta-efl/recipes-efl/efl/elementary_1.9.3.bb | 4 ++++
 1 file changed, 4 insertions(+)
meta-efl/recipes-efl/efl/elementary_1.9.3.bb +4 -0
index 32ae663..4f24baf 100644
@@ -10,3 +10,7 @@ SRC_URI_append_class-target = " file://0001-Makefile-Use-elementary_codegen-defi
 
 SRC_URI[md5sum] = "cc75bb1c7c4c49de120ec33e413130ce"
 SRC_URI[sha256sum] = "49f896066b72ba51eefd8e92f0b7e7b8e190b0dd26323b12cbd4f26216f578fb"
+
+# autotools-brokensep - configure updates Elementary.h correctly in ${B}, but then build is using Elementary.h from ${S}
+# which includes #define ELM_EMAP (instead of #undef ELM_EMAP) and building fails
+B = "${S}"
Signature · 1 line
1.9.2
#1 lore raw

PATCH 2/6 libao: add PACKAGECONFIG for alsa and pulseaudio

* fixes following issues from test-dependencies report:
Found errors:
libao/libao-plugin-libalsa/latest doesn't exist libao/libao-plugin-libalsa-dbg/latest doesn't exist libao/libao-plugin-libpulse/latest doesn't exist libao/libao-plugin-libpulse-dbg/latest doesn't exist

---
 meta-multimedia/recipes-multimedia/libao/libao_1.1.0.bb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
meta-multimedia/recipes-multimedia/libao/libao_1.1.0.bb +3 -1
index d2da08e..1a22604 100644
@@ -26,5 +26,7 @@ python populate_packages_prepend () {
     do_split_packages(d, rootdir_dbg, '^(.*)\.so$', output_pattern='${BPN}-plugin-%s-dbg', description='AO %s plugin debug data')
 }
 
-PACKAGECONFIG ?= ""
+PACKAGECONFIG ?= "${@base_contains('DISTRO_FEATURES', 'pulseaudio', 'pulseaudio', '', d) ${@base_contains('DISTRO_FEATURES', 'alsa', 'alsa', '', d)"
 PACKAGECONFIG[esound] = "--enable-esd,--disable-esd,esound"
+PACKAGECONFIG[alsa] = "--enable-alsa,--disable-alsa,alsa-lib"
+PACKAGECONFIG[pulseaudio] = "--enable-pulse,--disable-pulse,pulseaudio"
Signature · 1 line
1.9.2
#2 lore raw

PATCH 3/6 navit: add PACKAGECONFIG for imlib2, qt, gtk, sdl

In reply to Martin Jansa

* fixes following issues from test-dependencies report:
navit/navit/latest lost dependency on fribidi navit/navit-graphics-gtk/latest lost dependency on imlib2 navit/navit-graphics-sdl/latest lost dependency on eglibc freetype

---
 meta-oe/recipes-navigation/navit/navit.inc               | 11 ++++++++---
 .../navit/navit/configure.add.imlib2.option.patch        | 16 ++++++++++++++++
 meta-oe/recipes-navigation/navit/navit_svn.bb            |  1 +
 3 files changed, 25 insertions(+), 3 deletions(-)
 create mode 100644 meta-oe/recipes-navigation/navit/navit/configure.add.imlib2.option.patch
meta-oe/recipes-navigation/navit/navit.inc +8 -3
index 8b63bba..eb8f43a 100644
@@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=ed539d099d6ce08de6ea0dfed9ecb333 \
 "
 
 SECTION = "x11/applications"
-DEPENDS = "glib-2.0 gtk+ qt4-x11-free gd gypsy librsvg-native"
+DEPENDS = "glib-2.0 gd gypsy librsvg-native"
 RDEPENDS_${PN} = " ${PN}-icons ${PN}-config "
 RDEPENDS_${PN}-gui-qml = "qt4-plugin-imageformat-svg"
 RRECOMMENDS_${PN} = "gpsd ${PN}-dbus ${PN}-speech-cmdline ${PN}-gui-internal ${PN}-graphics-gtk"
@@ -17,12 +17,17 @@ INC_PR = "r11"
 
 inherit autotools gettext
 
+PACKAGECONFIG ?= "qt"
+PACKAGECONFIG[fribidi] = "--enable-fribidi,--disable-fribidi,fribidi"
+PACKAGECONFIG[imlib2] = "--enable-imlib2,--disable-imlib2,imlib2"
+PACKAGECONFIG[sdl] = "--enable-graphics-sdl,--disable-graphics-sdl,libsdl"
+PACKAGECONFIG[gtk] = "--enable-graphics-gtk-drawing-area --enable-gui-gtk,--disable-graphics-gtk-drawing-area --disable-gui-gtk,gtk+"
+PACKAGECONFIG[qt] = "--enable-graphics-qt-qpainter --enable-gui-qml,--disable-graphics-qt-qpainter --disable-gui-qml,qt4-x11-free"
+
 EXTRA_OECONF += " \
     --disable-binding-python \
     --disable-samplemap \
     --enable-avoid-unaligned \
-    --enable-graphics-qt-qpainter \
-    --enable-gui-qml \
     --enable-svg2png-scaling-flag=32 \
     --disable-speech-speech-dispatcher \
     --enable-cache-size=20971520 \
meta-oe/recipes-navigation/navit/navit/configure.add.imlib2.option.patch new file +16 -0
new file mode 100644
index 0000000..be41792
@@ -0,0 +1,16 @@
+--- a/configure.in.orig	2014-05-10 15:57:18.146362110 +0200
++++ b/configure.in	2014-05-10 15:59:27.859358845 +0200
+@@ -498,10 +498,13 @@
+ AC_SUBST(FRIBIDI_CFLAGS)
+ AC_SUBST(FRIBIDI_LIBS)
+ 
++AC_ARG_ENABLE(imlib2, [  --disable-imlib2  disable imlib2 support], imlib2=$enableval;imlib2_reason="configure parameter", imlib2=yes)
++if test x"${imlib2}" = "xyes"; then
+ PKG_CHECK_MODULES(IMLIB2, [imlib2], [imlib2_pkgconfig=yes], [imlib2_pkgconfig=no])
+ if test "x$imlib2_pkgconfig" = "xyes"; then
+    AC_DEFINE(HAVE_IMLIB2, 1, [Define to 1 if you have imlib2])
+ fi
++fi
+ AC_SUBST(IMLIB2_CFLAGS)
+ AC_SUBST(IMLIB2_LIBS)
+ 
meta-oe/recipes-navigation/navit/navit_svn.bb +1 -0
index 2661507..eff1eb3 100644
@@ -7,4 +7,5 @@ PR = "${INC_PR}.3"
 S = "${WORKDIR}/${PN}"
 SRC_URI += "svn://[email protected]/svnroot/navit/trunk;module=navit;protocol=http \
     file://freetype-include-path.patch \
+    file://configure.add.imlib2.option.patch \
 "
Signature · 1 line
1.9.2
#3 lore raw

PATCH 4/6 sox: add PACKAGECONFIG for ao

In reply to Martin Jansa

* fixes following issue from test-dependencies report:
sox/sox/latest lost dependency on libao

---
 meta-multimedia/recipes-multimedia/sox/sox_14.4.0.bb | 1 +
 1 file changed, 1 insertion(+)
meta-multimedia/recipes-multimedia/sox/sox_14.4.0.bb +1 -0
index cfc61d4..18d77bb 100644
@@ -19,6 +19,7 @@ PACKAGECONFIG[magic] = "--with-magic,--without-magic,file,"
 PACKAGECONFIG[mad] = "--with-mad,--without-mad,libmad,"
 PACKAGECONFIG[id3tag] = "--with-id3tag,--without-id3tag,libid3tag,"
 PACKAGECONFIG[lame] = "--with-lame,--without-lame,lame,"
+PACKAGECONFIG[ao] = "--with-ao,--without-ao,libao,"
 
 LICENSE = "GPLv2 & LGPLv2.1"
 LIC_FILES_CHKSUM = "file://LICENSE.GPL;md5=751419260aa954499f7abaabaa882bbe \
Signature · 1 line
1.9.2
#4 lore raw

PATCH 5/6 tk: Fix build with xft

In reply to Martin Jansa

* xft requires fontconfig, but pkg-config --libs xft doesn't return it add it manually

---
 .../tcltk/tk-8.6.0/configure.use.fontconfig.with.xft.patch  | 13 +++++++++++++
 meta-oe/recipes-devtools/tcltk/tk_8.6.0.bb                  |  3 +--
 2 files changed, 14 insertions(+), 2 deletions(-)
 create mode 100644 meta-oe/recipes-devtools/tcltk/tk-8.6.0/configure.use.fontconfig.with.xft.patch
meta-oe/recipes-devtools/tcltk/tk-8.6.0/configure.use.fontconfig.with.xft.patch new file +13 -0
new file mode 100644
index 0000000..a0c157f
@@ -0,0 +1,13 @@
+--- a/configure.in.orig	2014-05-10 14:35:39.859147385 +0000
++++ b/configure.in	2014-05-10 14:36:20.282925184 +0000
+@@ -554,8 +554,8 @@
+ 	dnl make sure package configurator (xft-config or pkg-config
+ 	dnl says that xft is present.
+ 	    found_xft=yes
+-	    XFT_CFLAGS=`pkg-config --cflags xft 2>/dev/null` || found_xft="no"
+-	    XFT_LIBS=`pkg-config --libs xft 2>/dev/null` || found_xft="no"
++	    XFT_CFLAGS=`pkg-config --cflags xft fontconfig 2>/dev/null` || found_xft="no"
++	    XFT_LIBS=`pkg-config --libs xft fontconfig 2>/dev/null` || found_xft="no"
+ 	AC_MSG_RESULT([$found_xft])
+ 	dnl make sure that compiling against Xft header file doesn't bomb
+ 	if test "$found_xft" = "yes" ; then
meta-oe/recipes-devtools/tcltk/tk_8.6.0.bb +1 -2
index a5e76e9..1177d03 100644
@@ -15,8 +15,6 @@ LIC_FILES_CHKSUM = "file://../license.terms;md5=c88f99decec11afa967ad33d314f87fe
     file://../xlib/license.terms;md5=c88f99decec11afa967ad33d314f87fe \
 "
 
-PNBLACKLIST[tk] = "tk8.6.0/unix/libtk8.6.so: error: undefined reference to 'FcCharSetHasChar'"
-
 DEPENDS = "tcl virtual/libx11 libxt"
 
 SRC_URI = "\
@@ -26,6 +24,7 @@ SRC_URI = "\
     file://tklibrary.diff;striplevel=2 \
     file://tkprivate.diff;striplevel=2 \
     file://fix-xft.diff \
+    file://configure.use.fontconfig.with.xft.patch \
 "
 SRC_URI[md5sum] = "b883a1a3c489c17413fb602a94bf54e8"
 SRC_URI[sha256sum] = "5c708b2b6f658916df59190b27750fa1ea2bc10992108e10f961c0700f058de6"
Signature · 1 line
1.9.2
#5 lore raw

PATCH 6/6 xterm: add PACKAGECONFIG for xft

In reply to Martin Jansa

* fixes following issue in test-dependencies report:
xterm/xterm/latest lost dependency on fontconfig libxft

---
 meta-oe/recipes-graphics/xorg-app/xterm_303.bb | 3 +++
 1 file changed, 3 insertions(+)
meta-oe/recipes-graphics/xorg-app/xterm_303.bb +3 -0
index 47dfbe5..52e77b7 100644
@@ -24,3 +24,6 @@ do_configure() {
 }
 
 FILES_${PN} += " /usr/lib/X11"
+
+PACKAGECONFIG ?= ""
+PACKAGECONFIG[xft] = "--enable-freetype,--disable-freetype,libxft fontconfig"
Signature · 1 line
1.9.2