Skip to contentSkip to conversation

libsrtp: allow creation of empty package

PATCH In review Anuj Mittal 2 participants 2 messages Apr 9, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libsrtp: allow creation of empty package

Package PN is not created otherwise and results in errors like

| Problem: conflicting requests
| - nothing provides libsrtp = 1.5.2-r0 needed by libsrtp-dev-1.5.2-r0.i586

when PN-staticdev is to be installed that RDEPENDS on it.

---
 meta-multimedia/recipes-support/libsrtp/libsrtp_1.5.2.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-multimedia/recipes-support/libsrtp/libsrtp_1.5.2.bb +2 -0
index 8abaa12..0104d04 100644
@@ -18,3 +18,5 @@ do_install[postfuncs] += " rm_unused_bindir "
 rm_unused_bindir() {
     rmdir ${D}/${bindir}
 }
+
+ALLOW_EMPTY_${PN} = "1"
Signature · 1 line
2.7.4
#1 lore raw
Quoted 18 lines · Anuj Mittal

Package PN is not created otherwise and results in errors like

| Problem: conflicting requests
| - nothing provides libsrtp = 1.5.2-r0 needed by libsrtp-dev-1.5.2-r0.i586

when PN-staticdev is to be installed that RDEPENDS on it.

---
  meta-multimedia/recipes-support/libsrtp/libsrtp_1.5.2.bb | 2 ++
  1 file changed, 2 insertions(+)
meta-multimedia/recipes-support/libsrtp/libsrtp_1.5.2.bb +0 -0
index 8abaa12..0104d04 100644

meta-multimedia/recipes-support/libsrtp/libsrtp_1.5.2.bb do_install[postfuncs] += " rm_unused_bindir " · line 22

Quoted 5 lines
meta-multimedia/recipes-support/libsrtp/libsrtp_1.5.2.bb +2 -0
@@ -18,3 +18,5 @@ do_install[postfuncs] += " rm_unused_bindir "
  rm_unused_bindir() {
      rmdir ${D}/${bindir}
  }
+
+ALLOW_EMPTY_${PN} = "1"

You wont need this change if you remove this dependency from dev packages

RDEPENDS_${PN}-dev = ""
RDEPENDS_${PN}-staticdev = ""