Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 182094 - sys-libs/uclibc-0.9.29 version bump
Summary: sys-libs/uclibc-0.9.29 version bump
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Embedded Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 149292 162885 169907 182897 191337
  Show dependency tree
 
Reported: 2007-06-15 07:53 UTC by Natanael Copa
Modified: 2008-12-15 18:58 UTC (History)
15 users (show)

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


Attachments
uclibc-0.9.29.ebuild (uclibc-0.9.29.ebuild,13.32 KB, text/plain)
2007-06-15 12:17 UTC, Natanael Copa
Details
files/uclibc-0.9.29-inet_network.patch (uclibc-0.9.29-inet_network.patch,485 bytes, patch)
2007-06-16 11:24 UTC, Natanael Copa
Details | Diff
uclibc-0.9.29.ebuild (uclibc-0.9.29.ebuild,13.02 KB, text/plain)
2007-06-16 11:25 UTC, Natanael Copa
Details
files/uclibc-0.9.29-net-tools_compile.patch (uclibc-0.9.29-net-tools_compile.patch,405 bytes, patch)
2007-06-26 12:00 UTC, boris64
Details | Diff
uclibc-0.9.29.ebuild.diff (uclibc-0.9.29.ebuild.diff,9.78 KB, patch)
2007-12-26 17:55 UTC, Alon Bar-Lev (RETIRED)
Details | Diff
Updated diff (uclibc-0.9.29.ebuild.patch,9.99 KB, patch)
2008-02-19 22:34 UTC, Paul Davis
Details | Diff
Complete ebuild based on patch by Paul Davis (uclibc-0.9.29.ebuild,14.00 KB, text/plain)
2008-04-06 14:45 UTC, Berend Dekens
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Natanael Copa 2007-06-15 07:53:22 UTC
New version of uclibc is available. Several bugs have been closed due to fixes are available in upstream uclibc-0.9.29 but gentoo still has 0.9.28.

There is for example no working version for xfsprogs for uclibc at this moment due to this.
Comment 1 Natanael Copa 2007-06-15 12:17:42 UTC
Created attachment 122131 [details]
uclibc-0.9.29.ebuild

I created a set_opt func to set config options since the previous

  echo "KEY=y" >> .config 

didn't work.
Comment 2 Natanael Copa 2007-06-15 13:52:15 UTC
FYI: the testsuite fails on hardened with a segfault. stack overflow in inet_network() or something like that?

nc inet # make
  TEST_LINK inet/ bug-if1
  TEST_LINK inet/ if_nameindex
  TEST_LINK inet/ tst-aton
  TEST_LINK inet/ tst-network
  TEST_LINK inet/ tst-ntoa
  TEST_LINK inet/ bug-if1_glibc
  TEST_LINK inet/ if_nameindex_glibc
  TEST_LINK inet/ tst-aton_glibc
  TEST_LINK inet/ tst-network_glibc
  TEST_LINK inet/ tst-ntoa_glibc
  TEST_EXEC inet/ bug-if1
  TEST_EXEC inet/ if_nameindex
  TEST_EXEC inet/ tst-aton
  TEST_EXEC inet/ tst-network
/bin/sh: line 1: 13173 Segmentation fault      ./tst-network >&"tst-network.out"
ret == 139 ; expected_ret == 0
Testing: 1.0.0.0
Testing: 1.0.0
Testing: 1.0
Testing: 1
Testing: 192.168.0.0
Testing: 141.30.225.2800
Test failed for inet_network ("141.30.225.2800"):
Expected return value 4294967295 (0xffffffff) but got 2367611376 (0x8d1ee1f0).
Testing: 141.76.1.1.1
make: *** [tst-network.exe] Error 1
nc inet # vim tst-network.c 
Comment 3 Natanael Copa 2007-06-16 11:24:06 UTC
Created attachment 122218 [details, diff]
files/uclibc-0.9.29-inet_network.patch

fixes a off-by-one bug in inet_network() that caused the FEATURES="test" to segfault.

Reported upstream on the uclibc list.
Comment 4 Natanael Copa 2007-06-16 11:25:17 UTC
Created attachment 122220 [details]
uclibc-0.9.29.ebuild

updated ebuild.
Comment 5 boris64 2007-06-26 12:00:03 UTC
Hi folks, 
i bumped this ebuild myself and found out, that
=sys-apps/net-tools-1.60-r13  doesn't compile with this version.

Well, it's well explained here and you can also find a PROPOSED patch here
-> http://lkml.org/lkml/2004/10/19/276

After using the patched uclibc-headers net-tools can be build again.

