Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 99810
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Daniel Drake <dsd@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Bruno Redondi <bruno.redondi@altarisoluzione.com>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
diff1.diff i18n removal patch patch Bruno Redondi 2005-07-21 09:21 0000 920 bytes Details | Diff
sources-nogettext.patch sources-nogettext.patch patch Yuri Vasilevski 2005-10-17 11:41 0000 1.34 KB Details | Diff
misc-2.6.13-rev-i18n.patch 2.6.13 i18n Reversal Patch patch Joshua Kinard 2005-10-24 17:38 0000 34.18 KB Details | Diff
misc-2.6.14-rev-i18n.patch 2.6.14 i18n Reversal Patch patch Joshua Kinard 2005-10-24 17:39 0000 30.72 KB Details | Diff
fix-build-on-nls-free-systems.patch fix-build-on-nls-free-systems.patch patch Yuri Vasilevski 2005-10-26 15:34 0000 1.34 KB Details | Diff
fix-build-on-nls-free-systems.patch fix-build-on-nls-free-systems.patch patch Yuri Vasilevski 2005-11-01 11:17 0000 1.34 KB Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 99810 depends on: Show dependency tree
Bug 99810 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2005-07-21 09:14 0000
I'm trying to build a minimal gentoo-linux system using uclibc profile, but 
linux 2.6.12 requires gettext to build its configuration modules.

------- Comment #1 From Bruno Redondi 2005-07-21 09:17:37 0000 -------
With 2.6.12 linux include Kconfig i18n support, see on linux.org 
commit 3b9fa0931dd86a1fe5507311ee8031650f5d0e8c 
Author: Arnaldo Carvalho de Melo <acme@ghostprotocols.net> 
Date:   Thu May 5 15:09:46 2005 -0700 
 
on a minimal system without gettext installed it is impossible to configure and 
then compile a 2.6.12 kernel 
 
alniyat linux # make config 
  HOSTCC  scripts/basic/fixdep 
  HOSTCC  scripts/basic/split-include 
  HOSTCC  scripts/basic/docproc 
  SHIPPED scripts/kconfig/zconf.tab.h 
  HOSTCC  scripts/kconfig/conf.o 
In file included from scripts/kconfig/conf.c:14: 
scripts/kconfig/lkc.h:11:21: libintl.h: No such file or directory 
scripts/kconfig/conf.c: In function `check_stdin': 
scripts/kconfig/conf.c:59: warning: implicit declaration of function `gettext' 
scripts/kconfig/conf.c:59: warning: passing arg 1 of `printf' makes pointer 
from integer without a cast 
scripts/kconfig/conf.c:60: warning: passing arg 1 of `printf' makes pointer 
from integer without a cast 
scripts/kconfig/conf.c:61: warning: passing arg 1 of `printf' makes pointer 
from integer without a cast 
scripts/kconfig/conf.c: In function `check_conf': 
scripts/kconfig/conf.c:473: warning: passing arg 1 of `printf' makes pointer 
from integer without a cast 
scripts/kconfig/conf.c: In function `main': 
scripts/kconfig/conf.c:508: warning: passing arg 1 of `printf' makes pointer 
from integer without a cast 
scripts/kconfig/conf.c:533: warning: passing arg 1 of `printf' makes pointer 
from integer without a cast 
scripts/kconfig/conf.c:550: warning: passing arg 1 of `printf' makes pointer 
from integer without a cast 
scripts/kconfig/conf.c:579: warning: passing arg 2 of `fprintf' makes pointer 
from integer without a cast 
make[1]: *** [scripts/kconfig/conf.o] Error 1 
make: *** [config] Error 2 
 

------- Comment #2 From Bruno Redondi 2005-07-21 09:21:28 0000 -------
Created an attachment (id=64002) [details]
i18n removal patch

The attached patch removes i18n from Kconfig. After applying the patch I was
able to configure the kernel.
I think that this patch should be applied from the kernel sources ebuilds if
the gettext USE flag is not present.

