Skip to contentSkip to conversation

intltool: Adds gettext as a DEPENDS

PATCH In review Khem Raj 2 participants 4 messages May 23, 2017 – May 24, 2017

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/3 intltool: Adds gettext as a DEPENDS

From: Alejandro Hernandez <[email protected]>

When setting USE_NLS="no" and building systemd-boot (which DEPENDS on intltool), configure fails, complaining about missing gettext:

configure: error: GNU gettext tools not found; required for intltool

This is caused because USE_NLS="no" makes the gettext class add gettext-minimal-native to BASEDEPENDS instead of adding gettext-native.

Since we still would like to set USE_NLS="no" and build systemd-boot, we add gettext-native as a dependency to intltool-native, which makes it available for the configure script of systemd-boot fixing the problem.

[YOCTO #11562]

---
 meta/recipes-devtools/intltool/intltool_0.51.0.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-devtools/intltool/intltool_0.51.0.bb +1 -1
index 551bdf0619..ecff2faf25 100644
@@ -16,7 +16,7 @@ UPSTREAM_CHECK_URI = "https://launchpad.net/intltool/trunk/"
 
 DEPENDS = "libxml-parser-perl-native"
 RDEPENDS_${PN} = "gettext-dev libxml-parser-perl"
-DEPENDS_class-native = "libxml-parser-perl-native"
+DEPENDS_class-native = "libxml-parser-perl-native gettext-native"
 
 inherit autotools pkgconfig perlnative
 
Signature · 1 line
2.13.0
author
#1 lore raw

PATCH 2/3 xkeyboard-config: Drop explicit dep on virtual/gettext

let gettext.bbclass provide the defaults they
are good for it.
What it needs it a dep on gettext-native for intltool-native which now intltool-native expresses correctly

Helps compile when distros disable NLS

---
 meta/recipes-graphics/xorg-lib/xkeyboard-config_2.20.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-graphics/xorg-lib/xkeyboard-config_2.20.bb +1 -1
index d00904df21..168b840939 100644
@@ -17,7 +17,7 @@ SRC_URI[md5sum] = "1f68886339116ae3877052204c9b9b88"
 SRC_URI[sha256sum] = "d1bfc72553c4e3ef1cd6f13eec0488cf940498b612ab8a0b362e7090c94bc134"
 
 SECTION = "x11/libs"
-DEPENDS = "intltool-native virtual/gettext util-macros libxslt-native"
+DEPENDS = "intltool-native util-macros libxslt-native"
 
 EXTRA_OECONF = "--with-xkb-rules-symlink=xorg --disable-runtime-deps"
 
Signature · 1 line
2.13.0
author
#2 lore raw

PATCH 3/3 apt-native: Remove USE_NLS = "yes"

In reply to Khem Raj

USE_NLS is target specific, its redundant for native packages

---
 meta/recipes-devtools/apt/apt-native.inc | 1 -
 1 file changed, 1 deletion(-)
meta/recipes-devtools/apt/apt-native.inc +0 -1
index 68f1b3ce2c..be806826e4 100644
@@ -3,7 +3,6 @@ inherit native
 
 DEPENDS += "dpkg-native gettext-native db-native curl-native xz-native"
 PACKAGES = ""
-USE_NLS = "yes"
 
 SRC_URI += "file://db_linking_hack.patch \
             file://0001-Revert-always-run-dpkg-configure-a-at-the-end-of-our.patch \
Signature · 1 line
2.13.0
#3 lore raw

Re: [PATCH 3/3] apt-native: Remove USE_NLS = "yes"

Quoted 2 lines · Khem Raj

USE_NLS is target specific, its redundant for native packages

I don't think you're right:

| In file included from /data/poky-master/tmp/work/x86_64-linux/apt-native/1.2.12-r0/build/include/apt-private/private-cachefile.h:12:0,
| from
/data/poky-master/tmp/work/x86_64-linux/apt-native/1.2.12-r0/apt-1.2.12/apt-private/private-output.cc:15:

| /usr/include/libintl.h:44:14: error: expected unqualified-id before ‘char’
|  extern char *dgettext (const char *__domainname, const char *__msgid)
|               ^
| /usr/include/libintl.h:44:14: error: expected initializer before ‘char’
| In file included from /usr/include/features.h:374:0,
|                  from /usr/include/x86_64-linux-gnu/sys/types.h:25,
|                  from /usr/include/regex.h:23,
|                  from

/data/poky-master/tmp/work/x86_64-linux/apt-native/1.2.12-r0/build/include/apt-pkg/configuration.h:31,
| from
/data/poky-master/tmp/work/x86_64-linux/apt-native/1.2.12-r0/apt-1.2.12/apt-private/private-output.cc:4:
| /usr/include/libintl.h:82:52: error: expected unqualified-id before
‘throw’

|  extern char *textdomain (const char *__domainname) __THROW;
|                                                     ^
| /usr/include/libintl.h:82:52: error: expected initializer before ‘throw’
| /usr/include/libintl.h:87:32: error: expected unqualified-id before
‘throw’
|          const char *__dirname) __THROW;
|                                 ^
| ERROR: oe_runmake failed
| /usr/include/libintl.h:87:32: error: expected initializer before ‘throw’

native.bbclass sets USE_NLS=no but I think apt requires it to be enabled, thus the assignment.

Ross