Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 101987 Details for
Bug 153538
media-gfx/povray statically links in libpng 1.2.5, not the system 1.2.12-r1 (Please stable povray-3.6.1-r4)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
3.6.1-use-system-libpng.diff (text/plain), 1.47 KB, created by
David Leverton
on 2006-11-15 07:43:25 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
David Leverton
Created:
2006-11-15 07:43:25 UTC
Size:
1.47 KB
patch
obsolete
>--- povray-3.6.1/acinclude.m4~ 2004-08-03 00:16:14.000000000 +0100 >+++ povray-3.6.1/acinclude.m4 2006-11-15 15:29:33.000000000 +0000 >@@ -353,13 +353,36 @@ > [ > AC_LANG_SOURCE( > [#include <stdio.h> >+#include <stdlib.h> > #include <string.h> > #include "$5" > int main (void) > { >- const char *version = $6; >+ const char *version = $6; >+ char wanted[[]] = "$2"; >+ char *version_tok, *wanted_tok = wanted; >+ char *version_tmp, *wanted_tmp; > fprintf (stderr, "%s\n", version); >- return ! (strcmp (version ? version : "", "$2") >= 0); >+ if (!version) return EXIT_FAILURE; >+ version_tok = strdup(version); >+ for (version_tok = strtok_r(version_tok, ".", &version_tmp), >+ wanted_tok = strtok_r(wanted_tok, ".", &wanted_tmp); >+ version_tok != NULL && wanted_tok != NULL; >+ version_tok = strtok_r(NULL, ".", &version_tmp), >+ wanted_tok = strtok_r(NULL, ".", &wanted_tmp)) { >+ char *version_endptr, *wanted_endptr; >+ unsigned long version_bit = strtoul(version_tok, &version_endptr, 10); >+ unsigned long wanted_bit = strtoul(wanted_tok, &wanted_endptr, 10); >+ if (version_bit < wanted_bit) >+ return EXIT_FAILURE; >+ if (version_bit > wanted_bit) >+ return EXIT_SUCCESS; >+ if (strcmp(version_endptr, wanted_endptr) > 0) >+ return EXIT_SUCCESS; >+ if (strcmp(version_endptr, wanted_endptr) < 0) >+ return EXIT_FAILURE; >+ } >+ return wanted_tok == NULL ? EXIT_SUCCESS : EXIT_FAILURE; > }] > ) > ],
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 153538
:
101987
|
101988
|
101998