Skip to contentSkip to conversation

Add libupnp1.8 recipe

PATCH Superseded Fabien Lahoudere 2 participants 5 messages Sep 13, 2017

v3 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

v3 cover Add libupnp1.8 recipe

In order to build gerbera, we need to support libupnp >= 1.8. However mpd won't build with this version probably due to API break.

So we add a new recipe libupnp1.8 to be able to use both version. Both version can be run in parallel.

?:~/src/oe-core/build$ dpkg-deb -c tmp-glibc/deploy/deb/cortexa9hf-neon/libupnp_1.6.21-r0_armhf.deb 
drwxrwxrwx root/root         0 2017-09-13 17:26 ./
drwxr-xr-x root/root         0 2017-09-13 17:26 ./usr/
drwxr-xr-x root/root         0 2017-09-13 17:26 ./usr/lib/
-rwxr-xr-x root/root     31600 2017-09-13 17:26 ./usr/lib/libixml.so.2.0.8
-rwxr-xr-x root/root     17912 2017-09-13 17:26 ./usr/lib/libthreadutil.so.6.0.4
-rwxr-xr-x root/root    117676 2017-09-13 17:26 ./usr/lib/libupnp.so.6.3.4
lrwxrwxrwx root/root         0 2017-09-13 17:26 ./usr/lib/libixml.so.2 -> libixml.so.2.0.8
lrwxrwxrwx root/root         0 2017-09-13 17:26 ./usr/lib/libthreadutil.so.6 -> libthreadutil.so.6.0.4
lrwxrwxrwx root/root         0 2017-09-13 17:26 ./usr/lib/libupnp.so.6 -> libupnp.so.6.3.4
?:~/src/oe-core/build$ dpkg-deb -c tmp-glibc/deploy/deb/cortexa9hf-neon/libupnp1.8_1.8.2-r0_armhf.deb 
drwxrwxrwx root/root         0 2017-09-13 17:43 ./
drwxr-xr-x root/root         0 2017-09-13 17:43 ./usr/
drwxr-xr-x root/root         0 2017-09-13 17:43 ./usr/lib/
-rwxr-xr-x root/root     35696 2017-09-13 17:43 ./usr/lib/libixml.so.10.0.1
-rwxr-xr-x root/root    155128 2017-09-13 17:43 ./usr/lib/libupnp.so.10.1.1
lrwxrwxrwx root/root         0 2017-09-13 17:43 ./usr/lib/libixml.so.10 -> libixml.so.10.0.1
lrwxrwxrwx root/root         0 2017-09-13 17:43 ./usr/lib/libupnp.so.10 -> libupnp.so.10.1.1

mpd and gerbera have been built successfully with this fix.

The patch also clean a bit gerbera recipe and fix dependency issue.

Fabien Lahoudere (2):
libupnp: Add recipe for version 1.8.2
gerbera: clean recipe

 .../recipes-connectivity/libupnp/libupnp1.8.bb     | 22 ++++++++++++++++++++++
 .../recipes-multimedia/gerbera/gerbera_git.bb      | 12 ++++++------
 2 files changed, 28 insertions(+), 6 deletions(-)
 create mode 100644 meta-multimedia/recipes-connectivity/libupnp/libupnp1.8.bb
Signature · 1 line
2.11.0
#1 lore raw

PATCH v3 1/2 libupnp: Add recipe for version 1.8.2

This version is needed for gerbera, however this version break mpd. So we keep both recipe.

---
 .../recipes-connectivity/libupnp/libupnp1.8.bb     | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
 create mode 100644 meta-multimedia/recipes-connectivity/libupnp/libupnp1.8.bb
meta-multimedia/recipes-connectivity/libupnp/libupnp1.8.bb new file +22 -0
new file mode 100644
index 000000000..5b0e72d42
@@ -0,0 +1,22 @@
+SUMMARY = "Portable SDK for UPnP* Devices"
+DESCRIPTION = "The Portable SDK for UPnP Devices is an SDK for development of \
+UPnP device and control point applications. It consists of the core UPnP \
+protocols along with a UPnP-specific eXtensible Markup Language (XML) parser \
+supporting the Document Object Model (DOM) Level 2 API and an optional, \
+integrated mini web server for serving UPnP related documents."
+HOMEPAGE = "http://pupnp.sourceforge.net/"
+LICENSE = "BSD"
+
+LIC_FILES_CHKSUM = "file://LICENSE;md5=b3190d5244e08e78e4c8ee78544f4863"
+
+SRC_URI = "https://github.com/mrjimenez/pupnp/archive/release-1.8.2.tar.gz "
+
+SRC_URI[md5sum] = "db8061f7cbd7f9af993ac4e87ad084cb"
+SRC_URI[sha256sum] = "438ad86bfd933cb1e9be1c41bf3bd69f049daba11d71bbb5d715336e00106cb4"
+
+PV="1.8.2"
+S="${WORKDIR}/pupnp-release-${PV}"
+
+inherit autotools
+
+EXTRA_OECONF += "--enable-reuseaddr"
\ No newline at end of file
Signature · 1 line
2.11.0
#3 lore raw

PATCH v3 2/2 gerbera: clean recipe

In reply to Fabien Lahoudere

Clean the recipe and change the name of libupnp to libupnp1.8.

---
 meta-multimedia/recipes-multimedia/gerbera/gerbera_git.bb | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
meta-multimedia/recipes-multimedia/gerbera/gerbera_git.bb +6 -6
index 2bbedc0d1..151127768 100644
@@ -6,22 +6,22 @@ LIC_FILES_CHKSUM = "file://LICENSE.md;md5=25cdec9afe3f1f26212ead6bd2f7fac8"
 SRC_URI = "git://github.com/v00d00/gerbera.git;protocol=https \
 	   file://gerbera.service "
 
-
-# Modify these as desired
 PV = "1.0+git${SRCPV}"
 SRCREV = "4435b165d121195aefd67d0287f7f9349e181d45"
 
 S = "${WORKDIR}/git"
 
-DEPENDS = "expat zlib curl libupnp e2fsprogs sqlite3 taglib "
-RDEPENDS_${PN} = "expat zlib curl libupnp e2fsprogs taglib "
+DEPENDS = "expat zlib curl libupnp1.8 e2fsprogs sqlite3 "
+RDEPENDS_${PN} = "expat zlib curl libupnp e2fsprogs "
 
 SYSTEMD_SERVICE_${PN} = "gerbera.service"
-SYSTEMD_AUTO_ENABLE = "enable"
 
 inherit cmake systemd
 
