summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
l---------cross-i586-geode-linux-dietlibc/dietlibc1
l---------cross-i586-geode-linux-gnu/binutils1
l---------cross-i586-geode-linux-gnu/gcc1
l---------cross-i586-geode-linux-gnu/gdb1
l---------cross-i586-geode-linux-gnu/glibc1
l---------cross-i586-geode-linux-gnu/insight1
l---------cross-i586-geode-linux-gnu/linux-headers1
l---------cross-mips-linux-uclibc/binutils (renamed from cross-i586-geode-linux-dietlibc/binutils)0
l---------cross-mips-linux-uclibc/gcc (renamed from cross-i586-geode-linux-dietlibc/gcc)0
l---------cross-mips-linux-uclibc/gdb (renamed from cross-i586-geode-linux-dietlibc/gdb)0
l---------cross-mips-linux-uclibc/insight (renamed from cross-i586-geode-linux-dietlibc/insight)0
l---------cross-mips-linux-uclibc/linux-headers (renamed from cross-i586-geode-linux-dietlibc/linux-headers)0
-rw-r--r--cross-mips-linux-uclibc/uclibc/ChangeLog401
-rw-r--r--cross-mips-linux-uclibc/uclibc/Manifest18
-rw-r--r--cross-mips-linux-uclibc/uclibc/files/uClibc-mips.diff38
-rw-r--r--cross-mips-linux-uclibc/uclibc/metadata.xml32
l---------cross-mips-linux-uclibc/uclibc/uclibc1
-rw-r--r--cross-mips-linux-uclibc/uclibc/uclibc-0.9.27-r1.ebuild401
-rw-r--r--cross-mips-linux-uclibc/uclibc/uclibc-0.9.28.3-r3.ebuild461
-rw-r--r--cross-mips-linux-uclibc/uclibc/uclibc-0.9.28.3-r7.ebuild459
-rw-r--r--cross-mips-linux-uclibc/uclibc/uclibc-0.9.28.3.ebuild459
-rw-r--r--cross-mips-linux-uclibc/uclibc/uclibc-0.9.30.ebuild459
-rw-r--r--[-rwxr-xr-x]net-analyzer/net-snmp/files/net-snmp-maxreps.patch0
-rw-r--r--sys-apps/wdd/Manifest4
-rw-r--r--[-rwxr-xr-x]sys-apps/wdd/files/wdd.initd0
-rw-r--r--sys-apps/wdd/wdd-0-r1.ebuild2
-rw-r--r--sys-apps/wdd/wdd-0-r2.ebuild2
27 files changed, 2733 insertions, 11 deletions
diff --git a/cross-i586-geode-linux-dietlibc/dietlibc b/cross-i586-geode-linux-dietlibc/dietlibc
deleted file mode 120000
index 4c23b56f..00000000
--- a/cross-i586-geode-linux-dietlibc/dietlibc
+++ /dev/null
@@ -1 +0,0 @@
-/usr/portage/dev-libs/dietlibc \ No newline at end of file
diff --git a/cross-i586-geode-linux-gnu/binutils b/cross-i586-geode-linux-gnu/binutils
deleted file mode 120000
index 0f98435e..00000000
--- a/cross-i586-geode-linux-gnu/binutils
+++ /dev/null
@@ -1 +0,0 @@
-/usr/portage/sys-devel/binutils \ No newline at end of file
diff --git a/cross-i586-geode-linux-gnu/gcc b/cross-i586-geode-linux-gnu/gcc
deleted file mode 120000
index 8e0883fb..00000000
--- a/cross-i586-geode-linux-gnu/gcc
+++ /dev/null
@@ -1 +0,0 @@
-/usr/portage/sys-devel/gcc \ No newline at end of file
diff --git a/cross-i586-geode-linux-gnu/gdb b/cross-i586-geode-linux-gnu/gdb
deleted file mode 120000
index 0ab6bdc1..00000000
--- a/cross-i586-geode-linux-gnu/gdb
+++ /dev/null
@@ -1 +0,0 @@
-/usr/portage/sys-devel/gdb \ No newline at end of file
diff --git a/cross-i586-geode-linux-gnu/glibc b/cross-i586-geode-linux-gnu/glibc
deleted file mode 120000
index a5553b00..00000000
--- a/cross-i586-geode-linux-gnu/glibc
+++ /dev/null
@@ -1 +0,0 @@
-/usr/portage/sys-libs/glibc \ No newline at end of file
diff --git a/cross-i586-geode-linux-gnu/insight b/cross-i586-geode-linux-gnu/insight
deleted file mode 120000
index f7036ecd..00000000
--- a/cross-i586-geode-linux-gnu/insight
+++ /dev/null
@@ -1 +0,0 @@
-/usr/portage/dev-util/insight \ No newline at end of file
diff --git a/cross-i586-geode-linux-gnu/linux-headers b/cross-i586-geode-linux-gnu/linux-headers
deleted file mode 120000
index 65238398..00000000
--- a/cross-i586-geode-linux-gnu/linux-headers
+++ /dev/null
@@ -1 +0,0 @@
-/usr/portage/sys-kernel/linux-headers \ No newline at end of file
diff --git a/cross-i586-geode-linux-dietlibc/binutils b/cross-mips-linux-uclibc/binutils
index 0f98435e..0f98435e 120000
--- a/cross-i586-geode-linux-dietlibc/binutils
+++ b/cross-mips-linux-uclibc/binutils
diff --git a/cross-i586-geode-linux-dietlibc/gcc b/cross-mips-linux-uclibc/gcc
index 8e0883fb..8e0883fb 120000
--- a/cross-i586-geode-linux-dietlibc/gcc
+++ b/cross-mips-linux-uclibc/gcc
diff --git a/cross-i586-geode-linux-dietlibc/gdb b/cross-mips-linux-uclibc/gdb
index 0ab6bdc1..0ab6bdc1 120000
--- a/cross-i586-geode-linux-dietlibc/gdb
+++ b/cross-mips-linux-uclibc/gdb
diff --git a/cross-i586-geode-linux-dietlibc/insight b/cross-mips-linux-uclibc/insight
index f7036ecd..f7036ecd 120000
--- a/cross-i586-geode-linux-dietlibc/insight
+++ b/cross-mips-linux-uclibc/insight
diff --git a/cross-i586-geode-linux-dietlibc/linux-headers b/cross-mips-linux-uclibc/linux-headers
index 65238398..65238398 120000
--- a/cross-i586-geode-linux-dietlibc/linux-headers
+++ b/cross-mips-linux-uclibc/linux-headers
diff --git a/cross-mips-linux-uclibc/uclibc/ChangeLog b/cross-mips-linux-uclibc/uclibc/ChangeLog
new file mode 100644
index 00000000..675dd511
--- /dev/null
+++ b/cross-mips-linux-uclibc/uclibc/ChangeLog
@@ -0,0 +1,401 @@
+# ChangeLog for sys-libs/uclibc
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/uclibc/ChangeLog,v 1.43 2009/01/10 04:32:59 redhatter Exp $
+
+ 10 Jan 2009; Stuart Longland <redhatter@gentoo.org> uclibc-0.9.30.ebuild:
+ Added ~mips keyword. uClibc appears to work fine on both mips and mipsel
+ with one caveat: it doesn't work on 16KB page size kernels (i.e. Loongson)
+ see http://bugs.busybox.net/show_bug.cgi?id=9 for info here.
+
+ It *does* however, work fine on my Cobalt Qube2 and SGI O2, where I am
+ building stages.
+
+ 02 Jan 2009; <solar@gentoo.org> metadata.xml, uclibc-0.9.30.ebuild:
+ work around gcc-4 lack of ssp by default support while +hardened is enabled
+
+*uclibc-0.9.30 (28 Nov 2008)
+
+ 28 Nov 2008; <solar@gentoo.org> -uclibc-0.9.28.3-r6.ebuild,
+ -uclibc-0.9.30_rc1.ebuild, -uclibc-0.9.30_rc3.ebuild,
+ +uclibc-0.9.30.ebuild:
+ - version bump and some cleanup
+
+ 09 Nov 2008; <solar@gentoo.org> uclibc-0.9.30_rc3.ebuild:
+ - psm reports headers need -j1 flag
+
+ 01 Nov 2008; Mike Frysinger <vapier@gentoo.org> uclibc-0.9.27-r1.ebuild,
+ uclibc-0.9.28.3.ebuild, uclibc-0.9.28.3-r3.ebuild,
+ uclibc-0.9.28.3-r6.ebuild, uclibc-0.9.28.3-r7.ebuild,
+ uclibc-0.9.30_rc1.ebuild, uclibc-0.9.30_rc3.ebuild:
+ Unify some ebuild differences and fix header-only install with newer
+ versions #234748 by Nathan Brink.
+
+*uclibc-0.9.30_rc3 (29 Oct 2008)
+
+ 29 Oct 2008; <solar@gentoo.org> +uclibc-0.9.30_rc3.ebuild:
+ - version bump. rc3 drops all gentoo patches. merged upstream
+
+*uclibc-0.9.30_rc1 (23 Sep 2008)
+
+ 23 Sep 2008; <solar@gentoo.org> +uclibc-0.9.30_rc1.ebuild:
+ - Initial import of 0.9.30_rc1 branch for gentoo testing/QA before final the
+ release. (many thanks to torindel for helping out with this)
+
+ 23 Aug 2008; Doug Goldstein <cardoe@gentoo.org> metadata.xml:
+ add GLEP 56 USE flag desc from use.local.desc
+
+*uclibc-0.9.28.3-r7 (08 Jun 2008)
+
+ 08 Jun 2008; <solar@gentoo.org> +uclibc-0.9.28.3-r7.ebuild:
+ - fix up a few cross compile problems for arm
+
+*uclibc-0.9.28.3-r6 (05 May 2008)
+
+ 05 May 2008; <solar@gentoo.org> -uclibc-0.9.28.ebuild,
+ -uclibc-0.9.28-r1.ebuild, -uclibc-0.9.28-r2.ebuild,
+ -uclibc-0.9.28.1.ebuild, -uclibc-0.9.28.3-r1.ebuild,
+ -uclibc-0.9.28.3-r2.ebuild, -uclibc-0.9.28.3-r4.ebuild,
+ -uclibc-0.9.28.3-r5.ebuild, +uclibc-0.9.28.3-r6.ebuild:
+ - little cleanup and add the realpath patch from bug 125701 to address the
+ sandbox problem with coreutils
+
+*uclibc-0.9.28.3-r5 (04 May 2008)
+
+ 04 May 2008; <solar@gentoo.org> +uclibc-0.9.28.3-r5.ebuild:
+ [Bug 219598] [PATCH] sys-libs/uclibc-0.9.28.3 - backport of splice(2),
+ tee(2) and vmsplice(2) syscalls
+
+ 23 Apr 2008; <solar@gentoo.org> uclibc-0.9.28.3-r3.ebuild:
+ - stable on arm/ppc/x86
+
+ 16 Apr 2008; Christian Heim <phreak@gentoo.org> uclibc-0.9.28.3-r4.ebuild:
+ Remove the extra distmirror (my devspace from SRC_URI).
+
+ 16 Apr 2008; Christian Heim <phreak@gentoo.org> uclibc-0.9.28.3-r4.ebuild:
+ Silent revision bump (ie just incrementing the patch version) to grab the
+ libm stuff, which was missing from CVS.
+
+*uclibc-0.9.28.3-r4 (16 Apr 2008)
+
+ 16 Apr 2008; Christian Heim <phreak@gentoo.org>
+ +uclibc-0.9.28.3-r4.ebuild:
+ Revision bump, pulling in svn r16022 to fix readdir_r return value (uClibc
+ #1022; #217612 by Natanael Copa).
+
+ 27 Mar 2008; Christian Heim <phreak@gentoo.org> uclibc-0.9.28.3-r2.ebuild:
+ Marking uclibc-0.9.28.3-r2 stable on ppc too.
+
+*uclibc-0.9.28.3-r3 (24 Mar 2008)
+
+ 24 Mar 2008; <solar@gentoo.org> +uclibc-0.9.28.3-r3.ebuild:
+ - sync queue.h up from svn HEAD
+
+ 15 Mar 2008; Christian Heim <phreak@gentoo.org> uclibc-0.9.28.3-r2.ebuild:
+ Stabilizing uclibc-0.9.28.3-r2 on x86, as per solar's acknowledgement.
+
+*uclibc-0.9.28.3-r2 (01 Jan 2008)
+
+ 01 Jan 2008; <solar@gentoo.org> +uclibc-0.9.28.3-r2.ebuild:
+ * 0.9.28.3 - 1.2 - Backport a few header defines
+
+*uclibc-0.9.28.3-r1 (21 Sep 2007)
+
+ 21 Sep 2007; <solar@gentoo.org> +uclibc-0.9.28.3-r1.ebuild:
+ backport posix_memalign() function
+
+ 02 Jul 2007; Piotr Jaroszyński <peper@gentoo.org>
+ uclibc-0.9.27-r1.ebuild, uclibc-0.9.28.ebuild, uclibc-0.9.28-r1.ebuild,
+ uclibc-0.9.28-r2.ebuild, uclibc-0.9.28.1.ebuild, uclibc-0.9.28.3.ebuild:
+ (QA) RESTRICT clean up.
+
+ 30 Jun 2007; Mike Frysinger <vapier@gentoo.org> uclibc-0.9.27-r1.ebuild,
+ uclibc-0.9.28.ebuild, uclibc-0.9.28-r1.ebuild, uclibc-0.9.28-r2.ebuild,
+ uclibc-0.9.28.1.ebuild, uclibc-0.9.28.3.ebuild:
+ Use `as` and `file` to determine the toolchain endianness #171849.
+
+ 07 Apr 2007; Mike Frysinger <vapier@gentoo.org> uclibc-0.9.28.3.ebuild:
+ Install hostutils (ldd/ldconfig) for cross-compilers #172207.
+
+*uclibc-0.9.28.3 (25 Mar 2007)
+
+ 25 Mar 2007; Mike Frysinger <vapier@gentoo.org> +uclibc-0.9.28.3.ebuild:
+ Version bump #168747 by Josh G.
+
+ 16 Feb 2007; Diego Pettenò <flameeyes@gentoo.org>
+ uclibc-0.9.27-r1.ebuild, uclibc-0.9.28.ebuild, uclibc-0.9.28-r1.ebuild,
+ uclibc-0.9.28-r2.ebuild, uclibc-0.9.28.1.ebuild:
+ Fix tc-is-softfloat logic, as reported on gentoo-embedded by Scott L. Price.
+
+*uclibc-0.9.28.1 (28 Jan 2007)
+
+ 28 Jan 2007; Mike Frysinger <vapier@gentoo.org> +uclibc-0.9.28.1.ebuild:
+ Version bump.
+
+*uclibc-0.9.28-r2 (15 Jan 2007)
+
+ 15 Jan 2007; <solar@gentoo.org> +uclibc-0.9.28-r2.ebuild:
+ - import readahead() symbol and import from Joakim Tjernlund -
+ uClibc-svn-r17162 (Support SecurePLTs for PowerPC)
+
+*uclibc-0.9.28-r1 (14 Oct 2006)
+
+ 14 Oct 2006; Mike Frysinger <vapier@gentoo.org> +uclibc-0.9.28-r1.ebuild:
+ Push out accumulated fixes.
+
+ 27 Jan 2006; Mike Frysinger <vapier@gentoo.org> uclibc-0.9.28.ebuild:
+ Stabilize, add a few minor bugfixes, and add support for USE=savedconfig.
+
+ 25 Nov 2005; <solar@gentoo.org> uclibc-0.9.28.ebuild:
+ - the __uClibc_start_main is becoming a problem for users thus we need to
+ check the bins before allowing them to have uclibc-compat disabled
+
+ 13 Nov 2005; <solar@gentoo.org> uclibc-0.9.28.ebuild:
+ - moredefs..
+
+ 07 Nov 2005; <solar@gentoo.org> uclibc-0.9.28.ebuild:
+ Enabled DL_FINI_CRT_COMPAT by default
+
+ 05 Sep 2005; Mike Frysinger <vapier@gentoo.org> uclibc-0.9.27.ebuild,
+ uclibc-0.9.27-r1.ebuild:
+ Fix optimized strn functions so nano stops crashing #95395.
+
+*uclibc-0.9.28 (18 Aug 2005)
+
+ 18 Aug 2005; Mike Frysinger <vapier@gentoo.org> +uclibc-0.9.28.ebuild:
+ Version bump.
+
+ 05 Aug 2005; Mike Frysinger <vapier@gentoo.org> uclibc-0.9.27.ebuild,
+ uclibc-0.9.27-r1.ebuild:
+ Add patch by Yuri Vasilevski to fix FPU endian on arm #75585.
+
+ 29 Jul 2005; Mike Frysinger <vapier@gentoo.org> uclibc-0.9.27.ebuild,
+ uclibc-0.9.27-r1.ebuild:
+ Update patchset to include armeb stat and getent fixes.
+
+*uclibc-0.9.27-r1 (18 Jun 2005)
+
+ 18 Jun 2005; Mike Frysinger <vapier@gentoo.org> +uclibc-0.9.27-r1.ebuild:
+ New testing version by psm with partial locale support.
+
+ 18 Jun 2005; Mike Frysinger <vapier@gentoo.org> uclibc-0.9.27.ebuild:
+ Add patches from upstream to fix arm/TEXTRELs and remove the duplicated
+ pthread_atfork() prototype from unistd.h.
+
+ 21 Apr 2005; <solar@gentoo.org> files/getent, uclibc-0.9.27.ebuild:
+ - update getent script in FILESDIR
+
+ 17 Jan 2005; Mike Frysinger <vapier@gentoo.org> uclibc-0.9.26-r8.ebuild,
+ uclibc-0.9.27.ebuild:
+ Make sure uclibc doesnt destroy glibc hosts (sorry solar!) and fix
+ src_test() so it actually works.
+
+*uclibc-0.9.27 (14 Jan 2005)
+
+ 14 Jan 2005; Mike Frysinger <vapier@gentoo.org> +uclibc-0.9.27.ebuild:
+ Version bump.
+
+ 11 Jan 2005; Mike Frysinger <vapier@gentoo.org> uclibc-0.9.26-r8.ebuild:
+ Merge psm & my cross compile work together and BAM we have a sweet ebuild.
+
+ 14 Dec 2004; <solar@gentoo.org> uclibc-0.9.26-r8.ebuild:
+ - Improved hardened handling bug 73699. Initial support for xattr.
+
+ 10 Nov 2004; <solar@gentoo.org> uclibc-0.9.26-r8.ebuild:
+ uclibc updates
+
+*uclibc-0.9.26-r8 (06 Nov 2004)
+
+ 06 Nov 2004; Mike Frysinger <vapier@gentoo.org> +uclibc-0.9.26-r8.ebuild:
+ Add the ability to select CPU/endian type #69871.
+
+ 28 Oct 2004; <solar@gentoo.org> uclibc-0.9.26-r7.ebuild:
+ uclibc-0.9.26-r7 marked stable for x86/arm/ppc/mips. 30 days in ~arch,
+ security changes only which mark unsecvars stable
+
+ 13 Oct 2004; <solar@gentoo.org> files/0.9.26/ssp.c:
+ more updates to ssp.c
+
+ 12 Oct 2004; <solar@gentoo.org> files/0.9.26/ssp.c:
+ reverting to old ssp behavior
+
+*uclibc-0.9.26-r7 (28 Sep 2004)
+
+ 28 Sep 2004; <solar@gentoo.org>
+ +files/0.9.26/uClibc-20040921-ldso-unsecvars.patch,
+ +files/0.9.26/unsecvars.h, +uclibc-0.9.26-r7.ebuild:
+ added unsecvars handling to uclibc. testing ground here and going mainline
+ afterwords
+
+ 06 Sep 2004; Ciaran McCreesh <ciaranm@gentoo.org> uclibc-0.9.26-r3.ebuild,
+ uclibc-0.9.26-r4.ebuild, uclibc-0.9.26-r5.ebuild, uclibc-9999.ebuild:
+ Switch to use epause and ebeep, bug #62950
+
+*uclibc-9999 (25 Aug 2004)
+
+ 25 Aug 2004; Mike Frysinger <vapier@gentoo.org>
+ +uclibc-9999.ebuild:
+ CVS ebuild to make our (well mine at least) lives easier.
+
+ 19 Aug 2004; <solar@gentoo.org> uclibc-0.9.26-r1.ebuild,
+ uclibc-0.9.26-r2.ebuild, uclibc-0.9.26-r3.ebuild, uclibc-0.9.26-r4.ebuild,
+ uclibc-0.9.26-r5.ebuild:
+ update RDEPEND. bug 60911
+
+ 09 Aug 2004; Mike Frysinger <vapier@gentoo.org>
+ +files/0.9.26/uclibc-0.9.26-ldso-cache.patch, uclibc-0.9.26-r5.ebuild:
+ Add a small patch to allow loading of ELF_LIBC0 libraries.
+
+ 09 Aug 2004; Mike Frysinger <vapier@gentoo.org>
+ +files/0.9.26/uclibc-0.9.26-resolve-segfault.patch, uclibc-0.9.26-r5.ebuild:
+ Add a homebrewed patch to fix the bug with gethostname() which didnt setup the
+ h_aliases data.
+
+*uclibc-0.9.26-r5 (09 Aug 2004)
+
+ 09 Aug 2004; <solar@gentoo.org> uclibc-0.9.26-r5.ebuild:
+ version bump requested by spanky
+
+ 06 Aug 2004; Mike Frysinger <vapier@gentoo.org>
+ +files/0.9.26/arm-ucontext.patch, uclibc-0.9.26-r4.ebuild:
+ Make sure arm/ucontext.h includes the right context files and fix the ld utils
+ to properly read/write /etc/ld.so.* files.
+
+*uclibc-0.9.26-r4 (30 Jul 2004)
+
+ 30 Jul 2004; <solar@gentoo.org> uclibc-0.9.26-r4.ebuild:
+ updated the cvs snapshot so we can get some header updates
+
+ 13 Jul 2004; <solar@gentoo.org> uclibc-0.9.26-r3.ebuild:
+ paying respect to mjn3 and his DEDICATION to his wife in the docs
+
+*uclibc-0.9.26-r3 (12 Jul 2004)
+
+ 12 Jul 2004; <solar@gentoo.org> uclibc-0.9.26-r3.ebuild,
+ files/0.9.26/uclibc-0.9.26-noexecstack.patch:
+ more uclibc updates from Peter S. Mazinger
+
+ 05 Jul 2004; <solar@gentoo.org> uclibc-0.9.21.ebuild,
+ uclibc-0.9.26-r1.ebuild, uclibc-0.9.26-r2.ebuild, files/getent:
+ added getent which is a shell replacement (uclibc does not have it, but
+ ebuild.sh uses it. So we need it!
+
+ 01 Jul 2004; Jeremy Huddleston <eradicator@gentoo.org> uclibc-0.9.21.ebuild,
+ uclibc-0.9.26-r1.ebuild, uclibc-0.9.26-r2.ebuild:
+ virtual/glibc -> virtual/libc
+
+ 27 Jun 2004; <solar@gentoo.org> uclibc-0.9.21.ebuild,
+ uclibc-0.9.26-r1.ebuild, uclibc-0.9.26-r2.ebuild:
+ updated PROVIDES for virtual/libc
+
+*uclibc-0.9.26-r2 (23 Jun 2004)
+
+ 23 Jun 2004; <solar@gentoo.org> uclibc-0.9.26-r2.ebuild,
+ files/0.9.26/uclibc-0.9.26-arm-dl-sysdep.patch:
+ Added patch for ARCH=arm to prevent a static inlines from being included more
+ than one time. sent patch upstream
+
+ 22 Jun 2004; <solar@gentoo.org> files/0.9.26/ssp.c,
+ files/0.9.26/uClibc-20040613-do_rem.patch,
+ files/0.9.26/uclibc-0.9.26-ssp-gcc34-after-frandom.patch:
+ major uclibc cleanups. New IUSE= flags and functionality
+
+ 26 May 2004; Mike Frysinger <vapier@gentoo.org>
+ +files/0.9.26/arm-fix-missing-syscalls.patch, uclibc-0.9.26-r1.ebuild:
+ Add patch to allow arm building
+
+ 01 Feb 2004; <solar@gentoo.org> uclibc-0.9.23.ebuild,
+ uclibc-0.9.26-r1.ebuild, uclibc-0.9.26.ebuild:
+ The etdyn local use flag has been renamed to pie (Position Independent
+ Executable) Removed old ebuilds.. Keeping 0.9.21 as stable till Gentoo has a
+ working uClibc toolchain in place
+
+*uclibc-0.9.26-r1 (08 Jan 2004)
+
+ 08 Jan 2004; <solar@gentoo.org> uclibc-0.9.26-r1.ebuild,
+ files/0.9.26/uClibc-0.9.26-Makefile.patch,
+ files/0.9.26/uClibc-0.9.26-pie-option.patch:
+ Attached is one patch needed to really enable FORCE_SHAREABLE_SEGMENTS
+ option, the other is to build uclibc against the installed kernel-headers
+ (not kernel-source) - Peter S. Mazinger gentoo-embedded mailing list.
+
+*uclibc-0.9.26 (04 Jan 2004)
+
+ 04 Jan 2004; <solar@gentoo.org> uclibc-0.9.25-r1.ebuild,
+ uclibc-0.9.25.ebuild, uclibc-0.9.26.ebuild:
+ version bump.. there was a pthread bug that slipped though uclibc.org testing
+
+*uclibc-0.9.25-r1 (04 Jan 2004)
+
+ 04 Jan 2004; <solar@gentoo.org> uclibc-0.9.21.ebuild, uclibc-0.9.23.ebuild,
+ uclibc-0.9.25-r1.ebuild, uclibc-0.9.25.ebuild:
+ added back etdyn/pie support for x86. If -fstack-protector is in the users
+ CFLAGS then let uclibc provide __guard symbols
+
+*uclibc-0.9.25 (03 Jan 2004)
+
+ 03 Jan 2004; Mike Frysinger <vapier@gentoo.org> :
+ Version bumpage #36235. Patches no longer needed since they've all been
+ integrated upstream.
+
+*uclibc-0.9.23 (15 Nov 2003)
+
+ 21 Nov 2003; <solar@gentoo.org> metadata.xml:
+ update metadata.xml
+
+ 21 Nov 2003; <solar@gentoo.org> uclibc-0.9.22.ebuild,
+ files/uClibc-0.9.22-etdyn.patch, files/uClibc-0.9.22-pax.patch,
+ files/0.9.23/uClibc-0.9.23-etdyn.patch,
+ files/0.9.23/uClibc-0.9.23-flipturn.patch:
+ updated etdyn patches. no major functional changes to revision bump, removed
+ buggy 0.9.22 code from portage
+
+ 15 Nov 2003; <solar@gentoo.org> uclibc-0.9.23.ebuild,
+ files/0.9.23/uClibc-0.9.23-etdyn.patch,
+ files/0.9.23/uClibc-0.9.23-flipturn.patch,
+ files/0.9.23/uClibc-0.9.23-pax.patch:
+ version bump, 0.9.22 was braindead.. In this release we continue support for
+ PaX etdyn executabes thanks to the PaX Team and Peter S. Mazinger as well as
+ add a small patch that was submited to the uClibc by Rob McMullen
+
+*uclibc-0.9.22 (11 Nov 2003)
+
+ 11 Nov 2003; <solar@gentoo.org> uclibc-0.9.22.ebuild,
+ files/uClibc-0.9.22-etdyn.patch, files/uClibc-0.9.22-pax.patch:
+ version bump, this ebuild includes experimental pax-etdyn support for uclibc
+ when local use flag etdyn is used
+
+ 04 Oct 2003; <solar@gentoo.org> uclibc-0.9.21.ebuild:
+ marking stable on x86, and added a metadata.xml
+
+*uclibc-0.9.21 (10 Sep 2003)
+
+ 30 Sep 2003; Joshua Kinard <kumba@gentoo.org> uclibc-0.9.21.ebuild:
+ Added ~sparc & ~mips to KEYWORDS
+ Useful for building our netboot images with
+
+ 10 Sep 2003; <solar@gentoo.org> uclibc-0.9.21.ebuild:
+ andersee is pleased to announce the immediate availability of uClibc 0.9.21.
+ This release has been brewing for several months now, and provides quite a lot
+ of additional functionality as well as quite a few bug fixes. The biggest
+ thing in this release (and I do mean that literally) is that uClibc now has
+ full ANSI/ISO C99 locale support. The most interesting thing for uClinux are
+ the additional config options that will let you tune the library to be even
+ smaller, for example, by disabling all the strerror() messages.
+
+*uclibc-0.9.20 (09 Jul 2003)
+
+ 09 Jul 2003; Mike Frysinger <vapier@gentoo.org> :
+ Version bumpage.
+
+*uclibc-0.9.19 (19 Jun 2003)
+
+ 19 Jun 2003; Mike Frysinger <vapier@gentoo.org> :
+ Version bump #15579 thanks to David Bryson <mutex@kerneli.org>.
+
+*uclibc-0.9.16 (11 Nov 2002)
+
+ 25 May 2003; Martin Holzer <mholzer@gentoo.org> uclibc-0.9.16.ebuild:
+ now uses mirror://kernel
+
+ 11 Nov 2002; Mike Frysinger <vapier@gentoo.org> :
+ Initial import. Ebuild submitted by me.
diff --git a/cross-mips-linux-uclibc/uclibc/Manifest b/cross-mips-linux-uclibc/uclibc/Manifest
new file mode 100644
index 00000000..dfb898ac
--- /dev/null
+++ b/cross-mips-linux-uclibc/uclibc/Manifest
@@ -0,0 +1,18 @@
+AUX uClibc-mips.diff 1232 RMD160 b433a35474d7b2e50a68aa9f02bd2ef6145adbcf SHA1 2a42b3217744b95766a01394a1a7c87f7910e834 SHA256 baf04f21691efeb57dc11c9414fb64925089f97660ed62191ec6f86b7ca3481b
+DIST uClibc-0.9.27-cvs-update-20050114.patch.bz2 839 RMD160 08439855b6dc481216132d3882b8f634ecbe4555 SHA1 0e1a400745f0cbd739c6c08f45951eea836b1102 SHA256 83b86570ed0f0109f2ff04e753daf18a9bf59eab5b01b8d04a2406bb4100c423
+DIST uClibc-0.9.27-patches-1.6.tar.bz2 24001 RMD160 eca81853e00e5144c165b2eb4733059d53f93234 SHA1 93beb60660145c1b661c577f1e89a7217841c0c9 SHA256 78ff8162423b5563b1a97ae5294ab1e919b9489e171962053da54c04ee127797
+DIST uClibc-0.9.27.tar.bz2 1693895 RMD160 4c580c0c468bcd7e77a6b4223847f17b6ad241cc SHA1 e0de53949998253e25e6b946b564062babb723b4 SHA256 d43098b9d1cac5cc983672f885d82b59459c3abcb12ef8141653581c77cd0d9c
+DIST uClibc-0.9.28.3-patches-1.0.tar.bz2 16079 RMD160 2224a7b826932fcd5c96a0bddb30fcfa4173de35 SHA1 098f90da4879bc3a14afe662f19163c969bde431 SHA256 c432d869fc3e8a4e2137541e8a1ab93e7d634387d9ca5131842721f4b080b72e
+DIST uClibc-0.9.28.3-patches-1.3.tar.bz2 21241 RMD160 c78dda0bdbc751721559d91bdd60a29e5260007b SHA1 f89a0bd18fbda1101ad419c3abc06068dd237776 SHA256 b3a3a98798861e38525082884b4a5be1ab42d281c2680db3ddc0085d031aa397
+DIST uClibc-0.9.28.3-patches-1.8.tar.bz2 27909 RMD160 7c936749075162939c76489aa5a88278f235b48f SHA1 5bb582cb8f95407bd9fa938a9dd09027dcf0db0b SHA256 9496394de9de241551497c496b7fb8ece32b23536485bd81bd20128c2e104790
+DIST uClibc-0.9.28.3.tar.bz2 1795383 RMD160 61591281f4193d4dcd0fa3252fb3286028d4cb63 SHA1 77c5220697a1772d0d9da4bda0d866e4f4b68540 SHA256 1d86d5dad6060e7057cfe023ffc7b7661bdc7fe95112b37447851c0a75b547a1
+DIST uClibc-0.9.30-patches-1.0.tar.bz2 7017 RMD160 548b43fc8f3d3637eccef5c5df13b84380ec8631 SHA1 bfb64d3bdc0d067e78b050fe899021849a47f091 SHA256 e8f36766c8b6cb37bab69af09e7ff2c5108719c74b83fc145893198b87f8e73e
+DIST uClibc-0.9.30.tar.bz2 2291882 RMD160 08270ef742a2167ae660c5440bc5f78775a10ab0 SHA1 e96665237968fb2e4aa027bde9d56c4fe599eb1b SHA256 67e7e6b983cd2caa163f177d5196282434ae1e18b7270495cd6c65f5c1549555
+DIST uClibc-locale-030818.tgz 236073 RMD160 8e3f4b20b94e07e535cbbbe81287186014c5f151 SHA1 78f901e6ed228ed84106bd034c1b97eee1eecb50 SHA256 c4362be318a38f18d98dccf462d22d95bab92f05548bb93f65298fe9afaebd57
+EBUILD uclibc-0.9.27-r1.ebuild 12349 RMD160 1907241e5b159e8e6dfe5758254e78529508da5c SHA1 6ccc353679842a15cec02e67370a53468b813c25 SHA256 ef45378f6dfbe838b5985c727e09f751dc099f8d61d22abdb347131cf51afc2e
+EBUILD uclibc-0.9.28.3-r3.ebuild 14559 RMD160 1277a6ffa59f23f2bae16ba9c79f6180f8d5282a SHA1 49d9282052d891bb100ab60ffe2fa0d15455eb72 SHA256 ad60020949c587d493946aed7e5ef9b3ec8e88581b69e6192871c5dbebe6ffc4
+EBUILD uclibc-0.9.28.3-r7.ebuild 14522 RMD160 c951654646c8d3d6ec5559d70678092d256c1257 SHA1 d6ee1ff5ead3f338c5d6b3a0378ce82c471811b4 SHA256 6dfaa8c2fa10ffe2f0a93737e9045829a4922b12f0c70cfd7457e124a9e9d9a7
+EBUILD uclibc-0.9.28.3.ebuild 14513 RMD160 f0b09ee89ca6ab4255b06fb4a5d89d8363cde623 SHA1 11a32313695999f0d0b874e90a13add4cbb911a1 SHA256 cd1defc5347cf8bdadd6a04c1742c877b69f745afb7941f87621ee53a0763c69
+EBUILD uclibc-0.9.30.ebuild 13897 RMD160 7da8ee94dd96a05c9c2147025d2e68b51457afca SHA1 a9463ac7fe35d5c342595601bdc2424c93b5e8c0 SHA256 8b21456bd1e18f37559ed8cd9bb30c3e268581dfea30700fb25f58bd9b050d77
+MISC ChangeLog 15416 RMD160 838359bdca1959f2e2467fc4573405936d06a1d7 SHA1 6579f7201ea09879f9331b338a9f1507d780f2b1 SHA256 f7f0062f5f21b932542483b6094c13a266afb13940054efaebc3791fe7bfc426
+MISC metadata.xml 1469 RMD160 0c3640cb24a93c003e59cd0f9fd99587881ac63e SHA1 6be5e573878f88438a0121ff49841d52f07dedcd SHA256 e2f9e4727e826e87f735157c170a4e1f5f3ff572a2a2875f6a8889dfa5c648a3
diff --git a/cross-mips-linux-uclibc/uclibc/files/uClibc-mips.diff b/cross-mips-linux-uclibc/uclibc/files/uClibc-mips.diff
new file mode 100644
index 00000000..98cde903
--- /dev/null
+++ b/cross-mips-linux-uclibc/uclibc/files/uClibc-mips.diff
@@ -0,0 +1,38 @@
+--- ./uClibc-0.9.28.3/libc/sysdeps/linux/mips/pipe.S.ori 2009-02-04 22:24:02.000000000 +0100
++++ ./uClibc-0.9.28.3/libc/sysdeps/linux/mips/pipe.S 2009-02-04 22:24:33.000000000 +0100
+@@ -3,9 +3,9 @@
+ /*see uClibc's sh/pipe.c and glibc-2.2.4's mips/pipe.S */
+
+ #include <features.h>
+-#include <asm/asm.h>
++#include <sys/asm.h>
+ #include <asm/unistd.h>
+-#include <asm/regdef.h>
++#include <sys/regdef.h>
+
+ .globl pipe
+ .ent pipe, 0
+--- ./uClibc-0.9.28.3/libc/sysdeps/linux/mips/clone.S.ori 2009-02-04 22:23:49.000000000 +0100
++++ ./uClibc-0.9.28.3/libc/sysdeps/linux/mips/clone.S 2009-02-04 22:24:14.000000000 +0100
+@@ -24,7 +24,7 @@
+ #include <sys/regdef.h>
+ #define _ERRNO_H 1
+ #include <bits/errno.h>
+-#include <asm/asm.h>
++#include <sys/asm.h>
+
+ /* int clone(int (*fn)(void *arg), void *child_stack, int flags, void *arg) */
+
+--- ./uClibc-0.9.28.3/libc/sysdeps/linux/mips/syscall.S.ori 2009-02-04 22:23:57.000000000 +0100
++++ ./uClibc-0.9.28.3/libc/sysdeps/linux/mips/syscall.S 2009-02-04 22:24:24.000000000 +0100
+@@ -17,8 +17,8 @@
+ 02111-1307 USA. */
+
+ #include <features.h>
+-#include <asm/asm.h>
+-#include <asm/regdef.h>
++#include <sys/asm.h>
++#include <sys/regdef.h>
+
+ #ifdef __PIC__
+ .option pic2
diff --git a/cross-mips-linux-uclibc/uclibc/metadata.xml b/cross-mips-linux-uclibc/uclibc/metadata.xml
new file mode 100644
index 00000000..7d7faccb
--- /dev/null
+++ b/cross-mips-linux-uclibc/uclibc/metadata.xml
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>embedded</herd>
+ <maintainer>
+ <email>vapier@gentoo.org</email>
+ <description>Primary Maintainer</description>
+ </maintainer>
+ <maintainer>
+ <email>solar@gentoo.org</email>
+ <description>Secondary Maintainer</description>
+ </maintainer>
+ <longdescription>
+uClibc pronounced yew-see-lib-see is a C library for developing embedded Linux
+systems. It is much smaller than the GNU C Library, but nearly all applications supported
+by glibc also work perfectly with uClibc. Porting applications from glibc to uClibc
+typically involves just recompiling the source code. uClibc even supports shared libraries
+and threading. It currently runs on standard Linux and MMU-less (also known as uClinux)
+systems with support for alpha, ARM, cris, i386, i960, h8300, m68k, mips/mipsel, PowerPC,
+SH, SPARC, and v850 processors.
+</longdescription>
+<use>
+ <flag name='ssp'>Force the use of ssp to be built into a hardened uclibc setup</flag>
+ <flag name='pregen'>Use pregenerated locales</flag>
+ <flag name='savedconfig'>Adds support for user defined configs</flag>
+ <flag name='uclibc-compat'>Build uclibc with backwards compatible
+ options</flag>
+ <flag name='userlocales'>Build only the locales specified in
+ /etc/locales.build</flag>
+ <flag name='wordexp'>Add support for word expansion (wordexp.h)</flag>
+</use>
+</pkgmetadata>
diff --git a/cross-mips-linux-uclibc/uclibc/uclibc b/cross-mips-linux-uclibc/uclibc/uclibc
new file mode 120000
index 00000000..e2d3dd3f
--- /dev/null
+++ b/cross-mips-linux-uclibc/uclibc/uclibc
@@ -0,0 +1 @@
+/usr/portage/sys-libs/uclibc \ No newline at end of file
diff --git a/cross-mips-linux-uclibc/uclibc/uclibc-0.9.27-r1.ebuild b/cross-mips-linux-uclibc/uclibc/uclibc-0.9.27-r1.ebuild
new file mode 100644
index 00000000..e2acb33e
--- /dev/null
+++ b/cross-mips-linux-uclibc/uclibc/uclibc-0.9.27-r1.ebuild
@@ -0,0 +1,401 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/uclibc/uclibc-0.9.27-r1.ebuild,v 1.32 2008/11/01 07:33:09 vapier Exp $
+
+inherit eutils flag-o-matic toolchain-funcs
+
+export CBUILD=${CBUILD:-${CHOST}}
+export CTARGET=${CTARGET:-${CHOST}}
+if [[ ${CTARGET} == ${CHOST} ]] ; then
+ if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then
+ export CTARGET=${CATEGORY/cross-}
+ fi
+fi
+# Handle the case where we want uclibc on glibc ...
+if [[ ${CTARGET} == ${CHOST} ]] && [[ ${CHOST} != *-uclibc ]] ; then
+ export UCLIBC_AND_GLIBC="sitting in a tree"
+ export CTARGET=${CHOST%%-*}-pc-linux-uclibc
+fi
+
+# To make a new SVN_VER we do.
+# wget -O - http://uclibc.org/downloads/snapshots/uClibc-`date +%Y%m%d`.tar.bz2 | tar jxf -
+# tar jxf /usr/portage/distfiles/uClibc-0.9.27.tar.bz2
+# diff -urN --exclude .svn uClibc-0.9.27 uClibc | bzip2 - > uClibc-0.9.27-svn-update-`date +%Y%m%d`.patch.bz2
+# rm -rf uClibc-0.9.27-svn-update-`date +%Y%m%d`.patch.bz2 uClibc uClibc-0.9.27
+
+MY_P=uClibc-${PV}
+SVN_VER="20050114"
+PATCH_VER="1.6"
+DESCRIPTION="C library for developing embedded Linux systems"
+HOMEPAGE="http://www.uclibc.org/"
+SRC_URI="http://www.kernel.org/pub/linux/libs/uclibc/${MY_P}.tar.bz2
+ mirror://gentoo/${MY_P}-cvs-update-${SVN_VER}.patch.bz2
+ mirror://gentoo/${MY_P}-patches-${PATCH_VER}.tar.bz2
+ nls? ( !userlocales? ( pregen? (
+ x86? ( http://www.uclibc.org/downloads/uClibc-locale-030818.tgz )
+ ) ) )"
+
+LICENSE="LGPL-2"
+[[ ${CTARGET} != ${CHOST} ]] \
+ && SLOT="${CTARGET}" \
+ || SLOT="0"
+KEYWORDS="-* arm m68k mips ppc sh sparc x86"
+IUSE="build debug hardened ipv6 minimal nls pregen userlocales wordexp crosscompile_opts_headers-only"
+RESTRICT="strip"
+
+RDEPEND=""
+if [[ ${CTARGET} == ${CHOST} ]] ; then
+ DEPEND="virtual/os-headers app-misc/pax-utils"
+ PROVIDE="virtual/libc"
+else
+ DEPEND=""
+fi
+
+S=${WORKDIR}/${MY_P}
+
+alt_build_kprefix() {
+ if [[ ${CBUILD} == ${CHOST} && ${CTARGET} == ${CHOST} ]] \
+ || [[ -n ${UCLIBC_AND_GLIBC} ]]
+ then
+ echo /usr
+ else
+ echo /usr/${CTARGET}/usr
+ fi
+}
+just_headers() {
+ use crosscompile_opts_headers-only && [[ ${CHOST} != ${CTARGET} ]]
+}
+
+uclibc_endian() {
+ # XXX: this wont work for a toolchain which is bi-endian, but we
+ # dont have any such thing at the moment, so not a big deal
+ touch "${T}"/endian.s
+ $(tc-getAS ${CTARGET}) "${T}"/endian.s -o "${T}"/endian.o
+ case $(file "${T}"/endian.o) in
+ *" MSB "*) echo "big";;
+ *" LSB "*) echo "little";;
+ *) echo "NFC";;
+ esac
+ rm -f "${T}"/endian.{s,o}
+}
+
+pkg_setup() {
+ just_headers && return 0
+ has_version ${CATEGORY}/uclibc || return 0
+ [[ -n ${UCLIBC_AND_GLIBC} ]] && return 0
+ [[ ${ROOT} != "/" ]] && return 0
+
+ if ! built_with_use --missing false ${CATEGORY}/uclibc nls && use nls && ! use pregen ; then
+ eerror "You previously built uclibc with USE=-nls."
+ eerror "You cannot generate locale data with this"
+ eerror "system. Please rerun emerge with USE=pregen."
+ die "host cannot support locales"
+ elif built_with_use --missing false ${CATEGORY}/uclibc nls && ! use nls ; then
+ eerror "You previously built uclibc with USE=nls."
+ eerror "Rebuilding uClibc with USE=-nls will prob"
+ eerror "destroy your system."
+ die "switching to nls is baaaad"
+ fi
+}
+
+CPU_ARM="GENERIC_ARM ARM{610,710,720T,920T,922T,926T,_{SA110,SA1100,XSCALE}}"
+CPU_M68K=""
+CPU_MIPS="MIPS_ISA_{1,2,3,4,MIPS{32,64}}"
+CPU_PPC=""
+CPU_SH="SH{2,3,4,5}"
+CPU_SPARC=""
+CPU_X86="GENERIC_386 {3,4,5,6}86 586MMX PENTIUM{II,III,4} K{6,7} ELAN CRUSOE WINCHIP{C6,2} CYRIXIII NEHEMIAH"
+IUSE_UCLIBC_CPU="${CPU_ARM} ${CPU_MIPS} ${CPU_PPC} ${CPU_SH} ${CPU_SPARC} ${CPU_X86}"
+
+check_cpu_opts() {
+ local cpu_var="CPU_$(echo $(tc-arch) | tr [a-z] [A-Z])"
+ if [[ -z ${UCLIBC_CPU} ]] ; then
+ ewarn "You really should consider setting UCLIBC_CPU"
+ ewarn "Otherwise, the build will be generic (read: slow)."
+ ewarn "Available CPU options:"
+ UCLIBC_CPU=$(eval echo ${!cpu_var})
+ echo ${UCLIBC_CPU}
+ export UCLIBC_CPU=${UCLIBC_CPU%% *}
+ else
+ local cpu found=0
+ for cpu in $(eval echo ${!cpu_var}) ; do
+ [[ ${UCLIBC_CPU} == "${cpu}" ]] && found=1 && break
+ done
+ if [[ ${found} -eq 0 ]] ; then
+ ewarn "UCLIBC_CPU choice '${UCLIBC_CPU}' not supported"
+ ewarn "Valid choices:"
+ eval echo ${!cpu_var}
+ die "pick a supported cpu type"
+ fi
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ check_cpu_opts
+
+ echo
+ einfo "Runtime Prefix: /"
+ einfo "Devel Prefix: /usr"
+ einfo "Kernel Prefix: $(alt_build_kprefix)"
+ einfo "CBUILD: ${CBUILD}"
+ einfo "CHOST: ${CHOST}"
+ einfo "CTARGET: ${CTARGET}"
+ einfo "CPU: ${UCLIBC_CPU}"
+ einfo "ENDIAN: $(uclibc_endian)"
+ echo
+
+ ########## PATCHES ##########
+
+ [[ -n ${SVN_VER} ]] && \
+ epatch "${WORKDIR}"/${MY_P}-cvs-update-${SVN_VER}.patch
+
+ if [[ -n ${PATCH_VER} ]] ; then
+ unpack ${MY_P}-patches-${PATCH_VER}.tar.bz2
+ EPATCH_SUFFIX="patch"
+ epatch "${WORKDIR}"/patch
+ # math functions (sinf,cosf,tanf,atan2f,powf,fabsf,copysignf,scalbnf,rem_pio2f)
+ use build || epatch "${WORKDIR}"/patch/math
+ fi
+
+ ########## CPU SELECTION ##########
+
+ local target config_target
+ case $(tc-arch) in
+ arm) target="arm"; config_target="GENERIC_ARM";;
+ m68k) target="m68k"; config_target="no cpu-specific options";;
+ mips) target="mips"; config_target="MIPS_ISA_1";;
+ ppc) target="powerpc"; config_target="no cpu-specific options";;
+ sh) target="sh"; config_target="SH4";;
+ x86) target="i386"; config_target="GENERIC_386";;
+ *) die "$(tc-arch) lists no defaults :/";;
+ esac
+ sed -i -e "s:default TARGET_i386:default TARGET_${target}:" \
+ extra/Configs/Config.in
+ sed -i -e "s:default CONFIG_${config_target}:default CONFIG_${UCLIBC_CPU:-${config_target}}:" \
+ extra/Configs/Config.${target}
+
+ ########## CONFIG SETUP ##########
+
+ make defconfig >/dev/null || die "could not config"
+
+ for def in UCLIBC_PROFILING DO{DEBUG,ASSERTS} SUPPORT_LD_DEBUG{,_EARLY} ; do
+ sed -i -e "s:${def}=y:# ${def} is not set:" .config
+ done
+ if use debug ; then
+ echo "SUPPORT_LD_DEBUG=y" >> .config
+ echo "DODEBUG=y" >> .config
+ fi
+
+ sed -i -e '/ARCH_.*_ENDIAN/d' .config
+ echo "ARCH_$(uclibc_endian | tr [a-z] [A-Z])_ENDIAN=y" >> .config
+
+ if [[ $(tc-is-softfloat) != "no" ]] ; then
+ sed -i -e '/^HAS_FPU=y$/d' .config
+ echo 'HAS_FPU=n' >> .config
+ fi
+
+ for def in DO_C99_MATH UCLIBC_HAS_{RPC,CTYPE_CHECKED,WCHAR,HEXADECIMAL_FLOATS,GLIBC_CUSTOM_PRINTF,FOPEN_EXCLUSIVE_MODE,GLIBC_CUSTOM_STREAMS,PRINTF_M_SPEC,FTW} ; do
+ sed -i -e "s:# ${def} is not set:${def}=y:" .config
+ done
+ echo "UCLIBC_HAS_FULL_RPC=y" >> .config
+ echo "PTHREADS_DEBUG_SUPPORT=y" >> .config
+ echo "UCLIBC_HAS_TZ_FILE_READ_MANY=n" >> .config
+
+ if use nls ; then
+ sed -i -e "s:# UCLIBC_HAS_LOCALE is not set:UCLIBC_HAS_LOCALE=y:" .config
+ echo "UCLIBC_HAS_XLOCALE=n" >> .config
+ echo "UCLIBC_HAS_GLIBC_DIGIT_GROUPING=y" >> .config
+ echo "UCLIBC_HAS_SCANF_LENIENT_DIGIT_GROUPING=y" >> .config
+ echo "UCLIBC_HAS_GETTEXT_AWARENESS=y" >> .config
+
+ if use pregen ; then
+ echo "UCLIBC_PREGENERATED_LOCALE_DATA=y" >> .config
+ echo "UCLIBC_DOWNLOAD_PREGENERATED_LOCALE_DATA=y" >> .config
+ if use userlocales ; then
+ cp "${DISTDIR}"/${MY_P}-user-locale.tar.gz \
+ extra/locale/uClibc-locale-030818.tgz \
+ || die "could not copy ${MY_P}-user-locale.tar.gz"
+ else
+ cp "${DISTDIR}"/${MY_P}-$(tc-arch)-full-locale.tar.gz \
+ extra/locale/uClibc-locale-030818.tgz \
+ || die "could not copy locale"
+ fi
+ else
+ echo "UCLIBC_PREGENERATED_LOCALE_DATA=n" >> .config
+ fi
+ else
+ echo "UCLIBC_HAS_LOCALE=n" >> .config
+ fi
+
+ use ipv6 && sed -i -e "s:# UCLIBC_HAS_IPV6 is not set:UCLIBC_HAS_IPV6=y:" .config
+
+ # uncomment if you miss wordexp (alsa-lib)
+ use wordexp && sed -i -e "s:# UCLIBC_HAS_WORDEXP is not set:UCLIBC_HAS_WORDEXP=y:" .config
+
+ # we need to do it independently of hardened to get ssp.c built into libc
+ sed -i -e "s:# UCLIBC_SECURITY.*:UCLIBC_SECURITY=y:" .config
+ echo "UCLIBC_HAS_SSP=y" >> .config
+ echo "PROPOLICE_BLOCK_ABRT=n" >> .config
+ if use debug ; then
+ echo "PROPOLICE_BLOCK_SEGV=y" >> .config
+ echo "PROPOLICE_BLOCK_KILL=n" >> .config
+ else
+ echo "PROPOLICE_BLOCK_SEGV=n" >> .config
+ echo "PROPOLICE_BLOCK_KILL=y" >> .config
+ fi
+
+ if use hardened ; then
+ if has $(tc-arch) mips ppc x86 ; then
+ echo "UCLIBC_BUILD_PIE=y" >> .config
+ else
+ echo "UCLIBC_BUILD_PIE=n" >> .config
+ fi
+ echo "SSP_QUICK_CANARY=n" >> .config
+ echo "UCLIBC_BUILD_SSP=y" >> .config
+ echo "UCLIBC_BUILD_RELRO=y" >> .config
+ echo "UCLIBC_BUILD_NOW=y" >> .config
+ echo "UCLIBC_BUILD_NOEXECSTACK=y" >> .config
+ else
+ echo "UCLIBC_BUILD_PIE=n" >> .config
+ echo "SSP_QUICK_CANARY=y" >> .config
+ echo "UCLIBC_BUILD_SSP=n" >> .config
+ echo "UCLIBC_BUILD_RELRO=n" >> .config
+ echo "UCLIBC_BUILD_NOW=n" >> .config
+ echo "UCLIBC_BUILD_NOEXECSTACK=n" >> .config
+ fi
+
+ # we are building against system installed kernel headers
+ sed -i \
+ -e "/^KERNEL_SOURCE/s:=.*:=\"$(alt_build_kprefix)\":" \
+ -e "/^SHARED_LIB_LOADER_PREFIX/s:=.*:=\"/$(get_libdir)\":" \
+ -e "/^DEVEL_PREFIX/s:=.*:=\"/usr\":" \
+ -e "/^RUNTIME_PREFIX/s:=.*:=\"/\":" \
+ .config
+
+ yes "" 2> /dev/null | make -s oldconfig > /dev/null || die "could not make oldconfig"
+
+ chmod +x extra/scripts/relative_path.sh
+
+ cp .config myconfig
+
+ emake clean > /dev/null || die "could not clean"
+}
+
+setup_locales() {
+ cd "${S}"/extra/locale
+ if use userlocales && [[ -f ${ROOT}/etc/locales.build ]] ; then
+ :;
+ elif use minimal ; then
+ find ./charmaps -name ASCII.pairs > codesets.txt
+ find ./charmaps -name ISO-8859-1.pairs >> codesets.txt
+ cat <<-EOF > locales.txt
+ @euro e
+ UTF-8 yes
+ 8-bit yes
+ en_US ISO-8859-1
+ en_US.UTF-8 UTF-8
+ EOF
+ else
+ find ./charmaps -name '*.pairs' > codesets.txt
+ cp LOCALES locales.txt
+ fi
+ cd -
+}
+
+src_compile() {
+ cp myconfig .config
+
+ # last release doesnt support parallel build,
+ # but the current svn repo does ...
+ export MAKEOPTS="${MAKEOPTS} -j1"
+ type -p ${CTARGET}-ar && export MAKEOPTS="${MAKEOPTS} CROSS=${CTARGET}-"
+
+ emake headers || die "make headers failed"
+ just_headers && return 0
+
+ if use nls && ! use pregen ; then
+ cd extra/locale
+ make clean || die "make locale clean failed"
+ setup_locales
+ emake || die "could not make locales"
+ cd ../..
+ fi
+
+ emake || die "could not make"
+ [[ ${CTARGET} != ${CHOST} ]] && return 0
+
+ if [[ ${CHOST} == *-uclibc ]] ; then
+ emake utils || die "could not make utils"
+ fi
+}
+
+src_test() {
+ return 0
+
+ [[ ${CHOST} != ${CTARGET} ]] && return 0
+ [[ ${CBUILD} != ${CHOST} ]] && return 0
+
+ # running tests require this
+ use build || addwrite /dev/ptmx
+
+ # This is wrong, but uclibc's tests fail bad when screwing
+ # around with sandbox, so lets just punt it
+ unset LD_PRELOAD
+
+ # assert test fails on pax/grsec enabled kernels - normal
+ # vfork test fails in sandbox (both glibc/uclibc)
+ cd test
+ make || die "test failed"
+}
+
+src_install() {
+ local sysroot=${D}
+ [[ ${CHOST} != ${CTARGET} ]] && sysroot="${sysroot}/usr/${CTARGET}"
+
+ local target="install"
+ just_headers && target="install_dev"
+ emake PREFIX="${sysroot}" ${target} || die "install failed"
+
+ # remove files coming from kernel-headers
+ rm -rf "${D}"${sysroot}/usr/include/{asm,linux,asm-generic}
+
+ # clean up misc cruft
+ find "${D}"${sysroot}/usr/include -type d '(' -name CVS -o -name .svn ')' -print0 | xargs -0 rm -r
+ find "${D}"${sysroot}/usr/include -type f -name .cvsignore -print0 | xargs -0 rm -f
+
+ # Make sure we install the sys-include symlink so that when
+ # we build a 2nd stage cross-compiler, gcc finds the target
+ # system headers correctly. See gcc/doc/gccinstall.info
+ if [[ ${CTARGET} != ${CHOST} ]] ; then
+ dosym usr/include /usr/${CTARGET}/sys-include
+ return 0
+ fi
+
+ if [[ ${CHOST} == *-uclibc* ]] ; then
+ emake PREFIX="${D}" install_utils || die "install-utils failed"
+ dobin extra/scripts/getent
+ fi
+
+ dodoc Changelog* README TODO docs/*.txt DEDICATION.mjn3
+ doman debian/*.1
+}
+
+pkg_postinst() {
+ [[ ${CTARGET} != ${CHOST} ]] && return 0
+ [[ ${CHOST} != *-uclibc* ]] && return 0
+
+ if [[ ! -e ${ROOT}/etc/TZ ]] ; then
+ ewarn "Please remember to set your timezone in /etc/TZ"
+ [[ ! -d ${ROOT}/etc ]] && mkdir -p "${ROOT}"/etc
+ echo "UTC" > "${ROOT}"/etc/TZ
+ fi
+
+ if [[ ${ROOT} == "/" ]] ; then
+ # update cache before reloading init
+ /sbin/ldconfig
+ # reload init ...
+ [[ -x /sbin/telinit ]] && /sbin/telinit U &> /dev/null
+ fi
+}
diff --git a/cross-mips-linux-uclibc/uclibc/uclibc-0.9.28.3-r3.ebuild b/cross-mips-linux-uclibc/uclibc/uclibc-0.9.28.3-r3.ebuild
new file mode 100644
index 00000000..16df131d
--- /dev/null
+++ b/cross-mips-linux-uclibc/uclibc/uclibc-0.9.28.3-r3.ebuild
@@ -0,0 +1,461 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/uclibc/uclibc-0.9.28.3-r3.ebuild,v 1.4 2008/11/01 07:33:09 vapier Exp $
+
+#ESVN_REPO_URI="svn://uclibc.org/trunk/uClibc"
+#inherit subversion
+inherit eutils flag-o-matic toolchain-funcs
+
+export CBUILD=${CBUILD:-${CHOST}}
+export CTARGET=${CTARGET:-${CHOST}}
+if [[ ${CTARGET} == ${CHOST} ]] ; then
+ if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then
+ export CTARGET=${CATEGORY/cross-}
+ fi
+fi
+# Handle the case where we want uclibc on glibc ...
+if [[ ${CTARGET} == ${CHOST} ]] && [[ ${CHOST} != *-uclibc ]] ; then
+ export UCLIBC_AND_GLIBC="sitting in a tree"
+ export CTARGET=${CHOST%%-*}-pc-linux-uclibc
+fi
+
+MY_P=uClibc-${PV}
+SVN_VER=""
+PATCH_VER="1.3"
+DESCRIPTION="C library for developing embedded Linux systems"
+HOMEPAGE="http://www.uclibc.org/"
+SRC_URI="mirror://kernel/linux/libs/uclibc/${MY_P}.tar.bz2
+ http://uclibc.org/downloads/${MY_P}.tar.bz2
+ nls? ( !userlocales? ( pregen? (
+ x86? ( http://www.uclibc.org/downloads/uClibc-locale-030818.tgz )
+ ) ) )"
+[[ -z ${SVN_VER} ]] || \
+ SRC_URI="${SRC_URI} mirror://gentoo/${MY_P}-svn-update-${SVN_VER}.patch.bz2"
+[[ -z ${PATCH_VER} ]] || \
+ SRC_URI="${SRC_URI} mirror://gentoo/${MY_P}-patches-${PATCH_VER}.tar.bz2"
+
+LICENSE="LGPL-2"
+[[ ${CTARGET} != ${CHOST} ]] \
+ && SLOT="${CTARGET}" \
+ || SLOT="0"
+KEYWORDS="-* arm ~m68k -mips ppc ~sh ~sparc x86"
+IUSE="build uclibc-compat debug hardened iconv ipv6 minimal nls pregen savedconfig userlocales wordexp crosscompile_opts_headers-only"
+RESTRICT="strip"
+
+RDEPEND=""
+if [[ ${CTARGET} == ${CHOST} ]] ; then
+ DEPEND="virtual/os-headers app-misc/pax-utils"
+ PROVIDE="virtual/libc"
+else
+ DEPEND=""
+fi
+
+S=${WORKDIR}/${MY_P}
+
+alt_build_kprefix() {
+ if [[ ${CBUILD} == ${CHOST} && ${CTARGET} == ${CHOST} ]] \
+ || [[ -n ${UCLIBC_AND_GLIBC} ]]
+ then
+ echo /usr
+ else
+ echo /usr/${CTARGET}/usr
+ fi
+}
+just_headers() {
+ use crosscompile_opts_headers-only && [[ ${CHOST} != ${CTARGET} ]]
+}
+
+uclibc_endian() {
+ # XXX: this wont work for a toolchain which is bi-endian, but we
+ # dont have any such thing at the moment, so not a big deal
+ touch "${T}"/endian.s
+ $(tc-getAS ${CTARGET}) "${T}"/endian.s -o "${T}"/endian.o
+ case $(file "${T}"/endian.o) in
+ *" MSB "*) echo "big";;
+ *" LSB "*) echo "little";;
+ *) echo "NFC";;
+ esac
+ rm -f "${T}"/endian.{s,o}
+}
+
+pkg_setup() {
+ just_headers && return 0
+ has_version ${CATEGORY}/uclibc || return 0
+ [[ -n ${UCLIBC_AND_GLIBC} ]] && return 0
+ [[ ${ROOT} != "/" ]] && return 0
+ [[ ${CATEGORY} == cross-* ]] && return 0
+
+ if ! built_with_use --missing false ${CATEGORY}/uclibc nls && use nls && ! use pregen ; then
+ eerror "You previously built uclibc with USE=-nls."
+ eerror "You cannot generate locale data with this"
+ eerror "system. Please rerun emerge with USE=pregen."
+ die "host cannot support locales"
+ elif built_with_use --missing false ${CATEGORY}/uclibc nls && ! use nls ; then
+ eerror "You previously built uclibc with USE=nls."
+ eerror "Rebuilding uClibc with USE=-nls will prob"
+ eerror "destroy your system."
+ die "switching from nls is baaaad"
+ fi
+}
+
+PIE_STABLE="arm mips ppc x86"
+
+CPU_ALPHA=""
+CPU_AMD64=""
+CPU_ARM="GENERIC_ARM ARM{610,710,720T,920T,922T,926T,_{SA110,SA1100,XSCALE}}"
+CPU_IA64=""
+CPU_M68K=""
+CPU_MIPS="MIPS_ISA_{1,2,3,4,MIPS{32,64}}"
+CPU_PPC=""
+CPU_SH="SH{2,3,4,5}"
+CPU_SPARC=""
+CPU_X86="GENERIC_386 {3,4,5,6}86 586MMX PENTIUM{II,III,4} K{6,7} ELAN CRUSOE WINCHIP{C6,2} CYRIXIII NEHEMIAH"
+IUSE_UCLIBC_CPU="${CPU_ARM} ${CPU_MIPS} ${CPU_PPC} ${CPU_SH} ${CPU_SPARC} ${CPU_X86}"
+
+check_cpu_opts() {
+ local cpu_var="CPU_$(echo $(tc-arch) | tr [a-z] [A-Z])"
+ [[ -z ${!cpu_var} ]] && return 0
+
+ if [[ -z ${UCLIBC_CPU} ]] ; then
+ ewarn "You really should consider setting UCLIBC_CPU"
+ ewarn "Otherwise, the build will be generic (read: slow)."
+ ewarn "Available CPU options:"
+ UCLIBC_CPU=$(eval echo ${!cpu_var})
+ echo ${UCLIBC_CPU}
+ case ${CTARGET} in
+ mips[1234]*) export UCLIBC_CPU="MIPS_ISA_${CTARGET:4:1}";;
+ sh[2345]*) export UCLIBC_CPU="SH${CTARGET:2:1}";;
+ i[456]86*) export UCLIBC_CPU="${CTARGET:1:1}86";;
+ *) export UCLIBC_CPU=${UCLIBC_CPU%% *};;
+ esac
+ else
+ local cpu found=0
+ for cpu in $(eval echo ${!cpu_var}) ; do
+ [[ ${UCLIBC_CPU} == "${cpu}" ]] && found=1 && break
+ done
+ if [[ ${found} -eq 0 ]] ; then
+ ewarn "UCLIBC_CPU choice '${UCLIBC_CPU}' not supported"
+ ewarn "Valid choices:"
+ eval echo ${!cpu_var}
+ die "pick a supported cpu type"
+ fi
+ fi
+}
+
+src_unpack() {
+ [[ -n ${ESVN_REPO_URI} ]] \
+ && subversion_src_unpack \
+ || unpack ${A}
+ cd "${S}"
+
+ check_cpu_opts
+
+ echo
+ einfo "Runtime Prefix: /"
+ einfo "Devel Prefix: /usr"
+ einfo "Kernel Prefix: $(alt_build_kprefix)"
+ einfo "CBUILD: ${CBUILD}"
+ einfo "CHOST: ${CHOST}"
+ einfo "CTARGET: ${CTARGET}"
+ einfo "CPU: ${UCLIBC_CPU:-default}"
+ einfo "ENDIAN: $(uclibc_endian)"
+ echo
+
+ ########## PATCHES ##########
+
+ [[ -n ${SVN_VER} ]] && \
+ epatch "${WORKDIR}"/${MY_P}-cvs-update-${SVN_VER}.patch
+
+ if [[ -n ${PATCH_VER} ]] ; then
+ unpack ${MY_P}-patches-${PATCH_VER}.tar.bz2
+ EPATCH_SUFFIX="patch"
+ epatch "${WORKDIR}"/patch
+ # math functions (sinf,cosf,tanf,atan2f,powf,fabsf,copysignf,scalbnf,rem_pio2f)
+ cp "${WORKDIR}"/patch/math/libm/* "${S}"/libm/ || die
+ epatch "${WORKDIR}"/patch/math
+ fi
+
+ epatch "${FILESDIR}"/uClibc-mips.diff
+
+ ########## CPU SELECTION ##########
+
+ local target config_target
+ case $(tc-arch) in
+ alpha) target="alpha"; config_target="no cpu-specific options";;
+ amd64) target="x86_64"; config_target="no cpu-specific options";;
+ arm) target="arm"; config_target="GENERIC_ARM";;
+ ia64) target="ia64"; config_target="no cpu-specific options";;
+ m68k) target="m68k"; config_target="no cpu-specific options";;
+ mips) target="mips"; config_target="MIPS_ISA_1";;
+ ppc) target="powerpc"; config_target="no cpu-specific options";;
+ sh) target="sh"; config_target="SH4";;
+ sparc) target="sparc"; config_target="no cpu-specific options";;
+ x86) target="i386"; config_target="GENERIC_386";;
+ *) die "$(tc-arch) lists no defaults :/";;
+ esac
+ sed -i -e "s:default TARGET_i386:default TARGET_${target}:" \
+ extra/Configs/Config.in
+ sed -i -e "s:default CONFIG_${config_target}:default CONFIG_${UCLIBC_CPU:-${config_target}}:" \
+ extra/Configs/Config.${target}
+
+ ########## CONFIG SETUP ##########
+
+ make defconfig >/dev/null || die "could not config"
+
+ for def in DO{DEBUG{,_PT},ASSERTS} SUPPORT_LD_DEBUG{,_EARLY} ; do
+ sed -i -e "s:${def}=y:# ${def} is not set:" .config
+ done
+ if use debug ; then
+ #echo "SUPPORT_LD_DEBUG_EARLY=y" >> .config
+ echo "SUPPORT_LD_DEBUG=y" >> .config
+ echo "DODEBUG=y" >> .config
+ #echo "DODEBUG_PT=y" >> .config
+ fi
+
+ sed -i -e '/ARCH_.*_ENDIAN/d' .config
+ echo "ARCH_$(uclibc_endian | tr [a-z] [A-Z])_ENDIAN=y" >> .config
+
+ if [[ $(tc-is-softfloat) != "no" ]] ; then
+ sed -i -e '/^HAS_FPU=y$/d' .config
+ echo 'HAS_FPU=n' >> .config
+ fi
+
+ local moredefs="DL_FINI_CRT_COMPAT"
+ # We need todo this for a few months. .28 is a major upgrade.
+ # Don't do it from cross-compiling case though
+ if ! use uclibc-compat ; then
+ if [[ -z ${UCLIBC_AND_GLIBC} ]] && [[ -z ${UCLIBC_SCANNED_COMPAT} ]] && \
+ ! just_headers && [[ ${CHOST} == ${CTARGET} ]] ; then
+ local fnames=""
+ einfo "Doing a scanelf in paths for bins containing the __uClibc_start_main symbol"
+ fnames=$(scanelf -pyqs__uClibc_start_main -F%F#s)
+ if [[ -z ${fnames} ]] ; then
+ einfo "This system is clean."
+ einfo "To prevent the scanning of files again in the future you can export UCLIBC_SCANNED_COMPAT=1"
+ moredefs=""
+ else
+ ewarn "You need to remerge the packages that contain the following files before you can remerge ${P} without USE=uclibc-compat enabled."
+ ewarn "qfile ${fnames}"
+ echo
+ ewarn "Leaving on ${moredefs}"
+ fi
+ else
+ moredefs=""
+ fi
+ fi
+ for def in ${moredefs} MALLOC_GLIBC_COMPAT DO_C99_MATH UCLIBC_HAS_{RPC,CTYPE_CHECKED,WCHAR,HEXADECIMAL_FLOATS,GLIBC_CUSTOM_PRINTF,FOPEN_EXCLUSIVE_MODE,GLIBC_CUSTOM_STREAMS,PRINTF_M_SPEC,FTW} ; do
+ sed -i -e "s:# ${def} is not set:${def}=y:" .config
+ done
+ echo "UCLIBC_HAS_FULL_RPC=y" >> .config
+ echo "PTHREADS_DEBUG_SUPPORT=y" >> .config
+ echo "UCLIBC_HAS_TZ_FILE_READ_MANY=n" >> .config
+
+ if use iconv ; then
+ sed -i -e "s:# UCLIBC_HAS_LOCALE is not set:UCLIBC_HAS_LOCALE=y:" .config
+ echo "UCLIBC_HAS_XLOCALE=n" >> .config
+ echo "UCLIBC_HAS_GLIBC_DIGIT_GROUPING=y" >> .config
+ echo "UCLIBC_HAS_SCANF_LENIENT_DIGIT_GROUPING=y" >> .config
+
+ if use nls ; then
+ echo "UCLIBC_HAS_GETTEXT_AWARENESS=y" >> .config
+ else
+ echo "UCLIBC_HAS_GETTEXT_AWARENESS=n" >> .config
+ fi
+
+ if use pregen ; then
+ echo "UCLIBC_PREGENERATED_LOCALE_DATA=y" >> .config
+ echo "UCLIBC_DOWNLOAD_PREGENERATED_LOCALE_DATA=y" >> .config
+ if use userlocales ; then
+ cp "${DISTDIR}"/${MY_P}-user-locale.tar.gz \
+ extra/locale/uClibc-locale-030818.tgz \
+ || die "could not copy ${MY_P}-user-locale.tar.gz"
+ else
+ cp "${DISTDIR}"/${MY_P}-$(tc-arch)-full-locale.tar.gz \
+ extra/locale/uClibc-locale-030818.tgz \
+ || die "could not copy locale"
+ fi
+ else
+ echo "UCLIBC_PREGENERATED_LOCALE_DATA=n" >> .config
+ fi
+ else
+ echo "UCLIBC_HAS_LOCALE=n" >> .config
+ fi
+
+ use ipv6 && sed -i -e "s:# UCLIBC_HAS_IPV6 is not set:UCLIBC_HAS_IPV6=y:" .config
+
+ # uncomment if you miss wordexp (alsa-lib)
+ use wordexp && sed -i -e "s:# UCLIBC_HAS_WORDEXP is not set:UCLIBC_HAS_WORDEXP=y:" .config
+
+ # we need to do it independently of hardened to get ssp.c built into libc
+ sed -i -e "s:# UCLIBC_SECURITY.*:UCLIBC_SECURITY=y:" .config
+ echo "UCLIBC_HAS_SSP=y" >> .config
+ echo "SSP_USE_ERANDOM=n" >> .config
+ echo "PROPOLICE_BLOCK_ABRT=n" >> .config
+ if use debug ; then
+ echo "PROPOLICE_BLOCK_SEGV=y" >> .config
+ echo "PROPOLICE_BLOCK_KILL=n" >> .config
+ else
+ echo "PROPOLICE_BLOCK_SEGV=n" >> .config
+ echo "PROPOLICE_BLOCK_KILL=y" >> .config
+ fi
+
+ # arm/mips do not emit PT_GNU_STACK, but if we enable this here
+ # it will be emitted as RWE, ppc has to be checked, x86 needs it
+ # this option should be used independently of hardened
+ # relro could be also moved out of hardened
+ if has $(tc-arch) x86 ; then
+ echo "UCLIBC_BUILD_NOEXECSTACK=y" >> .config
+ else
+ echo "UCLIBC_BUILD_NOEXECSTACK=n" >> .config
+ fi
+ echo "UCLIBC_BUILD_RELRO=y" >> .config
+ if use hardened ; then
+ if has $(tc-arch) ${PIE_STABLE} ; then
+ echo "UCLIBC_BUILD_PIE=y" >> .config
+ else
+ echo "UCLIBC_BUILD_PIE=n" >> .config
+ fi
+ echo "SSP_QUICK_CANARY=n" >> .config
+ echo "UCLIBC_BUILD_SSP=y" >> .config
+ echo "UCLIBC_BUILD_NOW=y" >> .config
+ else
+ echo "UCLIBC_BUILD_PIE=n" >> .config
+ echo "SSP_QUICK_CANARY=y" >> .config
+ echo "UCLIBC_BUILD_SSP=n" >> .config
+ echo "UCLIBC_BUILD_NOW=n" >> .config
+ fi
+
+ # Allow users some custom control over the config
+ if use savedconfig ; then
+ for conf in ${PN}-${PV}-${PR} ${PN}-${PV} ${PN}; do
+ configfile=${ROOT}/etc/${PN}/${CTARGET}/${conf}.config
+ einfo "Checking existence of ${configfile} ..."
+ [[ -r ${configfile} ]] || configfile=/etc/${PN}/${CHOST}/${conf}.config
+ if [[ -r ${configfile} ]] ; then
+ cp "${configfile}" "${S}"/.config
+ einfo "Found your ${configfile} and using it."
+ einfo "Note that this feature is *totally unsupported*."
+ break
+ fi
+ done
+ fi
+
+ # setup build and run paths
+ local cross=${CTARGET}-
+ type -p ${cross}ar > /dev/null || cross=""
+ sed -i \
+ -e "/^CROSS_COMPILER_PREFIX/s:=.*:=\"${cross}\":" \
+ -e "/^KERNEL_SOURCE/s:=.*:=\"$(alt_build_kprefix)\":" \
+ -e "/^SHARED_LIB_LOADER_PREFIX/s:=.*:=\"/$(get_libdir)\":" \
+ -e "/^DEVEL_PREFIX/s:=.*:=\"/usr\":" \
+ -e "/^RUNTIME_PREFIX/s:=.*:=\"/\":" \
+ .config || die
+
+ yes "" 2> /dev/null | make -s oldconfig > /dev/null || die "could not make oldconfig"
+
+ cp .config myconfig
+
+ emake -s clean > /dev/null || die "could not clean"
+}
+
+setup_locales() {
+ cd "${S}"/extra/locale
+ if use userlocales && [[ -f ${ROOT}/etc/locales.build ]] ; then
+ :;
+ elif use minimal ; then
+ find ./charmaps -name ASCII.pairs > codesets.txt
+ find ./charmaps -name ISO-8859-1.pairs >> codesets.txt
+ cat <<-EOF > locales.txt
+ @euro e
+ UTF-8 yes
+ 8-bit yes
+ en_US ISO-8859-1
+ en_US.UTF-8 UTF-8
+ EOF
+ else
+ find ./charmaps -name '*.pairs' > codesets.txt
+ cp LOCALES locales.txt
+ fi
+ cd -
+}
+
+src_compile() {
+ cp myconfig .config
+
+ emake headers || die "make headers failed"
+ just_headers && return 0
+
+ if use iconv && ! use pregen ; then
+ cd extra/locale
+ make clean || die "make locale clean failed"
+ setup_locales
+ emake || die "make locales failed"
+ cd ../..
+ fi
+
+ emake || die "make failed"
+ if [[ ${CTARGET} != ${CHOST} ]] ; then
+ emake -C utils hostutils || die "make hostutils failed"
+ elif [[ ${CHOST} == *-uclibc ]] ; then
+ emake utils || die "make utils failed"
+ fi
+}
+
+src_test() {
+ [[ ${CHOST} != ${CTARGET} ]] && return 0
+ [[ ${CBUILD} != ${CHOST} ]] && return 0
+
+ # assert test fails on pax/grsec enabled kernels - normal
+ # vfork test fails in sandbox (both glibc/uclibc)
+ make UCLIBC_ONLY=1 check || die "test failed"
+}
+
+src_install() {
+ local sysroot=${D}
+ [[ ${CHOST} != ${CTARGET} ]] && sysroot="${sysroot}/usr/${CTARGET}"
+
+ local target="install"
+ just_headers && target="install_dev"
+ emake DESTDIR="${sysroot}" ${target} || die "install failed"
+
+ # remove files coming from kernel-headers
+ rm -rf "${sysroot}"/usr/include/{linux,asm*}
+
+ # Make sure we install the sys-include symlink so that when
+ # we build a 2nd stage cross-compiler, gcc finds the target
+ # system headers correctly. See gcc/doc/gccinstall.info
+ if [[ ${CTARGET} != ${CHOST} ]] ; then
+ dosym usr/include /usr/${CTARGET}/sys-include
+ if ! just_headers ; then
+ newbin utils/ldconfig.host ${CTARGET}-ldconfig || die
+ newbin utils/ldd.host ${CTARGET}-ldd || die
+ fi
+ return 0
+ fi
+
+ if [[ ${CHOST} == *-uclibc* ]] ; then
+ emake DESTDIR="${D}" install_utils || die "install-utils failed"
+ dobin extra/scripts/getent
+ fi
+
+ dodoc Changelog* README TODO docs/*.txt DEDICATION.mjn3
+ doman docs/man/*.[1-9]
+}
+
+pkg_postinst() {
+ [[ ${CTARGET} != ${CHOST} ]] && return 0
+ [[ ${CHOST} != *-uclibc* ]] && return 0
+
+ if [[ ! -e ${ROOT}/etc/TZ ]] ; then
+ ewarn "Please remember to set your timezone in /etc/TZ"
+ [[ ! -d ${ROOT}/etc ]] && mkdir -p "${ROOT}"/etc
+ echo "UTC" > "${ROOT}"/etc/TZ
+ fi
+
+ if [[ ${ROOT} == "/" ]] ; then
+ # update cache before reloading init
+ /sbin/ldconfig
+ # reload init ...
+ [[ -x /sbin/telinit ]] && /sbin/telinit U &> /dev/null
+ fi
+}
diff --git a/cross-mips-linux-uclibc/uclibc/uclibc-0.9.28.3-r7.ebuild b/cross-mips-linux-uclibc/uclibc/uclibc-0.9.28.3-r7.ebuild
new file mode 100644
index 00000000..90a4422a
--- /dev/null
+++ b/cross-mips-linux-uclibc/uclibc/uclibc-0.9.28.3-r7.ebuild
@@ -0,0 +1,459 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/uclibc/uclibc-0.9.28.3-r7.ebuild,v 1.3 2008/11/01 07:33:09 vapier Exp $
+
+#ESVN_REPO_URI="svn://uclibc.org/trunk/uClibc"
+#inherit subversion
+inherit eutils flag-o-matic toolchain-funcs
+
+export CBUILD=${CBUILD:-${CHOST}}
+export CTARGET=${CTARGET:-${CHOST}}
+if [[ ${CTARGET} == ${CHOST} ]] ; then
+ if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then
+ export CTARGET=${CATEGORY/cross-}
+ fi
+fi
+# Handle the case where we want uclibc on glibc ...
+if [[ ${CTARGET} == ${CHOST} ]] && [[ ${CHOST} != *-uclibc ]] ; then
+ export UCLIBC_AND_GLIBC="sitting in a tree"
+ export CTARGET=${CHOST%%-*}-pc-linux-uclibc
+fi
+
+MY_P=uClibc-${PV}
+SVN_VER=""
+PATCH_VER="1.8"
+DESCRIPTION="C library for developing embedded Linux systems"
+HOMEPAGE="http://www.uclibc.org/"
+SRC_URI="mirror://kernel/linux/libs/uclibc/${MY_P}.tar.bz2
+ http://uclibc.org/downloads/${MY_P}.tar.bz2
+ nls? ( !userlocales? ( pregen? (
+ x86? ( http://www.uclibc.org/downloads/uClibc-locale-030818.tgz )
+ ) ) )"
+[[ -z ${SVN_VER} ]] || \
+ SRC_URI="${SRC_URI} mirror://gentoo/${MY_P}-svn-update-${SVN_VER}.patch.bz2"
+[[ -z ${PATCH_VER} ]] || \
+ SRC_URI="${SRC_URI} mirror://gentoo/${MY_P}-patches-${PATCH_VER}.tar.bz2"
+
+LICENSE="LGPL-2"
+[[ ${CTARGET} != ${CHOST} ]] \
+ && SLOT="${CTARGET}" \
+ || SLOT="0"
+KEYWORDS="-* ~arm ~m68k -mips ~ppc ~sh ~sparc ~x86"
+IUSE="build uclibc-compat debug hardened iconv ipv6 minimal nls pregen savedconfig userlocales wordexp crosscompile_opts_headers-only"
+RESTRICT="strip"
+
+RDEPEND=""
+if [[ ${CTARGET} == ${CHOST} ]] ; then
+ DEPEND="virtual/os-headers app-misc/pax-utils"
+ PROVIDE="virtual/libc"
+else
+ DEPEND=""
+fi
+
+S=${WORKDIR}/${MY_P}
+
+alt_build_kprefix() {
+ if [[ ${CBUILD} == ${CHOST} && ${CTARGET} == ${CHOST} ]] \
+ || [[ -n ${UCLIBC_AND_GLIBC} ]]
+ then
+ echo /usr
+ else
+ echo /usr/${CTARGET}/usr
+ fi
+}
+just_headers() {
+ use crosscompile_opts_headers-only && [[ ${CHOST} != ${CTARGET} ]]
+}
+
+uclibc_endian() {
+ # XXX: this wont work for a toolchain which is bi-endian, but we
+ # dont have any such thing at the moment, so not a big deal
+ touch "${T}"/endian.s
+ $(tc-getAS ${CTARGET}) "${T}"/endian.s -o "${T}"/endian.o
+ case $(file "${T}"/endian.o) in
+ *" MSB "*) echo "big";;
+ *" LSB "*) echo "little";;
+ *) echo "NFC";;
+ esac
+ rm -f "${T}"/endian.{s,o}
+}
+
+pkg_setup() {
+ just_headers && return 0
+ has_version ${CATEGORY}/uclibc || return 0
+ [[ -n ${UCLIBC_AND_GLIBC} ]] && return 0
+ [[ ${ROOT} != "/" ]] && return 0
+ [[ ${CATEGORY} == cross-* ]] && return 0
+
+ if ! built_with_use --missing false ${CATEGORY}/uclibc nls && use nls && ! use pregen ; then
+ eerror "You previously built uclibc with USE=-nls."
+ eerror "You cannot generate locale data with this"
+ eerror "system. Please rerun emerge with USE=pregen."
+ die "host cannot support locales"
+ elif built_with_use --missing false ${CATEGORY}/uclibc nls && ! use nls ; then
+ eerror "You previously built uclibc with USE=nls."
+ eerror "Rebuilding uClibc with USE=-nls will prob"
+ eerror "destroy your system."
+ die "switching from nls is baaaad"
+ fi
+}
+
+PIE_STABLE="arm mips ppc x86"
+
+CPU_ALPHA=""
+CPU_AMD64=""
+CPU_ARM="GENERIC_ARM ARM{610,710,720T,920T,922T,926T,_{SA110,SA1100,XSCALE}}"
+CPU_IA64=""
+CPU_M68K=""
+CPU_MIPS="MIPS_ISA_{1,2,3,4,MIPS{32,64}}"
+CPU_PPC=""
+CPU_SH="SH{2,3,4,5}"
+CPU_SPARC=""
+CPU_X86="GENERIC_386 {3,4,5,6}86 586MMX PENTIUM{II,III,4} K{6,7} ELAN CRUSOE WINCHIP{C6,2} CYRIXIII NEHEMIAH"
+IUSE_UCLIBC_CPU="${CPU_ARM} ${CPU_MIPS} ${CPU_PPC} ${CPU_SH} ${CPU_SPARC} ${CPU_X86}"
+
+check_cpu_opts() {
+ local cpu_var="CPU_$(echo $(tc-arch) | tr [a-z] [A-Z])"
+ [[ -z ${!cpu_var} ]] && return 0
+
+ if [[ -z ${UCLIBC_CPU} ]] ; then
+ ewarn "You really should consider setting UCLIBC_CPU"
+ ewarn "Otherwise, the build will be generic (read: slow)."
+ ewarn "Available CPU options:"
+ UCLIBC_CPU=$(eval echo ${!cpu_var})
+ echo ${UCLIBC_CPU}
+ case ${CTARGET} in
+ mips[1234]*) export UCLIBC_CPU="MIPS_ISA_${CTARGET:4:1}";;
+ sh[2345]*) export UCLIBC_CPU="SH${CTARGET:2:1}";;
+ i[456]86*) export UCLIBC_CPU="${CTARGET:1:1}86";;
+ *) export UCLIBC_CPU=${UCLIBC_CPU%% *};;
+ esac
+ else
+ local cpu found=0
+ for cpu in $(eval echo ${!cpu_var}) ; do
+ [[ ${UCLIBC_CPU} == "${cpu}" ]] && found=1 && break
+ done
+ if [[ ${found} -eq 0 ]] ; then
+ ewarn "UCLIBC_CPU choice '${UCLIBC_CPU}' not supported"
+ ewarn "Valid choices:"
+ eval echo ${!cpu_var}
+ die "pick a supported cpu type"
+ fi
+ fi
+}
+
+src_unpack() {
+ [[ -n ${ESVN_REPO_URI} ]] \
+ && subversion_src_unpack \
+ || unpack ${A}
+ cd "${S}"
+
+ check_cpu_opts
+
+ echo
+ einfo "Runtime Prefix: /"
+ einfo "Devel Prefix: /usr"
+ einfo "Kernel Prefix: $(alt_build_kprefix)"
+ einfo "CBUILD: ${CBUILD}"
+ einfo "CHOST: ${CHOST}"
+ einfo "CTARGET: ${CTARGET}"
+ einfo "CPU: ${UCLIBC_CPU:-default}"
+ einfo "ENDIAN: $(uclibc_endian)"
+ echo
+
+ ########## PATCHES ##########
+
+ [[ -n ${SVN_VER} ]] && \
+ epatch "${WORKDIR}"/${MY_P}-cvs-update-${SVN_VER}.patch
+
+ if [[ -n ${PATCH_VER} ]] ; then
+ unpack ${MY_P}-patches-${PATCH_VER}.tar.bz2
+ EPATCH_SUFFIX="patch"
+ epatch "${WORKDIR}"/patch
+ # math functions (sinf,cosf,tanf,atan2f,powf,fabsf,copysignf,scalbnf,rem_pio2f)
+ cp "${WORKDIR}"/patch/math/libm/* "${S}"/libm/ || die
+ epatch "${WORKDIR}"/patch/math
+ fi
+
+ ########## CPU SELECTION ##########
+
+ local target config_target
+ case $(tc-arch) in
+ alpha) target="alpha"; config_target="no cpu-specific options";;
+ amd64) target="x86_64"; config_target="no cpu-specific options";;
+ arm) target="arm"; config_target="GENERIC_ARM";;
+ ia64) target="ia64"; config_target="no cpu-specific options";;
+ m68k) target="m68k"; config_target="no cpu-specific options";;
+ mips) target="mips"; config_target="MIPS_ISA_1";;
+ ppc) target="powerpc"; config_target="no cpu-specific options";;
+ sh) target="sh"; config_target="SH4";;
+ sparc) target="sparc"; config_target="no cpu-specific options";;
+ x86) target="i386"; config_target="GENERIC_386";;
+ *) die "$(tc-arch) lists no defaults :/";;
+ esac
+ sed -i -e "s:default TARGET_i386:default TARGET_${target}:" \
+ extra/Configs/Config.in
+ sed -i -e "s:default CONFIG_${config_target}:default CONFIG_${UCLIBC_CPU:-${config_target}}:" \
+ extra/Configs/Config.${target}
+
+ ########## CONFIG SETUP ##########
+
+ make defconfig >/dev/null || die "could not config"
+
+ for def in DO{DEBUG{,_PT},ASSERTS} SUPPORT_LD_DEBUG{,_EARLY} ; do
+ sed -i -e "s:${def}=y:# ${def} is not set:" .config
+ done
+ if use debug ; then
+ #echo "SUPPORT_LD_DEBUG_EARLY=y" >> .config
+ echo "SUPPORT_LD_DEBUG=y" >> .config
+ echo "DODEBUG=y" >> .config
+ #echo "DODEBUG_PT=y" >> .config
+ fi
+
+ sed -i -e '/ARCH_.*_ENDIAN/d' .config
+ echo "ARCH_$(uclibc_endian | tr [a-z] [A-Z])_ENDIAN=y" >> .config
+
+ if [[ $(tc-is-softfloat) != "no" ]] ; then
+ sed -i -e '/^HAS_FPU=y$/d' .config
+ echo 'HAS_FPU=n' >> .config
+ fi
+
+ local moredefs="DL_FINI_CRT_COMPAT"
+ # We need todo this for a few months. .28 is a major upgrade.
+ # Don't do it from cross-compiling case though
+ if ! use uclibc-compat ; then
+ if [[ -z ${UCLIBC_AND_GLIBC} ]] && [[ -z ${UCLIBC_SCANNED_COMPAT} ]] && \
+ ! just_headers && [[ ${CHOST} == ${CTARGET} ]] ; then
+ local fnames=""
+ einfo "Doing a scanelf in paths for bins containing the __uClibc_start_main symbol"
+ fnames=$(scanelf -pyqs__uClibc_start_main -F%F#s)
+ if [[ -z ${fnames} ]] ; then
+ einfo "This system is clean."
+ einfo "To prevent the scanning of files again in the future you can export UCLIBC_SCANNED_COMPAT=1"
+ moredefs=""
+ else
+ ewarn "You need to remerge the packages that contain the following files before you can remerge ${P} without USE=uclibc-compat enabled."
+ ewarn "qfile ${fnames}"
+ echo
+ ewarn "Leaving on ${moredefs}"
+ fi
+ else
+ moredefs=""
+ fi
+ fi
+ for def in ${moredefs} MALLOC_GLIBC_COMPAT DO_C99_MATH UCLIBC_HAS_{RPC,CTYPE_CHECKED,WCHAR,HEXADECIMAL_FLOATS,GLIBC_CUSTOM_PRINTF,FOPEN_EXCLUSIVE_MODE,GLIBC_CUSTOM_STREAMS,PRINTF_M_SPEC,FTW} ; do
+ sed -i -e "s:# ${def} is not set:${def}=y:" .config
+ done
+ echo "UCLIBC_HAS_FULL_RPC=y" >> .config
+ echo "PTHREADS_DEBUG_SUPPORT=y" >> .config
+ echo "UCLIBC_HAS_TZ_FILE_READ_MANY=n" >> .config
+
+ if use iconv ; then
+ sed -i -e "s:# UCLIBC_HAS_LOCALE is not set:UCLIBC_HAS_LOCALE=y:" .config
+ echo "UCLIBC_HAS_XLOCALE=n" >> .config
+ echo "UCLIBC_HAS_GLIBC_DIGIT_GROUPING=y" >> .config
+ echo "UCLIBC_HAS_SCANF_LENIENT_DIGIT_GROUPING=y" >> .config
+
+ if use nls ; then
+ echo "UCLIBC_HAS_GETTEXT_AWARENESS=y" >> .config
+ else
+ echo "UCLIBC_HAS_GETTEXT_AWARENESS=n" >> .config
+ fi
+
+ if use pregen ; then
+ echo "UCLIBC_PREGENERATED_LOCALE_DATA=y" >> .config
+ echo "UCLIBC_DOWNLOAD_PREGENERATED_LOCALE_DATA=y" >> .config
+ if use userlocales ; then
+ cp "${DISTDIR}"/${MY_P}-user-locale.tar.gz \
+ extra/locale/uClibc-locale-030818.tgz \
+ || die "could not copy ${MY_P}-user-locale.tar.gz"
+ else
+ cp "${DISTDIR}"/${MY_P}-$(tc-arch)-full-locale.tar.gz \
+ extra/locale/uClibc-locale-030818.tgz \
+ || die "could not copy locale"
+ fi
+ else
+ echo "UCLIBC_PREGENERATED_LOCALE_DATA=n" >> .config
+ fi
+ else
+ echo "UCLIBC_HAS_LOCALE=n" >> .config
+ fi
+
+ use ipv6 && sed -i -e "s:# UCLIBC_HAS_IPV6 is not set:UCLIBC_HAS_IPV6=y:" .config
+
+ # uncomment if you miss wordexp (alsa-lib)
+ use wordexp && sed -i -e "s:# UCLIBC_HAS_WORDEXP is not set:UCLIBC_HAS_WORDEXP=y:" .config
+
+ # we need to do it independently of hardened to get ssp.c built into libc
+ sed -i -e "s:# UCLIBC_SECURITY.*:UCLIBC_SECURITY=y:" .config
+ echo "UCLIBC_HAS_SSP=y" >> .config
+ echo "SSP_USE_ERANDOM=n" >> .config
+ echo "PROPOLICE_BLOCK_ABRT=n" >> .config
+ if use debug ; then
+ echo "PROPOLICE_BLOCK_SEGV=y" >> .config
+ echo "PROPOLICE_BLOCK_KILL=n" >> .config
+ else
+ echo "PROPOLICE_BLOCK_SEGV=n" >> .config
+ echo "PROPOLICE_BLOCK_KILL=y" >> .config
+ fi
+
+ # arm/mips do not emit PT_GNU_STACK, but if we enable this here
+ # it will be emitted as RWE, ppc has to be checked, x86 needs it
+ # this option should be used independently of hardened
+ # relro could be also moved out of hardened
+ if has $(tc-arch) x86 ; then
+ echo "UCLIBC_BUILD_NOEXECSTACK=y" >> .config
+ else
+ echo "UCLIBC_BUILD_NOEXECSTACK=n" >> .config
+ fi
+ echo "UCLIBC_BUILD_RELRO=y" >> .config
+ if use hardened ; then
+ if has $(tc-arch) ${PIE_STABLE} ; then
+ echo "UCLIBC_BUILD_PIE=y" >> .config
+ else
+ echo "UCLIBC_BUILD_PIE=n" >> .config
+ fi
+ echo "SSP_QUICK_CANARY=n" >> .config
+ echo "UCLIBC_BUILD_SSP=y" >> .config
+ echo "UCLIBC_BUILD_NOW=y" >> .config
+ else
+ echo "UCLIBC_BUILD_PIE=n" >> .config
+ echo "SSP_QUICK_CANARY=y" >> .config
+ echo "UCLIBC_BUILD_SSP=n" >> .config
+ echo "UCLIBC_BUILD_NOW=n" >> .config
+ fi
+
+ # Allow users some custom control over the config
+ if use savedconfig ; then
+ for conf in ${PN}-${PV}-${PR} ${PN}-${PV} ${PN}; do
+ configfile=${ROOT}/etc/${PN}/${CTARGET}/${conf}.config
+ einfo "Checking existence of ${configfile} ..."
+ [[ -r ${configfile} ]] || configfile=/etc/${PN}/${CHOST}/${conf}.config
+ if [[ -r ${configfile} ]] ; then
+ cp "${configfile}" "${S}"/.config
+ einfo "Found your ${configfile} and using it."
+ einfo "Note that this feature is *totally unsupported*."
+ break
+ fi
+ done
+ fi
+
+ # setup build and run paths
+ local cross=${CTARGET}-
+ type -p ${cross}ar > /dev/null || cross=""
+ sed -i \
+ -e "/^CROSS_COMPILER_PREFIX/s:=.*:=\"${cross}\":" \
+ -e "/^KERNEL_SOURCE/s:=.*:=\"$(alt_build_kprefix)\":" \
+ -e "/^SHARED_LIB_LOADER_PREFIX/s:=.*:=\"/$(get_libdir)\":" \
+ -e "/^DEVEL_PREFIX/s:=.*:=\"/usr\":" \
+ -e "/^RUNTIME_PREFIX/s:=.*:=\"/\":" \
+ .config || die
+
+ yes "" 2> /dev/null | make -s oldconfig > /dev/null || die "could not make oldconfig"
+
+ cp .config myconfig
+
+ emake -s clean > /dev/null || die "could not clean"
+}
+
+setup_locales() {
+ cd "${S}"/extra/locale
+ if use userlocales && [[ -f ${ROOT}/etc/locales.build ]] ; then
+ :;
+ elif use minimal ; then
+ find ./charmaps -name ASCII.pairs > codesets.txt
+ find ./charmaps -name ISO-8859-1.pairs >> codesets.txt
+ cat <<-EOF > locales.txt
+ @euro e
+ UTF-8 yes
+ 8-bit yes
+ en_US ISO-8859-1
+ en_US.UTF-8 UTF-8
+ EOF
+ else
+ find ./charmaps -name '*.pairs' > codesets.txt
+ cp LOCALES locales.txt
+ fi
+ cd -
+}
+
+src_compile() {
+ cp myconfig .config
+
+ emake headers || die "make headers failed"
+ just_headers && return 0
+
+ if use iconv && ! use pregen ; then
+ cd extra/locale
+ make clean || die "make locale clean failed"
+ setup_locales
+ emake || die "make locales failed"
+ cd ../..
+ fi
+
+ emake || die "make failed"
+ if [[ ${CTARGET} != ${CHOST} ]] ; then
+ emake -C utils hostutils || die "make hostutils failed"
+ elif [[ ${CHOST} == *-uclibc ]] ; then
+ emake utils || die "make utils failed"
+ fi
+}
+
+src_test() {
+ [[ ${CHOST} != ${CTARGET} ]] && return 0
+ [[ ${CBUILD} != ${CHOST} ]] && return 0
+
+ # assert test fails on pax/grsec enabled kernels - normal
+ # vfork test fails in sandbox (both glibc/uclibc)
+ make UCLIBC_ONLY=1 check || die "test failed"
+}
+
+src_install() {
+ local sysroot=${D}
+ [[ ${CHOST} != ${CTARGET} ]] && sysroot="${sysroot}/usr/${CTARGET}"
+
+ local target="install"
+ just_headers && target="install_dev"
+ emake DESTDIR="${sysroot}" ${target} || die "install failed"
+
+ # remove files coming from kernel-headers
+ rm -rf "${sysroot}"/usr/include/{linux,asm*}
+
+ # Make sure we install the sys-include symlink so that when
+ # we build a 2nd stage cross-compiler, gcc finds the target
+ # system headers correctly. See gcc/doc/gccinstall.info
+ if [[ ${CTARGET} != ${CHOST} ]] ; then
+ dosym usr/include /usr/${CTARGET}/sys-include
+ if ! just_headers ; then
+ newbin utils/ldconfig.host ${CTARGET}-ldconfig || die
+ newbin utils/ldd.host ${CTARGET}-ldd || die
+ fi
+ return 0
+ fi
+
+ if [[ ${CHOST} == *-uclibc* ]] ; then
+ emake DESTDIR="${D}" install_utils || die "install-utils failed"
+ dobin extra/scripts/getent
+ fi
+
+ dodoc Changelog* README TODO docs/*.txt DEDICATION.mjn3
+ doman docs/man/*.[1-9]
+}
+
+pkg_postinst() {
+ [[ ${CTARGET} != ${CHOST} ]] && return 0
+ [[ ${CHOST} != *-uclibc* ]] && return 0
+
+ if [[ ! -e ${ROOT}/etc/TZ ]] ; then
+ ewarn "Please remember to set your timezone in /etc/TZ"
+ [[ ! -d ${ROOT}/etc ]] && mkdir -p "${ROOT}"/etc
+ echo "UTC" > "${ROOT}"/etc/TZ
+ fi
+
+ if [[ ${ROOT} == "/" ]] ; then
+ # update cache before reloading init
+ /sbin/ldconfig
+ # reload init ...
+ [[ -x /sbin/telinit ]] && /sbin/telinit U &> /dev/null
+ fi
+}
diff --git a/cross-mips-linux-uclibc/uclibc/uclibc-0.9.28.3.ebuild b/cross-mips-linux-uclibc/uclibc/uclibc-0.9.28.3.ebuild
new file mode 100644
index 00000000..937a306b
--- /dev/null
+++ b/cross-mips-linux-uclibc/uclibc/uclibc-0.9.28.3.ebuild
@@ -0,0 +1,459 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/uclibc/uclibc-0.9.28.3.ebuild,v 1.9 2008/11/01 07:33:09 vapier Exp $
+
+#ESVN_REPO_URI="svn://uclibc.org/trunk/uClibc"
+#inherit subversion
+inherit eutils flag-o-matic toolchain-funcs
+
+export CBUILD=${CBUILD:-${CHOST}}
+export CTARGET=${CTARGET:-${CHOST}}
+if [[ ${CTARGET} == ${CHOST} ]] ; then
+ if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then
+ export CTARGET=${CATEGORY/cross-}
+ fi
+fi
+# Handle the case where we want uclibc on glibc ...
+if [[ ${CTARGET} == ${CHOST} ]] && [[ ${CHOST} != *-uclibc ]] ; then
+ export UCLIBC_AND_GLIBC="sitting in a tree"
+ export CTARGET=${CHOST%%-*}-pc-linux-uclibc
+fi
+
+MY_P=uClibc-${PV}
+SVN_VER=""
+PATCH_VER="1.0"
+DESCRIPTION="C library for developing embedded Linux systems"
+HOMEPAGE="http://www.uclibc.org/"
+SRC_URI="mirror://kernel/linux/libs/uclibc/${MY_P}.tar.bz2
+ http://uclibc.org/downloads/${MY_P}.tar.bz2
+ nls? ( !userlocales? ( pregen? (
+ x86? ( http://www.uclibc.org/downloads/uClibc-locale-030818.tgz )
+ ) ) )"
+[[ -z ${SVN_VER} ]] || \
+ SRC_URI="${SRC_URI} mirror://gentoo/${MY_P}-svn-update-${SVN_VER}.patch.bz2"
+[[ -z ${PATCH_VER} ]] || \
+ SRC_URI="${SRC_URI} mirror://gentoo/${MY_P}-patches-${PATCH_VER}.tar.bz2"
+
+LICENSE="LGPL-2"
+[[ ${CTARGET} != ${CHOST} ]] \
+ && SLOT="${CTARGET}" \
+ || SLOT="0"
+KEYWORDS="-* arm m68k -mips ppc sh sparc x86"
+IUSE="build uclibc-compat debug hardened iconv ipv6 minimal nls pregen savedconfig userlocales wordexp crosscompile_opts_headers-only"
+RESTRICT="strip"
+
+RDEPEND=""
+if [[ ${CTARGET} == ${CHOST} ]] ; then
+ DEPEND="virtual/os-headers app-misc/pax-utils"
+ PROVIDE="virtual/libc"
+else
+ DEPEND=""
+fi
+
+S=${WORKDIR}/${MY_P}
+
+alt_build_kprefix() {
+ if [[ ${CBUILD} == ${CHOST} && ${CTARGET} == ${CHOST} ]] \
+ || [[ -n ${UCLIBC_AND_GLIBC} ]]
+ then
+ echo /usr
+ else
+ echo /usr/${CTARGET}/usr
+ fi
+}
+just_headers() {
+ use crosscompile_opts_headers-only && [[ ${CHOST} != ${CTARGET} ]]
+}
+
+uclibc_endian() {
+ # XXX: this wont work for a toolchain which is bi-endian, but we
+ # dont have any such thing at the moment, so not a big deal
+ touch "${T}"/endian.s
+ $(tc-getAS ${CTARGET}) "${T}"/endian.s -o "${T}"/endian.o
+ case $(file "${T}"/endian.o) in
+ *" MSB "*) echo "big";;
+ *" LSB "*) echo "little";;
+ *) echo "NFC";;
+ esac
+ rm -f "${T}"/endian.{s,o}
+}
+
+pkg_setup() {
+ just_headers && return 0
+ has_version ${CATEGORY}/uclibc || return 0
+ [[ -n ${UCLIBC_AND_GLIBC} ]] && return 0
+ [[ ${ROOT} != "/" ]] && return 0
+ [[ ${CATEGORY} == cross-* ]] && return 0
+
+ if ! built_with_use --missing false ${CATEGORY}/uclibc nls && use nls && ! use pregen ; then
+ eerror "You previously built uclibc with USE=-nls."
+ eerror "You cannot generate locale data with this"
+ eerror "system. Please rerun emerge with USE=pregen."
+ die "host cannot support locales"
+ elif built_with_use --missing false ${CATEGORY}/uclibc nls && ! use nls ; then
+ eerror "You previously built uclibc with USE=nls."
+ eerror "Rebuilding uClibc with USE=-nls will prob"
+ eerror "destroy your system."
+ die "switching from nls is baaaad"
+ fi
+}
+
+PIE_STABLE="arm mips ppc x86"
+
+CPU_ALPHA=""
+CPU_AMD64=""
+CPU_ARM="GENERIC_ARM ARM{610,710,720T,920T,922T,926T,_{SA110,SA1100,XSCALE}}"
+CPU_IA64=""
+CPU_M68K=""
+CPU_MIPS="MIPS_ISA_{1,2,3,4,MIPS{32,64}}"
+CPU_PPC=""
+CPU_SH="SH{2,3,4,5}"
+CPU_SPARC=""
+CPU_X86="GENERIC_386 {3,4,5,6}86 586MMX PENTIUM{II,III,4} K{6,7} ELAN CRUSOE WINCHIP{C6,2} CYRIXIII NEHEMIAH"
+IUSE_UCLIBC_CPU="${CPU_ARM} ${CPU_MIPS} ${CPU_PPC} ${CPU_SH} ${CPU_SPARC} ${CPU_X86}"
+
+check_cpu_opts() {
+ local cpu_var="CPU_$(echo $(tc-arch) | tr [a-z] [A-Z])"
+ [[ -z ${!cpu_var} ]] && return 0
+
+ if [[ -z ${UCLIBC_CPU} ]] ; then
+ ewarn "You really should consider setting UCLIBC_CPU"
+ ewarn "Otherwise, the build will be generic (read: slow)."
+ ewarn "Available CPU options:"
+ UCLIBC_CPU=$(eval echo ${!cpu_var})
+ echo ${UCLIBC_CPU}
+ case ${CTARGET} in
+ mips[1234]*) export UCLIBC_CPU="MIPS_ISA_${CTARGET:4:1}";;
+ sh[2345]*) export UCLIBC_CPU="SH${CTARGET:2:1}";;
+ i[456]86*) export UCLIBC_CPU="${CTARGET:1:1}86";;
+ *) export UCLIBC_CPU=${UCLIBC_CPU%% *};;
+ esac
+ else
+ local cpu found=0
+ for cpu in $(eval echo ${!cpu_var}) ; do
+ [[ ${UCLIBC_CPU} == "${cpu}" ]] && found=1 && break
+ done
+ if [[ ${found} -eq 0 ]] ; then
+ ewarn "UCLIBC_CPU choice '${UCLIBC_CPU}' not supported"
+ ewarn "Valid choices:"
+ eval echo ${!cpu_var}
+ die "pick a supported cpu type"
+ fi
+ fi
+}
+
+src_unpack() {
+ [[ -n ${ESVN_REPO_URI} ]] \
+ && subversion_src_unpack \
+ || unpack ${A}
+ cd "${S}"
+
+ check_cpu_opts
+
+ echo
+ einfo "Runtime Prefix: /"
+ einfo "Devel Prefix: /usr"
+ einfo "Kernel Prefix: $(alt_build_kprefix)"
+ einfo "CBUILD: ${CBUILD}"
+ einfo "CHOST: ${CHOST}"
+ einfo "CTARGET: ${CTARGET}"
+ einfo "CPU: ${UCLIBC_CPU:-default}"
+ einfo "ENDIAN: $(uclibc_endian)"
+ echo
+
+ ########## PATCHES ##########
+
+ [[ -n ${SVN_VER} ]] && \
+ epatch "${WORKDIR}"/${MY_P}-cvs-update-${SVN_VER}.patch
+
+ if [[ -n ${PATCH_VER} ]] ; then
+ unpack ${MY_P}-patches-${PATCH_VER}.tar.bz2
+ EPATCH_SUFFIX="patch"
+ epatch "${WORKDIR}"/patch
+ # math functions (sinf,cosf,tanf,atan2f,powf,fabsf,copysignf,scalbnf,rem_pio2f)
+ cp "${WORKDIR}"/patch/math/libm/* "${S}"/libm/ || die
+ epatch "${WORKDIR}"/patch/math
+ fi
+
+ ########## CPU SELECTION ##########
+
+ local target config_target
+ case $(tc-arch) in
+ alpha) target="alpha"; config_target="no cpu-specific options";;
+ amd64) target="x86_64"; config_target="no cpu-specific options";;
+ arm) target="arm"; config_target="GENERIC_ARM";;
+ ia64) target="ia64"; config_target="no cpu-specific options";;
+ m68k) target="m68k"; config_target="no cpu-specific options";;
+ mips) target="mips"; config_target="MIPS_ISA_1";;
+ ppc) target="powerpc"; config_target="no cpu-specific options";;
+ sh) target="sh"; config_target="SH4";;
+ sparc) target="sparc"; config_target="no cpu-specific options";;
+ x86) target="i386"; config_target="GENERIC_386";;
+ *) die "$(tc-arch) lists no defaults :/";;
+ esac
+ sed -i -e "s:default TARGET_i386:default TARGET_${target}:" \
+ extra/Configs/Config.in
+ sed -i -e "s:default CONFIG_${config_target}:default CONFIG_${UCLIBC_CPU:-${config_target}}:" \
+ extra/Configs/Config.${target}
+
+ ########## CONFIG SETUP ##########
+
+ make defconfig >/dev/null || die "could not config"
+
+ for def in DO{DEBUG{,_PT},ASSERTS} SUPPORT_LD_DEBUG{,_EARLY} ; do
+ sed -i -e "s:${def}=y:# ${def} is not set:" .config
+ done
+ if use debug ; then
+ #echo "SUPPORT_LD_DEBUG_EARLY=y" >> .config
+ echo "SUPPORT_LD_DEBUG=y" >> .config
+ echo "DODEBUG=y" >> .config
+ #echo "DODEBUG_PT=y" >> .config
+ fi
+
+ sed -i -e '/ARCH_.*_ENDIAN/d' .config
+ echo "ARCH_$(uclibc_endian | tr [a-z] [A-Z])_ENDIAN=y" >> .config
+
+ if [[ $(tc-is-softfloat) != "no" ]] ; then
+ sed -i -e '/^HAS_FPU=y$/d' .config
+ echo 'HAS_FPU=n' >> .config
+ fi
+
+ local moredefs="DL_FINI_CRT_COMPAT"
+ # We need todo this for a few months. .28 is a major upgrade.
+ # Don't do it from cross-compiling case though
+ if ! use uclibc-compat ; then
+ if [[ -z ${UCLIBC_AND_GLIBC} ]] && [[ -z ${UCLIBC_SCANNED_COMPAT} ]] && \
+ ! just_headers && [[ ${CHOST} == ${CTARGET} ]] ; then
+ local fnames=""
+ einfo "Doing a scanelf in paths for bins containing the __uClibc_start_main symbol"
+ fnames=$(scanelf -pyqs__uClibc_start_main -F%F#s)
+ if [[ -z ${fnames} ]] ; then
+ einfo "This system is clean."
+ einfo "To prevent the scanning of files again in the future you can export UCLIBC_SCANNED_COMPAT=1"
+ moredefs=""
+ else
+ ewarn "You need to remerge the packages that contain the following files before you can remerge ${P} without USE=uclibc-compat enabled."
+ ewarn "qfile ${fnames}"
+ echo
+ ewarn "Leaving on ${moredefs}"
+ fi
+ else
+ moredefs=""
+ fi
+ fi
+ for def in ${moredefs} MALLOC_GLIBC_COMPAT DO_C99_MATH UCLIBC_HAS_{RPC,CTYPE_CHECKED,WCHAR,HEXADECIMAL_FLOATS,GLIBC_CUSTOM_PRINTF,FOPEN_EXCLUSIVE_MODE,GLIBC_CUSTOM_STREAMS,PRINTF_M_SPEC,FTW} ; do
+ sed -i -e "s:# ${def} is not set:${def}=y:" .config
+ done
+ echo "UCLIBC_HAS_FULL_RPC=y" >> .config
+ echo "PTHREADS_DEBUG_SUPPORT=y" >> .config
+ echo "UCLIBC_HAS_TZ_FILE_READ_MANY=n" >> .config
+
+ if use iconv ; then
+ sed -i -e "s:# UCLIBC_HAS_LOCALE is not set:UCLIBC_HAS_LOCALE=y:" .config
+ echo "UCLIBC_HAS_XLOCALE=n" >> .config
+ echo "UCLIBC_HAS_GLIBC_DIGIT_GROUPING=y" >> .config
+ echo "UCLIBC_HAS_SCANF_LENIENT_DIGIT_GROUPING=y" >> .config
+
+ if use nls ; then
+ echo "UCLIBC_HAS_GETTEXT_AWARENESS=y" >> .config
+ else
+ echo "UCLIBC_HAS_GETTEXT_AWARENESS=n" >> .config
+ fi
+
+ if use pregen ; then
+ echo "UCLIBC_PREGENERATED_LOCALE_DATA=y" >> .config
+ echo "UCLIBC_DOWNLOAD_PREGENERATED_LOCALE_DATA=y" >> .config
+ if use userlocales ; then
+ cp "${DISTDIR}"/${MY_P}-user-locale.tar.gz \
+ extra/locale/uClibc-locale-030818.tgz \
+ || die "could not copy ${MY_P}-user-locale.tar.gz"
+ else
+ cp "${DISTDIR}"/${MY_P}-$(tc-arch)-full-locale.tar.gz \
+ extra/locale/uClibc-locale-030818.tgz \
+ || die "could not copy locale"
+ fi
+ else
+ echo "UCLIBC_PREGENERATED_LOCALE_DATA=n" >> .config
+ fi
+ else
+ echo "UCLIBC_HAS_LOCALE=n" >> .config
+ fi
+
+ use ipv6 && sed -i -e "s:# UCLIBC_HAS_IPV6 is not set:UCLIBC_HAS_IPV6=y:" .config
+
+ # uncomment if you miss wordexp (alsa-lib)
+ use wordexp && sed -i -e "s:# UCLIBC_HAS_WORDEXP is not set:UCLIBC_HAS_WORDEXP=y:" .config
+
+ # we need to do it independently of hardened to get ssp.c built into libc
+ sed -i -e "s:# UCLIBC_SECURITY.*:UCLIBC_SECURITY=y:" .config
+ echo "UCLIBC_HAS_SSP=y" >> .config
+ echo "SSP_USE_ERANDOM=n" >> .config
+ echo "PROPOLICE_BLOCK_ABRT=n" >> .config
+ if use debug ; then
+ echo "PROPOLICE_BLOCK_SEGV=y" >> .config
+ echo "PROPOLICE_BLOCK_KILL=n" >> .config
+ else
+ echo "PROPOLICE_BLOCK_SEGV=n" >> .config
+ echo "PROPOLICE_BLOCK_KILL=y" >> .config
+ fi
+
+ # arm/mips do not emit PT_GNU_STACK, but if we enable this here
+ # it will be emitted as RWE, ppc has to be checked, x86 needs it
+ # this option should be used independently of hardened
+ # relro could be also moved out of hardened
+ if has $(tc-arch) x86 ; then
+ echo "UCLIBC_BUILD_NOEXECSTACK=y" >> .config
+ else
+ echo "UCLIBC_BUILD_NOEXECSTACK=n" >> .config
+ fi
+ echo "UCLIBC_BUILD_RELRO=y" >> .config
+ if use hardened ; then
+ if has $(tc-arch) ${PIE_STABLE} ; then
+ echo "UCLIBC_BUILD_PIE=y" >> .config
+ else
+ echo "UCLIBC_BUILD_PIE=n" >> .config
+ fi
+ echo "SSP_QUICK_CANARY=n" >> .config
+ echo "UCLIBC_BUILD_SSP=y" >> .config
+ echo "UCLIBC_BUILD_NOW=y" >> .config
+ else
+ echo "UCLIBC_BUILD_PIE=n" >> .config
+ echo "SSP_QUICK_CANARY=y" >> .config
+ echo "UCLIBC_BUILD_SSP=n" >> .config
+ echo "UCLIBC_BUILD_NOW=n" >> .config
+ fi
+
+ # Allow users some custom control over the config
+ if use savedconfig ; then
+ for conf in ${PN}-${PV}-${PR} ${PN}-${PV} ${PN}; do
+ configfile=${ROOT}/etc/${PN}/${CTARGET}/${conf}.config
+ einfo "Checking existence of ${configfile} ..."
+ [[ -r ${configfile} ]] || configfile=/etc/${PN}/${CHOST}/${conf}.config
+ if [[ -r ${configfile} ]] ; then
+ cp "${configfile}" "${S}"/.config
+ einfo "Found your ${configfile} and using it."
+ einfo "Note that this feature is *totally unsupported*."
+ break
+ fi
+ done
+ fi
+
+ # setup build and run paths
+ local cross=${CTARGET}-
+ type -p ${cross}ar > /dev/null || cross=""
+ sed -i \
+ -e "/^CROSS_COMPILER_PREFIX/s:=.*:=\"${cross}\":" \
+ -e "/^KERNEL_SOURCE/s:=.*:=\"$(alt_build_kprefix)\":" \
+ -e "/^SHARED_LIB_LOADER_PREFIX/s:=.*:=\"/$(get_libdir)\":" \
+ -e "/^DEVEL_PREFIX/s:=.*:=\"/usr\":" \
+ -e "/^RUNTIME_PREFIX/s:=.*:=\"/\":" \
+ .config || die
+
+ yes "" 2> /dev/null | make -s oldconfig > /dev/null || die "could not make oldconfig"
+
+ cp .config myconfig
+
+ emake -s clean > /dev/null || die "could not clean"
+}
+
+setup_locales() {
+ cd "${S}"/extra/locale
+ if use userlocales && [[ -f ${ROOT}/etc/locales.build ]] ; then
+ :;
+ elif use minimal ; then
+ find ./charmaps -name ASCII.pairs > codesets.txt
+ find ./charmaps -name ISO-8859-1.pairs >> codesets.txt
+ cat <<-EOF > locales.txt
+ @euro e
+ UTF-8 yes
+ 8-bit yes
+ en_US ISO-8859-1
+ en_US.UTF-8 UTF-8
+ EOF
+ else
+ find ./charmaps -name '*.pairs' > codesets.txt
+ cp LOCALES locales.txt
+ fi
+ cd -
+}
+
+src_compile() {
+ cp myconfig .config
+
+ emake headers || die "make headers failed"
+ just_headers && return 0
+
+ if use iconv && ! use pregen ; then
+ cd extra/locale
+ make clean || die "make locale clean failed"
+ setup_locales
+ emake || die "make locales failed"
+ cd ../..
+ fi
+
+ emake || die "make failed"
+ if [[ ${CTARGET} != ${CHOST} ]] ; then
+ emake -C utils hostutils || die "make hostutils failed"
+ elif [[ ${CHOST} == *-uclibc ]] ; then
+ emake utils || die "make utils failed"
+ fi
+}
+
+src_test() {
+ [[ ${CHOST} != ${CTARGET} ]] && return 0
+ [[ ${CBUILD} != ${CHOST} ]] && return 0
+
+ # assert test fails on pax/grsec enabled kernels - normal
+ # vfork test fails in sandbox (both glibc/uclibc)
+ make UCLIBC_ONLY=1 check || die "test failed"
+}
+
+src_install() {
+ local sysroot=${D}
+ [[ ${CHOST} != ${CTARGET} ]] && sysroot="${sysroot}/usr/${CTARGET}"
+
+ local target="install"
+ just_headers && target="install_dev"
+ emake DESTDIR="${sysroot}" ${target} || die "install failed"
+
+ # remove files coming from kernel-headers
+ rm -rf "${sysroot}"/usr/include/{linux,asm*}
+
+ # Make sure we install the sys-include symlink so that when
+ # we build a 2nd stage cross-compiler, gcc finds the target
+ # system headers correctly. See gcc/doc/gccinstall.info
+ if [[ ${CTARGET} != ${CHOST} ]] ; then
+ dosym usr/include /usr/${CTARGET}/sys-include
+ if ! just_headers ; then
+ newbin utils/ldconfig.host ${CTARGET}-ldconfig || die
+ newbin utils/ldd.host ${CTARGET}-ldd || die
+ fi
+ return 0
+ fi
+
+ if [[ ${CHOST} == *-uclibc* ]] ; then
+ emake DESTDIR="${D}" install_utils || die "install-utils failed"
+ dobin extra/scripts/getent
+ fi
+
+ dodoc Changelog* README TODO docs/*.txt DEDICATION.mjn3
+ doman docs/man/*.[1-9]
+}
+
+pkg_postinst() {
+ [[ ${CTARGET} != ${CHOST} ]] && return 0
+ [[ ${CHOST} != *-uclibc* ]] && return 0
+
+ if [[ ! -e ${ROOT}/etc/TZ ]] ; then
+ ewarn "Please remember to set your timezone in /etc/TZ"
+ [[ ! -d ${ROOT}/etc ]] && mkdir -p "${ROOT}"/etc
+ echo "UTC" > "${ROOT}"/etc/TZ
+ fi
+
+ if [[ ${ROOT} == "/" ]] ; then
+ # update cache before reloading init
+ /sbin/ldconfig
+ # reload init ...
+ [[ -x /sbin/telinit ]] && /sbin/telinit U &> /dev/null
+ fi
+}
diff --git a/cross-mips-linux-uclibc/uclibc/uclibc-0.9.30.ebuild b/cross-mips-linux-uclibc/uclibc/uclibc-0.9.30.ebuild
new file mode 100644
index 00000000..00204222
--- /dev/null
+++ b/cross-mips-linux-uclibc/uclibc/uclibc-0.9.30.ebuild
@@ -0,0 +1,459 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/uclibc/uclibc-0.9.30.ebuild,v 1.3 2009/01/10 04:32:59 redhatter Exp $
+
+#ESVN_REPO_URI="svn://uclibc.org/trunk/uClibc"
+#inherit subversion
+inherit eutils flag-o-matic toolchain-funcs savedconfig
+
+export CBUILD=${CBUILD:-${CHOST}}
+export CTARGET=${CTARGET:-${CHOST}}
+if [[ ${CTARGET} == ${CHOST} ]] ; then
+ if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then
+ export CTARGET=${CATEGORY/cross-}
+ fi
+fi
+# Handle the case where we want uclibc on glibc ...
+if [[ ${CTARGET} == ${CHOST} ]] && [[ ${CHOST} != *-uclibc* ]] ; then
+ export UCLIBC_AND_GLIBC="sitting in a tree"
+ export CTARGET=${CHOST%%-*}-pc-linux-uclibc
+fi
+
+MY_P=uClibc-0.9.30
+SVN_VER=""
+PATCH_VER="1.0"
+DESCRIPTION="C library for developing embedded Linux systems"
+HOMEPAGE="http://www.uclibc.org/"
+SRC_URI="http://uclibc.org/downloads/${MY_P}.tar.bz2
+ iconv? ( !userlocales? ( pregen? ( http://www.uclibc.org/downloads/uClibc-locale-030818.tgz
+ ) ) )"
+[[ -z ${SVN_VER} ]] || \
+ SRC_URI="${SRC_URI} mirror://gentoo/${MY_P}-svn-update-${SVN_VER}.patch.bz2"
+[[ -z ${PATCH_VER} ]] || \
+ SRC_URI="${SRC_URI} mirror://gentoo/${MY_P}-patches-${PATCH_VER}.tar.bz2"
+
+LICENSE="LGPL-2"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~arm ~m68k ~mips ~ppc ~sh ~sparc ~x86"
+IUSE="build uclibc-compat debug hardened ssp iconv ipv6 minimal nls pregen userlocales wordexp crosscompile_opts_headers-only"
+RESTRICT="strip"
+
+RDEPEND=""
+if [[ -n $CTARGET && ${CTARGET} != ${CHOST} ]]; then
+ DEPEND=""
+ PROVIDE=""
+ SLOT="${CTARGET}"
+else
+ DEPEND="virtual/os-headers app-misc/pax-utils"
+ PROVIDE="virtual/libc"
+ SLOT="0"
+fi
+
+S=${WORKDIR}/${MY_P}
+
+alt_build_kprefix() {
+ if [[ ${CBUILD} == ${CHOST} && ${CTARGET} == ${CHOST} ]] \
+ || [[ -n ${UCLIBC_AND_GLIBC} ]]
+ then
+ echo /usr/include
+ else
+ echo /usr/${CTARGET}/usr/include
+ fi
+}
+
+just_headers() {
+ use crosscompile_opts_headers-only && [[ ${CHOST} != ${CTARGET} ]]
+}
+
+uclibc_endian() {
+ # XXX: this wont work for a toolchain which is bi-endian, but we
+ # dont have any such thing at the moment, so not a big deal
+ touch "${T}"/endian.s
+ $(tc-getAS ${CTARGET}) "${T}"/endian.s -o "${T}"/endian.o
+ case $(file "${T}"/endian.o) in
+ *" MSB "*) echo "big";;
+ *" LSB "*) echo "little";;
+ *) echo "NFC";;
+ esac
+ rm -f "${T}"/endian.{s,o}
+}
+
+pkg_setup() {
+ just_headers && return 0
+ has_version ${CATEGORY}/uclibc || return 0
+ [[ -n ${UCLIBC_AND_GLIBC} ]] && return 0
+ [[ ${ROOT} != "/" ]] && return 0
+ [[ ${CATEGORY} == cross-* ]] && return 0
+
+ if use iconv ; then
+ eerror "iconv - bad idea"
+ fi
+ if use nls ; then
+ eerror "nls - even worse idea"
+ fi
+ if use pregen || use userlocales ; then
+ eerror "pregen, userlocales - meaningless without nls"
+ fi
+ if use iconv || use nls || use pregen || use userlocales ; then
+ eerror "compile without nls/gettext support"
+ fi
+ if ! built_with_use --missing false ${CATEGORY}/uclibc nls && use nls && ! use pregen ; then
+ eerror "You previously built uclibc with USE=-nls."
+ eerror "You cannot generate locale data with this"
+ eerror "system. Please rerun emerge with USE=pregen."
+ die "host cannot support locales"
+ elif built_with_use --missing false ${CATEGORY}/uclibc nls && ! use nls ; then
+ eerror "You previously built uclibc with USE=nls."
+ eerror "Rebuilding uClibc with USE=-nls will prob"
+ eerror "destroy your system."
+# die "switching from nls is baaaad"
+ fi
+}
+
+PIE_STABLE="arm mips ppc x86"
+
+CPU_ALPHA=""
+CPU_AMD64=""
+CPU_ARM="GENERIC_ARM ARM{610,710,7TDMI,720T,920T,922T,926T,10T,1136JF_S,1176JZ{_,F_}S,_{SA110,SA1100,XSCALE,IWMMXT}}"
+CPU_IA64=""
+CPU_M68K=""
+CPU_MIPS="MIPS_ISA_{1,2,3,4,MIPS{32,64}} MIPS_{N64,O32,N32}_ABI"
+CPU_PPC=""
+CPU_SH="SH{2,3,4,5}"
+CPU_SPARC="SPARC_V{7,8,9,9B}"
+CPU_X86="GENERIC_386 {3,4,5,6}86 586MMX PENTIUM{II,III,4} K{6,7} ELAN CRUSOE WINCHIP{C6,2} CYRIXIII NEHEMIAH"
+IUSE_UCLIBC_CPU="${CPU_ARM} ${CPU_MIPS} ${CPU_PPC} ${CPU_SH} ${CPU_SPARC} ${CPU_X86}"
+
+check_cpu_opts() {
+ local cpu_var="CPU_$(echo $(tc-arch) | tr [a-z] [A-Z])"
+ [[ -z ${!cpu_var} ]] && return 0
+
+ if [[ -z ${UCLIBC_CPU} ]] ; then
+ ewarn "You really should consider setting UCLIBC_CPU"
+ ewarn "Otherwise, the build will be generic (read: slow)."
+ ewarn "Available CPU options:"
+ UCLIBC_CPU=$(eval echo ${!cpu_var})
+ echo ${UCLIBC_CPU}
+ case ${CTARGET} in
+ mips[1234]*) export UCLIBC_CPU="MIPS_ISA_${CTARGET:4:1}";;
+ sh[2345]*) export UCLIBC_CPU="SH${CTARGET:2:1}";;
+ i[456]86*) export UCLIBC_CPU="${CTARGET:1:1}86";;
+ *) export UCLIBC_CPU=${UCLIBC_CPU%% *};;
+ esac
+ else
+ local cpu found=0
+ for cpu in $(eval echo ${!cpu_var}) ; do
+ [[ ${UCLIBC_CPU} == "${cpu}" ]] && found=1 && break
+ done
+ if [[ ${found} -eq 0 ]] ; then
+ ewarn "UCLIBC_CPU choice '${UCLIBC_CPU}' not supported"
+ ewarn "Valid choices:"
+ eval echo ${!cpu_var}
+ die "pick a supported cpu type"
+ fi
+ fi
+}
+
+set_opt() {
+ sed -i -e "/^\# $1 is not set/d" -e "/^$1=.*/d" .config
+ echo "$1=$2" >> .config
+}
+
+src_unpack() {
+ [[ -n ${ESVN_REPO_URI} ]] \
+ && subversion_src_unpack \
+ || unpack ${A}
+ cd "${S}"
+
+ check_cpu_opts
+
+ echo
+ einfo "Runtime Prefix: /"
+ einfo "Devel Prefix: /usr"
+ einfo "Kernel Prefix: $(alt_build_kprefix)"
+ einfo "CBUILD: ${CBUILD}"
+ einfo "CHOST: ${CHOST}"
+ einfo "CTARGET: ${CTARGET}"
+ einfo "CPU: ${UCLIBC_CPU:-default}"
+ einfo "ENDIAN: $(uclibc_endian)"
+ echo
+
+ ########## PATCHES ##########
+
+ [[ -n ${SVN_VER} ]] && \
+ epatch "${WORKDIR}"/${MY_P}-cvs-update-${SVN_VER}.patch
+
+ if [[ -n ${PATCH_VER} ]] ; then
+ unpack ${MY_P}-patches-${PATCH_VER}.tar.bz2
+ EPATCH_SUFFIX="patch"
+ epatch "${WORKDIR}"/patch
+ fi
+
+ ########## CPU SELECTION ##########
+
+ local target config_target
+ case $(tc-arch) in
+ alpha) target="alpha"; config_target="no cpu-specific options";;
+ amd64) target="x86_64"; config_target="no cpu-specific options";;
+ arm) target="arm"; config_target="GENERIC_ARM";;
+ ia64) target="ia64"; config_target="no cpu-specific options";;
+ m68k) target="m68k"; config_target="no cpu-specific options";;
+ mips) target="mips"; config_target="MIPS_ISA_1";;
+ ppc) target="powerpc"; config_target="no cpu-specific options";;
+ sh) target="sh"; config_target="SH4";;
+ sparc) target="sparc"; config_target="no cpu-specific options";;
+ x86) target="i386"; config_target="GENERIC_386";;
+ *) die "$(tc-arch) lists no defaults :/";;
+ esac
+ sed -i -e "s:default CONFIG_${config_target}:default CONFIG_${UCLIBC_CPU:-${config_target}}:" \
+ extra/Configs/Config.${target}
+ sed -i -e "s:^HOSTCC.*=.*:HOSTCC=$(tc-getBUILD_CC):" Rules.mak
+
+ ########## CONFIG SETUP ##########
+
+ make ARCH=${target} defconfig >/dev/null || die "could not config"
+
+ for def in DO{DEBUG{,_PT},ASSERTS} SUPPORT_LD_DEBUG{,_EARLY} ; do
+ sed -i -e "s:${def}=y:# ${def} is not set:" .config
+ done
+ if use debug ; then
+ set_opt SUPPORT_LD_DEBUG y
+ set_opt DODEBUG y
+ fi
+
+ sed -i -e '/ARCH_.*_ENDIAN/d' .config
+ set_opt "ARCH_WANTS_$(uclibc_endian | tr [a-z] [A-Z])_ENDIAN" y
+
+ if [[ $(tc-is-softfloat) != "no" ]] ; then
+ set_opt UCLIBC_HAS_FPU n
+ fi
+
+ if [[ ${CTARGET/eabi} != ${CTARGET} ]] ; then
+ set_opt CONFIG_ARM_OABI n
+ set_opt CONFIG_ARM_EABI y
+ fi
+
+ local moredefs="COMPAT_ATEXIT"
+ local compat_sym=atexit
+
+ # We need todo this for a few months. .30 is a major upgrade.
+ # Don't do it from cross-compiling case though
+ if ! use uclibc-compat ; then
+ if [[ -z ${UCLIBC_AND_GLIBC} ]] && [[ -z ${UCLIBC_SCANNED_COMPAT} ]] && \
+ ! just_headers && [[ ${CHOST} == ${CTARGET} ]] ; then
+ local fnames=""
+ einfo "Doing a scanelf in paths for bins containing the ${compat_sym} symbol"
+ fnames=$(scanelf -pyqs${compat_sym} -F%F#s)
+ if [[ -z ${fnames} ]] ; then
+ einfo "This system is clean."
+ einfo "To prevent the scanning of files again in the future you can export UCLIBC_SCANNED_COMPAT=1"
+ moredefs=""
+ else
+ ewarn "You need to remerge the packages that contain the following files before you can remerge ${P} without USE=uclibc-compat enabled."
+ ewarn "qfile -Cq $(echo ${fnames}) | sort | uniq"
+ echo
+ ewarn "Leaving on ${moredefs}"
+ fi
+ else
+ moredefs=""
+ fi
+ fi
+ for def in ${moredefs} MALLOC_GLIBC_COMPAT DO_C99_MATH UCLIBC_HAS_{RPC,FULL_RPC,CTYPE_CHECKED,WCHAR,HEXADECIMAL_FLOATS,GLIBC_CUSTOM_PRINTF,FOPEN_EXCLUSIVE_MODE,GLIBC_CUSTOM_STREAMS,PRINTF_M_SPEC,FTW} UCLIBC_HAS_REENTRANT_RPC UCLIBC_HAS_GNU_GLOB PTHREADS_DEBUG_SUPPORT UCLIBC_HAS_TZ_FILE_READ_MANY UCLIBC_HAS_FENV UCLIBC_SUSV3_LEGACY UCLIBC_SUSV3_LEGACY_MACROS UCLIBC_HAS_PROGRAM_INVOCATION_NAME ; do
+ set_opt "${def}" y
+ done
+ set_opt UCLIBC_HAS_CTYPE_UNSAFE n
+
+ if use iconv ; then
+ set_opt UCLIBC_HAS_LOCALE y
+ set_opt UCLIBC_HAS_XLOCALE n
+ set_opt UCLIBC_HAS_GLIBC_DIGIT_GROUPING y
+ set_opt UCLIBC_HAS_SCANF_LENIENT_DIGIT_GROUPING y
+
+ if use nls ; then
+ set_opt UCLIBC_HAS_GETTEXT_AWARENESS y
+ set_opt UCLIBC_MJN3_ONLY y
+ else
+ set_opt UCLIBC_HAS_GETTEXT_AWARENESS n
+ fi
+
+ if use pregen && [[ ${target} != mips ]]; then
+ set_opt UCLIBC_PREGENERATED_LOCALE_DATA y
+ set_opt UCLIBC_DOWNLOAD_PREGENERATED_LOCALE_DATA y
+ if use userlocales ; then
+ cp "${DISTDIR}"/${MY_P}-user-locale.tar.gz \
+ extra/locale/uClibc-locale-030818.tgz \
+ || die "could not copy ${MY_P}-user-locale.tar.gz"
+ else
+ cp "${DISTDIR}"/uClibc-locale-030818.tgz \
+ extra/locale/uClibc-locale-030818.tgz \
+ || die "could not copy locale"
+ fi
+ else
+ set_opt UCLIBC_PREGENERATED_LOCALE_DATA n
+ fi
+ else
+ set_opt UCLIBC_HAS_LOCALE n
+ fi
+
+ use ipv6 && set_opt UCLIBC_HAS_IPV6 y
+
+ use wordexp && set_opt UCLIBC_HAS_WORDEXP y
+
+ # we need to do it independently of hardened to get ssp.c built into libc
+ set_opt UCLIBC_HAS_SSP y
+ set_opt UCLIBC_HAS_SSP_COMPAT y
+ set_opt UCLIBC_HAS_ARC4RANDOM y
+ set_opt PROPOLICE_BLOCK_ABRT n
+ set_opt PROPOLICE_BLOCK_SEGV y
+
+ # arm/mips do not emit PT_GNU_STACK, but if we enable this here
+ # it will be emitted as RWE, ppc has to be checked, x86 needs it
+ # this option should be used independently of hardened
+ if has $(tc-arch) x86 || has $(tc-arch) ppc; then
+ set_opt UCLIBC_BUILD_NOEXECSTACK y
+ else
+ set_opt UCLIBC_BUILD_NOEXECSTACK n
+ fi
+ set_opt UCLIBC_BUILD_RELRO y
+ if use hardened ; then
+ if has $(tc-arch) ${PIE_STABLE} ; then
+ set_opt UCLIBC_BUILD_PIE y
+ else
+ set_opt UCLIBC_BUILD_PIE n
+ fi
+ set_opt UCLIBC_BUILD_NOW y
+ use ssp && {
+ set_opt SSP_QUICK_CANARY n
+ set_opt UCLIBC_BUILD_SSP y
+ }
+ else
+ set_opt UCLIBC_BUILD_PIE n
+ set_opt SSP_QUICK_CANARY y
+ set_opt UCLIBC_BUILD_SSP n
+ set_opt UCLIBC_BUILD_NOW n
+ fi
+
+ restore_config .config
+
+ # setup build and run paths
+ local cross=${CTARGET}-
+ type -p ${cross}ar > /dev/null || cross=""
+ sed -i \
+ -e "/^CROSS_COMPILER_PREFIX/s:=.*:=\"${cross}\":" \
+ -e "/^KERNEL_HEADERS/s:=.*:=\"$(alt_build_kprefix)\":" \
+ -e "/^SHARED_LIB_LOADER_PREFIX/s:=.*:=\"/$(get_libdir)\":" \
+ -e "/^DEVEL_PREFIX/s:=.*:=\"/usr\":" \
+ -e "/^RUNTIME_PREFIX/s:=.*:=\"/\":" \
+ -e "/^UCLIBC_EXTRA_CFLAGS/s:=.*:=\"${UCLIBC_EXTRA_CFLAGS}\":" \
+ .config || die
+
+ yes "" 2> /dev/null | make -s oldconfig > /dev/null || die "could not make oldconfig"
+
+ cp .config myconfig
+
+ emake -s clean > /dev/null || die "could not clean"
+}
+
+setup_locales() {
+ cd "${S}"/extra/locale
+ if use userlocales && [[ -f ${ROOT}/etc/locales.build ]] ; then
+ :;
+ elif use minimal ; then
+ find ./charmaps -name ASCII.pairs > codesets.txt
+ find ./charmaps -name ISO-8859-1.pairs >> codesets.txt
+ cat <<-EOF > locales.txt
+ @euro e
+ UTF-8 yes
+ 8-bit yes
+ en_US ISO-8859-1
+ en_US.UTF-8 UTF-8
+ EOF
+ else
+ find ./charmaps -name '*.pairs' > codesets.txt
+ cp LOCALES locales.txt
+ fi
+ cd -
+}
+
+src_compile() {
+ cp myconfig .config
+
+ emake headers || die "make headers failed"
+ just_headers && return 0
+
+ if use iconv && ! use pregen ; then
+ cd extra/locale
+ make clean || die "make locale clean failed"
+ setup_locales
+ emake || die "make locales failed"
+ cd ../..
+ fi
+
+ emake || die "make failed"
+ if [[ ${CTARGET} != ${CHOST} ]] ; then
+ emake -C utils hostutils || die "make hostutils failed"
+ elif [[ ${CHOST} == *-uclibc* ]] ; then
+ emake utils || die "make utils failed"
+ fi
+}
+
+src_test() {
+ [[ ${CHOST} != ${CTARGET} ]] && return 0
+ [[ ${CBUILD} != ${CHOST} ]] && return 0
+
+ # assert test fails on pax/grsec enabled kernels - normal
+ # vfork test fails in sandbox (both glibc/uclibc)
+ make UCLIBC_ONLY=1 check || die "test failed"
+}
+
+src_install() {
+ local sysroot=${D}
+ [[ ${CHOST} != ${CTARGET} ]] && sysroot="${sysroot}/usr/${CTARGET}"
+
+ local target="install"
+ just_headers && target="install_headers"
+ emake DESTDIR="${sysroot}" ${target} || die "install failed"
+
+ save_config .config
+
+ # remove files coming from kernel-headers
+ rm -rf "${sysroot}"/usr/include/{linux,asm*}
+
+ # Make sure we install the sys-include symlink so that when
+ # we build a 2nd stage cross-compiler, gcc finds the target
+ # system headers correctly. See gcc/doc/gccinstall.info
+ if [[ ${CTARGET} != ${CHOST} ]] ; then
+ dosym usr/include /usr/${CTARGET}/sys-include
+ if ! just_headers ; then
+ newbin utils/ldconfig.host ${CTARGET}-ldconfig || die
+ newbin utils/ldd.host ${CTARGET}-ldd || die
+ fi
+ return 0
+ fi
+
+ if [[ ${CHOST} == *-uclibc* ]] ; then
+ emake DESTDIR="${D}" install_utils || die "install-utils failed"
+ dobin extra/scripts/getent
+ fi
+
+ dodoc Changelog* README TODO docs/*.txt DEDICATION.mjn3
+ doman docs/man/*.[1-9]
+}
+
+pkg_postinst() {
+ [[ ${CTARGET} != ${CHOST} ]] && return 0
+ [[ ${CHOST} != *-uclibc* ]] && return 0
+
+ if [[ ! -e ${ROOT}/etc/TZ ]] ; then
+ ewarn "Please remember to set your timezone in /etc/TZ"
+ [[ ! -d ${ROOT}/etc ]] && mkdir -p "${ROOT}"/etc
+ echo "UTC" > "${ROOT}"/etc/TZ
+ fi
+
+ if [[ ${ROOT} == "/" ]] ; then
+ # update cache before reloading init
+ /sbin/ldconfig
+ # reload init ...
+ [[ -x /sbin/telinit ]] && /sbin/telinit U &> /dev/null
+ fi
+}
diff --git a/net-analyzer/net-snmp/files/net-snmp-maxreps.patch b/net-analyzer/net-snmp/files/net-snmp-maxreps.patch
index 7d9627de..7d9627de 100755..100644
--- a/net-analyzer/net-snmp/files/net-snmp-maxreps.patch
+++ b/net-analyzer/net-snmp/files/net-snmp-maxreps.patch
diff --git a/sys-apps/wdd/Manifest b/sys-apps/wdd/Manifest
index e72601e8..d1418d33 100644
--- a/sys-apps/wdd/Manifest
+++ b/sys-apps/wdd/Manifest
@@ -4,6 +4,6 @@ AUX wdd.confd 63 RMD160 0c72c3dc55da3c82231ecd4fc479fe64a1b49a66 SHA1 fe35c35f95
AUX wdd.initd 421 RMD160 f42dd9c91bbd1efe38253db237b7fee70f303c67 SHA1 36b4ef136e32ea9de5f837e4c08672128025dec6 SHA256 9d123e1ea41d90404520f33922d12cb2622cc4b913f62277d4b11bdfe0d3b684
DIST wdd.8 3198 RMD160 34aa288bd79e0f15229ca75f8567bde8d45f76a1 SHA1 1f83bdc0fd2f8aaeb439ac60f1d79487a8e88f88 SHA256 7129d465b7fa4c96dd488f22a4dc265a0d2d343e1c40ac0aa6827e53dd8aec2b
DIST wdd.c 2841 RMD160 f4555a2132545e371d7325bc71755c48f64a57b9 SHA1 b68d654ec1511bbce66a1a07d40bf9b7c3272243 SHA256 66be5e748b6199f7afbdbc7b6aaed6cbbfa2e0634aa90d3c0aefa743756ae6a7
-EBUILD wdd-0-r1.ebuild 902 RMD160 f7becfbb2bfd8081869f294b61fe5630013f83db SHA1 7b535b3610d5c87cf627840c4088be8ee0f482da SHA256 1db5296b020ff4db819d3170ccc166c3d0265690cfde6f79144669c88a2288c0
-EBUILD wdd-0-r2.ebuild 854 RMD160 1325f2352660d91a6b156cd210d5d4eed1d0a7f0 SHA1 1cf5886d962ef5378fdae7e9743e1d9ac6d50d4c SHA256 989060377c1094dd9e485c07aa1f241f04dc26bf7b01cdd8e79d28c68cc48b22
+EBUILD wdd-0-r1.ebuild 901 RMD160 6a4527c5bf7db519efb189224de17189f205b575 SHA1 43937251fc905f7c10036598516378554eef1e48 SHA256 4a6ded30b7fc02c8ca5bca04ba7bd21859a36d5b36cdee01f2f0b15e8276380d
+EBUILD wdd-0-r2.ebuild 846 RMD160 26f6e481d86141af7db4741fb8d86bddf272382b SHA1 8387a84a3e5309a52aa1f58518bc01685e709034 SHA256 398fb76057bc173748bb41d746f82ee8986397c14d49f8ff7273dbeb8a259bf3
EBUILD wdd-0.ebuild 756 RMD160 d6b133180c7ad6e45e021ab5cccc022ff5d08e99 SHA1 07062968c759ec3eefaea0a08b935ca3e6616712 SHA256 dbaa31f81d629ff15c6615dbad4a088fd256cf0a9a977e6d2465f9ca160fb0d6
diff --git a/sys-apps/wdd/files/wdd.initd b/sys-apps/wdd/files/wdd.initd
index fd23e755..fd23e755 100755..100644
--- a/sys-apps/wdd/files/wdd.initd
+++ b/sys-apps/wdd/files/wdd.initd
diff --git a/sys-apps/wdd/wdd-0-r1.ebuild b/sys-apps/wdd/wdd-0-r1.ebuild
index 38fc4aef..ada99d87 100644
--- a/sys-apps/wdd/wdd-0-r1.ebuild
+++ b/sys-apps/wdd/wdd-0-r1.ebuild
@@ -22,7 +22,7 @@ src_unpack () {
mv ${DISTDIR}/wdd.{c,8} ${S}
cd ${S}
- #epatch ${FILESDIR}/warning.patch
+ epatch ${FILESDIR}/warning.patch
use syslog && epatch ${FILESDIR}/wdd-syslog-errors.diff
}
diff --git a/sys-apps/wdd/wdd-0-r2.ebuild b/sys-apps/wdd/wdd-0-r2.ebuild
index a68afc9f..08826d4d 100644
--- a/sys-apps/wdd/wdd-0-r2.ebuild
+++ b/sys-apps/wdd/wdd-0-r2.ebuild
@@ -11,7 +11,7 @@ SRC_URI="http://linux.exosec.fr/watchdog/daemon/wdd.c
LICENSE="Public-Domain"
SLOT="0"
-KEYWORDS="x86 ~amd64"
+KEYWORDS="-*"
IUSE="syslog"
DEPEND=""