------- Comment #3 From Tim Yamin (RETIRED) 2005-07-31 06:04:38 0000 -------
This really should go onto the LKML for discussion - we'd rather not include
patches that revert upstream-specified behaviour without a better solution
getting implemented.

------- Comment #4 From Yuri Vasilevski 2005-10-17 11:41:45 0000 -------
Created an attachment (id=70868) [details]
sources-nogettext.patch

Another patch, this one detects if there is no gettext on the host system and
disables its functionality, else all works like upstream.

------- Comment #5 From Joshua Kinard 2005-10-24 17:38:22 0000 -------
Created an attachment (id=71368) [details]
2.6.13 i18n Reversal Patch

Try this patch instead.  I bumped into this while preparing Gentoo/MIPS SGI
LiveCDs (using a mipx/uclibc chroot for genkernel testing) and this on ereared
up and bit me.	So I hunted down the full commit done upstream and reversed it.
 This is the 2.6.13 patch, which should/may apply to 2.6.12.

------- Comment #6 From Joshua Kinard 2005-10-24 17:39:53 0000 -------
Created an attachment (id=71369) [details]
2.6.14 i18n Reversal Patch

Here's the 2.6.14 version (against -rc2).

------- Comment #7 From solar 2005-10-24 22:38:47 0000 -------
This is a blocker for any security bug which will present itself on 2.6.x
kernels and uClibc environments.

------- Comment #8 From Daniel Drake 2005-10-25 12:23:27 0000 -------
Yuri, where has this patch come from? It looks more acceptable than the others
floating around.

------- Comment #9 From Yuri Vasilevski 2005-10-25 19:37:37 0000 -------
(In reply to comment #8)
> Yuri, where has this patch come from? It looks more acceptable than the others
> floating around.

Made it myself and the auto detection idea is from vapier.

------- Comment #10 From Daniel Drake 2005-10-26 03:14:24 0000 -------
Ok. Have you sent it upstream?

------- Comment #11 From Yuri Vasilevski 2005-10-26 07:01:03 0000 -------
No, but you kernel Gentoo guys please do so.

------- Comment #12 From Yuri Vasilevski 2005-10-26 07:30:49 0000 -------
Ok, ignore the previous comment ;-)

On vapier's advise I submitted it upstream:
http://bugzilla.kernel.org/show_bug.cgi?id=5501

Also I made a tiny modification to the patch (in upstream bugzilla)

(I was kind of nervous about that as this is a kernel after all)

------- Comment #13 From Daniel Drake 2005-10-26 07:41:55 0000 -------
The correct way to submit patches is to send to the linux kernel mailing list
(see /usr/src/linux/Documentation/SubmittingPatches). I am happy to do this for
you if you want me to (and you will still get credited for it).

------- Comment #14 From Yuri Vasilevski 2005-10-26 15:34:41 0000 -------
Created an attachment (id=71533) [details]
fix-build-on-nls-free-systems.patch

This patch was accepted upstream, please add to sys-kernel/*-sources.

-----------------------
From: akpm@osdl.org
To: yvasilev@duke.math.cinvestav.mx, sam@ravnborg.org,
mm-commits@vger.kernel.org
Subject: + fix-build-on-nls-free-systems.patch added to -mm tree
Date: Wed, 26 Oct 2005 13:19:34 -0700


The patch titled

     fix build on nls free systems

has been added to the -mm tree.  Its filename is

     fix-build-on-nls-free-systems.patch
-------------------------------

------- Comment #15 From Daniel Drake 2005-10-28 09:58:55 0000 -------
Fixed in gentoo-sources-2.6.14 (genpatches-2.6.14-1)

------- Comment #16 From Yuri Vasilevski 2005-11-01 11:17:32 0000 -------
Created an attachment (id=71887) [details]
fix-build-on-nls-free-systems.patch

Fixed a typo that caused all systems to appear as not having NLS (checked for
the misspelled header file).

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug