Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 99810 - unable to make *config in linux 2.6.12 without gettext
Summary: unable to make *config in linux 2.6.12 without gettext
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High blocker (vote)
Assignee: Daniel Drake (RETIRED)
URL:
Whiteboard:
Keywords: Inclusion
Depends on:
Blocks:
 
Reported: 2005-07-21 09:14 UTC by Bruno Redondi
Modified: 2005-11-01 11:17 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
i18n removal patch (diff1.diff,920 bytes, patch)
2005-07-21 09:21 UTC, Bruno Redondi
Details | Diff
sources-nogettext.patch (sources-nogettext.patch,1.34 KB, patch)
2005-10-17 11:41 UTC, Yuri Vasilevski (RETIRED)
Details | Diff
2.6.13 i18n Reversal Patch (misc-2.6.13-rev-i18n.patch,34.18 KB, patch)
2005-10-24 17:38 UTC, Joshua Kinard
Details | Diff
2.6.14 i18n Reversal Patch (misc-2.6.14-rev-i18n.patch,30.72 KB, patch)
2005-10-24 17:39 UTC, Joshua Kinard
Details | Diff
fix-build-on-nls-free-systems.patch (fix-build-on-nls-free-systems.patch,1.34 KB, patch)
2005-10-26 15:34 UTC, Yuri Vasilevski (RETIRED)
Details | Diff
fix-build-on-nls-free-systems.patch (fix-build-on-nls-free-systems.patch,1.34 KB, patch)
2005-11-01 11:17 UTC, Yuri Vasilevski (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Bruno Redondi 2005-07-21 09:14:50 UTC
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 Bruno Redondi 2005-07-21 09:17:37 UTC
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 Bruno Redondi 2005-07-21 09:21:28 UTC
Created attachment 64002 [details, diff]
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 Tim Yamin (RETIRED) gentoo-dev 2005-07-31 06:04:38 UTC
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 Yuri Vasilevski (RETIRED) gentoo-dev 2005-10-17 11:41:45 UTC
Created attachment 70868 [details, diff]
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 Joshua Kinard gentoo-dev 2005-10-24 17:38:22 UTC
Created attachment 71368 [details, diff]
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 Joshua Kinard gentoo-dev 2005-10-24 17:39:53 UTC
Created attachment 71369 [details, diff]
2.6.14 i18n Reversal Patch

Here's the 2.6.14 version (against -rc2).
Comment 7 solar (RETIRED) gentoo-dev 2005-10-24 22:38:47 UTC
This is a blocker for any security bug which will present itself on 2.6.x
kernels and uClibc environments.
Comment 8 Daniel Drake (RETIRED) gentoo-dev 2005-10-25 12:23:27 UTC
Yuri, where has this patch come from? It looks more acceptable than the others
floating around.
Comment 9 Yuri Vasilevski (RETIRED) gentoo-dev 2005-10-25 19:37:37 UTC
(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 Daniel Drake (RETIRED) gentoo-dev 2005-10-26 03:14:24 UTC
Ok. Have you sent it upstream?
Comment 11 Yuri Vasilevski (RETIRED) gentoo-dev 2005-10-26 07:01:03 UTC
No, but you kernel Gentoo guys please do so.
Comment 12 Yuri Vasilevski (RETIRED) gentoo-dev 2005-10-26 07:30:49 UTC
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 Daniel Drake (RETIRED) gentoo-dev 2005-10-26 07:41:55 UTC
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 Yuri Vasilevski (RETIRED) gentoo-dev 2005-10-26 15:34:41 UTC
Created attachment 71533 [details, diff]
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 Daniel Drake (RETIRED) gentoo-dev 2005-10-28 09:58:55 UTC
Fixed in gentoo-sources-2.6.14 (genpatches-2.6.14-1)
Comment 16 Yuri Vasilevski (RETIRED) gentoo-dev 2005-11-01 11:17:32 UTC
Created attachment 71887 [details, diff]
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).