-EXTRA_OECMAKE = "-DWITH_JS=FALSE -DWITH_TAGLIB=FALSE -DWITH_MAGIC=FALSE -DWITH_EXIF=FALSE -DLIBUUID_INCLUDE_DIRS=${WORKDIR}/recipe-sysroot/usr/include -DLIBUUID_LIBRARIES=-luuid"
+PACKAGECONFIG = ""
+PACKAGECONFIG[taglib] = "-DWITH_TAGLIB=TRUE,-DWITH_TAGLIB=FALSE,taglib"
+
+EXTRA_OECMAKE = "-DWITH_JS=FALSE -DWITH_MAGIC=FALSE -DWITH_EXIF=FALSE -DLIBUUID_INCLUDE_DIRS=${STAGING_INCDIR} -DLIBUUID_LIBRARIES=-luuid"
 
 do_install_append() {
 	install -d ${D}/root/.config/
Signature · 1 line
2.11.0
#4 lore raw

Re: [meta-multimedia][PATCH v3 2/2] gerbera: clean recipe

There as also comment from Khem asking if all these runtime dependencies are really needed. They should be added automatically by package.bbclass.

And you have libupnp in RDEPENDS. So drop whole RDEPENDS and after build you can check buildhistory that the runtime dependencies are still there for whatever is gerbera linked with.

Quoted 55 lines · Fabien Lahoudere

Clean the recipe and change the name of libupnp to libupnp1.8.

---
 meta-multimedia/recipes-multimedia/gerbera/gerbera_git.bb | 12
++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
meta-multimedia/recipes-multimedia/gerbera/gerbera_git.bb +0 -0
index 2bbedc0d1..151127768 100644
@@ -6,22 +6,22 @@ LIC_FILES_CHKSUM = "file://LICENSE.md;md5=

25cdec9afe3f1f26212ead6bd2f7fac8"
SRC_URI = "git://github.com/v00d00/gerbera.git;protocol=https \
file://gerbera.service "

meta-multimedia/recipes-multimedia/gerbera/gerbera_git.bb +6 -10
-
-# Modify these as desired
 PV = "1.0+git${SRCPV}"
 SRCREV = "4435b165d121195aefd67d0287f7f9349e181d45"
 
 S = "${WORKDIR}/git"
 
-DEPENDS = "expat zlib curl libupnp e2fsprogs sqlite3 taglib "
-RDEPENDS_${PN} = "expat zlib curl libupnp e2fsprogs taglib "
+DEPENDS = "expat zlib curl libupnp1.8 e2fsprogs sqlite3 "
+RDEPENDS_${PN} = "expat zlib curl libupnp e2fsprogs "
 
 SYSTEMD_SERVICE_${PN} = "gerbera.service"
-SYSTEMD_AUTO_ENABLE = "enable"
 
 inherit cmake systemd
 
-EXTRA_OECMAKE = "-DWITH_JS=FALSE -DWITH_TAGLIB=FALSE -DWITH_MAGIC=FALSE
-DWITH_EXIF=FALSE -DLIBUUID_INCLUDE_DIRS=${WORKDIR}/recipe-sysroot/usr/include
-DLIBUUID_LIBRARIES=-luuid"
+PACKAGECONFIG = ""
+PACKAGECONFIG[taglib] = "-DWITH_TAGLIB=TRUE,-DWITH_TAGLIB=FALSE,taglib"
+
+EXTRA_OECMAKE = "-DWITH_JS=FALSE -DWITH_MAGIC=FALSE -DWITH_EXIF=FALSE
-DLIBUUID_INCLUDE_DIRS=${STAGING_INCDIR} -DLIBUUID_LIBRARIES=-luuid"
 
 do_install_append() {
        install -d ${D}/root/.config/
--

2.11.0

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

#2 lore raw

Re: [meta-multimedia][PATCH v3 1/2] libupnp: Add recipe for version 1.8.2

In reply to Fabien Lahoudere

Please don't use github archives which can be regenerated in some cases. Safer to use just git fetcher.

Quoted 54 lines · Fabien Lahoudere

This version is needed for gerbera, however this version break mpd. So we keep both recipe.

---
 .../recipes-connectivity/libupnp/libupnp1.8.bb     | 22
++++++++++++++++++++++
 1 file changed, 22 insertions(+)
 create mode 100644 meta-multimedia/recipes-connectivity/libupnp/libupnp1.

8.bb

meta-multimedia/recipes-connectivity/libupnp/libupnp1.8.bb new file +2 -0
new file mode 100644
index 000000000..5b0e72d42
@@ -0,0 +1,22 @@
+SUMMARY = "Portable SDK for UPnP* Devices"
+DESCRIPTION = "The Portable SDK for UPnP Devices is an SDK for

development of \

meta-multimedia/recipes-connectivity/libupnp/libupnp1.8.bb new file +2 -0
+UPnP device and control point applications. It consists of the core UPnP \
+protocols along with a UPnP-specific eXtensible Markup Language (XML)

parser \

meta-multimedia/recipes-connectivity/libupnp/libupnp1.8.bb new file +8 -0
+supporting the Document Object Model (DOM) Level 2 API and an optional, \
+integrated mini web server for serving UPnP related documents."
+HOMEPAGE = "http://pupnp.sourceforge.net/"
+LICENSE = "BSD"
+
+LIC_FILES_CHKSUM = "file://LICENSE;md5=b3190d5244e08e78e4c8ee78544f4863"
+
+SRC_URI = "https://github.com/mrjimenez/pupnp/archive/release-1.8.2.

tar.gz "

meta-multimedia/recipes-connectivity/libupnp/libupnp1.8.bb new file +3 -0
+
+SRC_URI[md5sum] = "db8061f7cbd7f9af993ac4e87ad084cb"
+SRC_URI[sha256sum] = "438ad86bfd933cb1e9be1c41bf3bd6

9f049daba11d71bbb5d715336e00106cb4"

meta-multimedia/recipes-connectivity/libupnp/libupnp1.8.bb new file +7 -1
+
+PV="1.8.2"
+S="${WORKDIR}/pupnp-release-${PV}"
+
+inherit autotools
+
+EXTRA_OECONF += "--enable-reuseaddr"
\ No newline at end of file
--

2.11.0

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