Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 196916 Details for
Bug 273969
sci-mathematics/singular-3.0.4.4 fails to build with sys-libs/glibc-2.10.1
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
adds couple ugly const_casts<> to pass compilation
singular-3.0.4.4-glibc210.patch (text/plain), 1.33 KB, created by
Arttu Valo
on 2009-07-06 15:32:03 UTC
(
hide
)
Description:
adds couple ugly const_casts<> to pass compilation
Filename:
MIME Type:
Creator:
Arttu Valo
Created:
2009-07-06 15:32:03 UTC
Size:
1.33 KB
patch
obsolete
>diff -ur Singular-3-0-4.old/kernel/febase.cc Singular-3-0-4/kernel/febase.cc >--- Singular-3-0-4.old/kernel/febase.cc 2009-07-07 01:15:49.088761926 +0300 >+++ Singular-3-0-4/kernel/febase.cc 2009-07-07 01:16:51.157012952 +0300 >@@ -743,13 +743,13 @@ > char* dir_sep; > struct passwd *pw_entry; > strcpy (longpath, path); >- dir_sep = strchr(longpath, DIR_SEP); >+ dir_sep = const_cast<char*> ( strchr(longpath, DIR_SEP) ); // TODO: fix the ugly casting away of const > *dir_sep = '\0'; > pw_entry = getpwnam(&longpath[1]); > if (pw_entry != NULL) > { > strcpy(longpath, pw_entry->pw_dir); >- dir_sep = strchr(path, DIR_SEP); >+ dir_sep = const_cast<char*> ( strchr(path, DIR_SEP) ); // TODO: fix the ugly casting away of const > strcat(longpath, dir_sep); > path = longpath; > } >diff -ur Singular-3-0-4.old/kernel/mpr_complex.cc Singular-3-0-4/kernel/mpr_complex.cc >--- Singular-3-0-4.old/kernel/mpr_complex.cc 2009-07-07 01:34:11.290760532 +0300 >+++ Singular-3-0-4/kernel/mpr_complex.cc 2009-07-07 01:55:24.209129950 +0300 >@@ -82,7 +82,7 @@ > BOOLEAN neg=false; > if (*in == '-') { in++; neg=TRUE; } > char *s; >- if ((s=strchr(in,'E')) !=NULL) >+ if ((s = const_cast<char*> ( strchr(in,'E') )) !=NULL) /* TODO: fix the ugly casting away of const */ > { > *s='e'; > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 273969
:
195366
| 196916