Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 289642

Summary: sys-libs/glibc: patches for alpha
Product: Gentoo Linux Reporter: Matt Turner <mattst88>
Component: [OLD] Core systemAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED FIXED    
Severity: normal CC: alpha
Priority: High    
Version: unspecified   
Hardware: Alpha   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 291287    
Attachments: patch to fix warnings with gcc-4
patch to add dl-procinfo support
patch to add fdatasync support
patch to add getsysstats support
patch to fix includes
patch to add futex defines
patch to fix elf declarations
patch to fix rtld fPIC
patch to fix flaw in memchr
patch to fix SOCK_NONBLOCK
alpha patches, renamed

Description Matt Turner gentoo-dev 2009-10-18 21:05:28 UTC
I'm going to follow up this bug report with a collection of patches from eglibc to fix long standing glibc bugs.
Comment 1 Matt Turner gentoo-dev 2009-10-18 21:06:11 UTC
*** Bug 264336 has been marked as a duplicate of this bug. ***
Comment 2 Matt Turner gentoo-dev 2009-10-18 21:15:44 UTC
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
Comment 5 Matt Turner gentoo-dev 2009-10-19 00:58:42 UTC
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
Comment 7 Matt Turner gentoo-dev 2009-10-19 01:01:43 UTC
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
Comment 8 Matt Turner gentoo-dev 2009-10-19 01:03:27 UTC
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
Comment 9 Matt Turner gentoo-dev 2009-10-19 01:06:39 UTC
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
Comment 12 Matt Turner gentoo-dev 2009-10-19 01:18:57 UTC
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.
Comment 13 SpanKY gentoo-dev 2009-10-19 20:15:09 UTC
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
Comment 14 Matt Turner gentoo-dev 2009-10-28 20:52:09 UTC
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.
Comment 15 SpanKY gentoo-dev 2009-10-30 04:56:36 UTC
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.