Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 1726 - Patch failes for 32 bit sparc machines with 64bit file handles
Summary: Patch failes for 32 bit sparc machines with 64bit file handles
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Maarten Thibaut (RETIRED)
URL: http://bugs.debian.org/cgi-bin/bugrep...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-04-13 08:00 UTC by Maarten Thibaut (RETIRED)
Modified: 2003-02-04 19:42 UTC (History)
0 users

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


Attachments
Diff that adds support for sparc32 archs with 64 bit filehandles (patch-2.5.4-r3.ebuild.diff,61 bytes, patch)
2002-04-13 08:53 UTC, Maarten Thibaut (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Maarten Thibaut (RETIRED) gentoo-dev 2002-04-13 08:00:32 UTC
On SPARC machines where a 32 bit architecture is chosen in userland, patch does
not compile correctly for 64 bit filehandles. It assumes 32 bit filehandles instead.

The error produced is:

patch: **** fseek : Invalid argument

Adding this line in the ebuild before try ./configure fixes the issue:

CFLAGS="$CFLAGS -D_XOPEN_SOURCE=500"; export CFLAGS
Comment 1 Maarten Thibaut (RETIRED) gentoo-dev 2002-04-13 08:53:20 UTC
Created attachment 552 [details, diff]
Diff that adds support for sparc32 archs with 64 bit filehandles
Comment 2 Scott A. Friedman 2002-04-15 12:03:23 UTC
The associated mask for this fix is jamming some people!

I have patch-r3 and the you are requiring -r4 somehow rsync is not downloading 
the r4 ebuild? I am not sure what is going on here see gentoo-user. I got 
around it by manually changing the /etc/make.profile/packages file to -r3
Comment 3 Seemant Kulleen (RETIRED) gentoo-dev 2002-04-18 09:26:19 UTC
What is the status on this Maarten?  And is it related to bug #56 in any way?