Skip to contentSkip to conversation

fix do_rootfs for images with dev-pkgs in IMAGE_FEATURES

meta-qt5 Andreas Müller 4 participants 5 messages Sep 26, 2013

lore
Share & tools
lore
#0 lore raw
| Collected errors:
|  * satisfy_dependencies_for: Cannot satisfy the following dependencies for qtquickcontrols-dev:
|  *     qtquickcontrols (= 5.1.0-r0) *
|  * opkg_install_cmd: Cannot install package qtquickcontrols-dev.
---
 recipes-qt/qt5/qtquickcontrols.inc | 2 ++
 1 file changed, 2 insertions(+)
recipes-qt/qt5/qtquickcontrols.inc +2 -0
index 63e884e..06b5350 100644
@@ -1,3 +1,5 @@
 require qt5.inc
 
 DEPENDS += "qtdeclarative"
+
+ALLOW_EMPTY_${PN} = "1"
Signature · 1 line
1.8.3.1
#1 lore raw
Quoted 16 lines · Andreas Müller
| Collected errors:
|  * satisfy_dependencies_for: Cannot satisfy the following dependencies for qtquickcontrols-dev:
|  *     qtquickcontrols (= 5.1.0-r0) *
|  * opkg_install_cmd: Cannot install package qtquickcontrols-dev.
---
 recipes-qt/qt5/qtquickcontrols.inc | 2 ++
 1 file changed, 2 insertions(+)
recipes-qt/qt5/qtquickcontrols.inc +0 -0
index 63e884e..06b5350 100644

recipes-qt/qt5/qtquickcontrols.inc line 5

Quoted 5 lines
recipes-qt/qt5/qtquickcontrols.inc +2 -0
@@ -1,3 +1,5 @@
 require qt5.inc
 
 DEPENDS += "qtdeclarative"
+
+ALLOW_EMPTY_${PN} = "1"

Hi Andreas,

I ran into this problem the other day, and after speaking to Ross Burton, he suggested that the better way to fix this is with:

RDEPENDS_${PN}-dev = ""

I'm starting to get the feeling that the dev-pkgs feature is also a little broken, as it seems as though it doesn't handle cases where sub-packages are installed, but the main package is not.

#2 lore raw
Quoted 8 lines · Jack Mitchell

I ran into this problem the other day, and after speaking to Ross Burton, he suggested that the better way to fix this is with:

RDEPENDS_${PN}-dev = ""

I'm starting to get the feeling that the dev-pkgs feature is also a little broken, as it seems as though it doesn't handle cases where sub-packages are installed, but the main package is not.

Well, the problem is the default dependency on the main package in the -dev package, which happens whether or not the main package even exists. That's why I prefer removing the dependency instead of creating empty packages just for the bad dependency.

Ross

#3 lore raw
Quoted 6 lines · Ross
Quoted 5 lines · Jack Mitchell

I ran into this problem the other day, and after speaking to Ross Burton, he suggested that the better way to fix this is with:

RDEPENDS_${PN}-dev = ""

Quoted 9 lines
Quoted 3 lines

I'm starting to get the feeling that the dev-pkgs feature is also a little broken, as it seems as though it doesn't handle cases where sub-packages are installed, but the main package is not.

Well, the problem is the default dependency on the main package in the -dev package, which happens whether or not the main package even exists. That's why I prefer removing the dependency instead of creating empty packages just for the bad dependency.

agreed :)

Andreas

#4 lore raw
In reply to Burton, Ross
Quoted 5 lines · Ross
Quoted 5 lines

I ran into this problem the other day, and after speaking to Ross Burton, he suggested that the better way to fix this is with:

RDEPENDS_${PN}-dev = ""

Quoted 8 lines
Quoted 3 lines

I'm starting to get the feeling that the dev-pkgs feature is also a little broken, as it seems as though it doesn't handle cases where sub-packages are installed, but the main package is not.

Well, the problem is the default dependency on the main package in the -dev package, which happens whether or not the main package even exists. That's why I prefer removing the dependency instead of creating empty packages just for the bad dependency.

ack. This causes also problems with populate_sdk as it can add conflicting packages to the package set. E.g. when having 'dropbear' and 'openssh-sftp-server' in the image, the -dev RDEPENDS tries to add the conflicting 'dropbear' and 'openssh' packages to the sdk.

Instead of (or better: additional to) changing 'RDEPENDS_${PN}-dev', I would prefer the removal of 'ALLOW_EMPTY_${PN}-dev' from bitbake.conf. There is not reason to create -dev packages for applications.

In 'meta/conf/bitbake.conf' the '${PN}' in

|:RDEPENDS_${PN}-dev = "${PN} (= ${EXTENDPKGV})"

should be replaced by something which means the "library" package(s).

Enrico