Check the attached patch (files/uclibc-0.9.29-net-tools_compile.patch) please ;)
Comment 6 boris64 2007-06-26 12:00:57 UTC
Created attachment 123102 [details, diff]
files/uclibc-0.9.29-net-tools_compile.patch

files/uclibc-0.9.29-net-tools_compile.patch
Comment 7 Natanael Copa 2007-08-13 09:29:26 UTC
Would it be an idea to add the ebuild to the portage tree, maybe even masked? It would be easier to fix things if there are specific bugs to fix.

Comment 8 Sergey Dryabzhinsky 2007-08-14 05:05:20 UTC
Its need adapted patches from prev ebuild for C99 math.h ...
Comment 9 Natanael Copa 2007-09-24 08:34:30 UTC
(In reply to comment #8)
> Its need adapted patches from prev ebuild for C99 math.h ...
> 

Why were those not included in upstream 0.9.29?
Comment 10 Dennis Schridde 2007-09-25 00:24:54 UTC
Upstream claims that "Currently uClibc runs on alpha, amd64, ARM, Blackfin, cris, h8300, hppa, i386, i960, ia64, m68k, mips/mipsel, PowerPC, SH, SPARC, and v850 processors.", while Gentoo has KEYWORDS="-* ~arm ~m68k -mips ~ppc ~sh ~sparc ~x86" (i.e. amd64 is missing).
Comment 11 SpanKY gentoo-dev 2007-09-25 23:55:47 UTC
i'm fully aware of what upstream claims (especially considering i added a couple of those arches), but it doesnt mean it's ready for them in Gentoo

i didnt port uClibc to amd64 until after 0.9.28 and not all of the ones listed support ldso (which means there's no point in doing Gentoo on them yet)
Comment 12 Natanael Copa 2007-10-31 13:29:54 UTC
i am looking into getting the c99 math funcs included upstream. If they get included I will try make a backport patch for 0.9.29.
Comment 13 Natanael Copa 2007-11-05 13:36:03 UTC
Do we need all the c99 math funcs or should we just cherrypick the most needed ones? I cant find any code (google code search) that uses log2() for example.
Comment 14 SpanKY gentoo-dev 2007-11-07 16:16:05 UTC
we only add ones as needed
Comment 15 Natanael Copa 2007-11-07 16:34:22 UTC
(In reply to comment #8)
> Its need adapted patches from prev ebuild for C99 math.h ...
> 

which package need what c99 func?

Comment 16 Sergey Dryabzhinsky 2007-11-11 13:17:00 UTC
(In reply to comment #15)
> which package need what c99 func?

It's WAS needed by uclibc++ which compiling with float and long math functions by default... But I disabled it in ebuild and problem was gone...

So C99 math is not so hardly needed...
Comment 17 Natanael Copa 2007-11-11 13:53:19 UTC
(In reply to comment #16)
> (In reply to comment #15)
> > which package need what c99 func?
> 
> It's WAS needed by uclibc++ which compiling with float and long math functions
> by default... But I disabled it in ebuild and problem was gone...
> 
> So C99 math is not so hardly needed...

cool. so then i can collect a set of patches (from buildroot and other projects) and we might be able to add 0.9.29 to the portage tree. we can add math functions as needed later.
Comment 18 Wenqiang Song 2007-11-27 04:54:57 UTC
(In reply to comment #4)
> Created an attachment (id=122220) [edit]
> uclibc-0.9.29.ebuild
> 
> updated ebuild.
> 
I tried to use crossdev with this ebuild to get a mipsel-linux-uclibc toolchain. But it always tries to compile i386 target for me. Strange. 

Previous ones like 0.9.28 and 0.9.27 worked as expected.
Comment 19 Alon Bar-Lev (RETIRED) gentoo-dev 2007-12-26 17:55:05 UTC
Created attachment 139367 [details, diff]
uclibc-0.9.29.ebuild.diff

This diff against latest portage uclibc, apply most of attachment#122220 [details].

Fixes cross compile, endian, host cc, includes and more.

Checked for i586, mipsel...

Bad luck with mipsel... dso causes floating point exception... Strange... Anyway, result is a better shape ebuild.

vapier, I will be glad to receive comments regarding this one... :)
Comment 20 Sergey Dryabzhinsky 2007-12-26 19:08:16 UTC
Option UCLIBC_HAS_GU_GLOB is need to be enabled for some packages...
Comment 21 Matthijs Kooijman 2007-12-29 23:32:51 UTC
I'm currently testing uclibc 0.9.29 with the files presented here (ebuild diff and two patches).

I can confirm the comment about the UCLIBC_HAS_GNU_GLOB option. In particular, make fails to build without it here.

In particular, I'm trying to enable the iconv use flag (which enables all kinds of locale support in uclibc). However, I found that using iconv without setting the pregen useflag breaks compilation. It seems this combination would try to generate the locale data at compile time. From the uclibc documentation, I found that this is completely not supported.

In particular, the "make locale_headers" errors out. It uses (through some -D option) $(top_build_dir) (which is set to './') in an #include statement in a file that is not at the root (ie, extra/locales/gen_wc8bit.c does #include ./include/something.h, which should be ../../include/something.h or something with -I's or I don't know what).

Perhaps having iconv but not pregen should generate a warning?

Additionally, it seems that setting the nls use flag has no effect when iconv is not set. Should that be noted somewhere?

Lastly, I'm having some trouble getting the pregen option to work properly, but I'll come back to that.
Comment 22 Paul Davis 2008-02-19 22:34:04 UTC
Created attachment 144018 [details, diff]
Updated diff

I'm embedding gentoo on a PXA270, but to optimize I needed to modify the latest patch to 0.9.29 to support IWMMXT on bintuils-2.18.50.x/gcc-4.2.3. To do so in a generic way this patch adds two optional command line variables: UCLIBC_CONFIGURATION which allows modification of the .config file (in my case to turn off OABI and on EABI); and UCLIBC_EXTRA_CFLAGS which allows modification of the compiler (in my case setting -mcpu=iwmmxt -mabi=aapcs-linux -mfloat-abi=soft -mfpu=vfp etc.). Other than that the patch is very similar (diff'ed against 0.9.28.3-r2).

On a side note, in order to get gcc to stage2 rebuild (including C++ support) uclibc_nonshared for some reason builds aeabi_lcsts with an unknown architecture, necessitating passing to gcc a -Wl,--accept-unknown-input-arch for the time being. Have yet to discover why though, as it appears to compile / link in much the same way as the rest of the library.
Comment 23 Paul Davis 2008-02-20 16:03:45 UTC
I believe I have found the minor mistake in the side note for aeabi_lcsts as RESTRICT was still using "nostrip" in my test ebuild (which would then run i686-pc-linux-gnu-strip, strangely enough succeeding on the arm libraries but removing the architecture info for just the first object).
Comment 24 Berend Dekens 2008-04-06 14:45:57 UTC
Created attachment 148873 [details]
Complete ebuild based on patch by Paul Davis

(In reply to comment #22)
> Created an attachment (id=144018) [edit]
> Updated diff
> 
Thanks to an update in the 0.9.28-r2 ebuild by Phreak, the patch no longer works on that ebuild. After patching it by hand, I recreated the new one based on the patch by Paul Davis on 19 Feb 2008.
Comment 25 dnjl 2008-04-17 13:47:52 UTC
uclibc 0.9.29 is over a year out. why is this not in portage tree? what is the problem with this ebuild? I think with this we would have lesser problems than with .28
Comment 26 solar (RETIRED) gentoo-dev 2008-04-18 14:51:20 UTC
(In reply to comment #25)
> uclibc 0.9.29 is over a year out. why is this not in portage tree? what is the
> problem with this ebuild? I think with this we would have lesser problems than
> with .28
> 

Don't assume simply cuz the number is bigger that it is better. 0.9.29 has stdio 
problems. If 0.9.29 is ever added to the tree it will be done so by the bug 
reporter who is on the track of becoming a dev.
Comment 27 Matt Sealey, Genesi 2008-08-08 21:32:34 UTC
(In reply to comment #26)
> 0.9.29 has stdio problems.

Like?

References, URLs, ML posts would help..?
Comment 28 Stefan de Konink 2008-09-06 15:16:54 UTC
(In reply to comment #26)
> (In reply to comment #25)
> > uclibc 0.9.29 is over a year out. why is this not in portage tree? what is the
> > problem with this ebuild? I think with this we would have lesser problems than
> > with .28
> > 
> 
> Don't assume simply cuz the number is bigger that it is better. 0.9.29 has
> stdio 
> problems. If 0.9.29 is ever added to the tree it will be done so by the bug 
> reporter who is on the track of becoming a dev.
> 

https://dev.openwrt.org/cgi-bin/trac.fcgi/browser/trunk/toolchain/uClibc/patches/0.9.28.2

Could we then please get some patches in to fix the current version?
Comment 29 Sergey Dryabzhinsky 2008-12-15 18:42:29 UTC
uClibc-0.9.30 in portage now, so this request need to be renamed or droped?
Comment 30 solar (RETIRED) gentoo-dev 2008-12-15 18:58:43 UTC
Please file a new bug for the new release if needed. 
Also due to limited manpower it's much better to try to push any patches upstream for .31