I'm going to follow up this bug report with a collection of patches from eglibc to fix long standing glibc bugs.
*** Bug 264336 has been marked as a duplicate of this bug. ***
Created attachment 207510 [details, diff] patch to fix warnings with gcc-4 Patch by Falk Hueffner <falk@debian.org> http://patch-tracker.debian.org/patch/series/view/eglibc/2.10.1-0exp2/alpha/local-gcc4.1.diff
Created attachment 207511 [details, diff] patch to add dl-procinfo support Patch by Aurelien Jarno <aurelien@aurel32.net> glibc bug http://sources.redhat.com/bugzilla/show_bug.cgi?id=6827 http://patch-tracker.debian.org/patch/series/view/eglibc/2.10.1-0exp2/alpha/submitted-dl-procinfo.diff
Created attachment 207515 [details, diff] patch to add fdatasync support Patch by Patch by Aurelien Jarno <aurelien@aurel32.net> glibc bug http://sources.redhat.com/bugzilla/show_bug.cgi?id=5400 http://patch-tracker.debian.org/patch/series/view/eglibc/2.10.1-0exp2/alpha/submitted-fdatasync.diff
Created attachment 207517 [details, diff] patch to add getsysstats support Patch by Patch by Aurelien Jarno <aurelien@aurel32.net> http://patch-tracker.debian.org/patch/series/view/eglibc/2.10.1-0exp2/alpha/submitted-getsysstats.diff
Created attachment 207519 [details, diff] patch to fix includes Patch by Aurelien Jarno <aurelien@aurel32.net> http://patch-tracker.debian.org/patch/series/view/eglibc/2.10.1-0exp2/alpha/submitted-includes.diff
Created attachment 207520 [details, diff] patch to add futex defines Patch by Patch by Aurelien Jarno <aurelien@aurel32.net> http://patch-tracker.debian.org/patch/series/view/eglibc/2.10.1-0exp2/alpha/submitted-lowlevellock.diff
Created attachment 207522 [details, diff] patch to fix elf declarations Patch by Patch by Aurelien Jarno <aurelien@aurel32.net> http://patch-tracker.debian.org/patch/series/view/eglibc/2.10.1-0exp2/alpha/submitted-procfs_h.diff
Created attachment 207524 [details, diff] patch to fix rtld fPIC Patch by Patch by Aurelien Jarno <aurelien@aurel32.net> http://patch-tracker.debian.org/patch/series/view/eglibc/2.10.1-0exp2/alpha/submitted-rtld-fPIC.diff
Created attachment 207525 [details, diff] patch to fix flaw in memchr Patch by Aurelien Jarno <aurelien@aurel32.net> with help from Richard Henderson <rth@twiddle.net> See http://marc.info/?l=linux-alpha&m=124908275708988&w=2 http://patch-tracker.debian.org/patch/series/view/eglibc/2.10.1-0exp2/alpha/submitted-asm-memchr.diff
Created attachment 207527 [details, diff] patch to fix SOCK_NONBLOCK Patch by Aurelien Jarno <aurelien@aurel32.net> glibc bug http://sources.redhat.com/bugzilla/show_bug.cgi?id=10528 http://patch-tracker.debian.org/patch/series/view/eglibc/2.10.1-0exp2/alpha/submitted-sock_nonblock.diff
OK, that should be it. All but submitted-includes.diff should be applied to both 2.9 and 2.10 I think. submitted-includes.diff is only applicable to 2.10. Any questions, I'm mattst88 in #gentoo-alpha.
those all look fine to me. if you look at our patchsets, you'll see we use a certain naming schema, and specifically for alpha, they all start with 60##. so if you could rename them accordingly, i'll toss them in: 60##_<all|alpha>_alpha-<some desc>.patch for the ones that only apply to alpha-specific files, it's fine to use _all_, but for fdatasync ones, let's use _alpha_. also, just make a tarball of the files and attach that so i can easily unpack & and add to the current tree
Created attachment 208573 [details] alpha patches, renamed The patch to fix elf declarations is actually already in portage, so ignore it (it's not included in the tarball) Patches 6024 and 6025 included in the tarball don't apply to 2.9_p20081201-r3, only to 2.10.1. I don't know how you guys handle this, but since there's the added ports/ directory in 2.10, all the patches minus 6024 and 6025 apply `patch -p1` from the ports/ directory in 2.10, but from the root folder in 2.9. Anything else I can do, let me know.
the patch has to be able to apply from the top level, not from inside the ports/ dir. whether it's -p1+ beyond that point doesnt matter as it's handled automatically. as such i had to fix some of the patches which were created -p1 from inside the ports/ subdir. they're part of glibc-2.10.1 now.