diff options
| author | Khem Raj <raj.khem@gmail.com> | 2012-06-24 12:37:07 -0700 |
|---|---|---|
| committer | Koen Kooi <koen@dominion.thruhere.net> | 2012-07-09 18:40:21 +0200 |
| commit | a64ec2dcbe91a9d8ba6a9cb42ae6c8fc28eae2ba (patch) | |
| tree | 0ba034dd36e116f32327feb3cd4ddce24aa04810 /meta-oe/recipes-support/cpufrequtils | |
| parent | 445f95f8d3f668ca2c0d48633ac03afc11094d00 (diff) | |
| download | meta-openembedded-a64ec2dcbe91a9d8ba6a9cb42ae6c8fc28eae2ba.tar.gz | |
cpufrequtils: Fix build without NLS
uclibc disables NLS and we need to pass the right
define to inform the build system about NLS support
cpufrequtils-nls.patch is applied upstream so lets
remove it from metadata
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-support/cpufrequtils')
| -rw-r--r-- | meta-oe/recipes-support/cpufrequtils/cpufrequtils-008/cpufrequtils-nls.patch | 81 | ||||
| -rw-r--r-- | meta-oe/recipes-support/cpufrequtils/cpufrequtils_008.bb | 4 |
2 files changed, 3 insertions, 82 deletions
diff --git a/meta-oe/recipes-support/cpufrequtils/cpufrequtils-008/cpufrequtils-nls.patch b/meta-oe/recipes-support/cpufrequtils/cpufrequtils-008/cpufrequtils-nls.patch deleted file mode 100644 index cbc87194df..0000000000 --- a/meta-oe/recipes-support/cpufrequtils/cpufrequtils-008/cpufrequtils-nls.patch +++ /dev/null | |||
| @@ -1,81 +0,0 @@ | |||
| 1 | make nls/gettext support optional | ||
| 2 | |||
| 3 | patch by Jos van der Ende <seraph@xs4all.nl> | ||
| 4 | |||
| 5 | http://bugs.gentoo.org/205576 | ||
| 6 | |||
| 7 | Index: git/Makefile | ||
| 8 | =================================================================== | ||
| 9 | --- git.orig/Makefile 2011-06-30 17:50:23.000000000 -0700 | ||
| 10 | +++ git/Makefile 2011-07-01 07:06:58.300033928 -0700 | ||
| 11 | @@ -121,6 +121,7 @@ | ||
| 12 | ifeq ($(strip $(NLS)),true) | ||
| 13 | INSTALL_NLS += install-gmo | ||
| 14 | COMPILE_NLS += update-gmo | ||
| 15 | + CFLAGDEF += -DNLS | ||
| 16 | endif | ||
| 17 | |||
| 18 | ifeq ($(strip $(CPUFRQ_BENCH)),true) | ||
| 19 | Index: git/utils/info.c | ||
| 20 | =================================================================== | ||
| 21 | --- git.orig/utils/info.c 2011-06-30 17:50:23.000000000 -0700 | ||
| 22 | +++ git/utils/info.c 2011-07-01 07:06:58.300033928 -0700 | ||
| 23 | @@ -10,7 +10,6 @@ | ||
| 24 | #include <errno.h> | ||
| 25 | #include <stdlib.h> | ||
| 26 | #include <string.h> | ||
| 27 | -#include <libintl.h> | ||
| 28 | #include <locale.h> | ||
| 29 | |||
| 30 | #include <getopt.h> | ||
| 31 | @@ -18,9 +17,18 @@ | ||
| 32 | #include "cpufreq.h" | ||
| 33 | |||
| 34 | |||
| 35 | +#ifdef NLS | ||
| 36 | +#include <libintl.h> | ||
| 37 | #define _(String) gettext (String) | ||
| 38 | #define gettext_noop(String) String | ||
| 39 | #define N_(String) gettext_noop (String) | ||
| 40 | +#else | ||
| 41 | +#define gettext_noop(String) String | ||
| 42 | +#define _(String) gettext_noop (String) | ||
| 43 | +#define gettext(String) gettext_noop (String) | ||
| 44 | +#define N_(String) gettext_noop (String) | ||
| 45 | +#define textdomain(String) | ||
| 46 | +#endif | ||
| 47 | |||
| 48 | #define LINE_LEN 10 | ||
| 49 | |||
| 50 | Index: git/utils/set.c | ||
| 51 | =================================================================== | ||
| 52 | --- git.orig/utils/set.c 2011-06-30 17:50:23.000000000 -0700 | ||
| 53 | +++ git/utils/set.c 2011-07-01 07:07:56.980119994 -0700 | ||
| 54 | @@ -12,16 +12,23 @@ | ||
| 55 | #include <limits.h> | ||
| 56 | #include <string.h> | ||
| 57 | #include <ctype.h> | ||
| 58 | -#include <libintl.h> | ||
| 59 | #include <locale.h> | ||
| 60 | |||
| 61 | #include <getopt.h> | ||
| 62 | |||
| 63 | #include "cpufreq.h" | ||
| 64 | - | ||
| 65 | -#define _(String) gettext(String) | ||
| 66 | +#ifdef NLS | ||
| 67 | +#include <libintl.h> | ||
| 68 | +#define _(String) gettext (String) | ||
| 69 | +#define gettext_noop(String) String | ||
| 70 | +#define N_(String) gettext_noop (String) | ||
| 71 | +#else | ||
| 72 | #define gettext_noop(String) String | ||
| 73 | -#define N_(String) gettext_noop(String) | ||
| 74 | +#define _(String) gettext_noop (String) | ||
| 75 | +#define gettext(String) gettext_noop (String) | ||
| 76 | +#define N_(String) gettext_noop (String) | ||
| 77 | +#define textdomain(String) | ||
| 78 | +#endif | ||
| 79 | |||
| 80 | #define NORM_FREQ_LEN 32 | ||
| 81 | |||
diff --git a/meta-oe/recipes-support/cpufrequtils/cpufrequtils_008.bb b/meta-oe/recipes-support/cpufrequtils/cpufrequtils_008.bb index 855b9c886e..0cc3725dbc 100644 --- a/meta-oe/recipes-support/cpufrequtils/cpufrequtils_008.bb +++ b/meta-oe/recipes-support/cpufrequtils/cpufrequtils_008.bb | |||
| @@ -11,7 +11,9 @@ SRCREV = "a2f0c39d5f21596bb9f5223e895c0ff210b265d0" | |||
| 11 | SRC_URI = "git://github.com/emagii/cpufrequtils.git \ | 11 | SRC_URI = "git://github.com/emagii/cpufrequtils.git \ |
| 12 | " | 12 | " |
| 13 | 13 | ||
| 14 | PR = "r3" | 14 | CFLAGS_append_libc-uclibc = " ${@['-DNLS', '-UNLS']['${USE_NLS}' == 'no']} " |
| 15 | |||
| 16 | PR = "r4" | ||
| 15 | 17 | ||
| 16 | S = "${WORKDIR}/git" | 18 | S = "${WORKDIR}/git" |
| 17 | 19 | ||
