Skip to contentSkip to conversation

bluez4: Add version to 4.98

PATCH New [email protected] 1 participant 3 messages Feb 9, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 bluez4: Add version to 4.98

From: Ulf Samuelsson <[email protected]>

---
 recipes/bluez/bluez4_4.98.bb |   30 ++++++++++++++++++++++++++++++
 1 files changed, 30 insertions(+), 0 deletions(-)
 create mode 100644 recipes/bluez/bluez4_4.98.bb
recipes/bluez/bluez4_4.98.bb new file +30 -0
new file mode 100644
index 0000000..e1f371e
@@ -0,0 +1,30 @@
+require bluez4.inc
+
+SRC_URI = "\
+  ${KERNELORG_MIRROR}/pub/linux/bluetooth/bluez-${PV}.tar.gz \
+  file://bluetooth.conf \
+"
+SRC_URI[md5sum] = "362864b716950baa04797de735fc237b"
+SRC_URI[sha256sum] = "9a5b655bada7c7a1921cb3bac83b8a32bbe49893e4c7a1377cdc1b0d35f7d233"
+
+DEFAULT_PREFERENCE = "-1"
+DEFAULT_PREFERENCE_angstrom = "1"
+
+DEPENDS += "libsndfile1"
+
+PR = "${INC_PR}.0"
+
+# Not all distros have a recent enough udev
+BTUDEV = " --disable-udevrules"
+BTUDEV_angstrom = " --enable-udevrules"
+BTUDEV_shr = " --enable-udevrules"
+
+EXTRA_OECONF += "${BTUDEV}"
+do_configure_append(){
+	echo "#define LIBUDEV_I_KNOW_THE_API_IS_SUBJECT_TO_CHANGE" >> ${S}/config.h
+}
+
+FILES_${PN}-dbg += "\
+  ${base_libdir}/udev/.debug \
+  ${libdir}/*/.debug \
+"
Signature · 1 line
1.7.4.1
#1 lore raw

PATCH 2/3 perl_5.10.1.bb: Add search for libraries

From: Ulf Samuelsson <[email protected]>

Ubuntu 11.04 i686 has moved around the libraries.
perl-native will not build due to this.

Backported from 5.14.2

---
 .../perl/files/0001-Find-pthread-libraries.patch   |   31 ++++++++++++++++++++
 recipes/perl/perl-native_5.10.1.bb                 |    3 +-
 recipes/perl/perl_5.10.1.bb                        |    4 ++-
 3 files changed, 36 insertions(+), 2 deletions(-)
 create mode 100644 recipes/perl/files/0001-Find-pthread-libraries.patch
recipes/perl/files/0001-Find-pthread-libraries.patch new file +31 -0
new file mode 100644
index 0000000..f651dbd
@@ -0,0 +1,31 @@
+From 69f418972f17b7f03cdc335ad14af486d06d94b2 Mon Sep 17 00:00:00 2001
+From: Ulf Samuelsson <[email protected]>
+Date: Tue, 31 Jan 2012 09:59:31 +0100
+Subject: [PATCH] Find pthread libraries
+
+Signed-off-by: Ulf Samuelsson <[email protected]>
+---
+ hints/linux.sh |   10 ++++++++++
+ 1 files changed, 10 insertions(+), 0 deletions(-)
+
+diff --git a/hints/linux.sh b/hints/linux.sh
+index d208129..04a99da 100644
+--- a/hints/linux.sh
++++ b/hints/linux.sh
+@@ -441,3 +441,13 @@ case "$libdb_needs_pthread" in
+     libswanted="$libswanted pthread"
+     ;;
+ esac
++
++# plibpth to bypass this check.
++case "$plibpth" in
++  '')	plibpth=`gcc -print-search-dirs | grep libraries | cut -f2- -d= | tr ':' $trnl | grep -v 'gcc' | sed -e 's:/$::'`
++	set X $plibpth # Collapse all entries on one line
++	shift
++	plibpth="$*"
++	;;
++esac
++
+-- 
+1.7.4.1
+
recipes/perl/perl-native_5.10.1.bb +2 -1
index 80d6937..f37c6cb 100644
@@ -2,7 +2,7 @@ DESCRIPTION = "Perl is a popular scripting language."
 HOMEPAGE = "http://www.perl.org/"
 SECTION = "libs"
 LICENSE = "Artistic|GPLv1+"
-PR = "r12"
+PR = "r13"
 NATIVE_INSTALL_WORKS = "1"
 INHIBIT_DEFAULT_DEPS = "1"
 PATCHTOOL = "patch"
