Skip to contentSkip to conversation

python-smartpm: add gettext-native to DEPENDS

PATCH Superseded Paul Eggleton 2 participants 4 messages May 29, 2013

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 python-smartpm: add gettext-native to DEPENDS

Fixes the following failure at do_install if gettext-native has not already been built and gettext tools are not installed on the host:

| compiling locale/it/LC_MESSAGES/smart.po -> locale/it/LC_MESSAGES/smart.mo | sh: msgfmt: command not found
...
| creating $D/usr/share/share/locale/it/LC_MESSAGES
| error: can't copy 'locale/it/LC_MESSAGES/smart.mo': doesn't exist or not a regular file

---
 meta/recipes-devtools/python/python-smartpm_1.4.1.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-devtools/python/python-smartpm_1.4.1.bb +1 -1
index cfa2dba..0cf3847 100644
@@ -8,7 +8,7 @@ SECTION = "devel/python"
 LICENSE = "GPLv2"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=393a5ca445f6965873eca0259a17f833"
 
-DEPENDS = "python rpm"
+DEPENDS = "python rpm gettext-native"
 PR = "r9"
 SRCNAME = "smart"
 
Signature · 1 line
1.8.1.2
#1 lore raw
Quoted 4 lines · Paul Eggleton

Fixes the following failure at do_install if gettext-native has not already been built and gettext tools are not installed on the host:

| compiling locale/it/LC_MESSAGES/smart.po ->

locale/it/LC_MESSAGES/smart.mo

Quoted 4 lines

| sh: msgfmt: command not found
...
| creating $D/usr/share/share/locale/it/LC_MESSAGES
| error: can't copy 'locale/it/LC_MESSAGES/smart.mo': doesn't exist or

not a regular file

Review

Quoted 7 lines
---
 meta/recipes-devtools/python/python-smartpm_1.4.1.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
(quoted diff) +0 -0

python-smartpm_1.4.1.bb

meta/recipes-devtools/python/python-smartpm_1.4.1.bb SECTION = "devel/python" · line 11

Quoted 9 lines

index cfa2dba..0cf3847 100644

meta/recipes-devtools/python/python-smartpm_1.4.1.bb +1 -1
@@ -8,7 +8,7 @@ SECTION = "devel/python"
 LICENSE = "GPLv2"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=393a5ca445f6965873eca0259a17f833"
 
-DEPENDS = "python rpm"
+DEPENDS = "python rpm gettext-native"

Why not inherit gettext ?

Quoted 11 lines
meta/recipes-devtools/python/python-smartpm_1.4.1.bb +0 -1
 PR = "r9"
 SRCNAME = "smart"
 
--

1.8.1.2

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

#2 lore raw
Quoted 6 lines · On Wednesday 29 May 2013 10:41:25 Khem Raj wrote:

meta/recipes-devtools/python/python-smartpm_1.4.1.bb SECTION = "devel/python" · line 11

Quoted 2 lines · Paul Eggleton
meta/recipes-devtools/python/python-smartpm_1.4.1.bb +1 -1
-DEPENDS = "python rpm"
+DEPENDS = "python rpm gettext-native"

Why not inherit gettext ?

Because that doesn't work for python-smartpm-native - that will add gettext- minimal-native to DEPENDS which does not provide msgfmt.

Cheers,
Paul

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre
#3 lore raw
Quoted 10 lines · Paul Eggleton
Quoted 6 lines · On Wednesday 29 May 2013 10:41:25 Khem Raj wrote:

meta/recipes-devtools/python/python-smartpm_1.4.1.bb SECTION = "devel/python" · line 11

Quoted 2 lines · Paul Eggleton
meta/recipes-devtools/python/python-smartpm_1.4.1.bb +1 -1
-DEPENDS = "python rpm"
+DEPENDS = "python rpm gettext-native"

Why not inherit gettext ?

Because that doesn't work for python-smartpm-native - that will add gettext- minimal-native to DEPENDS which does not provide msgfmt.

Add that info to commit log please

Quoted 8 lines

Cheers,
Paul

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre