Skip to contentSkip to conversation

lirc: Make X support to be a packageconfig

PATCH In review Martin Jansa 2 participants 4 messages Oct 14, 2015 – Oct 15, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 lirc: Make X support to be a packageconfig

From: Khem Raj <[email protected]>

When we dont have x11 in distro features it fails to build since libx11 dependency is not satisfied

Change-Id I6774a83f965551a41afe12b1304e44e73fc789c0
---
 meta-oe/recipes-connectivity/lirc/lirc.inc      | 2 +-
 meta-oe/recipes-connectivity/lirc/lirc_0.9.2.bb | 6 ++++--
 2 files changed, 5 insertions(+), 3 deletions(-)
meta-oe/recipes-connectivity/lirc/lirc.inc +1 -1
index 77b6c28..429bc45 100644
@@ -6,7 +6,7 @@ DESCRIPTION_append_lirc-nslu2example = " This package contains a working config
 HOMEPAGE = "http://www.lirc.org"
 SECTION = "console/network"
 LICENSE = "GPLv2"
-DEPENDS = "alsa-lib libftdi libusb1 libusb-compat jack portaudio-v19 libx11"
+DEPENDS = "alsa-lib libftdi libusb1 libusb-compat jack portaudio-v19"
 PRIORITY = "optional"
 
 SRC_URI = "http://prdownloads.sourceforge.net/lirc/lirc-${PV}.tar.bz2"
meta-oe/recipes-connectivity/lirc/lirc_0.9.2.bb +4 -2
index c3e61c4..7d93757 100644
@@ -19,9 +19,11 @@ SYSTEMD_AUTO_ENABLE_lirc = "enable"
 
 inherit autotools pkgconfig systemd pythonnative
 
-PACKAGECONFIG[systemd] = "--with-systemdsystemunitdir=${systemd_unitdir}/system/,--without-systemdsystemunitdir"
+PACKAGECONFIG[systemd] = "--with-systemdsystemunitdir=${systemd_unitdir}/system/,--without-systemdsystemunitdir,systemd"
+PACKAGECONFIG[x11] = "--with-x,--with-x=no,libx11,"
 
-PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)}"
+PACKAGECONFIG_append = "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', ' systemd', '', d)}"
+PACKAGECONFIG_append = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', ' x11', '', d)}"
 
 #EXTRA_OEMAKE = 'SUBDIRS="lib daemons tools"'
 do_install_append() {
Signature · 1 line
2.6.1
#1 lore raw

PATCH 2/3 lirc: use weak assignment in PACKAGECONFIG like other recipes

* using append makes it harder to disable PACKAGECONFIGs set from DISTRO_FEATURES

---
 meta-oe/recipes-connectivity/lirc/lirc_0.9.2.bb | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
meta-oe/recipes-connectivity/lirc/lirc_0.9.2.bb +4 -2
index 7d93757..900b68d 100644
@@ -22,8 +22,10 @@ inherit autotools pkgconfig systemd pythonnative
 PACKAGECONFIG[systemd] = "--with-systemdsystemunitdir=${systemd_unitdir}/system/,--without-systemdsystemunitdir,systemd"
 PACKAGECONFIG[x11] = "--with-x,--with-x=no,libx11,"
 
-PACKAGECONFIG_append = "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', ' systemd', '', d)}"
-PACKAGECONFIG_append = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', ' x11', '', d)}"
+PACKAGECONFIG ?= " \
+    ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', ' systemd', '', d)} \
+    ${@bb.utils.contains('DISTRO_FEATURES', 'x11', ' x11', '', d)} \
+"
 
 #EXTRA_OEMAKE = 'SUBDIRS="lib daemons tools"'
 do_install_append() {
Signature · 1 line
2.6.1
#2 lore raw

PATCH 3/3 ruby: explicitly disable dtrace support

In reply to Martin Jansa

both 2.2.1 and 2.2.2 are failing on some hosts native builds with:

| linking miniruby
| load.o: In function `rb_f_load':
| load.c:(.text+0x3af): undefined reference to `RUBY_DTRACE_LOAD_ENTRY_ENABLED'
| load.c:(.text+0x428): undefined reference to `RUBY_DTRACE_LOAD_RETURN_ENABLED'
| load.c:(.text+0x452): undefined reference to `RUBY_DTRACE_LOAD_RETURN'
| load.c:(.text+0x492): undefined reference to `RUBY_DTRACE_LOAD_ENTRY'
| load.o: In function `rb_require_internal':
---
 meta-ruby/recipes-devtools/ruby/ruby_2.2.1.bb | 1 +
 1 file changed, 1 insertion(+)
meta-ruby/recipes-devtools/ruby/ruby_2.2.1.bb +1 -0
index 29f2291..080d455 100644
@@ -16,6 +16,7 @@ EXTRA_OECONF = "\
     --enable-wide-getaddrinfo \
     --disable-versioned-paths \
     --disable-rpath \
+    --disable-dtrace \
     --enable-shared \
     --enable-load-relative \
 "
Signature · 1 line
2.6.1
Acked-by on v1 3/3
#3 lore raw

Re: [PATCH][meta-oe][fido 3/3] ruby: explicitly disable dtrace support

Quoted 13 lines · Martin Jansa

both 2.2.1 and 2.2.2 are failing on some hosts native builds with:

| linking miniruby
| load.o: In function `rb_f_load':
| load.c:(.text+0x3af): undefined reference to `RUBY_DTRACE_LOAD_ENTRY_ENABLED'
| load.c:(.text+0x428): undefined reference to `RUBY_DTRACE_LOAD_RETURN_ENABLED'
| load.c:(.text+0x452): undefined reference to `RUBY_DTRACE_LOAD_RETURN'
| load.c:(.text+0x492): undefined reference to `RUBY_DTRACE_LOAD_ENTRY'
| load.o: In function `rb_require_internal':
Quoted 1 line

Thought this was fixed already. Oh well.

Traveling today. Will merge soon

Quoted 24 lines

---
meta-ruby/recipes-devtools/ruby/ruby_2.2.1.bb | 1 +

1 file changed, 1 insertion(+)
meta-ruby/recipes-devtools/ruby/ruby_2.2.1.bb +1 -0
index 29f2291..080d455 100644
@@ -16,6 +16,7 @@ EXTRA_OECONF = "\
    --enable-wide-getaddrinfo \
    --disable-versioned-paths \
    --disable-rpath \
+    --disable-dtrace \
    --enable-shared \
    --enable-load-relative \

"

Signature · 7 lines
2.6.1

-- 
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel