Skip to content

Commit

Permalink
Add old uclibc ebuilds used for GNAP.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sune Kloppenborg Jeppesen committed Sep 26, 2012
1 parent d1fd340 commit 0affa67
Show file tree
Hide file tree
Showing 16 changed files with 2,450 additions and 0 deletions.
478 changes: 478 additions & 0 deletions sys-libs/uclibc/ChangeLog

Large diffs are not rendered by default.

18 changes: 18 additions & 0 deletions sys-libs/uclibc/Manifest
@@ -0,0 +1,18 @@
AUX gen_wc8bit.patch 1192 RMD160 7791d82c012415f3a727bdcde3db21ec0a2232c9 SHA1 b6b6288b2db2eb2cafe142daecd5f259f21bc7af SHA256 a50caaf7dabd7025257946e1c795d987c14ca1120c6040034694fbfb87cc87e9
AUX gen_wctype.patch 6681 RMD160 db084dab2d1e99dce9e9873853228a7c316683d4 SHA1 821409ef977f8bf8aba028fcdf84b62c4bd3142f SHA256 08836c362e5e69aeca18aa8ab61914384c92a0bcec3a62a5043c7dccfebb0c5b
AUX locales.txt 711 RMD160 06b9a28ca510b47f16b5b9e865d45cc52ac4907d SHA1 5a3ba6dfc1799251f74d5cbf4434a8d4b2254389 SHA256 408b2a8b5beaa8d141a6b2448b835d2323414bc6d3e114efc9ec1527aad023fa
AUX uClibc-ppoll.patch 762 RMD160 998a29be94b6030ee847a66e5b12d2b9c5f2ae90 SHA1 c8405822db87895cab7b9b2eb8bcbc36cf1fcab8 SHA256 403240cfdba58cff5cd1ce3ac3750bc920cf79e5b78899e9e345291926acc89f
AUX uClibc-ppoll.patch.full 787 RMD160 80e892d76b5892e44adb158c98f9144b05eed8d8 SHA1 cfdec245b77b7ea5c0ee4b87ad5c518b3920f34e SHA256 d81fdaf11720f1bcb37d1cc856acb5ba1d436c15adbc5e8a27032bc5dcb765bd
AUX uclibc-0.9.33_pre20110617-clean.patch 347 RMD160 4ae7015d2213e69464d6d6afd688e8d80b9719c3 SHA1 7d27e29e6374615033753530175325b4f476899f SHA256 65cd8b6b060aeffd1daa626b8ab05c8dc26b0b5f602bfad5bf0693b78fdc36df
AUX uclibc-0.9.33_pre20110913-clean.patch 347 RMD160 4ae7015d2213e69464d6d6afd688e8d80b9719c3 SHA1 7d27e29e6374615033753530175325b4f476899f SHA256 65cd8b6b060aeffd1daa626b8ab05c8dc26b0b5f602bfad5bf0693b78fdc36df
DIST uClibc-0.9.30.1-patches-1.0.tar.bz2 5501 RMD160 d2c48023fb25af45512c65ce3c5e936b5b24efe1 SHA1 bd34516c1bc71c45c5f1d078b91f323469760228 SHA256 022637d107fedd52bdd8187566e6e6378813a19f4ef8bf723a713e8d9cd8cd05
DIST uClibc-0.9.30.1.tar.bz2 2285137 RMD160 bff9a232b1f1c73efd71247e7b91aa31d41af0ee SHA1 4b36fec9a0dacbd6fe0fd2cdb7836aaf8b7f4992 SHA256 2d9769a02c46cff73f56a076268192da1ce91c913e2e4e31c120be098f704c8c
DIST uClibc-20110913.tar.bz2 2808854 RMD160 abebcbc5ee8f5dc1d327cc5f39c271b171de2ed7 SHA1 aa023308e0ac2406c33abcae9106a70cb90a80b4 SHA256 09dfc4e6e7e02a9dafd7e5827b236191133a08244135484cbb08622787e947a6
EBUILD uclibc-0.9.30.1-r1.ebuild 11596 RMD160 b6e69c3b4a1fef66415be334b611a305eb9eac1c SHA1 59f3ec6e39293ef0d8e24dc7d67ae5dcc66394dc SHA256 c04c4b19db017f072ac6a4351794b0758f696dd5251a607fbce1cab3764e25b3
EBUILD uclibc-0.9.30.1-r2.ebuild 11651 RMD160 9ff11ed3248e4f62686dc8809b7474a400a6d346 SHA1 f51d430d2dc5b7b0728574b01655d114eef2ff4d SHA256 4b77eda61e370dbd67f3b61c03f3869a755fb167710093a558b2a95513285b65
EBUILD uclibc-0.9.33_pre20110913.ebuild 12149 RMD160 ed093da3f833eafbf9ab1251b958493704e09b89 SHA1 3d00389df374848be699f7615fd6a7903ff95cbf SHA256 05d9cfbb1fa83a04d859e5e590b51f11af3cb69dd7afb2a67ff1efb48389f264
MISC ChangeLog 18586 RMD160 027ccb19c2b0c8676625e66513112599b72d8907 SHA1 562f77f5b16345eaca9f4ae8e4d600c2ffd75e8c SHA256 f45dc12f07dc17e91f353d548a8b8d36a38a4494f3e56336c7565f24264f2b10
MISC metadata.xml 1469 RMD160 0c3640cb24a93c003e59cd0f9fd99587881ac63e SHA1 6be5e573878f88438a0121ff49841d52f07dedcd SHA256 e2f9e4727e826e87f735157c170a4e1f5f3ff572a2a2875f6a8889dfa5c648a3
MISC patch 1058 RMD160 569b04a5ac0b12f79272d2ceec5c4679c9a654fb SHA1 b8d580e13ec638cf72356c894f248f7213769bdc SHA256 a53392a3c39c1c0189e7aa75a4190515c96e486fa8741d6bc6e1ed8a1218ff41
MISC uclibc-0.9.30.1-r1.ebuild.orig 11596 RMD160 b6e69c3b4a1fef66415be334b611a305eb9eac1c SHA1 59f3ec6e39293ef0d8e24dc7d67ae5dcc66394dc SHA256 c04c4b19db017f072ac6a4351794b0758f696dd5251a607fbce1cab3764e25b3
MISC uclibc-0.9.30.1-r1.ebuild.rej 1216 RMD160 760065fb405ccba550d268baee10809d2bfadc67 SHA1 30f64a0cd825dff407349a9fdc2a84ccf7c84d84 SHA256 b1ee4f0b0f81afb46825f39e0be0b8c7729d2b505e716c7c3eb2ea97614e3abd
47 changes: 47 additions & 0 deletions sys-libs/uclibc/files/gen_wc8bit.patch
@@ -0,0 +1,47 @@
--- a/extra/locale/gen_wc8bit.c
+++ b/extra/locale/gen_wc8bit.c
@@ -99,31 +99,29 @@
int total_size = 0;

if (!setlocale(LC_CTYPE, "en_US.UTF-8")) {
- /* Silly foreigners disabling en_US locales */
- FILE *fp = popen("locale -a", "r");
- if (!fp)
- goto locale_failure;
-
- while (!feof(fp)) {
+ /* setlocale might be just a stub */
+ fp = popen("locale -a", "r");
+ if (!fp) {
+ printf("#error could not execute 'locale -a'\n");
+ return EXIT_FAILURE;
+ }
+
+ /* while (!feof(fp)) {
char buf[256];
size_t len;

- if (fgets(buf, sizeof(buf) - 10, fp) == NULL)
- goto locale_failure;
+ if (fgets(buf, sizeof(buf) - 10, fp) == NULL) {
+ printf("#error could not read 'locale -a' output buffer\n");
+ return EXIT_FAILURE;
+ }

len = strlen(buf);
if (len > 0 && buf[len - 1] == '\n')
buf[--len] = '\0';
if (len < 5 || strcasecmp(&buf[len-5], ".UTF8") != 0)
strcat(buf, ".UTF8");
- if (setlocale(LC_CTYPE, buf))
- goto locale_success;
}
-
- locale_failure:
- printf("could not find a UTF8 locale ... please enable en_US.UTF-8\n");
- return EXIT_FAILURE;
- locale_success:
+ */
pclose(fp);
}

183 changes: 183 additions & 0 deletions sys-libs/uclibc/files/gen_wctype.patch
@@ -0,0 +1,183 @@
--- a/extra/locale/gen_wctype.c
+++ b/extra/locale/gen_wctype.c
@@ -227,11 +227,12 @@
++verbose;
continue;
}
- if (!setlocale(LC_CTYPE, *argv)) {
+ /* setlocale might be just a stub */
+ /* if (!setlocale(LC_CTYPE, *argv)) {
verbose_msg("setlocale(LC_CTYPE,%s) failed! Skipping this locale...\n", *argv);
continue;
}
-
+ */
if (!(totitle = wctrans("totitle"))) {
verbose_msg("no totitle transformation.\n");
}
@@ -306,43 +307,43 @@
#endif
#if 0
if (c < 256) {
- unsigned int glibc;
+ unsigned int curr_stdclib;

- glibc = 0;
- if (isalnum(c)) ++glibc; glibc <<= 1;
- if (isalpha(c)) ++glibc; glibc <<= 1;
- if (isblank(c)) ++glibc; glibc <<= 1;
- if (iscntrl(c)) ++glibc; glibc <<= 1;
- if (isdigit(c)) ++glibc; glibc <<= 1;
- if (isgraph(c)) ++glibc; glibc <<= 1;
- if (islower(c)) ++glibc; glibc <<= 1;
- if (isprint(c)) ++glibc; glibc <<= 1;
- if (ispunct(c)) ++glibc; glibc <<= 1;
- if (isspace(c)) ++glibc; glibc <<= 1;
- if (isupper(c)) ++glibc; glibc <<= 1;
- if (isxdigit(c)) ++glibc;
- verbose_msg("%#8x : ctype %#4x\n", c, glibc);
+ curr_stdclib = 0;
+ if (isalnum(c)) ++curr_stdclib; curr_stdclib <<= 1;
+ if (isalpha(c)) ++curr_stdclib; curr_stdclib <<= 1;
+ if (isblank(c)) ++curr_stdclib; curr_stdclib <<= 1;
+ if (iscntrl(c)) ++curr_stdclib; curr_stdclib <<= 1;
+ if (isdigit(c)) ++curr_stdclib; curr_stdclib <<= 1;
+ if (isgraph(c)) ++curr_stdclib; curr_stdclib <<= 1;
+ if (islower(c)) ++curr_stdclib; curr_stdclib <<= 1;
+ if (isprint(c)) ++curr_stdclib; curr_stdclib <<= 1;
+ if (ispunct(c)) ++curr_stdclib; curr_stdclib <<= 1;
+ if (isspace(c)) ++curr_stdclib; curr_stdclib <<= 1;
+ if (isupper(c)) ++curr_stdclib; curr_stdclib <<= 1;
+ if (isxdigit(c)) ++curr_stdclib;
+ verbose_msg("%#8x : ctype %#4x\n", c, curr_stdclib);
}
#endif
#if 1
/* Paranoid checking... */
{
- unsigned int glibc;
+ unsigned int curr_stdclib;
unsigned int mine;

- glibc = 0;
- if (iswalnum(c)) ++glibc; glibc <<= 1;
- if (iswalpha(c)) ++glibc; glibc <<= 1;
- if (iswblank(c)) ++glibc; glibc <<= 1;
- if (iswcntrl(c)) ++glibc; glibc <<= 1;
- if (iswdigit(c)) ++glibc; glibc <<= 1;
- if (iswgraph(c)) ++glibc; glibc <<= 1;
- if (iswlower(c)) ++glibc; glibc <<= 1;
- if (iswprint(c)) ++glibc; glibc <<= 1;
- if (iswpunct(c)) ++glibc; glibc <<= 1;
- if (iswspace(c)) ++glibc; glibc <<= 1;
- if (iswupper(c)) ++glibc; glibc <<= 1;
- if (iswxdigit(c)) ++glibc;
+ curr_stdclib = 0;
+ if (iswalnum(c)) ++curr_stdclib; curr_stdclib <<= 1;
+ if (iswalpha(c)) ++curr_stdclib; curr_stdclib <<= 1;
+ if (iswblank(c)) ++curr_stdclib; curr_stdclib <<= 1;
+ if (iswcntrl(c)) ++curr_stdclib; curr_stdclib <<= 1;
+ if (iswdigit(c)) ++curr_stdclib; curr_stdclib <<= 1;
+ if (iswgraph(c)) ++curr_stdclib; curr_stdclib <<= 1;
+ if (iswlower(c)) ++curr_stdclib; curr_stdclib <<= 1;
+ if (iswprint(c)) ++curr_stdclib; curr_stdclib <<= 1;
+ if (iswpunct(c)) ++curr_stdclib; curr_stdclib <<= 1;
+ if (iswspace(c)) ++curr_stdclib; curr_stdclib <<= 1;
+ if (iswupper(c)) ++curr_stdclib; curr_stdclib <<= 1;
+ if (iswxdigit(c)) ++curr_stdclib;

mine = 0;
if (mywalnum(d,c)) ++mine; mine <<= 1;
@@ -358,15 +359,15 @@
if (mywupper(d,c)) ++mine; mine <<= 1;
if (mywxdigit(d,c)) ++mine;

- if (glibc != mine) {
- verbose_msg("%#8x : glibc %#4x != %#4x mine %u\n", c, glibc, mine, d);
+ if (curr_stdclib != mine) {
+ verbose_msg("%#8x : curr_stdclib %#4x != %#4x mine %u\n", c, curr_stdclib, mine, d);
return EXIT_FAILURE;
}
#if 0
if (iswctype(c,is_comb) || iswctype(c,is_comb3)) {
/* if (!iswpunct(c)) { */
verbose_msg("%#8x : %d %d %#4x\n",
- c, iswctype(c,is_comb),iswctype(c,is_comb3), glibc);
+ c, iswctype(c,is_comb),iswctype(c,is_comb3), curr_stdclib);
/* } */
}
#endif
@@ -553,7 +554,7 @@
for (c = 0; c <= 0x10ffffUL; c++)
#endif
{
- unsigned int glibc;
+ unsigned int curr_stdclib;
unsigned int mine;
unsigned int upper, lower;

@@ -568,19 +569,19 @@
}
#endif
#endif
- glibc = 0;
- if (iswalnum(c)) ++glibc; glibc <<= 1;
- if (iswalpha(c)) ++glibc; glibc <<= 1;
- if (iswblank(c)) ++glibc; glibc <<= 1;
- if (iswcntrl(c)) ++glibc; glibc <<= 1;
- if (iswdigit(c)) ++glibc; glibc <<= 1;
- if (iswgraph(c)) ++glibc; glibc <<= 1;
- if (iswlower(c)) ++glibc; glibc <<= 1;
- if (iswprint(c)) ++glibc; glibc <<= 1;
- if (iswpunct(c)) ++glibc; glibc <<= 1;
- if (iswspace(c)) ++glibc; glibc <<= 1;
- if (iswupper(c)) ++glibc; glibc <<= 1;
- if (iswxdigit(c)) ++glibc;
+ curr_stdclib = 0;
+ if (iswalnum(c)) ++curr_stdclib; curr_stdclib <<= 1;
+ if (iswalpha(c)) ++curr_stdclib; curr_stdclib <<= 1;
+ if (iswblank(c)) ++curr_stdclib; curr_stdclib <<= 1;
+ if (iswcntrl(c)) ++curr_stdclib; curr_stdclib <<= 1;
+ if (iswdigit(c)) ++curr_stdclib; curr_stdclib <<= 1;
+ if (iswgraph(c)) ++curr_stdclib; curr_stdclib <<= 1;
+ if (iswlower(c)) ++curr_stdclib; curr_stdclib <<= 1;
+ if (iswprint(c)) ++curr_stdclib; curr_stdclib <<= 1;
+ if (iswpunct(c)) ++curr_stdclib; curr_stdclib <<= 1;
+ if (iswspace(c)) ++curr_stdclib; curr_stdclib <<= 1;
+ if (iswupper(c)) ++curr_stdclib; curr_stdclib <<= 1;
+ if (iswxdigit(c)) ++curr_stdclib;

{
unsigned int u;
@@ -630,8 +631,8 @@
if (mywupper(d,c)) ++mine; mine <<= 1;
if (mywxdigit(d,c)) ++mine;

- if (glibc != mine) {
- verbose_msg("%#8x : glibc %#4x != %#4x mine %d\n", c, glibc, mine, d);
+ if (curr_stdclib != mine) {
+ verbose_msg("%#8x : curr_stdclib %#4x != %#4x mine %d\n", c, curr_stdclib, mine, d);
if (c < 0x30000UL) {
verbose_msg("sc=%#x u=%#x n=%#x i0=%#x i1=%#x\n", sc, u, n, i0, i1);
}
@@ -655,17 +656,17 @@
}

if (towupper(c) != upper) {
- verbose_msg("%#8x : towupper glibc %#4x != %#4x mine\n",
+ verbose_msg("%#8x : towupper curr_stdclib %#4x != %#4x mine\n",
c, towupper(c), upper);
}

if (towlower(c) != lower) {
- verbose_msg("%#8x : towlower glibc %#4x != %#4x mine i0 = %d\n",
+ verbose_msg("%#8x : towlower curr_stdclib %#4x != %#4x mine i0 = %d\n",
c, towlower(c), lower, i0);
}

if (totitle && ((tt = towctrans(c, totitle)) != upper)) {
- verbose_msg("%#8x : totitle glibc %#4lx != %#4x mine i0 = %d\n",
+ verbose_msg("%#8x : totitle curr_stdclib %#4lx != %#4x mine i0 = %d\n",
c, tt, upper, i0);
}
}
22 changes: 22 additions & 0 deletions sys-libs/uclibc/files/locales.txt
@@ -0,0 +1,22 @@
# First some @modifier mappings. Internally, the modifier is signaled by
# replacing '_' in the locale name with a unique identifying character.
# For example, internally we map "ca_ES@euro" to "caeES". This allows for
# smaller code and easier processing of locale names.

@euro e
@cyrillic c

#---------------------------------------------------------------------------
# Next, set to {y}es to enable and {n}o to disable the UTF-8 and the 8-bit
# codeset locales. Of course, you must have built the c8tables.h and
# the wctables.h files appropriately.


UTF-8 yes
8-BIT yes

#---------------------------------------------------------------------------
# Now the locales

en_GB ISO-8859-1
en_GB.UTF-8 UTF-8
25 changes: 25 additions & 0 deletions sys-libs/uclibc/files/uClibc-ppoll.patch
@@ -0,0 +1,25 @@
--- libc/sysdeps/linux/common/ppoll.c.orig 2011-11-03 19:22:18.000000000 +0100
+++ libc/sysdeps/linux/common/ppoll.c 2011-11-03 19:24:40.000000000 +0100
@@ -18,4 +18,5 @@
02111-1307 USA. */

+#include <signal.h>
#include <sys/syscall.h>
#include <sys/poll.h>
@@ -27,7 +28,7 @@
# define __NR___libc_ppoll __NR_ppoll
static __always_inline
-_syscall4(int, __libc_ppoll, struct pollfd *, fds,
+_syscall5(int, __libc_ppoll, struct pollfd *, fds,
nfds_t, nfds, const struct timespec *, timeout,
- const __sigset_t *, sigmask)
+ const __sigset_t *, sigmask, size_t, sigsetsize)

int
@@ -44,5 +45,5 @@
}

- return __libc_ppoll(fds, nfds, timeout, sigmask);
+ return __libc_ppoll(fds, nfds, timeout, sigmask, _NSIG / 8);
}
libc_hidden_def(ppoll)
25 changes: 25 additions & 0 deletions sys-libs/uclibc/files/uClibc-ppoll.patch.full
@@ -0,0 +1,25 @@
--- libc/sysdeps/linux/common/ppoll.c.orig 2011-11-03 18:14:00.000000000 +0000
+++ libc/sysdeps/linux/common/ppoll.c 2011-11-03 18:15:34.000000000 +0000
@@ -18,4 +18,5 @@
02111-1307 USA. */

+#include <signal.h>
#include <sys/syscall.h>
#include <sys/poll.h>
@@ -27,7 +28,7 @@
# define __NR___libc_ppoll __NR_ppoll
static __always_inline
-_syscall4(int, __libc_ppoll, struct pollfd *, fds,
+_syscall5(int, __libc_ppoll, struct pollfd *, fds,
nfds_t, nfds, const struct timespec *, timeout,
- const __sigset_t *, sigmask)
+ const __sigset_t *, sigmask, size_t, sigsetsize)

int
@@ -44,5 +45,5 @@
}

- return __libc_ppoll(fds, nfds, timeout, sigmask);
+ return __libc_ppoll(fds, nfds, timeout, sigmask, _NSIG / 8);
}
libc_hidden_def(ppoll)
8 changes: 8 additions & 0 deletions sys-libs/uclibc/files/uclibc-0.9.33_pre20110617-clean.patch
@@ -0,0 +1,8 @@
--- libubacktrace/Makefile.in.orig 2011-06-22 23:37:18.000000000 +0100
+++ libubacktrace/Makefile.in 2011-06-22 23:37:37.000000000 +0100
@@ -72,4 +72,4 @@

CLEAN_libubacktrace:
$(do_rm) $(addprefix $(libubacktrace_OUT)/*., o os oS a) \
- $(addprefix $(libubacktrace_ARCH_OUT)/*., o os oS a)
+ $(addprefix $(libubacktrace_OUT)/*., o os oS a)
8 changes: 8 additions & 0 deletions sys-libs/uclibc/files/uclibc-0.9.33_pre20110913-clean.patch
@@ -0,0 +1,8 @@
--- libubacktrace/Makefile.in.orig 2011-06-22 23:37:18.000000000 +0100
+++ libubacktrace/Makefile.in 2011-06-22 23:37:37.000000000 +0100
@@ -72,4 +72,4 @@

CLEAN_libubacktrace:
$(do_rm) $(addprefix $(libubacktrace_OUT)/*., o os oS a) \
- $(addprefix $(libubacktrace_ARCH_OUT)/*., o os oS a)
+ $(addprefix $(libubacktrace_OUT)/*., o os oS a)
32 changes: 32 additions & 0 deletions sys-libs/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>

0 comments on commit 0affa67

Please sign in to comment.