1 |
On 02-03-2007 12:24:30 +0100, Fabrizio Listello wrote: |
2 |
>> Which patch? On Solaris 10/Sparc only 2.5.4 is unsuable, because it |
3 |
>> doesn't recognise multiple files in single patch files. |
4 |
> |
5 |
> System is Solaris 11/x86, patch 2.5.9. Error is: |
6 |
> |
7 |
> No file to patch. Skipping patch. |
8 |
> patch: **** fseek : Invalid argument |
9 |
> |
10 |
> |
11 |
> I did some 'truss' and I found the following: |
12 |
> when using the XOPEN_SOURCE version: |
13 |
> [...] |
14 |
> llseek(3, 0, SEEK_CUR) = 1355 |
15 |
> stat64("pch.c", 0x08045AA0) = 0 |
16 |
> lseek(3, 538, 2147483647) Err#22 EINVAL |
17 |
> [...] |
18 |
> and it fails. |
19 |
> when using the non-XOPEN_SOURCE version: |
20 |
> [..] |
21 |
> llseek(3, 0, SEEK_CUR) = 1355 |
22 |
> stat64("pch.c", 0x08045AB0) = 0 |
23 |
> llseek(3, 538, SEEK_SET) = 538 |
24 |
> [...] |
25 |
> a call to llseek is done. |
26 |
> Don't ask me why it works, but it do. |
27 |
> |
28 |
> Anyway, patching patch ebuild at line 33 with: |
29 |
> ! use x86-solaris && append-flag -D_XOPEN_SOURCE=500 |
30 |
> should resolve the issue. |
31 |
|
32 |
Thanks for the research on this one! I hit the same issue, and fixed it |
33 |
in the tree. |
34 |
|
35 |
|
36 |
-- |
37 |
Fabian Groffen |
38 |
Gentoo on a different level |
39 |
-- |
40 |
gentoo-alt@l.g.o mailing list |