@@ -21,6 +21,7 @@ SRC_URI = "http://ftp.funet.fi/pub/CPAN/src/perl-${PV}.tar.gz;name=perl-${PV} \
            file://native-perlinc.patch \
 	   file://perl-fix-cross-library-check.patch \
            file://ubuntu-11.04-multiarch.patch \
+	   file://0001-Find-pthread-libraries.patch \
 	   "
 
 SRC_URI[perl-5.10.1.md5sum] = "b9b2fdb957f50ada62d73f43ee75d044"
recipes/perl/perl_5.10.1.bb +3 -1
index 6c0dcb1..68eaaf1 100644
@@ -75,7 +75,9 @@ SRC_URI = "ftp://ftp.funet.fi/pub/CPAN/src/perl-${PV}.tar.gz;name=perl-${PV} \
         file://config.sh-32-be \
         file://config.sh-64 \
         file://config.sh-64-le \
-        file://config.sh-64-be"
+        file://config.sh-64-be \
+	file://0001-Find-pthread-libraries.patch \
+	"
 
 SRC_URI[perl-5.10.1.md5sum] = "b9b2fdb957f50ada62d73f43ee75d044"
 SRC_URI[perl-5.10.1.sha256sum] = "cb7f26ea4b2b28d6644354d87a269d01cac1b635287dae64e88eeafa24b44f35"
Signature · 1 line
1.7.4.1
#2 lore raw

PATCH 3/3 intltool(-native) Fix dependencies.

In reply to [email protected]

From: Ulf Samuelsson <[email protected]>

intltool used to depend on libxml-parser-perl-native, which did not exist.

The patch creates a new native recipe for libxml-parser-perl, and let intltool-native depend on this.
intltool dependency is removed.

---
 recipes/intltool/intltool-native_0.40.3.bb     |    2 +
 recipes/intltool/intltool_0.40.3.bb            |    2 -
 recipes/perl/libxml-parser-perl-native_2.36.bb |   32 ++++++++++++++++++++++++
 3 files changed, 34 insertions(+), 2 deletions(-)
 create mode 100644 recipes/perl/libxml-parser-perl-native_2.36.bb
recipes/intltool/intltool-native_0.40.3.bb +2 -0
index 750914c..99d9b6a 100644
@@ -1,5 +1,7 @@
 require intltool_${PV}.bb
 
+DEPENDS += " libxml-parser-perl-native"
+
 inherit native
 
 EXTRA_OEMAKE = "'PERL_TARGET=/usr/bin/env perl'"
recipes/intltool/intltool_0.40.3.bb +0 -2
index bb2b75d..d81ce1a 100644
@@ -2,8 +2,6 @@ require intltool.inc
 
 PR = "${INC_PR}.0"
 
-DEPENDS += " libxml-parser-perl-native"
-
 EXTRA_OEMAKE = "'PERL_TARGET=/usr/bin/perl'"
 
 do_configure_prepend() {
recipes/perl/libxml-parser-perl-native_2.36.bb new file +32 -0
new file mode 100644
index 0000000..e46cc59
@@ -0,0 +1,32 @@
+DESCRIPTION = "XML::Parser - A perl module for parsing XML documents"
+SECTION = "libs"
+LICENSE = "Artistic|GPLv1+"
+DEPENDS += "expat expat-native"
+PR= "r4"
+
+SRC_URI = "http://www.cpan.org/modules/by-module/XML/XML-Parser-${PV}.tar.gz"
+
+S = "${WORKDIR}/XML-Parser-${PV}"
+
+EXTRA_CPANFLAGS = "EXPATLIBPATH=${STAGING_LIBDIR} EXPATINCPATH=${STAGING_INCDIR}"
+
+inherit cpan
+inherit native
+
+do_compile() {
+	export LIBC="$(find ${STAGING_DIR_TARGET}/lib -name 'libc-*.so')"
+	cpan_do_compile
+}
+# 	cpan_do_compile	|| echo expected failure
+
+do_compile_virtclass-native (){
+	cpan_do_compile
+}
+
+FILES_${PN} = "${PERLLIBDIRS}/auto/XML/Parser/Expat/* \
+                ${PERLLIBDIRS}/XML"
+
+BBCLASSEXTEND="native"
+
+SRC_URI[md5sum] = "1b868962b658bd87e1563ecd56498ded"
+SRC_URI[sha256sum] = "9fd529867402456bd826fe0e5588d35b3a2e27e586a2fd838d1352b71c2ed73f"
Signature · 1 line
1.7.4.1