Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 211764 - sys-libs/readline-5.2_p12-r1 requires trival patch to work on IRIX
Summary: sys-libs/readline-5.2_p12-r1 requires trival patch to work on IRIX
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: MIPS IRIX
: Highest major
Assignee: Gentoo non-Linux Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-28 14:42 UTC by Stuart Shelton
Modified: 2008-05-16 20:40 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stuart Shelton 2008-02-28 14:42:30 UTC
As packaged, the merge of readline will fail when building examples/rlfe/rlfe.c because 'index()' isn't defined.

This is because SGI moved index() and rindex() from <string.h> to <strings.h>, but the former blocks the latter.

Thus, a patch similar to the following (from memory) should be applied to rlfe.c:

+#ifndef __sgi
 #include <string.h>
+#endif
 #ifdef HAVE_STRINGS_H
 # include <strings.h>
 #endif
Comment 1 Fabian Groffen gentoo-dev 2008-04-17 20:28:49 UTC
do you have an "exact" patch for me which you are sure works, then I can apply

:)
Comment 2 Fabian Groffen gentoo-dev 2008-05-16 20:40:13 UTC
I updated the IRIX patch to reflect this, thanks