Skip to contentSkip to conversation

augeas: allow empty augeas-lenses package

PATCH In review [email protected] 2 participants 2 messages Apr 17, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 augeas: allow empty augeas-lenses package

From: Ting Liu <[email protected]>

Fix the error when do_rootfs:

| Loading cache...
| Updating cache...               ######################################## [100%]
|
| Computing transaction...error: Can't install libaugeas0-1.0.0-r1@ppce500v2: no package provides augeas-lenses
|
| Saving cache...
|
| ERROR: Function failed: do_rootfs

augeas-lenses rpm is not generated due to no content:

$ ls tmp/deploy/rpm/ppce500v2/augeas-
augeas-1.0.0-r1.ppce500v2.rpm      augeas-dev-1.0.0-r1.ppce500v2.rpm
augeas-dbg-1.0.0-r1.ppce500v2.rpm  augeas-doc-1.0.0-r1.ppce500v2.rpm
$ ls tmp/work/ppce500v2-fsl_networking-linux-gnuspe/augeas/1.0.0-r1/packages-split/augeas-lenses/
$
Change-Id I63b871fdbbd45f1c0b1b5605b342e62e1526c37b
---
 meta/recipes-extended/augeas/augeas.inc      |    3 +++
 meta/recipes-extended/augeas/augeas_1.0.0.bb |    2 +-
 2 files changed, 4 insertions(+), 1 deletions(-)
meta/recipes-extended/augeas/augeas.inc +3 -0
index c956621..49da973 100644
@@ -29,3 +29,6 @@ LEAD_SONAME = "libaugeas.so"
 do_install_append() {
 	rm -fr ${D}${datadir}/vim
 }
+
+ALLOW_EMPTY_${PN}-lenses = "1" 
+
meta/recipes-extended/augeas/augeas_1.0.0.bb +1 -1
index 82bda19..d898eea 100644
@@ -1,6 +1,6 @@
 require augeas.inc
 
-PR = "r1"
+PR = "r2"
 
 SRC_URI[md5sum] = "82131019432ecf8102e1491610ad2dd1"
 SRC_URI[sha256sum] = "31bf757c5b8197765946b3805f3793c32b03cd92a7a77ec95d37e71a1f131912"
Signature · 1 line
1.7.5.4
#1 lore raw
Quoted 42 lines · On Wed, 2013-04-17 at 16:42 +0800, [email protected] wrote:

From: Ting Liu <[email protected]>

Fix the error when do_rootfs:

| Loading cache...
| Updating cache...               ######################################## [100%]
|
| Computing transaction...error: Can't install libaugeas0-1.0.0-r1@ppce500v2: no package provides augeas-lenses
|
| Saving cache...
|
| ERROR: Function failed: do_rootfs

augeas-lenses rpm is not generated due to no content:

$ ls tmp/deploy/rpm/ppce500v2/augeas-
augeas-1.0.0-r1.ppce500v2.rpm      augeas-dev-1.0.0-r1.ppce500v2.rpm
augeas-dbg-1.0.0-r1.ppce500v2.rpm  augeas-doc-1.0.0-r1.ppce500v2.rpm
$ ls tmp/work/ppce500v2-fsl_networking-linux-gnuspe/augeas/1.0.0-r1/packages-split/augeas-lenses/
$
Change-Id I63b871fdbbd45f1c0b1b5605b342e62e1526c37b
---
 meta/recipes-extended/augeas/augeas.inc      |    3 +++
 meta/recipes-extended/augeas/augeas_1.0.0.bb |    2 +-
 2 files changed, 4 insertions(+), 1 deletions(-)
meta/recipes-extended/augeas/augeas.inc +3 -0
index c956621..49da973 100644
@@ -29,3 +29,6 @@ LEAD_SONAME = "libaugeas.so"
 do_install_append() {
 	rm -fr ${D}${datadir}/vim
 }
+
+ALLOW_EMPTY_${PN}-lenses = "1" 
+
meta/recipes-extended/augeas/augeas_1.0.0.bb +0 -0
index 82bda19..d898eea 100644

meta/recipes-extended/augeas/augeas_1.0.0.bb line 6

Quoted 7 lines
meta/recipes-extended/augeas/augeas_1.0.0.bb +1 -1
@@ -1,6 +1,6 @@
 require augeas.inc
 
-PR = "r1"
+PR = "r2"
 
 SRC_URI[md5sum] = "82131019432ecf8102e1491610ad2dd1"
 SRC_URI[sha256sum] = "31bf757c5b8197765946b3805f3793c32b03cd92a7a77ec95d37e71a1f131912"

Thanks for the warning about this but this isn't the right way to fix it. The question is what happened to the files that should be there?

I've just sent out a patch which fixes this properly.

Cheers,

Richard