Gerardo Di Iorio | 7 Jun 2013 09:25
Picon

gawk error build

hi,
the current gawk 4.1.0 not build.

i attach the error log

regards
gerardo di iorio

Command Wrapper Debug: running 'x86_64-t2-linux-gnu-gcc --version' ..
x86_64-t2-linux-gnu-gcc is /mnt/dev/t2/build/hostkvm-9.0-trunk-generic-x86-64-/TOOLCHAIN/tools.cross/wrapper/x86_64-t2-linux-gnu-gcc
Old Command: x86_64-t2-linux-gnu-gcc --version
ENVPREFIX = 'CMD'
OTHERS = ''
INSERT = '--help?:-pipe -O2'
REMOVE = '-I/usr/local/include -I/usr/include -O -O[0-9s] -mtune* -march* -mcpu* -Werror -Wextra -g*'
APPEND = '-s'
FILTER = 'sed -e 's,//*,/,g' -e 's,^\(-[LI]\)*\(/\|/usr/\|/usr/[^/]*/\|/opt/[^/]*/\)\(include\|lib\),\1/mnt/dev/t2/build/hostkvm-9.0-trunk-generic-x86-64-\2\3,''
conditonal arg: --help?:-pipe.
conditonal: --help, lhs: , rhs: -pipe.
Insert: -pipe
Insert: -O2
Copy:   --version
Append: -s
Run Filter: sed -e 's,//*,/,g' -e 's,^\(-[LI]\)*\(/\|/usr/\|/usr/[^/]*/\|/opt/[^/]*/\)\(include\|lib\),\1/mnt/dev/t2/build/hostkvm-9.0-trunk-generic-x86-64-\2\3,'
Old PATH: /mnt/dev/t2/build/hostkvm-9.0-trunk-generic-x86-64-/TOOLCHAIN/tools.cross/wrapper:/mnt/dev/t2/build/hostkvm-9.0-trunk-generic-x86-64-/TOOLCHAIN/tools.cross/bin:/mnt/dev/t2/build/hostkvm-9.0-trunk-generic-x86-64-/TOOLCHAIN/tools.cross/crosscc:/opt/squid/sbin:/opt/samba/sbin:/opt/apache/sbin:/opt/squid/bin:/opt/samba/bin:/opt/mysql/bin:/opt/apache/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
New PATH: /mnt/dev/t2/build/hostkvm-9.0-trunk-generic-x86-64-/TOOLCHAIN/tools.cross/bin:/mnt/dev/t2/build/hostkvm-9.0-trunk-generic-x86-64-/TOOLCHAIN/tools.cross/crosscc:/opt/squid/sbin:/opt/samba/sbin:/opt/apache/sbin:/opt/squid/bin:/opt/samba/bin:/opt/mysql/bin:/opt/apache/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
New Command: x86_64-t2-linux-gnu-gcc -pipe -O2 --version -s
x86_64-t2-linux-gnu-gcc (GCC) 4.7.3
(Continue reading)

Gerardo Di Iorio | 6 May 2013 14:08
Picon

patch glibc 2.17

hi,
in attach patch for update t2 to glibc 2.17,

regards
gerardo di iorio
Attachment (glibc.tar): application/x-tar, 70 KiB
hi,
in attach patch for update t2 to glibc 2.17,

regards
gerardo di iorio
Mirco Richter | 3 May 2013 19:09
Picon

Live USB version available?

Is there a binary image downloadable that I can 'dd' on an USB flash drive,
to boot T2 from USB?
 
/mirco
<div><div><div>
<div>
<div>Is there a binary image downloadable that I can 'dd' on an USB flash drive,</div>

<div>to boot T2 from USB?</div>

<div>&nbsp;</div>

<div>/mirco</div>
</div>
</div></div></div>
Toan Pham | 2 May 2013 20:30
Picon

Suggesting on SDE Config


Dear Rene & Dev. Group,

I am not sure if you've experienced with the issue related to several
packages fail to build b/c object files were not compiled with -fPIC,
position independent code.  I feel like this issue is very essential
b/c I can't remeber how many packages i had to patch to include the
PIC option.  To name a few, they are glibc and serveral gnome2
packages.

I'd like to suggest a SDE Config flag to be able to enable that option
by default for all packages.  It would be a checkbox flag in the
config menu.  Please let me know if the idea is good or not, and if it
would break anything *if enabled*.

regards,

toan

Gerardo Di Iorio | 2 May 2013 14:22
Picon

udeb branch

hi,
i have create an branch who udev is build with gudev ecc
the branch is located at
https://github.com/arete/t2/tree/udev

please review
If ok i commit to trunk

regards
gerardo di iorio

--
http://gerardodiiorio.blogspot.com/
Lo scopo del lavoro è quello di guadagnarsi il tempo libero  (Aristotele)
The purpose of the job is to gain leisure  (Aristotele)
<div><div dir="ltr">
<div>
<div>
<div>
<div>hi,<br>i have create an branch who udev is build with gudev ecc<br>the branch is located at<br><a href="https://github.com/arete/t2/tree/udev">https://github.com/arete/t2/tree/udev</a><br><br>
</div>please review<br>
</div>If ok i commit to trunk<br><br>
</div>regards<br>
</div>gerardo di iorio<br clear="all"><div><div><div><div><div>
<br>-- <br><a href="http://www.gerardodiiorio.com" target="_blank">http://gerardodiiorio.blogspot.com/</a><br>
Lo scopo del lavoro &egrave; quello di guadagnarsi il tempo libero &nbsp;(Aristotele)<br>The purpose of the job is to gain leisure &nbsp;(Aristotele)
</div></div></div></div></div>
</div></div>
Gerardo Di Iorio | 18 Apr 2013 06:55
Picon

conf for build udev with dietlibc

Hi all,
i add to udev the option for enable-extras, work fine,
but i need disable this option when build with dietlibc,
Was is the file to modify?
i have try with dietlibc/pkg_udev_post.conf , but not work.

Regards
Gerardo Di Iorio

--
http://gerardodiiorio.blogspot.com/
Lo scopo del lavoro è quello di guadagnarsi il tempo libero  (Aristotele)
The purpose of the job is to gain leisure  (Aristotele)
<div><div dir="ltr">Hi all,<div>i add to udev the option for enable-extras, work fine,</div>
<div>but i need disable this option when build with dietlibc,</div>
<div>Was is the file to modify?</div>
<div>i have try with dietlibc/pkg_udev_post.conf , but not work.</div>
<div><br></div>
<div>Regards</div>
<div>Gerardo Di Iorio<br clear="all"><div><br></div>-- <br><a href="http://www.gerardodiiorio.com" target="_blank">http://gerardodiiorio.blogspot.com/</a><br>Lo scopo del lavoro &egrave; quello di guadagnarsi il tempo libero &nbsp;(Aristotele)<br>
The purpose of the job is to gain leisure &nbsp;(Aristotele)
</div>
</div></div>
Toan Pham | 5 Apr 2013 21:57
Picon

[PATCH] update nfs-utils-1.2.7


Update to nfs-utils-1.2.7
fix build error, should not build nfsv41 if nfsv4 was not included.

---
Index: package/filesystem/nfs-utils/nfs-utils.desc
===================================================================
--- package/filesystem/nfs-utils/nfs-utils.desc (revision 40824)
+++ package/filesystem/nfs-utils/nfs-utils.desc (working copy)
 <at>  <at>  -34,7 +34,7  <at>  <at> 

 [L] GPL
 [S] Stable
-[V] 1.2.6
+[V] 1.2.7
 [P] X -----5---9 189.500

-[D] 2562782756 nfs-utils-1.2.6.tar.bz2
http://dl.sourceforge.net/sourceforge/nfs/
+[D] 1019405902 nfs-utils-1.2.7.tar.bz2
http://dl.sourceforge.net/sourceforge/nfs/
Index: package/filesystem/nfs-utils/nfs-utils.conf
===================================================================
--- package/filesystem/nfs-utils/nfs-utils.conf (revision 40824)
+++ package/filesystem/nfs-utils/nfs-utils.conf (working copy)
 <at>  <at>  -22,7 +22,7  <at>  <at> 
        var_append GCC_WRAPPER_APPEND ' ' "-I$( pkgprefix includedir
openldap ) -L$( pkgprefix libdir openldap )"
        fi
 else
-       var_append extraconfopt ' ' '--disable-nfsv4'
+       var_append extraconfopt ' ' '--disable-nfsv4 --disable-nfsv41'
 fi

 var_append extraconfopt ' ' "--with-tirpcinclude=$root$includedir/tirpc/"

Mingfa Ma | 16 Mar 2013 13:05
Favicon

RE: cannot find -ltinfo

 

 

From: Mingfa Ma
Sent: 16 March 2013 11:52
To: 't2 <at> t2-project.org'
Subject: cannot find -ltinfo

 

Hi,

 

I am trying to build a live cd with T2 (svn co http://svn.exactcode.de/t2/trunk t2-trunk). Got an error when building base/dialog, it complained “cannot find -ltinfo”. How can I resolve it?

 

Many thanks,

 

Mike

 

== 11:14:48 =[1]=> Building base/dialog [1.1-20100428 9.0-trunk].

-> Parallel build using 2 jobs enabled.

-> Reading package config: package/base/dialog/dialog.conf

-> Preparing build in src.dialog.system.20130316.111444.22047.ubuntu

-> Building. Writing output to $root/var/adm/logs/1-dialog.out

!> i486-t2-linux-gnu-gcc -g -O2  -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64  -I/usr/include/ncursesw -DHAVE_CONFIG_H -I. -I. -DLOCALEDIR="/usr/share/locale" -c dialog.c

!> i486-t2-linux-gnu-ar -cr libdialog.a trace.o rc.o calendar.o fselect.o timebox.o formbox.o guage.o pause.o progressbox.o tailbox.o mixedform.o mixedgauge.o arrows.o buttons.o checklist.o columns ..

!> i486-t2-linux-gnu-ranlib libdialog.a

!> i486-t2-linux-gnu-gcc -o dialog dialog.o -L. -ldialog  -lncursesw -ltinfo -lm

!> /home/mingfa/work/t2-trunk/build/system-9.0-trunk-generic-x86-i486-linux/TOOLCHAIN/tools.cross/crosscc/../lib/gcc/i486-t2-linux-gnu/4.7.2/../../../../i486-t2-linux-gnu/bin/ld: cannot find -ltinfo

!> collect2: error: ld returned 1 exit status

!> Due to previous errors, no 1-dialog.log file!

!> (Try enabling xtrace in the config to track an error inside the build system.)

== 03/16/13 11:16:18 =[1]=> Aborted building package dialog.

-> Unmounting loop mounts ...

<div><div class="WordSection1">
<p class="MsoNormal"><span><p>&nbsp;</p></span></p>
<p class="MsoNormal"><span><p>&nbsp;</p></span></p>
<div><div><p class="MsoNormal"><span lang="EN-US">From:</span><span lang="EN-US"> Mingfa Ma <br>Sent: 16 March 2013 11:52<br>To: 't2 <at> t2-project.org'<br>Subject: cannot find -ltinfo<p></p></span></p></div></div>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal"><span>Hi,<p></p></span></p>
<p class="MsoNormal"><span><p>&nbsp;</p></span></p>
<p class="MsoNormal"><span>I am trying to build a live cd with T2 (</span><span>svn co <a href="http://svn.exactcode.de/t2/trunk">http://svn.exactcode.de/t2/trunk</a> t2-trunk</span><span>). Got an error when building base/dialog, it complained &ldquo;cannot find -ltinfo&rdquo;. How can I resolve it?<p></p></span></p>
<p class="MsoNormal"><span><p>&nbsp;</p></span></p>
<p class="MsoNormal"><span>Many thanks,<p></p></span></p>
<p class="MsoNormal"><span><p>&nbsp;</p></span></p>
<p class="MsoNormal"><span>Mike<p></p></span></p>
<p class="MsoNormal"><span><p>&nbsp;</p></span></p>
<p class="MsoNormal"><span>== 11:14:48 =[1]=&gt; Building base/dialog [1.1-20100428 9.0-trunk].<p></p></span></p>
<p class="MsoNormal"><span>-&gt; Parallel build using 2 jobs enabled.<p></p></span></p>
<p class="MsoNormal"><span>-&gt; Reading package config: package/base/dialog/dialog.conf<p></p></span></p>
<p class="MsoNormal"><span>-&gt; Preparing build in src.dialog.system.20130316.111444.22047.ubuntu<p></p></span></p>
<p class="MsoNormal"><span>-&gt; Building. Writing output to $root/var/adm/logs/1-dialog.out<p></p></span></p>
<p class="MsoNormal"><span>!&gt; i486-t2-linux-gnu-gcc -g -O2&nbsp; -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64&nbsp; -I/usr/include/ncursesw -DHAVE_CONFIG_H -I. -I. -DLOCALEDIR="/usr/share/locale" -c dialog.c<p></p></span></p>
<p class="MsoNormal"><span>!&gt; i486-t2-linux-gnu-ar -cr libdialog.a trace.o rc.o calendar.o fselect.o timebox.o formbox.o guage.o pause.o progressbox.o tailbox.o mixedform.o mixedgauge.o arrows.o buttons.o checklist.o columns ..<p></p></span></p>
<p class="MsoNormal"><span>!&gt; i486-t2-linux-gnu-ranlib libdialog.a<p></p></span></p>
<p class="MsoNormal"><span>!&gt; i486-t2-linux-gnu-gcc -o dialog dialog.o -L. -ldialog&nbsp; -lncursesw -ltinfo -lm<p></p></span></p>
<p class="MsoNormal"><span>!&gt; /home/mingfa/work/t2-trunk/build/system-9.0-trunk-generic-x86-i486-linux/TOOLCHAIN/tools.cross/crosscc/../lib/gcc/i486-t2-linux-gnu/4.7.2/../../../../i486-t2-linux-gnu/bin/ld: cannot find -ltinfo<p></p></span></p>
<p class="MsoNormal"><span>!&gt; collect2: error: ld returned 1 exit status<p></p></span></p>
<p class="MsoNormal"><span>!&gt; Due to previous errors, no 1-dialog.log file!<p></p></span></p>
<p class="MsoNormal"><span>!&gt; (Try enabling xtrace in the config to track an error inside the build system.)<p></p></span></p>
<p class="MsoNormal"><span>== 03/16/13 11:16:18 =[1]=&gt; Aborted building package dialog.<p></p></span></p>
<p class="MsoNormal"><span>-&gt; Unmounting loop mounts ...<p></p></span></p>
</div></div>
giovanni.v | 2 Mar 2013 16:39

Package Busybox write outside top-dir

Cross building Busybox (1.20.2 from trunk) write linuxrc outside top-dir.

> busybox.links' -> `/opt/devel/public/boneos/trunk/build/boneos-raspberrypi-arm-gnueabi-arm1176jzf-s-eglibc-svn.r240
> /usr/doc/busybox/busybox.links'
> Creating file list and doing final adaptions ...
> Created file outside allowed top-level dir: linuxrc

Patch attached.

-- 
TeeBX VoIP communication platform (coming soon)
http://code.google.com/p/teebx/
-----------------------------------------------
Lightweight++ Business Friendly++ Open++
--- busybox-1.20.2/init/init.c.vanilla	2013-03-02 16:45:12.291928523 +0000
+++ busybox-1.20.2/init/init.c	2013-03-02 16:49:32.536291191 +0000
 <at>  <at>  -10,7 +10,7  <at>  <at> 
  */

 //applet:IF_INIT(APPLET(init, BB_DIR_SBIN, BB_SUID_DROP))
-//applet:IF_FEATURE_INITRD(APPLET_ODDNAME(linuxrc, init, BB_DIR_ROOT, BB_SUID_DROP, linuxrc))
+//applet:IF_FEATURE_INITRD(APPLET_ODDNAME(linuxrc, init, BB_DIR_SBIN, BB_SUID_DROP, linuxrc))

 //kbuild:lib-$(CONFIG_INIT) += init.o

--- busybox-1.20.2/init/init.c.vanilla	2013-03-02 16:45:12.291928523 +0000
+++ busybox-1.20.2/init/init.c	2013-03-02 16:49:32.536291191 +0000
 <at>  <at>  -10,7 +10,7  <at>  <at> 
  */

 //applet:IF_INIT(APPLET(init, BB_DIR_SBIN, BB_SUID_DROP))
-//applet:IF_FEATURE_INITRD(APPLET_ODDNAME(linuxrc, init, BB_DIR_ROOT, BB_SUID_DROP, linuxrc))
+//applet:IF_FEATURE_INITRD(APPLET_ODDNAME(linuxrc, init, BB_DIR_SBIN, BB_SUID_DROP, linuxrc))

 //kbuild:lib-$(CONFIG_INIT) += init.o

giovanni.v | 29 Dec 2012 20:08

Eglibc package update, customization ready

I update the eglibc package in my build tree to version 2.13, patch 
attached.
Also made a litte modification to the eglibc.conf script to allow the 
libc customization via a target specific configuration file. See 
eglibc_option-groups.config.sample for details.

All patches are also rebased against 2.13.

Sure the eglibc32 compatibility library needs also to be aligned but I'm 
unable to test a 64 bit target at this time.

To every one... Happy new year!!

-- 
TeeBX VoIP communication platform (coming soon)
http://code.google.com/p/teebx/
-----------------------------------------------
Lightweight++ Business Friendly++ Open++
diff -ruN package/base/eglibc-t2-trunk-r41211//eglibc-2.10.1-fixes.patch package/base/eglibc//eglibc-2.10.1-fixes.patch
--- package/base/eglibc-t2-trunk-r41211//eglibc-2.10.1-fixes.patch	2010-01-30
21:05:39.000000000 +0000
+++ package/base/eglibc//eglibc-2.10.1-fixes.patch	1970-01-01 00:00:00.000000000 +0000
 <at>  <at>  -1,67 +0,0  <at>  <at> 
-# --- T2-COPYRIGHT-NOTE-BEGIN ---
-# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
-# 
-# T2 SDE: package/.../eglibc/eglibc-2.10.1-fixes.patch
-# Copyright (C) 2009 The T2 SDE Project
-# 
-# More information can be found in the files COPYING and README.
-# 
-# This patch file is dual-licensed. It is available under the license the
-# patched project is licensed under, as long as it is an OpenSource license
-# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
-# of the GNU General Public License as published by the Free Software
-# Foundation; either version 2 of the License, or (at your option) any later
-# version.
-# --- T2-COPYRIGHT-NOTE-END ---
-
-Submitted By: Jim Gifford (jim at cross-lfs dot org)
-Date: 07-27-2009
-Initial Package Version: 2.10.1
-Origin: Upstream
-Upstream Status: Applied
-Description: These are fixes eglibc-2.10.1, and should be
-             rechecked periodically.
-
-diff -Naur libc.orig/elf/ldd.bash.in libc/elf/ldd.bash.in
---- libc.orig/elf/ldd.bash.in	2009-02-13 18:31:14.000000000 +0000
-+++ libc/elf/ldd.bash.in	2009-06-07 23:26:18.000000000 +0000
- <at>  <at>  -1,4 +1,4  <at>  <at> 
--#!  <at> BASH <at> 
-+#! /bin/bash
- # Copyright (C) 1996-2008, 2009 Free Software Foundation, Inc.
- # This file is part of the GNU C Library.
- 
-diff -Naur libc.orig/sunrpc/Makefile libc/sunrpc/Makefile
---- libc.orig/sunrpc/Makefile	2008-04-25 11:12:05.000000000 +0000
-+++ libc/sunrpc/Makefile	2009-06-07 23:26:18.000000000 +0000
- <at>  <at>  -144,11 +144,11  <at>  <at> 
- 	$(+link)
- 
- $(addprefix $(objpfx)cross-,$(rpcgen-objs)): $(objpfx)cross-%.o: %.c
--	gcc $< -c -D_RPC_THREAD_SAFE_ -D_CROSS_RPCGEN_ \
-+	$(BUILD_CC) $< -c -D_RPC_THREAD_SAFE_ -D_CROSS_RPCGEN_ \
- 		$(OUTPUT_OPTION) $(compile-mkdep-flags)
- 
- $(objpfx)cross-rpcgen: $(addprefix $(objpfx)cross-,$(rpcgen-objs))
--	gcc $^ -o $ <at> 
-+	$(BUILD_CC) $^ -o $ <at> 
- 
- # This makes sure -DNOT_IN_libc is passed for all these modules.
- cpp-srcs-left := $(rpcgen-objs:.o=.c)
-diff -Naur libc.orig/timezone/Makefile libc/timezone/Makefile
---- libc.orig/timezone/Makefile	2009-03-03 13:14:09.000000000 +0000
-+++ libc/timezone/Makefile	2009-06-07 23:26:18.000000000 +0000
- <at>  <at>  -181,11 +181,11  <at>  <at> 
- $(objpfx)zic: $(addprefix $(objpfx), $(zic-objs))
- 
- $(addprefix $(objpfx)cross-,$(zic-objs)): $(objpfx)cross-%.o: %.c
--	gcc $< -c $(OUTPUT_OPTION) $(CFLAGS-$*.c) $(CPPFLAGS-$*) \
-+	$(BUILD_CC) $< -c $(OUTPUT_OPTION) $(CFLAGS-$*.c) $(CPPFLAGS-$*) \
- 		-DCROSS_ZIC $(compile-mkdep-flags)
- 
- $(objpfx)cross-zic: $(addprefix $(objpfx)cross-,$(zic-objs))
--	gcc $(addprefix $(objpfx)cross-,$(zic-objs)) -o $ <at> 
-+	$(BUILD_CC) $(addprefix $(objpfx)cross-,$(zic-objs)) -o $ <at> 
- 
- tz-cflags = -DTZDIR='"$(zonedir)"' \
- 	    -DTZDEFAULT='"$(localtime-file)"' \
diff -ruN package/base/eglibc-t2-trunk-r41211//eglibc-2.13-fixes.patch package/base/eglibc//eglibc-2.13-fixes.patch
--- package/base/eglibc-t2-trunk-r41211//eglibc-2.13-fixes.patch	1970-01-01
00:00:00.000000000 +0000
+++ package/base/eglibc//eglibc-2.13-fixes.patch	2012-12-25 22:11:53.000000000 +0000
 <at>  <at>  -0,0 +1,67  <at>  <at> 
+# --- T2-COPYRIGHT-NOTE-BEGIN ---
+# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
+# 
+# T2 SDE: package/.../eglibc/eglibc-2.10.1-fixes.patch
+# Copyright (C) 2009 - 2012 The T2 SDE Project
+# 
+# More information can be found in the files COPYING and README.
+# 
+# This patch file is dual-licensed. It is available under the license the
+# patched project is licensed under, as long as it is an OpenSource license
+# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
+# of the GNU General Public License as published by the Free Software
+# Foundation; either version 2 of the License, or (at your option) any later
+# version.
+# --- T2-COPYRIGHT-NOTE-END ---
+
+Submitted By: Jim Gifford (jim at cross-lfs dot org)
+Date: 07-27-2009
+Initial Package Version: 2.10.1
+Origin: Upstream
+Upstream Status: Applied
+Description: These are fixes eglibc-2.10.1, and should be
+             rechecked periodically.
+
+--- libc/elf/ldd.bash.in.orig	2000-01-01 00:00:00.000000000 +0000
++++ libc/elf/ldd.bash.in	2012-12-24 21:23:06.596205363 +0000
+ <at>  <at>  -1,4 +1,4  <at>  <at> 
+-#!  <at> BASH <at> 
++#! /bin/bash
+ # Copyright (C) 1996-2008, 2009, 2010, 2011 Free Software Foundation, Inc.
+ # This file is part of the GNU C Library.
+ 
+
+--- libc/sunrpc/Makefile.orig	2012-12-24 21:26:56.080000211 +0000
++++ libc/sunrpc/Makefile	2012-12-24 21:23:06.596205363 +0000
+ <at>  <at>  -144,11 +144,11  <at>  <at> 
+ 	$(+link)
+ 
+ $(addprefix $(objpfx)cross-,$(rpcgen-objs)): $(objpfx)cross-%.o: %.c
+-	gcc $< -c -D_RPC_THREAD_SAFE_ -D_CROSS_RPCGEN_ \
++	$(BUILD_CC) $< -c -D_RPC_THREAD_SAFE_ -D_CROSS_RPCGEN_ \
+ 		$(OUTPUT_OPTION) $(compile-mkdep-flags)
+ 
+ $(objpfx)cross-rpcgen: $(addprefix $(objpfx)cross-,$(rpcgen-objs))
+-	gcc $^ -o $ <at> 
++	$(BUILD_CC) $^ -o $ <at> 
+ 
+ # This makes sure -DNOT_IN_libc is passed for all these modules.
+ cpp-srcs-left := $(rpcgen-objs:.o=.c)
+
+--- libc/timezone/Makefile.orig	2000-01-01 00:00:00.000000000 +0000
++++ libc/timezone/Makefile	2012-12-24 21:23:06.596205363 +0000
+ <at>  <at>  -181,11 +181,11  <at>  <at> 
+ $(objpfx)zic: $(addprefix $(objpfx), $(zic-objs))
+ 
+ $(addprefix $(objpfx)cross-,$(zic-objs)): $(objpfx)cross-%.o: %.c
+-	gcc $< -c $(OUTPUT_OPTION) $(CFLAGS-$*.c) $(CPPFLAGS-$*) \
++	$(BUILD_CC) $< -c $(OUTPUT_OPTION) $(CFLAGS-$*.c) $(CPPFLAGS-$*) \
+ 		-DCROSS_ZIC $(compile-mkdep-flags)
+ 
+ $(objpfx)cross-zic: $(addprefix $(objpfx)cross-,$(zic-objs))
+-	gcc $(addprefix $(objpfx)cross-,$(zic-objs)) -o $ <at> 
++	$(BUILD_CC) $(addprefix $(objpfx)cross-,$(zic-objs)) -o $ <at> 
+ 
+ tz-cflags = -DTZDIR='"$(zonedir)"' \
+ 	    -DTZDEFAULT='"$(localtime-file)"' \
+
diff -ruN package/base/eglibc-t2-trunk-r41211//eglibc.conf package/base/eglibc//eglibc.conf
--- package/base/eglibc-t2-trunk-r41211//eglibc.conf	2012-12-28 10:55:46.000000000 +0000
+++ package/base/eglibc//eglibc.conf	2012-12-29 18:44:19.000000000 +0000
 <at>  <at>  -84,7 +84,7  <at>  <at> 
 var_append makeopt " " "slibdir=/\$slibdir"
 var_append makeinstopt " " "slibdir=/\$slibdir install_root=\$root"

-glibc_prepatch() {
+eglibc_prepatch() {
 	mkdir -p $root$includedir/{gnu,bits}

 	if [ $pkg == eglibc ]; then
 <at>  <at>  -100,7 +100,13  <at>  <at> 
 	fi
 }

-glibc_postmake()
+eglibc_preconf() {
+	if [ -f "$base/target/$target/eglibc_option-groups.config" ] ; then
+		cp $base/target/$target/eglibc_option-groups.config $builddir/eglibc-$ver/libc/objdir/option-groups.config
+	fi
+}
+
+eglibc_postmake()
 {
 	if atstage toolchain; then
 		cp -v ../include/features.h $root$includedir
 <at>  <at>  -192,5 +198,6  <at>  <at> 

 [[ $libdir = *lib64 ]] && slibdir=lib64 || slibdir=lib

-hook_add prepatch 3 "glibc_prepatch"
-hook_add postmake 5 "glibc_postmake"
+hook_add prepatch 3 "eglibc_prepatch"
+hook_add preconf 5 "eglibc_preconf"
+hook_add postmake 5 "eglibc_postmake"
diff -ruN package/base/eglibc-t2-trunk-r41211//eglibc.desc package/base/eglibc//eglibc.desc
--- package/base/eglibc-t2-trunk-r41211//eglibc.desc	2009-11-11 20:41:17.000000000 +0000
+++ package/base/eglibc//eglibc.desc	2012-12-29 01:01:24.000000000 +0000
 <at>  <at>  -39,7 +39,7  <at>  <at> 

 [L] GPL
 [S] Stable
-[V] 2_10-r9124
+[V] 2_13
 [P] O 01---5---9 101.600

-[D] X eglibc-2_10-r9124.tar.bz2 svn://svn.eglibc.org/branches/eglibc-2_10 eglibc-2_10 -r 9124
+[D] X eglibc-2_13-r15871.tar.bz2 svn://svn.eglibc.org/branches/eglibc-2_13 eglibc-2_13 -r 15871
diff -ruN package/base/eglibc-t2-trunk-r41211//eglibc_option-groups.config.sample package/base/eglibc//eglibc_option-groups.config.sample
--- package/base/eglibc-t2-trunk-r41211//eglibc_option-groups.config.sample	1970-01-01
00:00:00.000000000 +0000
+++ package/base/eglibc//eglibc_option-groups.config.sample	2012-12-29 18:13:51.000000000 +0000
 <at>  <at>  -0,0 +1,49  <at>  <at> 
+# This file sets default custom values for the eglibc option group variables.
+# See option-groups.def in the libc source dir for a description
+# of each option group.
+#
+# This file need only refer to those options whose default settings
+# are to be changed.
+# Note that all options are listed here only for reference.
+#
+# Put this file file into the target directory then rename it to
+# eglibc_option-groups.config to customize the eglibc build.
+#
+OPTION_EGLIBC_ADVANCED_INET6 = y
+OPTION_EGLIBC_BACKTRACE = y
+OPTION_EGLIBC_BIG_MACROS = y
+OPTION_EGLIBC_BSD = y
+OPTION_EGLIBC_CXX_TESTS = y
+OPTION_EGLIBC_CATGETS = y
+OPTION_EGLIBC_CHARSETS = n
+OPTION_EGLIBC_CRYPT = y
+OPTION_EGLIBC_CRYPT_UFC = y
+OPTION_EGLIBC_DB_ALIASES = n
+OPTION_EGLIBC_ENVZ = y
+OPTION_EGLIBC_FCVT = y
+OPTION_EGLIBC_FMTMSG = y
+OPTION_EGLIBC_FSTAB = y
+OPTION_EGLIBC_FTRAVERSE = y
+OPTION_EGLIBC_GETLOGIN = y
+OPTION_EGLIBC_IDN = y
+OPTION_EGLIBC_INET = y
+OPTION_EGLIBC_INET_ANL = y
+OPTION_EGLIBC_LIBM = y
+OPTION_EGLIBC_LIBM_BIG = n
+OPTION_EGLIBC_LOCALES = n
+OPTION_EGLIBC_LOCALE_CODE = y
+OPTION_EGLIBC_MEMUSAGE = y
+OPTION_EGLIBC_NIS = y
+OPTION_EGLIBC_NSSWITCH = y
+OPTION_EGLIBC_RCMD = y
+OPTION_EGLIBC_RTLD_DEBUG = y
+OPTION_EGLIBC_SPAWN = y
+OPTION_EGLIBC_STREAMS = y
+OPTION_EGLIBC_SUNRPC = y
+OPTION_EGLIBC_UTMP = y
+OPTION_EGLIBC_UTMPX = y
+OPTION_EGLIBC_WORDEXP = y
+OPTION_POSIX_C_LANG_WIDE_CHAR = y
+OPTION_POSIX_REGEXP = y
+OPTION_POSIX_REGEXP_GLIBC = y
+OPTION_POSIX_WIDE_CHAR_DEVICE_IO = y
diff -ruN package/base/eglibc-t2-trunk-r41211//fl_wrapper_testfix.patch package/base/eglibc//fl_wrapper_testfix.patch
--- package/base/eglibc-t2-trunk-r41211//fl_wrapper_testfix.patch	2010-01-30
21:05:39.000000000 +0000
+++ package/base/eglibc//fl_wrapper_testfix.patch	2012-12-25 19:42:20.000000000 +0000
 <at>  <at>  -2,7 +2,7  <at>  <at> 
 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
 # 
 # T2 SDE: package/.../eglibc/fl_wrapper_testfix.patch
-# Copyright (C) 2004 - 2007 The T2 SDE Project
+# Copyright (C) 2004 - 2012 The T2 SDE Project
 # 
 # More information can be found in the files COPYING and README.
 # 
 <at>  <at>  -14,8 +14,8  <at>  <at> 
 # version.
 # --- T2-COPYRIGHT-NOTE-END ---

---- ./scripts/test-installation.pl.gv	Fri Nov 15 13:20:48 2002
-+++ ./scripts/test-installation.pl	Fri Nov 15 13:21:07 2002
+--- libc/scripts/test-installation.pl.orig	2000-01-01 00:00:00.000000000 +0000
++++ libc/scripts/test-installation.pl	2012-12-24 21:23:06.604011225 +0000
  <at>  <at>  -156,6 +156,7  <at>  <at> 
  open LDD, "ldd /tmp/test-prg$$ |"
    or die ("Couldn't execute ldd");
 <at>  <at>  -24,3 +24,4  <at>  <at> 
    if (/^\s*lib/) {
      ($name, $version1, $version2) =
        /^\s*lib(\w*)\.so\.([0-9\.]*)\s*=>.*\.so\.([0-9\.]*)/;
+
diff -ruN package/base/eglibc-t2-trunk-r41211//gcc_eh.patch.cross package/base/eglibc//gcc_eh.patch.cross
--- package/base/eglibc-t2-trunk-r41211//gcc_eh.patch.cross	2010-01-30 21:05:39.000000000 +0000
+++ package/base/eglibc//gcc_eh.patch.cross	2012-12-25 19:42:43.000000000 +0000
 <at>  <at>  -2,7 +2,7  <at>  <at> 
 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
 # 
 # T2 SDE: package/.../eglibc/gcc_eh.patch.cross
-# Copyright (C) 2004 - 2007 The T2 SDE Project
+# Copyright (C) 2004 - 2012 The T2 SDE Project
 # 
 # More information can be found in the files COPYING and README.
 # 
 <at>  <at>  -20,9 +20,9  <at>  <at> 

   - Rene Rebe <rene <at> exactcode.de>

---- libc/Makeconfig.orig	2004-12-31 20:33:44.918457704 +0100
-+++ libc/Makeconfig	2004-12-31 20:55:54.452337832 +0100
- <at>  <at>  -514,12 +514,12  <at>  <at> 
+--- libc/Makeconfig.orig	2000-01-01 00:00:00.000000000 +0000
++++ libc/Makeconfig	2012-12-24 21:23:06.620004401 +0000
+ <at>  <at>  -547,12 +547,12  <at>  <at> 
    libunwind = -lunwind
  endif
  ifneq ($(have-as-needed),yes)
 <at>  <at>  -37,3 +37,4  <at>  <at> 
  libc.so-gnulib := -lgcc
  endif
  ifeq ($(elf),yes)
+
diff -ruN package/base/eglibc-t2-trunk-r41211//ldconfig-glob.patch package/base/eglibc//ldconfig-glob.patch
--- package/base/eglibc-t2-trunk-r41211//ldconfig-glob.patch	2010-01-30 21:05:39.000000000 +0000
+++ package/base/eglibc//ldconfig-glob.patch	2012-12-25 19:43:11.000000000 +0000
 <at>  <at>  -2,7 +2,7  <at>  <at> 
 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
 # 
 # T2 SDE: package/.../eglibc/ldconfig-glob.patch
-# Copyright (C) 2004 - 2007 The T2 SDE Project
+# Copyright (C) 2004 - 2012 The T2 SDE Project
 # 
 # More information can be found in the files COPYING and README.
 # 
 <at>  <at>  -19,9 +19,9  <at>  <at> 

   - Valentin Ziegler <valentin <at> exactcode.de>

---- ./elf/ldconfig.c.orig	2004-09-14 13:28:34.000000000 +0200
-+++ ./elf/ldconfig.c	2004-09-14 14:19:07.000000000 +0200
- <at>  <at>  -359,21 +359,57  <at>  <at> 
+--- libc/elf/ldconfig.c.orig	2000-01-01 00:00:00.000000000 +0000
++++ libc/elf/ldconfig.c	2012-12-24 21:23:06.608203236 +0000
+ <at>  <at>  -400,21 +400,57  <at>  <at> 
    if (opt_chroot)
      path = chroot_canon (opt_chroot, path);

diff -ruN package/base/eglibc-t2-trunk-r41211//no-binutils-powerpc.patch.cross package/base/eglibc//no-binutils-powerpc.patch.cross
--- package/base/eglibc-t2-trunk-r41211//no-binutils-powerpc.patch.cross	2010-01-30
21:05:39.000000000 +0000
+++ package/base/eglibc//no-binutils-powerpc.patch.cross	2012-12-25 19:43:38.000000000 +0000
 <at>  <at>  -2,7 +2,7  <at>  <at> 
 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
 # 
 # T2 SDE: package/.../eglibc/no-binutils-powerpc.patch.cross
-# Copyright (C) 2004 - 2007 The T2 SDE Project
+# Copyright (C) 2004 - 2012 The T2 SDE Project
 # 
 # More information can be found in the files COPYING and README.
 # 
 <at>  <at>  -19,14 +19,14  <at>  <at> 

   - Rene Rebe <rene <at> exactcode.de>

---- libc/sysdeps/powerpc/configure.orig	2004-10-29 16:13:54.446333079 +0200
-+++ libc/sysdeps/powerpc/configure	2004-10-29 16:18:34.546713844 +0200
+--- libc/sysdeps/powerpc/configure.orig	2000-01-01 00:00:00.000000000 +0000
++++ libc/sysdeps/powerpc/configure	2012-12-24 21:23:06.624193547 +0000
  <at>  <at>  -25,7 +25,7  <at>  <at> 
  fi
- echo "$as_me:$LINENO: result: $libc_cv_ppc_machine" >&5
- echo "${ECHO_T}$libc_cv_ppc_machine" >&6
+ { $as_echo "$as_me:$LINENO: result: $libc_cv_ppc_machine" >&5
+ $as_echo "$libc_cv_ppc_machine" >&6; }
 -if test $libc_cv_ppc_machine != yes; then
 +if false ; then
-   { { echo "$as_me:$LINENO: error:
+   { { $as_echo "$as_me:$LINENO: error:
  *** A binutils version which can handle
  ***    .machine \"altivec\"
diff -ruN package/base/eglibc-t2-trunk-r41211//ppc-header.patch.cross0 package/base/eglibc//ppc-header.patch.cross0
--- package/base/eglibc-t2-trunk-r41211//ppc-header.patch.cross0	2010-01-30
21:05:39.000000000 +0000
+++ package/base/eglibc//ppc-header.patch.cross0	2012-12-25 22:48:47.000000000 +0000
 <at>  <at>  -18,34 +18,34  <at>  <at> 

   - Rene Rebe <rene <at> exactcode.de>

---- glibc-20060605/sysdeps/unix/sysv/linux/powerpc/configure.vanilla	2006-09-28
16:00:39.000000000 +0200
-+++ glibc-20060605/sysdeps/unix/sysv/linux/powerpc/configure	2006-09-28 16:00:50.000000000 +0200
- <at>  <at>  -55,7 +55,7  <at>  <at> 
-   echo "$as_me: failed program was:" >&5
+--- libc/sysdeps/unix/sysv/linux/powerpc/configure.orig	2000-01-01 00:00:00.000000000 +0000
++++ libc/sysdeps/unix/sysv/linux/powerpc/configure	2012-12-26 00:36:37.852844114 +0000
+ <at>  <at>  -51,7 +51,7  <at>  <at> 
+   $as_echo "$as_me: failed program was:" >&5
  sed 's/^/| /' conftest.$ac_ext >&5

--libc_cv_mlong_double_128ibm=no
-+libc_cv_mlong_double_128ibm=yes
+-	libc_cv_mlong_double_128ibm=no
++	libc_cv_mlong_double_128ibm=yes
  fi
- rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
- CFLAGS="$save_CFLAGS"
- <at>  <at>  -117,7 +117,7  <at>  <at> 
-   echo "$as_me: failed program was:" >&5
+ 
+ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ <at>  <at>  -110,7 +110,7  <at>  <at> 
+   $as_echo "$as_me: failed program was:" >&5
  sed 's/^/| /' conftest.$ac_ext >&5

--libc_cv_mabi_ibmlongdouble=no
-+libc_cv_mabi_ibmlongdouble=yes
+-	libc_cv_mabi_ibmlongdouble=no
++	libc_cv_mabi_ibmlongdouble=yes
  fi
- rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
-   CFLAGS="$save_CFLAGS"
---- glibc-20060605/sysdeps/ieee754/ldbl-opt/configure.vanilla	2006-09-28 16:09:06.000000000 +0200
-+++ glibc-20060605/sysdeps/ieee754/ldbl-opt/configure	2006-09-28 16:09:14.000000000 +0200
- <at>  <at>  -55,7 +55,7  <at>  <at> 
-   echo "$as_me: failed program was:" >&5
+ 
+ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+--- libc/sysdeps/ieee754/ldbl-opt/configure.orig	2000-01-01 00:00:00.000000000 +0000
++++ libc/sysdeps/ieee754/ldbl-opt/configure	2012-12-26 00:39:50.300079337 +0000
+ <at>  <at>  -51,7 +51,7  <at>  <at> 
+   $as_echo "$as_me: failed program was:" >&5
  sed 's/^/| /' conftest.$ac_ext >&5

--libc_cv_mlong_double_128=no
-+libc_cv_mlong_double_128=yes
+-	libc_cv_mlong_double_128=no
++	libc_cv_mlong_double_128=yes
  fi
- rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
- CFLAGS="$save_CFLAGS"
+ 
+ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
diff -ruN package/base/eglibc-t2-trunk-r41211//x86-i686.patch package/base/eglibc//x86-i686.patch
--- package/base/eglibc-t2-trunk-r41211//x86-i686.patch	2010-01-30 21:05:39.000000000 +0000
+++ package/base/eglibc//x86-i686.patch	2012-12-25 19:44:49.000000000 +0000
 <at>  <at>  -2,7 +2,7  <at>  <at> 
 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
 # 
 # T2 SDE: package/.../eglibc/x86-i686.patch
-# Copyright (C) 2004 - 2007 The T2 SDE Project
+# Copyright (C) 2004 - 2012 The T2 SDE Project
 # 
 # More information can be found in the files COPYING and README.
 # 
 <at>  <at>  -19,16 +19,17  <at>  <at> 

   - Rene Rebe <rene <at> exactcode.de>

---- glibc-20050919/csu/defs.awk.vanilla	2005-11-03 13:16:56.000000000 +0100
-+++ glibc-20050919/csu/defs.awk	2005-11-03 13:17:10.000000000 +0100
+--- libc/csu/defs.awk.orig	2000-01-01 00:00:00.000000000 +0000
++++ libc/csu/defs.awk	2012-12-24 21:23:06.612034400 +0000
  <at>  <at>  -24,4 +24,5  <at>  <at> 

      print "#include <libc-symbols.h>";
      print "weak_extern (__gmon_start__)";
 +    print "#undef __i686";
  }
---- glibc-20050919/sysdeps/i386/bp-asm.h.vanilla	2005-11-03 14:27:22.000000000 +0100
-+++ glibc-20050919/sysdeps/i386/bp-asm.h	2005-11-03 14:27:39.000000000 +0100
+
+--- libc/sysdeps/i386/bp-asm.h.orig	2000-01-01 00:00:00.000000000 +0000
++++ libc/sysdeps/i386/bp-asm.h	2012-12-24 21:23:06.612034400 +0000
  <at>  <at>  -22,6 +22,8  <at>  <at> 
  #ifndef _bp_asm_h_
  # define _bp_asm_h_ 1
diff -ruN package/base/eglibc-t2-trunk-r41211//eglibc-2.10.1-fixes.patch package/base/eglibc//eglibc-2.10.1-fixes.patch
--- package/base/eglibc-t2-trunk-r41211//eglibc-2.10.1-fixes.patch	2010-01-30
21:05:39.000000000 +0000
+++ package/base/eglibc//eglibc-2.10.1-fixes.patch	1970-01-01 00:00:00.000000000 +0000
 <at>  <at>  -1,67 +0,0  <at>  <at> 
-# --- T2-COPYRIGHT-NOTE-BEGIN ---
-# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
-# 
-# T2 SDE: package/.../eglibc/eglibc-2.10.1-fixes.patch
-# Copyright (C) 2009 The T2 SDE Project
-# 
-# More information can be found in the files COPYING and README.
-# 
-# This patch file is dual-licensed. It is available under the license the
-# patched project is licensed under, as long as it is an OpenSource license
-# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
-# of the GNU General Public License as published by the Free Software
-# Foundation; either version 2 of the License, or (at your option) any later
-# version.
-# --- T2-COPYRIGHT-NOTE-END ---
-
-Submitted By: Jim Gifford (jim at cross-lfs dot org)
-Date: 07-27-2009
-Initial Package Version: 2.10.1
-Origin: Upstream
-Upstream Status: Applied
-Description: These are fixes eglibc-2.10.1, and should be
-             rechecked periodically.
-
-diff -Naur libc.orig/elf/ldd.bash.in libc/elf/ldd.bash.in
---- libc.orig/elf/ldd.bash.in	2009-02-13 18:31:14.000000000 +0000
-+++ libc/elf/ldd.bash.in	2009-06-07 23:26:18.000000000 +0000
- <at>  <at>  -1,4 +1,4  <at>  <at> 
--#!  <at> BASH <at> 
-+#! /bin/bash
- # Copyright (C) 1996-2008, 2009 Free Software Foundation, Inc.
- # This file is part of the GNU C Library.
- 
-diff -Naur libc.orig/sunrpc/Makefile libc/sunrpc/Makefile
---- libc.orig/sunrpc/Makefile	2008-04-25 11:12:05.000000000 +0000
-+++ libc/sunrpc/Makefile	2009-06-07 23:26:18.000000000 +0000
- <at>  <at>  -144,11 +144,11  <at>  <at> 
- 	$(+link)
- 
- $(addprefix $(objpfx)cross-,$(rpcgen-objs)): $(objpfx)cross-%.o: %.c
--	gcc $< -c -D_RPC_THREAD_SAFE_ -D_CROSS_RPCGEN_ \
-+	$(BUILD_CC) $< -c -D_RPC_THREAD_SAFE_ -D_CROSS_RPCGEN_ \
- 		$(OUTPUT_OPTION) $(compile-mkdep-flags)
- 
- $(objpfx)cross-rpcgen: $(addprefix $(objpfx)cross-,$(rpcgen-objs))
--	gcc $^ -o $ <at> 
-+	$(BUILD_CC) $^ -o $ <at> 
- 
- # This makes sure -DNOT_IN_libc is passed for all these modules.
- cpp-srcs-left := $(rpcgen-objs:.o=.c)
-diff -Naur libc.orig/timezone/Makefile libc/timezone/Makefile
---- libc.orig/timezone/Makefile	2009-03-03 13:14:09.000000000 +0000
-+++ libc/timezone/Makefile	2009-06-07 23:26:18.000000000 +0000
- <at>  <at>  -181,11 +181,11  <at>  <at> 
- $(objpfx)zic: $(addprefix $(objpfx), $(zic-objs))
- 
- $(addprefix $(objpfx)cross-,$(zic-objs)): $(objpfx)cross-%.o: %.c
--	gcc $< -c $(OUTPUT_OPTION) $(CFLAGS-$*.c) $(CPPFLAGS-$*) \
-+	$(BUILD_CC) $< -c $(OUTPUT_OPTION) $(CFLAGS-$*.c) $(CPPFLAGS-$*) \
- 		-DCROSS_ZIC $(compile-mkdep-flags)
- 
- $(objpfx)cross-zic: $(addprefix $(objpfx)cross-,$(zic-objs))
--	gcc $(addprefix $(objpfx)cross-,$(zic-objs)) -o $ <at> 
-+	$(BUILD_CC) $(addprefix $(objpfx)cross-,$(zic-objs)) -o $ <at> 
- 
- tz-cflags = -DTZDIR='"$(zonedir)"' \
- 	    -DTZDEFAULT='"$(localtime-file)"' \
diff -ruN package/base/eglibc-t2-trunk-r41211//eglibc-2.13-fixes.patch package/base/eglibc//eglibc-2.13-fixes.patch
--- package/base/eglibc-t2-trunk-r41211//eglibc-2.13-fixes.patch	1970-01-01
00:00:00.000000000 +0000
+++ package/base/eglibc//eglibc-2.13-fixes.patch	2012-12-25 22:11:53.000000000 +0000
 <at>  <at>  -0,0 +1,67  <at>  <at> 
+# --- T2-COPYRIGHT-NOTE-BEGIN ---
+# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
+# 
+# T2 SDE: package/.../eglibc/eglibc-2.10.1-fixes.patch
+# Copyright (C) 2009 - 2012 The T2 SDE Project
+# 
+# More information can be found in the files COPYING and README.
+# 
+# This patch file is dual-licensed. It is available under the license the
+# patched project is licensed under, as long as it is an OpenSource license
+# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
+# of the GNU General Public License as published by the Free Software
+# Foundation; either version 2 of the License, or (at your option) any later
+# version.
+# --- T2-COPYRIGHT-NOTE-END ---
+
+Submitted By: Jim Gifford (jim at cross-lfs dot org)
+Date: 07-27-2009
+Initial Package Version: 2.10.1
+Origin: Upstream
+Upstream Status: Applied
+Description: These are fixes eglibc-2.10.1, and should be
+             rechecked periodically.
+
+--- libc/elf/ldd.bash.in.orig	2000-01-01 00:00:00.000000000 +0000
++++ libc/elf/ldd.bash.in	2012-12-24 21:23:06.596205363 +0000
+ <at>  <at>  -1,4 +1,4  <at>  <at> 
+-#!  <at> BASH <at> 
++#! /bin/bash
+ # Copyright (C) 1996-2008, 2009, 2010, 2011 Free Software Foundation, Inc.
+ # This file is part of the GNU C Library.
+ 
+
+--- libc/sunrpc/Makefile.orig	2012-12-24 21:26:56.080000211 +0000
++++ libc/sunrpc/Makefile	2012-12-24 21:23:06.596205363 +0000
+ <at>  <at>  -144,11 +144,11  <at>  <at> 
+ 	$(+link)
+ 
+ $(addprefix $(objpfx)cross-,$(rpcgen-objs)): $(objpfx)cross-%.o: %.c
+-	gcc $< -c -D_RPC_THREAD_SAFE_ -D_CROSS_RPCGEN_ \
++	$(BUILD_CC) $< -c -D_RPC_THREAD_SAFE_ -D_CROSS_RPCGEN_ \
+ 		$(OUTPUT_OPTION) $(compile-mkdep-flags)
+ 
+ $(objpfx)cross-rpcgen: $(addprefix $(objpfx)cross-,$(rpcgen-objs))
+-	gcc $^ -o $ <at> 
++	$(BUILD_CC) $^ -o $ <at> 
+ 
+ # This makes sure -DNOT_IN_libc is passed for all these modules.
+ cpp-srcs-left := $(rpcgen-objs:.o=.c)
+
+--- libc/timezone/Makefile.orig	2000-01-01 00:00:00.000000000 +0000
++++ libc/timezone/Makefile	2012-12-24 21:23:06.596205363 +0000
+ <at>  <at>  -181,11 +181,11  <at>  <at> 
+ $(objpfx)zic: $(addprefix $(objpfx), $(zic-objs))
+ 
+ $(addprefix $(objpfx)cross-,$(zic-objs)): $(objpfx)cross-%.o: %.c
+-	gcc $< -c $(OUTPUT_OPTION) $(CFLAGS-$*.c) $(CPPFLAGS-$*) \
++	$(BUILD_CC) $< -c $(OUTPUT_OPTION) $(CFLAGS-$*.c) $(CPPFLAGS-$*) \
+ 		-DCROSS_ZIC $(compile-mkdep-flags)
+ 
+ $(objpfx)cross-zic: $(addprefix $(objpfx)cross-,$(zic-objs))
+-	gcc $(addprefix $(objpfx)cross-,$(zic-objs)) -o $ <at> 
++	$(BUILD_CC) $(addprefix $(objpfx)cross-,$(zic-objs)) -o $ <at> 
+ 
+ tz-cflags = -DTZDIR='"$(zonedir)"' \
+ 	    -DTZDEFAULT='"$(localtime-file)"' \
+
diff -ruN package/base/eglibc-t2-trunk-r41211//eglibc.conf package/base/eglibc//eglibc.conf
--- package/base/eglibc-t2-trunk-r41211//eglibc.conf	2012-12-28 10:55:46.000000000 +0000
+++ package/base/eglibc//eglibc.conf	2012-12-29 18:44:19.000000000 +0000
 <at>  <at>  -84,7 +84,7  <at>  <at> 
 var_append makeopt " " "slibdir=/\$slibdir"
 var_append makeinstopt " " "slibdir=/\$slibdir install_root=\$root"

-glibc_prepatch() {
+eglibc_prepatch() {
 	mkdir -p $root$includedir/{gnu,bits}

 	if [ $pkg == eglibc ]; then
 <at>  <at>  -100,7 +100,13  <at>  <at> 
 	fi
 }

-glibc_postmake()
+eglibc_preconf() {
+	if [ -f "$base/target/$target/eglibc_option-groups.config" ] ; then
+		cp $base/target/$target/eglibc_option-groups.config $builddir/eglibc-$ver/libc/objdir/option-groups.config
+	fi
+}
+
+eglibc_postmake()
 {
 	if atstage toolchain; then
 		cp -v ../include/features.h $root$includedir
 <at>  <at>  -192,5 +198,6  <at>  <at> 

 [[ $libdir = *lib64 ]] && slibdir=lib64 || slibdir=lib

-hook_add prepatch 3 "glibc_prepatch"
-hook_add postmake 5 "glibc_postmake"
+hook_add prepatch 3 "eglibc_prepatch"
+hook_add preconf 5 "eglibc_preconf"
+hook_add postmake 5 "eglibc_postmake"
diff -ruN package/base/eglibc-t2-trunk-r41211//eglibc.desc package/base/eglibc//eglibc.desc
--- package/base/eglibc-t2-trunk-r41211//eglibc.desc	2009-11-11 20:41:17.000000000 +0000
+++ package/base/eglibc//eglibc.desc	2012-12-29 01:01:24.000000000 +0000
 <at>  <at>  -39,7 +39,7  <at>  <at> 

 [L] GPL
 [S] Stable
-[V] 2_10-r9124
+[V] 2_13
 [P] O 01---5---9 101.600

-[D] X eglibc-2_10-r9124.tar.bz2 svn://svn.eglibc.org/branches/eglibc-2_10 eglibc-2_10 -r 9124
+[D] X eglibc-2_13-r15871.tar.bz2 svn://svn.eglibc.org/branches/eglibc-2_13 eglibc-2_13 -r 15871
diff -ruN package/base/eglibc-t2-trunk-r41211//eglibc_option-groups.config.sample package/base/eglibc//eglibc_option-groups.config.sample
--- package/base/eglibc-t2-trunk-r41211//eglibc_option-groups.config.sample	1970-01-01
00:00:00.000000000 +0000
+++ package/base/eglibc//eglibc_option-groups.config.sample	2012-12-29 18:13:51.000000000 +0000
 <at>  <at>  -0,0 +1,49  <at>  <at> 
+# This file sets default custom values for the eglibc option group variables.
+# See option-groups.def in the libc source dir for a description
+# of each option group.
+#
+# This file need only refer to those options whose default settings
+# are to be changed.
+# Note that all options are listed here only for reference.
+#
+# Put this file file into the target directory then rename it to
+# eglibc_option-groups.config to customize the eglibc build.
+#
+OPTION_EGLIBC_ADVANCED_INET6 = y
+OPTION_EGLIBC_BACKTRACE = y
+OPTION_EGLIBC_BIG_MACROS = y
+OPTION_EGLIBC_BSD = y
+OPTION_EGLIBC_CXX_TESTS = y
+OPTION_EGLIBC_CATGETS = y
+OPTION_EGLIBC_CHARSETS = n
+OPTION_EGLIBC_CRYPT = y
+OPTION_EGLIBC_CRYPT_UFC = y
+OPTION_EGLIBC_DB_ALIASES = n
+OPTION_EGLIBC_ENVZ = y
+OPTION_EGLIBC_FCVT = y
+OPTION_EGLIBC_FMTMSG = y
+OPTION_EGLIBC_FSTAB = y
+OPTION_EGLIBC_FTRAVERSE = y
+OPTION_EGLIBC_GETLOGIN = y
+OPTION_EGLIBC_IDN = y
+OPTION_EGLIBC_INET = y
+OPTION_EGLIBC_INET_ANL = y
+OPTION_EGLIBC_LIBM = y
+OPTION_EGLIBC_LIBM_BIG = n
+OPTION_EGLIBC_LOCALES = n
+OPTION_EGLIBC_LOCALE_CODE = y
+OPTION_EGLIBC_MEMUSAGE = y
+OPTION_EGLIBC_NIS = y
+OPTION_EGLIBC_NSSWITCH = y
+OPTION_EGLIBC_RCMD = y
+OPTION_EGLIBC_RTLD_DEBUG = y
+OPTION_EGLIBC_SPAWN = y
+OPTION_EGLIBC_STREAMS = y
+OPTION_EGLIBC_SUNRPC = y
+OPTION_EGLIBC_UTMP = y
+OPTION_EGLIBC_UTMPX = y
+OPTION_EGLIBC_WORDEXP = y
+OPTION_POSIX_C_LANG_WIDE_CHAR = y
+OPTION_POSIX_REGEXP = y
+OPTION_POSIX_REGEXP_GLIBC = y
+OPTION_POSIX_WIDE_CHAR_DEVICE_IO = y
diff -ruN package/base/eglibc-t2-trunk-r41211//fl_wrapper_testfix.patch package/base/eglibc//fl_wrapper_testfix.patch
--- package/base/eglibc-t2-trunk-r41211//fl_wrapper_testfix.patch	2010-01-30
21:05:39.000000000 +0000
+++ package/base/eglibc//fl_wrapper_testfix.patch	2012-12-25 19:42:20.000000000 +0000
 <at>  <at>  -2,7 +2,7  <at>  <at> 
 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
 # 
 # T2 SDE: package/.../eglibc/fl_wrapper_testfix.patch
-# Copyright (C) 2004 - 2007 The T2 SDE Project
+# Copyright (C) 2004 - 2012 The T2 SDE Project
 # 
 # More information can be found in the files COPYING and README.
 # 
 <at>  <at>  -14,8 +14,8  <at>  <at> 
 # version.
 # --- T2-COPYRIGHT-NOTE-END ---

---- ./scripts/test-installation.pl.gv	Fri Nov 15 13:20:48 2002
-+++ ./scripts/test-installation.pl	Fri Nov 15 13:21:07 2002
+--- libc/scripts/test-installation.pl.orig	2000-01-01 00:00:00.000000000 +0000
++++ libc/scripts/test-installation.pl	2012-12-24 21:23:06.604011225 +0000
  <at>  <at>  -156,6 +156,7  <at>  <at> 
  open LDD, "ldd /tmp/test-prg$$ |"
    or die ("Couldn't execute ldd");
 <at>  <at>  -24,3 +24,4  <at>  <at> 
    if (/^\s*lib/) {
      ($name, $version1, $version2) =
        /^\s*lib(\w*)\.so\.([0-9\.]*)\s*=>.*\.so\.([0-9\.]*)/;
+
diff -ruN package/base/eglibc-t2-trunk-r41211//gcc_eh.patch.cross package/base/eglibc//gcc_eh.patch.cross
--- package/base/eglibc-t2-trunk-r41211//gcc_eh.patch.cross	2010-01-30 21:05:39.000000000 +0000
+++ package/base/eglibc//gcc_eh.patch.cross	2012-12-25 19:42:43.000000000 +0000
 <at>  <at>  -2,7 +2,7  <at>  <at> 
 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
 # 
 # T2 SDE: package/.../eglibc/gcc_eh.patch.cross
-# Copyright (C) 2004 - 2007 The T2 SDE Project
+# Copyright (C) 2004 - 2012 The T2 SDE Project
 # 
 # More information can be found in the files COPYING and README.
 # 
 <at>  <at>  -20,9 +20,9  <at>  <at> 

   - Rene Rebe <rene <at> exactcode.de>

---- libc/Makeconfig.orig	2004-12-31 20:33:44.918457704 +0100
-+++ libc/Makeconfig	2004-12-31 20:55:54.452337832 +0100
- <at>  <at>  -514,12 +514,12  <at>  <at> 
+--- libc/Makeconfig.orig	2000-01-01 00:00:00.000000000 +0000
++++ libc/Makeconfig	2012-12-24 21:23:06.620004401 +0000
+ <at>  <at>  -547,12 +547,12  <at>  <at> 
    libunwind = -lunwind
  endif
  ifneq ($(have-as-needed),yes)
 <at>  <at>  -37,3 +37,4  <at>  <at> 
  libc.so-gnulib := -lgcc
  endif
  ifeq ($(elf),yes)
+
diff -ruN package/base/eglibc-t2-trunk-r41211//ldconfig-glob.patch package/base/eglibc//ldconfig-glob.patch
--- package/base/eglibc-t2-trunk-r41211//ldconfig-glob.patch	2010-01-30 21:05:39.000000000 +0000
+++ package/base/eglibc//ldconfig-glob.patch	2012-12-25 19:43:11.000000000 +0000
 <at>  <at>  -2,7 +2,7  <at>  <at> 
 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
 # 
 # T2 SDE: package/.../eglibc/ldconfig-glob.patch
-# Copyright (C) 2004 - 2007 The T2 SDE Project
+# Copyright (C) 2004 - 2012 The T2 SDE Project
 # 
 # More information can be found in the files COPYING and README.
 # 
 <at>  <at>  -19,9 +19,9  <at>  <at> 

   - Valentin Ziegler <valentin <at> exactcode.de>

---- ./elf/ldconfig.c.orig	2004-09-14 13:28:34.000000000 +0200
-+++ ./elf/ldconfig.c	2004-09-14 14:19:07.000000000 +0200
- <at>  <at>  -359,21 +359,57  <at>  <at> 
+--- libc/elf/ldconfig.c.orig	2000-01-01 00:00:00.000000000 +0000
++++ libc/elf/ldconfig.c	2012-12-24 21:23:06.608203236 +0000
+ <at>  <at>  -400,21 +400,57  <at>  <at> 
    if (opt_chroot)
      path = chroot_canon (opt_chroot, path);

diff -ruN package/base/eglibc-t2-trunk-r41211//no-binutils-powerpc.patch.cross package/base/eglibc//no-binutils-powerpc.patch.cross
--- package/base/eglibc-t2-trunk-r41211//no-binutils-powerpc.patch.cross	2010-01-30
21:05:39.000000000 +0000
+++ package/base/eglibc//no-binutils-powerpc.patch.cross	2012-12-25 19:43:38.000000000 +0000
 <at>  <at>  -2,7 +2,7  <at>  <at> 
 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
 # 
 # T2 SDE: package/.../eglibc/no-binutils-powerpc.patch.cross
-# Copyright (C) 2004 - 2007 The T2 SDE Project
+# Copyright (C) 2004 - 2012 The T2 SDE Project
 # 
 # More information can be found in the files COPYING and README.
 # 
 <at>  <at>  -19,14 +19,14  <at>  <at> 

   - Rene Rebe <rene <at> exactcode.de>

---- libc/sysdeps/powerpc/configure.orig	2004-10-29 16:13:54.446333079 +0200
-+++ libc/sysdeps/powerpc/configure	2004-10-29 16:18:34.546713844 +0200
+--- libc/sysdeps/powerpc/configure.orig	2000-01-01 00:00:00.000000000 +0000
++++ libc/sysdeps/powerpc/configure	2012-12-24 21:23:06.624193547 +0000
  <at>  <at>  -25,7 +25,7  <at>  <at> 
  fi
- echo "$as_me:$LINENO: result: $libc_cv_ppc_machine" >&5
- echo "${ECHO_T}$libc_cv_ppc_machine" >&6
+ { $as_echo "$as_me:$LINENO: result: $libc_cv_ppc_machine" >&5
+ $as_echo "$libc_cv_ppc_machine" >&6; }
 -if test $libc_cv_ppc_machine != yes; then
 +if false ; then
-   { { echo "$as_me:$LINENO: error:
+   { { $as_echo "$as_me:$LINENO: error:
  *** A binutils version which can handle
  ***    .machine \"altivec\"
diff -ruN package/base/eglibc-t2-trunk-r41211//ppc-header.patch.cross0 package/base/eglibc//ppc-header.patch.cross0
--- package/base/eglibc-t2-trunk-r41211//ppc-header.patch.cross0	2010-01-30
21:05:39.000000000 +0000
+++ package/base/eglibc//ppc-header.patch.cross0	2012-12-25 22:48:47.000000000 +0000
 <at>  <at>  -18,34 +18,34  <at>  <at> 

   - Rene Rebe <rene <at> exactcode.de>

---- glibc-20060605/sysdeps/unix/sysv/linux/powerpc/configure.vanilla	2006-09-28
16:00:39.000000000 +0200
-+++ glibc-20060605/sysdeps/unix/sysv/linux/powerpc/configure	2006-09-28 16:00:50.000000000 +0200
- <at>  <at>  -55,7 +55,7  <at>  <at> 
-   echo "$as_me: failed program was:" >&5
+--- libc/sysdeps/unix/sysv/linux/powerpc/configure.orig	2000-01-01 00:00:00.000000000 +0000
++++ libc/sysdeps/unix/sysv/linux/powerpc/configure	2012-12-26 00:36:37.852844114 +0000
+ <at>  <at>  -51,7 +51,7  <at>  <at> 
+   $as_echo "$as_me: failed program was:" >&5
  sed 's/^/| /' conftest.$ac_ext >&5

--libc_cv_mlong_double_128ibm=no
-+libc_cv_mlong_double_128ibm=yes
+-	libc_cv_mlong_double_128ibm=no
++	libc_cv_mlong_double_128ibm=yes
  fi
- rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
- CFLAGS="$save_CFLAGS"
- <at>  <at>  -117,7 +117,7  <at>  <at> 
-   echo "$as_me: failed program was:" >&5
+ 
+ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ <at>  <at>  -110,7 +110,7  <at>  <at> 
+   $as_echo "$as_me: failed program was:" >&5
  sed 's/^/| /' conftest.$ac_ext >&5

--libc_cv_mabi_ibmlongdouble=no
-+libc_cv_mabi_ibmlongdouble=yes
+-	libc_cv_mabi_ibmlongdouble=no
++	libc_cv_mabi_ibmlongdouble=yes
  fi
- rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
-   CFLAGS="$save_CFLAGS"
---- glibc-20060605/sysdeps/ieee754/ldbl-opt/configure.vanilla	2006-09-28 16:09:06.000000000 +0200
-+++ glibc-20060605/sysdeps/ieee754/ldbl-opt/configure	2006-09-28 16:09:14.000000000 +0200
- <at>  <at>  -55,7 +55,7  <at>  <at> 
-   echo "$as_me: failed program was:" >&5
+ 
+ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+--- libc/sysdeps/ieee754/ldbl-opt/configure.orig	2000-01-01 00:00:00.000000000 +0000
++++ libc/sysdeps/ieee754/ldbl-opt/configure	2012-12-26 00:39:50.300079337 +0000
+ <at>  <at>  -51,7 +51,7  <at>  <at> 
+   $as_echo "$as_me: failed program was:" >&5
  sed 's/^/| /' conftest.$ac_ext >&5

--libc_cv_mlong_double_128=no
-+libc_cv_mlong_double_128=yes
+-	libc_cv_mlong_double_128=no
++	libc_cv_mlong_double_128=yes
  fi
- rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
- CFLAGS="$save_CFLAGS"
+ 
+ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
diff -ruN package/base/eglibc-t2-trunk-r41211//x86-i686.patch package/base/eglibc//x86-i686.patch
--- package/base/eglibc-t2-trunk-r41211//x86-i686.patch	2010-01-30 21:05:39.000000000 +0000
+++ package/base/eglibc//x86-i686.patch	2012-12-25 19:44:49.000000000 +0000
 <at>  <at>  -2,7 +2,7  <at>  <at> 
 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
 # 
 # T2 SDE: package/.../eglibc/x86-i686.patch
-# Copyright (C) 2004 - 2007 The T2 SDE Project
+# Copyright (C) 2004 - 2012 The T2 SDE Project
 # 
 # More information can be found in the files COPYING and README.
 # 
 <at>  <at>  -19,16 +19,17  <at>  <at> 

   - Rene Rebe <rene <at> exactcode.de>

---- glibc-20050919/csu/defs.awk.vanilla	2005-11-03 13:16:56.000000000 +0100
-+++ glibc-20050919/csu/defs.awk	2005-11-03 13:17:10.000000000 +0100
+--- libc/csu/defs.awk.orig	2000-01-01 00:00:00.000000000 +0000
++++ libc/csu/defs.awk	2012-12-24 21:23:06.612034400 +0000
  <at>  <at>  -24,4 +24,5  <at>  <at> 

      print "#include <libc-symbols.h>";
      print "weak_extern (__gmon_start__)";
 +    print "#undef __i686";
  }
---- glibc-20050919/sysdeps/i386/bp-asm.h.vanilla	2005-11-03 14:27:22.000000000 +0100
-+++ glibc-20050919/sysdeps/i386/bp-asm.h	2005-11-03 14:27:39.000000000 +0100
+
+--- libc/sysdeps/i386/bp-asm.h.orig	2000-01-01 00:00:00.000000000 +0000
++++ libc/sysdeps/i386/bp-asm.h	2012-12-24 21:23:06.612034400 +0000
  <at>  <at>  -22,6 +22,8  <at>  <at> 
  #ifndef _bp_asm_h_
  # define _bp_asm_h_ 1
Barry Kauler | 25 Dec 2012 15:45
Picon

Dialog wide-character


In Puppy Linux, we use 'dialog' compiled with wide-character support, like this:

# export CPPFLAGS='-I/usr/include/ncursesw'
# ./configure --prefix=/usr --bindir=/bin --sbindir=/sbin
--libdir=/lib --sysconfdir=/etc --localstatedir=/var
--build=i486-pc-linux-gnu --enable-nls --with-ncursesw --enable-widec

dialog home:
http://invisible-island.net/dialog/dialog.html

I would like to suggest that T2 should also build dialog with wide-char support.

The dialog.conf in T2 has only this in it:

makeinstopt="$makeinstopt install-lib"

Could someone please help me to extend it to configure as I have shown above?

I don't remember how to export CPPFLAGS in a T2 .conf file ...I do
recall doing it once, a long time ago. I vaguely recall there is a
wrong way and a right way.

Also, I need to override some of the target paths.

Note, the version of dialog in T2 is very old. Puppy is currently
using version 1.1, which I downloaded 2010-04-28, so that is also a
bit old, but works fine.

Any assistance appreciated.
Regards,
Barry Kauler


Gmane