Skip to contentSkip to conversation

intltool: include intltool.m4 and add missing rdepends

PATCH Superseded Constantin Musca 5 participants 8 messages Sep 19, 2012 – Sep 20, 2012

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 intltool: include intltool.m4 and add missing rdepends

- include /usr/share/aclocal/intltool.m4 into the intltool package (the files from intltool-dev must be included into the main package, as intltool is a development tool)
- add missing rdepends: gettext-dev, libxml-parser-perl

[YOCTO #2597]

---
 meta/recipes-devtools/intltool/intltool.inc       |    9 ++++++++-
 meta/recipes-devtools/intltool/intltool_0.50.0.bb |    2 +-
 2 files changed, 9 insertions(+), 2 deletions(-)
meta/recipes-devtools/intltool/intltool.inc +8 -1
index 1c41f0f..59974d8 100644
@@ -7,11 +7,18 @@ SRC_URI = "http://launchpad.net/${BPN}/trunk/${PV}/+download/${BP}.tar.gz"
 S = "${WORKDIR}/intltool-${PV}"
 
 DEPENDS = "libxml-parser-perl-native"
+RDEPENDS_${PN} = "gettext-dev libxml-parser-perl"
 DEPENDS_virtclass-native = "libxml-parser-perl-native"
-#RDEPENDS_${PN} = "libxml-parser-perl"
+# gettext is assumed to exist on the host
+RDEPENDS_${PN}_virtclass-native = "libxml-parser-perl-native"
 RRECOMMENDS_${PN} = "perl-modules"
 RRECOMMENDS_${PN}_virtclass-native = ""
 
+FILES_${PN}-dev = ""
+FILES_${PN} += "${datadir}/aclocal"
+
+INSANE_SKIP_${PN} += "dev-deps"
+
 inherit autotools pkgconfig perlnative
 
 export PERL = "${bindir}/env perl"
meta/recipes-devtools/intltool/intltool_0.50.0.bb +1 -1
index d1ee31d..fa9850f 100644
@@ -1,7 +1,7 @@
 require intltool.inc
 LICENSE="GPLv2"
 LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
-PR = "r0"
+PR = "r1"
 
 SRC_URI += "file://intltool-nowarn-0.50.0.patch \
            ${NATIVEPATCHES} \
Signature · 1 line
1.7.9.5
#1 lore raw
Quoted 18 lines · Constantin Musca

- include /usr/share/aclocal/intltool.m4 into the intltool package (the files from intltool-dev must be included into the main package, as intltool is a development tool)
- add missing rdepends: gettext-dev, libxml-parser-perl

[YOCTO #2597]

---
 meta/recipes-devtools/intltool/intltool.inc       |    9 ++++++++-
 meta/recipes-devtools/intltool/intltool_0.50.0.bb |    2 +-
 2 files changed, 9 insertions(+), 2 deletions(-)
meta/recipes-devtools/intltool/intltool.inc +0 -0
index 1c41f0f..59974d8 100644

meta/recipes-devtools/intltool/intltool.inc SRC_URI = "http://launchpad.net/${BPN}/trunk/${PV}/+download/${BP}.tar.gz" · line 10

Quoted 4 lines
meta/recipes-devtools/intltool/intltool.inc +1 -0
@@ -7,11 +7,18 @@ SRC_URI = "http://launchpad.net/${BPN}/trunk/${PV}/+download/${BP}.tar.gz"
 S = "${WORKDIR}/intltool-${PV}"
 
 DEPENDS = "libxml-parser-perl-native"
+RDEPENDS_${PN} = "gettext-dev libxml-parser-perl"

creating a runtime dependency on a dev package seems troublesome to me. Can you explain why is this being done ?

Quoted 36 lines
meta/recipes-devtools/intltool/intltool.inc +7 -1
 DEPENDS_virtclass-native = "libxml-parser-perl-native"
-#RDEPENDS_${PN} = "libxml-parser-perl"
+# gettext is assumed to exist on the host
+RDEPENDS_${PN}_virtclass-native = "libxml-parser-perl-native"
 RRECOMMENDS_${PN} = "perl-modules"
 RRECOMMENDS_${PN}_virtclass-native = ""
 
+FILES_${PN}-dev = ""
+FILES_${PN} += "${datadir}/aclocal"
+
+INSANE_SKIP_${PN} += "dev-deps"
+
 inherit autotools pkgconfig perlnative
 
 export PERL = "${bindir}/env perl"
meta/recipes-devtools/intltool/intltool_0.50.0.bb +1 -2
index d1ee31d..fa9850f 100644
@@ -1,7 +1,7 @@
 require intltool.inc
 LICENSE="GPLv2"
 LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
-PR = "r0"
+PR = "r1"
 
 SRC_URI += "file://intltool-nowarn-0.50.0.patch \
            ${NATIVEPATCHES} \
--

1.7.9.5

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

#2 lore raw
Quoted 10 lines · Khem Raj
Quoted 7 lines

meta/recipes-devtools/intltool/intltool.inc SRC_URI ="http://launchpad.net/${BPN}/trunk/${PV}/+download/${BP}.tar.gz" · line 10

Quoted 7 lines
meta/recipes-devtools/intltool/intltool.inc +1 -0
@@ -7,11 +7,18 @@ SRC_URI ="http://launchpad.net/${BPN}/trunk/${PV}/+download/${BP}.tar.gz"
 S = "${WORKDIR}/intltool-${PV}"
 
 DEPENDS = "libxml-parser-perl-native"
+RDEPENDS_${PN} = "gettext-dev libxml-parser-perl"

creating a runtime dependency on a dev package seems troublesome to me. Can you explain why is this being done ?

Quoted 5 lines
Quoted 5 lines

meta/recipes-devtools/intltool/intltool.inc SRC_URI = "http://launchpad.net/${BPN}/trunk/${PV}/+download/${BP}.tar.gz" · line 14

Quoted 5 lines
meta/recipes-devtools/intltool/intltool.inc +2 -1
 DEPENDS_virtclass-native = "libxml-parser-perl-native"
-#RDEPENDS_${PN} = "libxml-parser-perl"
+# gettext is assumed to exist on the host
+RDEPENDS_${PN}_virtclass-native = "libxml-parser-perl-native"
 RRECOMMENDS_${PN} = "perl-modules"

Ross suggested to use these RDEPENDS after having issues with some packages on a image due to intltool.

Constantin

#3 lore raw
Quoted 5 lines · Constantin Musca
Quoted 4 lines · Khem Raj
Quoted 4 lines

meta/recipes-devtools/intltool/intltool.inc SRC_URI

Quoted 3 lines
meta/recipes-devtools/intltool/intltool.inc +0 -0
@@ -7,11 +7,18 @@ SRC_URI

="http://launchpad.net/${BPN}/trunk/${PV}/+download/${BP}.tar.gz"

Quoted 7 lines
Quoted 7 lines
Quoted 4 lines

meta/recipes-devtools/intltool/intltool.inc SRC_URI = "http://launchpad.net/${BPN}/trunk/${PV}/+download/${BP}.tar.gz" · line 10

Quoted 4 lines
meta/recipes-devtools/intltool/intltool.inc +1 -0
 S = "${WORKDIR}/intltool-${PV}"
 
 DEPENDS = "libxml-parser-perl-native"
+RDEPENDS_${PN} = "gettext-dev libxml-parser-perl"

creating a runtime dependency on a dev package seems troublesome to me. Can you explain why is this being done ?

The question here is why do we need the gettext-dev package for intltool? What does intltool need from the -dev package?

Sau!

Quoted 15 lines
Quoted 5 lines
Quoted 5 lines

meta/recipes-devtools/intltool/intltool.inc SRC_URI = "http://launchpad.net/${BPN}/trunk/${PV}/+download/${BP}.tar.gz" · line 14

Quoted 5 lines
meta/recipes-devtools/intltool/intltool.inc +2 -1
 DEPENDS_virtclass-native = "libxml-parser-perl-native"
-#RDEPENDS_${PN} = "libxml-parser-perl"
+# gettext is assumed to exist on the host
+RDEPENDS_${PN}_virtclass-native = "libxml-parser-perl-native"
 RRECOMMENDS_${PN} = "perl-modules"

Ross suggested to use these RDEPENDS after having issues with some packages on a image due to intltool.

Constantin

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

#4 lore raw
Quoted 2 lines · Saul Wold

The question here is why do we need the gettext-dev package for intltool? What does intltool need from the -dev package?

intltool needs the gettext binaries and IIRC a header - but I'm sufficiently unsure about the details that someone should verify what the dependencies were for documenting in the commit.

Ross

#5 lore raw
Quoted 8 lines · Ross
Quoted 2 lines · Saul Wold

The question here is why do we need the gettext-dev package for intltool? What does intltool need from the -dev package?

intltool needs the gettext binaries and IIRC a header - but I'm sufficiently unsure about the details that someone should verify what the dependencies were for documenting in the commit.

Ross

I'm going to investigate this and come back to you.

Constantin

#6 lore raw
In reply to Constantin Musca
Quoted 2 lines · Constantin Musca

Ross suggested to use these RDEPENDS after having issues with some packages on a image due to intltool.

I knew I should have put the exact errors in the bug...

I'm not in the position to replicate this right now (at a conference) but if someone boots a yocto sdk image and tries to compile something that uses intltool, you'll discover the problems. If no-one can do this before Friday I can do that myself then.

Ross

#7 lore raw
In reply to Khem Raj
Quoted 22 lines · Khem Raj
Quoted 20 lines · Constantin Musca

- include /usr/share/aclocal/intltool.m4 into the intltool package (the files from intltool-dev must be included into the main package, as intltool is a development tool)
- add missing rdepends: gettext-dev, libxml-parser-perl

[YOCTO #2597]

---
 meta/recipes-devtools/intltool/intltool.inc       |    9 ++++++++-
 meta/recipes-devtools/intltool/intltool_0.50.0.bb |    2 +-
 2 files changed, 9 insertions(+), 2 deletions(-)
meta/recipes-devtools/intltool/intltool.inc +0 -0
index 1c41f0f..59974d8 100644
@@ -7,11 +7,18 @@ SRC_URI = "http://launchpad.net/${BPN}/trunk/${PV}/+download/${BP}.tar.gz"
 S = "${WORKDIR}/intltool-${PV}"
 
Quoted 5 lines

meta/recipes-devtools/intltool/intltool.inc SRC_URI = "http://launchpad.net/${BPN}/trunk/${PV}/+download/${BP}.tar.gz" · line 10

Quoted 2 lines
meta/recipes-devtools/intltool/intltool.inc +1 -0
 DEPENDS = "libxml-parser-perl-native"
+RDEPENDS_${PN} = "gettext-dev libxml-parser-perl"

creating a runtime dependency on a dev package seems troublesome to me. Can you explain why is this being done ?

Constantin has posted an update about this. The issue is the intltool.m4 macros references macros that come from gettext-dev.

I think that whilst this unusual, developer tools can need other development tools. We need to remember that intltool is only ever used for development.

Cheers,

Richard