Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 287639 Details for
Bug 384069
sci-geosciences/grass-6.4.1[png] fails to compile agains media-libs/libpng-1.5.4
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch
gentoo384069a.patch (text/plain), 1.36 KB, created by
Martin von Gagern
on 2011-09-25 00:56:04 UTC
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Martin von Gagern
Created:
2011-09-25 00:56:04 UTC
Size:
1.36 KB
patch
obsolete
>Make grass compile against libpng-1.5. > >2011-09-25 Martin von Gagern > >References: >https://bugs.gentoo.org/384069 > >Index: grass-6.4.1/raster/r.out.png/r.out.png.c >=================================================================== >--- grass-6.4.1.orig/raster/r.out.png/r.out.png.c >+++ grass-6.4.1/raster/r.out.png/r.out.png.c >@@ -261,9 +261,11 @@ int main(int argc, char *argv[]) > png_info_init(info_ptr); > #endif > png_init_io(png_ptr, fp); >+#if PNG_LIBPNG_VER < 10500 /* 1.5.0 */ > info_ptr->width = win.cols; > info_ptr->height = win.rows; > info_ptr->bit_depth = depth; >+#endif > > /* explicit filter-type (or none) required */ > if ((filter >= 0) && (filter <= 4)) { >@@ -302,10 +304,18 @@ int main(int argc, char *argv[]) > /*if(!gscale->answer){ *//* 24BIT COLOR IMAGE */ > > if (TRUE) { >+ int color_type; > if (do_alpha) >- info_ptr->color_type = PNG_COLOR_TYPE_RGB_ALPHA; >+ color_type = PNG_COLOR_TYPE_RGB_ALPHA; > else >- info_ptr->color_type = PNG_COLOR_TYPE_RGB; >+ color_type = PNG_COLOR_TYPE_RGB; >+#if PNG_LIBPNG_VER < 10500 /* 1.5.0 */ >+ info_ptr->color_type = color_type; >+#else >+ png_set_IHDR(png_ptr, info_ptr, win.cols, win.rows, depth, >+ color_type, PNG_INTERLACE_NONE, >+ PNG_COMPRESSION_TYPE_DEFAULT, PNG_FILTER_TYPE_DEFAULT); >+#endif > > /* write the png-info struct */ > png_write_info(png_ptr, info_ptr);
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 384069
:
287399
|
287401
| 287639