Summary: | sys-power/cpufrequtils fails to compile against uclibc | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | seraph <seraph> |
Component: | Current packages | Assignee: | Embedded Gentoo Team <embedded> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | sergey.dryabzhinsky |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
Realy disable NLS
Without garbage |
Description
seraph@xs4all.nl
2008-01-13 11:07:27 UTC
try this. uClibc foobar # cat /usr/include/libintl.h #ifndef _LIBINTL_H #define _LIBINTL_H 1 #include <features.h> /* Stubs for gettext/locale bullshit... */ #undef gettext #undef dgettext #undef dcgettext #undef ngettext #undef dngettext #undef dcngettext #undef textdomain #undef bindtextdomain #undef bind_textdomain_codeset /* this fucker seems to be installed in /usr/include/locale.h */ /* #undef setlocale */ #undef _ #undef N_ #define gettext(String) (String) #define dgettext(Domain, String) (String) #define dcgettext(Domain, String, Type) (String) #define ngettext(msgid1, msgid2, n) (msgid1) #define dngettext(Domain, msgid1, msgid2, n) (Domain) #define dcngettext(Domain, msgid1, msgid2, n, Category) (Domain) #define dgettext(Domain, String) (String) #define dcgettext(Domain, String, Type) (String) #ifndef _LOCALE_H /* #define setlocale(Category, Locale) ((char *)NULL) */ #endif #define bindtextdomain(Domain, Directory) (Domain) #define bind_textdomain_codeset(Domain, Codeset) #define textdomain(String) #define _(String) (String) #define N_(String) (String) #endif That seems to have done the trick, although it causes some weird warnings when compiling the kernel. But at least cpufrequtils compiles now. Move the file out of the way when not needed. It will cause false detection of nls related things. Those stub functions are suited to become something that an eclass takes care of some day. Created attachment 145993 [details, diff]
Realy disable NLS
Patch add:
1. Definition NLS to CFLAGS
2. Wrappers on gettext which do nothing if NLS not defined.
Created attachment 146273 [details, diff]
Without garbage
Sorry for garbage in previous patch
ive merged your fix in 005-r1 ... thanks! This patch listed incorrect authorship in portage. I've fixed that and I also sent the patch upstream for inclusion into cpufrequtils. Thanks again. |